2010-11-23 Phil Muldoon <pmuldoon@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
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
e552509b 614GOC_FOR_BUILD
81ecdfbb
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
911e63d0 624target_configdirs
81ecdfbb 625configdirs
81ecdfbb 626build_configdirs
81ecdfbb
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
4074d5f2
RW
634target_configargs
635host_configargs
636build_configargs
96655cc4 637BUILD_CONFIG
81ecdfbb
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
700d40ca 643extra_host_libiberty_configure_flags
81ecdfbb
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
81ecdfbb 648poststage1_ldflags
143754cd 649poststage1_libs
81ecdfbb
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
8e957354
PB
674AWK
675SED
81ecdfbb
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
744enable_libada
745enable_libssp
746enable_build_with_cxx
747with_mpc
748with_mpc_include
749with_mpc_lib
750with_mpfr_dir
751with_mpfr
752with_mpfr_include
753with_mpfr_lib
754with_gmp_dir
755with_gmp
756with_gmp_include
757with_gmp_lib
758with_host_libstdcxx
759with_stage1_ldflags
760with_stage1_libs
81ecdfbb 761with_boot_libs
143754cd 762with_boot_ldflags
81ecdfbb
RW
763with_ppl
764with_ppl_include
765with_ppl_lib
766enable_ppl_version_check
767with_cloog
768with_cloog_include
769with_cloog_lib
e552509b 770enable_cloog_backend
81ecdfbb 771enable_cloog_version_check
700d40ca 772enable_lto
81ecdfbb
RW
773enable_stage1_languages
774enable_objc_gc
775with_build_sysroot
776with_debug_prefix_map
777enable_bootstrap
96655cc4 778with_build_config
81ecdfbb
RW
779enable_serial_configure
780with_build_time_tools
781enable_maintainer_mode
782enable_stage1_checking
783enable_werror
81ecdfbb
RW
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CXX
794CXXFLAGS
795CCC
4074d5f2
RW
796build_configargs
797host_configargs
798target_configargs
81ecdfbb
RW
799AR
800AS
801DLLTOOL
802LD
803LIPO
804NM
805RANLIB
806STRIP
807WINDRES
808WINDMC
809OBJCOPY
810OBJDUMP
811CC_FOR_TARGET
812CXX_FOR_TARGET
813GCC_FOR_TARGET
814GCJ_FOR_TARGET
815GFORTRAN_FOR_TARGET
e552509b 816GOC_FOR_TARGET
81ecdfbb
RW
817AR_FOR_TARGET
818AS_FOR_TARGET
819DLLTOOL_FOR_TARGET
820LD_FOR_TARGET
821LIPO_FOR_TARGET
822NM_FOR_TARGET
823OBJDUMP_FOR_TARGET
824RANLIB_FOR_TARGET
825STRIP_FOR_TARGET
826WINDRES_FOR_TARGET
827WINDMC_FOR_TARGET'
828
a0da8069
NN
829
830# Initialize some variables set by options.
c6b750e1
DJ
831ac_init_help=
832ac_init_version=false
81ecdfbb
RW
833ac_unrecognized_opts=
834ac_unrecognized_sep=
a0da8069
NN
835# The variables have the same names as the options, with
836# dashes changed to underlines.
c6b750e1 837cache_file=/dev/null
a0da8069 838exec_prefix=NONE
a0da8069 839no_create=
a0da8069
NN
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
a0da8069
NN
848verbose=
849x_includes=NONE
850x_libraries=NONE
c6b750e1
DJ
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 857# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
a0da8069
NN
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
a0da8069
NN
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
81ecdfbb
RW
868docdir='${datarootdir}/doc/${PACKAGE}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
252b5132 877
a0da8069 878ac_prev=
81ecdfbb 879ac_dashdash=
a0da8069
NN
880for ac_option
881do
a0da8069
NN
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
81ecdfbb 884 eval $ac_prev=\$ac_option
a0da8069
NN
885 ac_prev=
886 continue
887 fi
252b5132 888
81ecdfbb
RW
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
a0da8069
NN
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
81ecdfbb
RW
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
a0da8069
NN
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 903 bindir=$ac_optarg ;;
a0da8069
NN
904
905 -build | --build | --buil | --bui | --bu)
c6b750e1 906 ac_prev=build_alias ;;
a0da8069 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 908 build_alias=$ac_optarg ;;
a0da8069
NN
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
a0da8069 919
81ecdfbb 920 -datadir | --datadir | --datadi | --datad)
a0da8069 921 ac_prev=datadir ;;
81ecdfbb 922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 923 datadir=$ac_optarg ;;
a0da8069 924
81ecdfbb
RW
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
a0da8069 932 -disable-* | --disable-*)
81ecdfbb 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 934 # Reject names that are not valid shell variable names.
81ecdfbb
RW
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
a0da8069
NN
957
958 -enable-* | --enable-*)
81ecdfbb 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 960 # Reject names that are not valid shell variable names.
81ecdfbb
RW
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
a0da8069 971 esac
81ecdfbb 972 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
c6b750e1 981 exec_prefix=$ac_optarg ;;
a0da8069
NN
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
c6b750e1
DJ
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
a0da8069
NN
993
994 -host | --host | --hos | --ho)
c6b750e1 995 ac_prev=host_alias ;;
a0da8069 996 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 997 host_alias=$ac_optarg ;;
a0da8069 998
81ecdfbb
RW
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
a0da8069
NN
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1010 includedir=$ac_optarg ;;
a0da8069
NN
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1015 infodir=$ac_optarg ;;
a0da8069
NN
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1020 libdir=$ac_optarg ;;
a0da8069
NN
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1027 libexecdir=$ac_optarg ;;
a0da8069 1028
81ecdfbb
RW
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
a0da8069 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1035 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1039 localstatedir=$ac_optarg ;;
a0da8069
NN
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1044 mandir=$ac_optarg ;;
a0da8069
NN
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1051 | --no-cr | --no-c | -n)
a0da8069
NN
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1065 oldincludedir=$ac_optarg ;;
a0da8069
NN
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1070 prefix=$ac_optarg ;;
a0da8069
NN
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1077 program_prefix=$ac_optarg ;;
a0da8069
NN
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1084 program_suffix=$ac_optarg ;;
a0da8069
NN
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1101 program_transform_name=$ac_optarg ;;
a0da8069 1102
81ecdfbb
RW
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
a0da8069
NN
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
c6b750e1 1121 sbindir=$ac_optarg ;;
a0da8069
NN
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
c6b750e1 1132 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
c6b750e1 1137 site=$ac_optarg ;;
a0da8069
NN
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1142 srcdir=$ac_optarg ;;
a0da8069
NN
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1149 sysconfdir=$ac_optarg ;;
a0da8069
NN
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1152 ac_prev=target_alias ;;
a0da8069 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1154 target_alias=$ac_optarg ;;
a0da8069
NN
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
c6b750e1
DJ
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
a0da8069
NN
1161
1162 -with-* | --with-*)
81ecdfbb 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
a0da8069 1175 esac
81ecdfbb 1176 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1177
1178 -without-* | --without-*)
81ecdfbb 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1180 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
a0da8069
NN
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1203 x_includes=$ac_optarg ;;
a0da8069
NN
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1210 x_libraries=$ac_optarg ;;
a0da8069 1211
81ecdfbb
RW
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information."
a0da8069
NN
1214 ;;
1215
c6b750e1
DJ
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1224 export $ac_envvar ;;
1225
a0da8069 1226 *)
c6b750e1 1227 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1232 ;;
1233
1234 esac
1235done
1236
1237if test -n "$ac_prev"; then
c6b750e1 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1239 as_fn_error "missing argument to $ac_option"
a0da8069 1240fi
a0da8069 1241
81ecdfbb
RW
1242if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1247 esac
81ecdfbb 1248fi
a0da8069 1249
81ecdfbb
RW
1250# Check all directory arguments for consistency.
1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
a0da8069 1255do
81ecdfbb
RW
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
c6b750e1 1264 case $ac_val in
81ecdfbb
RW
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1267 esac
81ecdfbb 1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1269done
1270
c6b750e1
DJ
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
376a0e54 1277
c6b750e1
DJ
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
81ecdfbb 1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
a0da8069 1293
a0da8069 1294
81ecdfbb
RW
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1301
1302
a0da8069
NN
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
81ecdfbb
RW
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
a0da8069 1330 srcdir=$ac_confdir
81ecdfbb 1331 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
81ecdfbb
RW
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
6d0cd39e
AM
1355case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1358 ;;
1359esac
9cc8ae67
PB
1360ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
81ecdfbb
RW
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
c6b750e1
DJ
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures this package to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
c6b750e1
DJ
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1398 [$ac_default_prefix]
c6b750e1 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1400 [PREFIX]
c6b750e1
DJ
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
81ecdfbb
RW
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
a0da8069 1443fi
a0da8069 1444
c6b750e1
DJ
1445if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449Optional Features:
81ecdfbb 1450 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
e6de499b 1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
521ec477
DD
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
e8a5fa9c 1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1457 --disable-ppl-version-check disable check for PPL version
ceca0218
PB
1458 --enable-cloog-backend[=BACKEND]
1459 set the CLooG BACKEND used to either isl, ppl or
1460 ppl-legacy (default)
e552509b
ILT
1461 --disable-cloog-version-check
1462 disable check for CLooG version
700d40ca 1463 --enable-lto enable link time optimization support
521ec477 1464 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1465 stage1. Mostly useful for compiler development.
521ec477
DD
1466 --enable-objc-gc enable use of Boehm's garbage collector with the
1467 GNU Objective-C runtime
1468 --enable-bootstrap enable bootstrapping [yes if native build]
1469 --enable-serial-[{host,target,build}-]configure
1470 force sequential configuration of
c6b750e1 1471 sub-packages for the host, target or build
521ec477 1472 machine, or all sub-packages
c6b750e1
DJ
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
521ec477
DD
1475 --enable-stage1-checking[=all] choose additional checking for stage1
1476 of the compiler
c6b750e1
DJ
1477 --enable-werror enable -Werror in bootstrap stage2 and later
1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1483 --with-mpc=PATH specify prefix directory for installed MPC package.
1484 Equivalent to --with-mpc-include=PATH/include
1485 plus --with-mpc-lib=PATH/lib
1486 --with-mpc-include=PATH
1487 specify directory for installed MPC include files
1488 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1489 --with-mpfr-dir=PATH this option has been REMOVED
1490 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1491 Equivalent to --with-mpfr-include=PATH/include
1492 plus --with-mpfr-lib=PATH/lib
1493 --with-mpfr-include=PATH
521ec477
DD
1494 specify directory for installed MPFR include files
1495 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1496 --with-gmp-dir=PATH this option has been REMOVED
1497 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1498 Equivalent to --with-gmp-include=PATH/include
1499 plus --with-gmp-lib=PATH/lib
521ec477
DD
1500 --with-gmp-include=PATH specify directory for installed GMP include files
1501 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1502 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1503 when linking with PPL
e8a5fa9c
RW
1504 --with-stage1-ldflags=FLAGS Linker flags for stage1
1505 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1506 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1507 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1508 --with-ppl=PATH Specify prefix directory for the installed PPL package
1509 Equivalent to --with-ppl-include=PATH/include
1510 plus --with-ppl-lib=PATH/lib
1511 --with-ppl-include=PATH Specify directory for installed PPL include files
1512 --with-ppl-lib=PATH Specify the directory for the installed PPL library
e552509b
ILT
1513 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1514 package. Equivalent to
1515 --with-cloog-include=PATH/include plus
1516 --with-cloog-lib=PATH/lib
1517 --with-cloog-include=PATH
1518 Specify directory for installed CLooG include files
1519 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1520 library
521ec477 1521 --with-build-sysroot=SYSROOT
c6b750e1 1522 use sysroot as the system root during the build
8a6ee3ab
JM
1523 --with-debug-prefix-map='A=B C=D ...'
1524 map A to B, C to D ... in debug information
96655cc4
AO
1525--with-build-config='NAME NAME2...'
1526 Use config/NAME.mk build configuration
521ec477 1527 --with-build-time-tools=PATH
c6b750e1 1528 use given path to find target tools during the build
c6b750e1
DJ
1529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
81ecdfbb
RW
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
4074d5f2
RW
1540 build_configargs
1541 additional configure arguments for build directories
1542 host_configargs
1543 additional configure arguments for host directories
1544 target_configargs
1545 additional configure arguments for target directories
9a819804
AO
1546 AR AR for the host
1547 AS AS for the host
1548 DLLTOOL DLLTOOL for the host
1549 LD LD for the host
1550 LIPO LIPO for the host
1551 NM NM for the host
1552 RANLIB RANLIB for the host
1553 STRIP STRIP for the host
1554 WINDRES WINDRES for the host
0c24b341 1555 WINDMC WINDMC for the host
9a819804
AO
1556 OBJCOPY OBJCOPY for the host
1557 OBJDUMP OBJDUMP for the host
1558 CC_FOR_TARGET
1559 CC for the target
1560 CXX_FOR_TARGET
1561 CXX for the target
1562 GCC_FOR_TARGET
1563 GCC for the target
1564 GCJ_FOR_TARGET
1565 GCJ for the target
1566 GFORTRAN_FOR_TARGET
1567 GFORTRAN for the target
e552509b
ILT
1568 GOC_FOR_TARGET
1569 GOC for the target
9a819804
AO
1570 AR_FOR_TARGET
1571 AR for the target
1572 AS_FOR_TARGET
1573 AS for the target
1574 DLLTOOL_FOR_TARGET
1575 DLLTOOL for the target
1576 LD_FOR_TARGET
1577 LD for the target
1578 LIPO_FOR_TARGET
1579 LIPO for the target
1580 NM_FOR_TARGET
1581 NM for the target
1582 OBJDUMP_FOR_TARGET
1583 OBJDUMP for the target
1584 RANLIB_FOR_TARGET
1585 RANLIB for the target
1586 STRIP_FOR_TARGET
1587 STRIP for the target
1588 WINDRES_FOR_TARGET
1589 WINDRES for the target
0c24b341
NC
1590 WINDMC_FOR_TARGET
1591 WINDMC for the target
c6b750e1
DJ
1592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
81ecdfbb 1596Report bugs to the package provider.
c6b750e1 1597_ACEOF
81ecdfbb 1598ac_status=$?
c6b750e1
DJ
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
c6b750e1 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
c6b750e1
DJ
1607 ac_builddir=.
1608
81ecdfbb
RW
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1624
1625case $srcdir in
81ecdfbb 1626 .) # We are building in place.
c6b750e1 1627 ac_srcdir=.
81ecdfbb
RW
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1631 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1638esac
81ecdfbb
RW
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1649 else
81ecdfbb
RW
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1653 done
1654fi
1655
81ecdfbb 1656test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1657if $ac_init_version; then
1658 cat <<\_ACEOF
81ecdfbb
RW
1659configure
1660generated by GNU Autoconf 2.64
c6b750e1 1661
81ecdfbb 1662Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
81ecdfbb 1666 exit
c6b750e1 1667fi
81ecdfbb
RW
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_c_try_compile
1710
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747} # ac_fn_cxx_try_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793} # ac_fn_c_try_link
1794cat >config.log <<_ACEOF
c6b750e1
DJ
1795This file contains any messages produced by compilers while
1796running configure, to aid debugging if configure makes a mistake.
1797
1798It was created by $as_me, which was
81ecdfbb 1799generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1800
1801 $ $0 $@
1802
1803_ACEOF
81ecdfbb 1804exec 5>>config.log
c6b750e1
DJ
1805{
1806cat <<_ASUNAME
1807## --------- ##
1808## Platform. ##
1809## --------- ##
1810
1811hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819
1820/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1823/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1824/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827
1828_ASUNAME
1829
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1835 $as_echo "PATH: $as_dir"
1836 done
1837IFS=$as_save_IFS
c6b750e1
DJ
1838
1839} >&5
1840
1841cat >&5 <<_ACEOF
1842
1843
1844## ----------- ##
1845## Core tests. ##
1846## ----------- ##
1847
1848_ACEOF
1849
1850
1851# Keep a trace of the command line.
1852# Strip out --no-create and --no-recursion so they do not pile up.
1853# Strip out --silent because we don't want to record it for future runs.
1854# Also quote any args containing shell meta-characters.
1855# Make two passes to allow for proper duplicate-argument suppression.
1856ac_configure_args=
1857ac_configure_args0=
1858ac_configure_args1=
c6b750e1
DJ
1859ac_must_keep_next=false
1860for ac_pass in 1 2
1861do
1862 for ac_arg
1863 do
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
81ecdfbb
RW
1869 *\'*)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1871 esac
1872 case $ac_pass in
81ecdfbb 1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1874 2)
81ecdfbb 1875 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1887 ;;
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1890 fi
81ecdfbb 1891 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1892 ;;
1893 esac
1894 done
1895done
81ecdfbb
RW
1896{ ac_configure_args0=; unset ac_configure_args0;}
1897{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1898
1899# When interrupted or exit'd, cleanup temporary files, and complete
1900# config.log. We remove comments because anyway the quotes in there
1901# would cause problems or look ugly.
81ecdfbb
RW
1902# WARNING: Use '\'' to represent an apostrophe within the trap.
1903# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1904trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1906 {
1907 echo
1908
1909 cat <<\_ASBOX
1910## ---------------- ##
1911## Cache variables. ##
1912## ---------------- ##
1913_ASBOX
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1916(
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
c6b750e1 1932 (set) 2>&1 |
81ecdfbb
RW
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
c6b750e1 1935 sed -n \
81ecdfbb
RW
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
c6b750e1 1939 *)
81ecdfbb 1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1941 ;;
81ecdfbb
RW
1942 esac |
1943 sort
1944)
c6b750e1
DJ
1945 echo
1946
1947 cat <<\_ASBOX
1948## ----------------- ##
1949## Output variables. ##
1950## ----------------- ##
1951_ASBOX
1952 echo
1953 for ac_var in $ac_subst_vars
1954 do
81ecdfbb
RW
1955 eval ac_val=\$$ac_var
1956 case $ac_val in
1957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 esac
1959 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1960 done | sort
1961 echo
1962
1963 if test -n "$ac_subst_files"; then
1964 cat <<\_ASBOX
81ecdfbb
RW
1965## ------------------- ##
1966## File substitutions. ##
1967## ------------------- ##
c6b750e1
DJ
1968_ASBOX
1969 echo
1970 for ac_var in $ac_subst_files
1971 do
81ecdfbb
RW
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1977 done | sort
1978 echo
1979 fi
1980
1981 if test -s confdefs.h; then
1982 cat <<\_ASBOX
1983## ----------- ##
1984## confdefs.h. ##
1985## ----------- ##
1986_ASBOX
1987 echo
81ecdfbb 1988 cat confdefs.h
c6b750e1
DJ
1989 echo
1990 fi
1991 test "$ac_signal" != 0 &&
81ecdfbb
RW
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
c6b750e1 1994 } >&5
81ecdfbb
RW
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1997 exit $exit_status
81ecdfbb 1998' 0
c6b750e1 1999for ac_signal in 1 2 13 15; do
81ecdfbb 2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2001done
2002ac_signal=0
2003
2004# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2005rm -f -r conftest* confdefs.h
2006
2007$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2008
2009# Predefined preprocessor variables.
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_NAME "$PACKAGE_NAME"
2013_ACEOF
2014
c6b750e1
DJ
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017_ACEOF
2018
c6b750e1
DJ
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_VERSION "$PACKAGE_VERSION"
2021_ACEOF
2022
c6b750e1
DJ
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_STRING "$PACKAGE_STRING"
2025_ACEOF
2026
c6b750e1
DJ
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029_ACEOF
2030
81ecdfbb
RW
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_URL "$PACKAGE_URL"
2033_ACEOF
2034
c6b750e1
DJ
2035
2036# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2037# Prefer an explicitly selected file to automatically selected ones.
2038ac_site_file1=NONE
2039ac_site_file2=NONE
2040if test -n "$CONFIG_SITE"; then
2041 ac_site_file1=$CONFIG_SITE
2042elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2048fi
81ecdfbb
RW
2049for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050do
2051 test "x$ac_site_file" = xNONE && continue
a0da8069 2052 if test -r "$ac_site_file"; then
81ecdfbb
RW
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2055 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2056 . "$ac_site_file"
2057 fi
2058done
2059
2060if test -r "$cache_file"; then
c6b750e1
DJ
2061 # Some versions of bash will fail to source /dev/null (special
2062 # files actually), so we avoid doing that.
2063 if test -f "$cache_file"; then
81ecdfbb
RW
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2066 case $cache_file in
81ecdfbb
RW
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
c6b750e1
DJ
2069 esac
2070 fi
a0da8069 2071else
81ecdfbb
RW
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2074 >$cache_file
2075fi
2076
2077# Check that the precious variables saved in the cache have kept the same
2078# value.
2079ac_cache_corrupted=false
81ecdfbb 2080for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2083 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2085 case $ac_old_set,$ac_new_set in
2086 set,)
81ecdfbb
RW
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2089 ac_cache_corrupted=: ;;
2090 ,set)
81ecdfbb
RW
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2093 ac_cache_corrupted=: ;;
2094 ,);;
2095 *)
2096 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2097 # differences in whitespace do not lead to failure.
2098 ac_old_val_w=`echo x $ac_old_val`
2099 ac_new_val_w=`echo x $ac_new_val`
2100 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103 ac_cache_corrupted=:
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107 eval $ac_var=\$ac_old_val
2108 fi
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2110$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2112$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2113 fi;;
2114 esac
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2117 case $ac_new_val in
81ecdfbb 2118 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2120 esac
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2123 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2124 esac
2125 fi
2126done
2127if $ac_cache_corrupted; then
81ecdfbb
RW
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2133fi
81ecdfbb
RW
2134## -------------------- ##
2135## Main body of script. ##
2136## -------------------- ##
a0da8069
NN
2137
2138ac_ext=c
a0da8069 2139ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
2144
2145
2146
c6b750e1
DJ
2147
2148
34a0f3cf 2149
c6b750e1 2150
5b553f7e
RW
2151
2152progname=$0
2153# if PWD already has a value, it is probably wrong.
2154if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2155
2156# Export original configure arguments for use by sub-configures.
2157# Quote arguments with shell meta charatcers.
2158TOPLEVEL_CONFIGURE_ARGUMENTS=
2159set -- "$progname" "$@"
2160for ac_arg
2161do
2162 case "$ac_arg" in
2163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2165 # if the argument is of the form -foo=baz, quote the baz part only
2166 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2167 *) ;;
2168 esac
2169 # Add the quoted argument to the list.
2170 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2171done
2172if test "$silent" = yes; then
2173 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2174fi
2175# Remove the initial space we just introduced and, as these will be
2176# expanded by make, quote '$'.
2177TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2178
c6b750e1
DJ
2179
2180# Find the build, host, and target systems.
a0da8069 2181ac_aux_dir=
81ecdfbb
RW
2182for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183 for ac_t in install-sh install.sh shtool; do
2184 if test -f "$ac_dir/$ac_t"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 break 2
2188 fi
2189 done
a0da8069
NN
2190done
2191if test -z "$ac_aux_dir"; then
81ecdfbb 2192 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2193fi
81ecdfbb
RW
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
a0da8069 2203
c6b750e1 2204# Make sure we can run config.sub.
81ecdfbb
RW
2205$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2206 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2207
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2209$as_echo_n "checking build system type... " >&6; }
2210if test "${ac_cv_build+set}" = set; then :
2211 $as_echo_n "(cached) " >&6
2212else
2213 ac_build_alias=$build_alias
2214test "x$ac_build_alias" = x &&
2215 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2216test "x$ac_build_alias" = x &&
2217 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2218ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2219 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2220
2221fi
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2223$as_echo "$ac_cv_build" >&6; }
2224case $ac_cv_build in
2225*-*-*) ;;
2226*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2227esac
c6b750e1 2228build=$ac_cv_build
81ecdfbb
RW
2229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_build
2231shift
2232build_cpu=$1
2233build_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237build_os=$*
2238IFS=$ac_save_IFS
2239case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2240
a0da8069 2241
c6b750e1
DJ
2242 case ${build_alias} in
2243 "") build_noncanonical=${build} ;;
2244 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2245esac
2246
2247
cac3d6c4 2248
c6b750e1
DJ
2249 case ${host_alias} in
2250 "") host_noncanonical=${build_noncanonical} ;;
2251 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2252esac
2253
cac3d6c4 2254
c6b750e1
DJ
2255
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2259esac
2260
cac3d6c4 2261
c6b750e1
DJ
2262
2263
2264test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
c6b750e1 2267 program_transform_name=s,y,y,
cac3d6c4 2268
81ecdfbb
RW
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2270$as_echo_n "checking host system type... " >&6; }
2271if test "${ac_cv_host+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
cac3d6c4 2273else
81ecdfbb
RW
2274 if test "x$host_alias" = x; then
2275 ac_cv_host=$ac_cv_build
2276else
2277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2279fi
c6b750e1
DJ
2280
2281fi
81ecdfbb
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2283$as_echo "$ac_cv_host" >&6; }
2284case $ac_cv_host in
2285*-*-*) ;;
2286*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2287esac
c6b750e1 2288host=$ac_cv_host
81ecdfbb
RW
2289ac_save_IFS=$IFS; IFS='-'
2290set x $ac_cv_host
2291shift
2292host_cpu=$1
2293host_vendor=$2
2294shift; shift
2295# Remember, the first character of IFS is used to create $*,
2296# except with old shells:
2297host_os=$*
2298IFS=$ac_save_IFS
2299case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2300
2301
81ecdfbb
RW
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2303$as_echo_n "checking target system type... " >&6; }
2304if test "${ac_cv_target+set}" = set; then :
2305 $as_echo_n "(cached) " >&6
c6b750e1 2306else
81ecdfbb
RW
2307 if test "x$target_alias" = x; then
2308 ac_cv_target=$ac_cv_host
2309else
2310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2312fi
c6b750e1 2313
cac3d6c4 2314fi
81ecdfbb
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2316$as_echo "$ac_cv_target" >&6; }
2317case $ac_cv_target in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2320esac
c6b750e1 2321target=$ac_cv_target
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_target
2324shift
2325target_cpu=$1
2326target_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330target_os=$*
2331IFS=$ac_save_IFS
2332case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2333
2334
2335# The aliases save the names the user supplied, while $host etc.
2336# will get canonicalized.
2337test -n "$target_alias" &&
2338 test "$program_prefix$program_suffix$program_transform_name" = \
2339 NONENONEs,x,x, &&
2340 program_prefix=${target_alias}-
81ecdfbb 2341
a0da8069 2342test "$program_prefix" != NONE &&
81ecdfbb 2343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2344# Use a double $ so make ignores it.
2345test "$program_suffix" != NONE &&
81ecdfbb
RW
2346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347# Double any \ or $.
c6b750e1 2348# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2349ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2351
a0da8069
NN
2352
2353
e5c3f801
NN
2354# Get 'install' or 'install-sh' and its variants.
2355# Find a good install program. We prefer a C program (faster),
2356# so one script is as good as another. But avoid the broken or
2357# incompatible versions:
2358# SysV /etc/install, /usr/sbin/install
2359# SunOS /usr/etc/install
2360# IRIX /sbin/install
2361# AIX /bin/install
c6b750e1 2362# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2366# OS/2's system install, which has a completely different semantic
e5c3f801 2367# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2368# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2371if test -z "$INSTALL"; then
81ecdfbb
RW
2372if test "${ac_cv_path_install+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2374else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2380 # Account for people who put trailing slashes in PATH elements.
2381case $as_dir/ in #((
2382 ./ | .// | /[cC]/* | \
c6b750e1 2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2385 /usr/ucb/* ) ;;
2386 *)
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2389 # by default.
2390 for ac_prog in ginstall scoinst install; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2392 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2393 if test $ac_prog = install &&
c6b750e1 2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2395 # AIX install. It has an incompatible calling convention.
2396 :
c6b750e1
DJ
2397 elif test $ac_prog = install &&
2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2400 :
e5c3f801 2401 else
58c85be7
RW
2402 rm -rf conftest.one conftest.two conftest.dir
2403 echo one > conftest.one
2404 echo two > conftest.two
2405 mkdir conftest.dir
2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407 test -s conftest.one && test -s conftest.two &&
2408 test -s conftest.dir/conftest.one &&
2409 test -s conftest.dir/conftest.two
2410 then
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2413 fi
e5c3f801
NN
2414 fi
2415 fi
2416 done
c6b750e1
DJ
2417 done
2418 ;;
2419esac
81ecdfbb
RW
2420
2421 done
2422IFS=$as_save_IFS
c6b750e1 2423
58c85be7 2424rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2425
2426fi
2427 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2428 INSTALL=$ac_cv_path_install
e5c3f801 2429 else
58c85be7
RW
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
e5c3f801 2432 # break other packages using the cache if that directory is
58c85be7 2433 # removed, or if the value is a relative name.
c6b750e1 2434 INSTALL=$ac_install_sh
e5c3f801
NN
2435 fi
2436fi
81ecdfbb
RW
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2439
2440# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441# It thinks the first close brace ends the variable substitution.
2442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
c6b750e1 2444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2445
2446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
81ecdfbb
RW
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2449$as_echo_n "checking whether ln works... " >&6; }
2450if test "${acx_cv_prog_LN+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
656fdd47
PB
2452else
2453 rm -f conftestdata_t
2454echo >conftestdata_f
2455if ln conftestdata_f conftestdata_t 2>/dev/null
2456then
2457 acx_cv_prog_LN=ln
2458else
2459 acx_cv_prog_LN=no
2460fi
2461rm -f conftestdata_f conftestdata_t
2462
2463fi
2464if test $acx_cv_prog_LN = no; then
2465 LN="cp"
81ecdfbb
RW
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2467$as_echo "no, using $LN" >&6; }
656fdd47
PB
2468else
2469 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471$as_echo "yes" >&6; }
656fdd47
PB
2472fi
2473
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2475$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2476LN_S=$as_ln_s
2477if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479$as_echo "yes" >&6; }
cac3d6c4 2480else
81ecdfbb
RW
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2482$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2483fi
2484
8e957354
PB
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2486$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2487if test "${ac_cv_path_SED+set}" = set; then :
2488 $as_echo_n "(cached) " >&6
2489else
2490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2491 for ac_i in 1 2 3 4 5 6 7; do
2492 ac_script="$ac_script$as_nl$ac_script"
2493 done
2494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2495 { ac_script=; unset ac_script;}
2496 if test -z "$SED"; then
2497 ac_path_SED_found=false
2498 # Loop through the user's path and test for each of PROGNAME-LIST
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_prog in sed gsed; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2508# Check for GNU ac_path_SED and select it if it is found.
2509 # Check for GNU $ac_path_SED
2510case `"$ac_path_SED" --version 2>&1` in
2511*GNU*)
2512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2513*)
2514 ac_count=0
2515 $as_echo_n 0123456789 >"conftest.in"
2516 while :
2517 do
2518 cat "conftest.in" "conftest.in" >"conftest.tmp"
2519 mv "conftest.tmp" "conftest.in"
2520 cp "conftest.in" "conftest.nl"
2521 $as_echo '' >> "conftest.nl"
2522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2524 as_fn_arith $ac_count + 1 && ac_count=$as_val
2525 if test $ac_count -gt ${ac_path_SED_max-0}; then
2526 # Best one so far, save it but keep looking for a better one
2527 ac_cv_path_SED="$ac_path_SED"
2528 ac_path_SED_max=$ac_count
2529 fi
2530 # 10*(2^10) chars as input seems more than enough
2531 test $ac_count -gt 10 && break
2532 done
2533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2534esac
2535
2536 $ac_path_SED_found && break 3
2537 done
2538 done
2539 done
2540IFS=$as_save_IFS
2541 if test -z "$ac_cv_path_SED"; then
2542 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2543 fi
2544else
2545 ac_cv_path_SED=$SED
2546fi
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2550$as_echo "$ac_cv_path_SED" >&6; }
2551 SED="$ac_cv_path_SED"
2552 rm -f conftest.sed
2553
2554for ac_prog in gawk mawk nawk awk
2555do
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557set dummy $ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_AWK+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578 done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583AWK=$ac_cv_prog_AWK
2584if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586$as_echo "$AWK" >&6; }
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593 test -n "$AWK" && break
2594done
2595
e5c3f801 2596
252b5132 2597### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2598### If we are on Windows, search for the shell. This will permit people
2599### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2600### without also having to set CONFIG_SHELL. This code will work when
2601### using bash, which sets OSTYPE.
2602case "${OSTYPE}" in
2603*win32*)
a0da8069
NN
2604 if test x${CONFIG_SHELL} = x ; then
2605 if test ! -f /bin/sh ; then
2606 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2607 CONFIG_SHELL=${SHELL}
2608 export CONFIG_SHELL
2609 else
2610 for prog in sh sh.exe bash bash.exe; do
2611 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2612 for dir in $PATH; do
2613 test -z "$dir" && dir=.
2614 if test -f $dir/$prog; then
2615 CONFIG_SHELL=$dir/$prog
2616 export CONFIG_SHELL
2617 break
2618 fi
2619 done
2620 IFS="$save_ifs"
2621 test -n "${CONFIG_SHELL}" && break
2622 done
2623 fi
2624 fi
2625 fi
2626 ;;
2627esac
2628
2629config_shell=${CONFIG_SHELL-/bin/sh}
2630
a0da8069 2631moveifchange=${srcdir}/move-if-change
252b5132 2632
0fdbe983
DJ
2633srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2634
2635# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2636# a relative path.
2637if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2638 INSTALL="${srcpwd}/install-sh -c"
2639fi
2640
a0da8069
NN
2641# Set srcdir to "." if that's what it is.
2642# This is important for multilib support.
2643pwd=`${PWDCMD-pwd}`
a0da8069
NN
2644if test "${pwd}" = "${srcpwd}" ; then
2645 srcdir=.
252b5132
RH
2646fi
2647
a0da8069 2648topsrcdir=$srcpwd
252b5132 2649
a0da8069 2650extra_host_args=
afefada0 2651
a0da8069
NN
2652### To add a new directory to the tree, first choose whether it is a target
2653### or a host dependent tool. Then put it into the appropriate list
2654### (library or tools, host or target), doing a dependency sort.
252b5132 2655
c6b750e1 2656# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2657# configdirs, or target_configdirs; see the serialization section below.
252b5132 2658
c6b750e1
DJ
2659# Dependency sorting is only needed when *configuration* must be done in
2660# a particular order. In all cases a dependency should be specified in
a0da8069 2661# the Makefile, whether or not it's implicitly specified here.
252b5132 2662
a0da8069
NN
2663# Double entries in build_configdirs, configdirs, or target_configdirs may
2664# cause circular dependencies and break everything horribly.
252b5132 2665
6a9cf61e
PB
2666# these library is used by various programs built for the build
2667# environment
2668#
2669build_libs="build-libiberty"
2670
2671# these tools are built for the build environment
ee025550 2672build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2673
a0da8069
NN
2674# these libraries are used by various programs built for the host environment
2675#
1f53ca9a 2676host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2677
a0da8069
NN
2678# these tools are built for the host environment
2679# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2680# know that we are building the simulator.
2681# binutils, gas and ld appear in that order because it makes sense to run
2682# "make check" in that particular order.
e6de499b 2683# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2684host_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
2685
2686# libgcj represents the runtime libraries only used by gcj.
2687libgcj="target-libffi \
a0da8069
NN
2688 target-zlib \
2689 target-qthreads \
2690 target-libjava"
2691
2692# these libraries are built for the target environment, and are built after
2693# the host libraries and the host tools (which may be a cross compiler)
2694#
b1299c4e
DJ
2695target_libraries="target-libgcc \
2696 target-libiberty \
a0da8069
NN
2697 target-libgloss \
2698 target-newlib \
cff87f51 2699 target-libgomp \
b9459e83 2700 target-libstdc++-v3 \
4b1cb4fe 2701 target-libmudflap \
bb780410 2702 target-libssp \
e552509b 2703 target-libquadmath \
4b1cb4fe 2704 target-libgfortran \
4f0ef2d8 2705 target-boehm-gc \
83326456 2706 ${libgcj} \
a2592b1b 2707 target-libobjc \
e552509b
ILT
2708 target-libada \
2709 target-libgo"
a0da8069 2710
9c14acb8
NN
2711# these tools are built using the target libraries, and are intended to
2712# run only in the target environment
a0da8069 2713#
9c14acb8 2714# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2715# list belongs in this list. those programs are also very likely
2716# candidates for the "native_only" list which follows
2717#
a3dd767d 2718target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2719
a0da8069 2720################################################################################
252b5132 2721
a0da8069
NN
2722## All tools belong in one of the four categories, and are assigned above
2723## We assign ${configdirs} this way to remove all embedded newlines. This
2724## is important because configure will choke if they ever get through.
2725## ${configdirs} is directories we build using the host tools.
2726## ${target_configdirs} is directories we build using the target tools.
a0da8069 2727configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2728target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2729build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2730
9cc8ae67
PB
2731
2732
a0da8069 2733################################################################################
252b5132 2734
a0da8069 2735srcname="gnu development package"
252b5132 2736
a0da8069
NN
2737# This gets set non-empty for some net releases of packages.
2738appdirs=""
252b5132 2739
a0da8069
NN
2740# Define is_cross_compiler to save on calls to 'test'.
2741is_cross_compiler=
2742if test x"${host}" = x"${target}" ; then
2743 is_cross_compiler=no
252b5132 2744else
a0da8069 2745 is_cross_compiler=yes
c6b750e1 2746fi
252b5132 2747
9175bfc0 2748# Find the build and target subdir names.
dd12c3a8 2749
66a79c16
DJ
2750# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751# have matching libraries, they should use host libraries: Makefile.tpl
2752# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753# However, they still use the build modules, because the corresponding
2754# host modules (e.g. bison) are only built for the host when bootstrap
2755# finishes. So:
2756# - build_subdir is where we find build modules, and never changes.
2757# - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2760build_subdir="build-${build_noncanonical}"
c6b750e1 2761
81ecdfbb
RW
2762# Check whether --with-build-libsubdir was given.
2763if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2765else
2766 build_libsubdir="$build_subdir"
81ecdfbb
RW
2767fi
2768
b00612cc
PB
2769# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773else
2774 host_subdir=.
2775fi
dd12c3a8
NN
2776# No prefix.
2777target_subdir=${target_noncanonical}
c6b750e1 2778
2fd0b40b
RW
2779# Be sure to cover against remnants of an in-tree build.
2780if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2781 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2782Use a pristine source tree when building in a separate tree" "$LINENO" 5
2783fi
252b5132 2784
a0da8069
NN
2785# Skipdirs are removed silently.
2786skipdirs=
2787# Noconfigdirs are removed loudly.
2788noconfigdirs=""
252b5132 2789
a0da8069
NN
2790use_gnu_ld=
2791# Make sure we don't let GNU ld be added if we didn't want it.
2792if test x$with_gnu_ld = xno ; then
2793 use_gnu_ld=no
93f9b408 2794 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2795fi
2796
a0da8069
NN
2797use_gnu_as=
2798# Make sure we don't let GNU as be added if we didn't want it.
2799if test x$with_gnu_as = xno ; then
2800 use_gnu_as=no
2801 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2802fi
2803
700d40ca
ILT
2804use_included_zlib=
2805# Make sure we don't let ZLIB be added if we didn't want it.
2806if test x$with_system_zlib = xyes ; then
2807 use_included_zlib=no
2808 noconfigdirs="$noconfigdirs zlib"
2809fi
2810
c6b750e1 2811# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2812# it's not even worth trying to configure, much less build, that tool.
252b5132 2813
a0da8069
NN
2814case ${with_x} in
2815 yes | "") ;; # the default value for this tree is that X11 is available
2816 no)
675c6968 2817 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2818 # We won't be able to build gdbtk without X.
c6b750e1 2819 enable_gdbtk=no
a0da8069
NN
2820 ;;
2821 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2822esac
252b5132 2823
a0da8069 2824# Some tools are only suitable for building in a "native" situation.
c6b750e1 2825# Remove these if host!=target.
701628f5 2826native_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 2827
a0da8069
NN
2828# Similarly, some are only suitable for cross toolchains.
2829# Remove these if host=target.
2830cross_only="target-libgloss target-newlib target-opcodes"
2831
2832case $is_cross_compiler in
2833 no) skipdirs="${skipdirs} ${cross_only}" ;;
2834 yes) skipdirs="${skipdirs} ${native_only}" ;;
2835esac
252b5132 2836
a0da8069
NN
2837# If both --with-headers and --with-libs are specified, default to
2838# --without-newlib.
32be62b5
RS
2839if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2841 if test x"${with_newlib}" = x ; then
2842 with_newlib=no
2843 fi
252b5132
RH
2844fi
2845
a0da8069
NN
2846# Recognize --with-newlib/--without-newlib.
2847case ${with_newlib} in
2848 no) skipdirs="${skipdirs} target-newlib" ;;
2849 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850esac
252b5132 2851
93f9b408 2852# Handle --enable-gold.
e6de499b
NC
2853# --enable-gold Build only gold
2854# --disable-gold [default] Build only ld
2855# --enable-gold=both Build both gold and ld, ld is default
2856# --enable-gold=both/ld Same
2857# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
93f9b408 2858
81ecdfbb
RW
2859# Check whether --enable-gold was given.
2860if test "${enable_gold+set}" = set; then :
2861 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2862else
2863 ENABLE_GOLD=no
81ecdfbb
RW
2864fi
2865
e6de499b
NC
2866 case "${ENABLE_GOLD}" in
2867 yes|both|both/gold|both/ld)
2868 # Check for ELF target.
2869 is_elf=no
2870 case "${target}" in
2871 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2872 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2873 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2876 ;;
2877 *)
2878 is_elf=yes
2879 ;;
2880 esac
2881 esac
2882
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
93f9b408 2885 case "${target}" in
e6de499b
NC
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 case "${ENABLE_GOLD}" in
2888 both*)
2889 configdirs="$configdirs gold"
2890 ;;
2891 *)
3cac54d2 2892 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
e6de499b
NC
2893 ;;
2894 esac
2895 ENABLE_GOLD=yes
93f9b408
ILT
2896 ;;
2897 esac
e6de499b
NC
2898 fi
2899 ;;
2900 no)
2901 ;;
2902 *)
2903 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2904 ;;
93f9b408
ILT
2905 esac
2906
a0da8069 2907# Configure extra directories which are host specific
252b5132 2908
a0da8069
NN
2909case "${host}" in
2910 *-cygwin*)
2911 configdirs="$configdirs libtermcap" ;;
2912esac
252b5132 2913
59f7ec45
HPN
2914# A target can indicate whether a language isn't supported for some reason.
2915# Only spaces may be used in this macro; not newlines or tabs.
2916unsupported_languages=
2917
c6b750e1 2918# Remove more programs from consideration, based on the host or
a0da8069
NN
2919# target this usually means that a port of the program doesn't
2920# exist yet.
252b5132 2921
a0da8069
NN
2922case "${host}" in
2923 hppa*64*-*-*)
2924 noconfigdirs="$noconfigdirs byacc"
2925 ;;
ec11bdc6 2926 i[3456789]86-*-vsta)
675c6968 2927 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2928 ;;
ec11bdc6 2929 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2930 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2931 ;;
2d1e8239
NC
2932 x86_64-*-mingw*)
2933 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2934 ;;
ec11bdc6 2935 i[3456789]86-*-mingw32*)
675c6968 2936 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2937 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2938 ;;
ec11bdc6 2939 i[3456789]86-*-beos*)
675c6968 2940 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2941 ;;
a0da8069 2942 *-*-cygwin*)
a92834c8 2943 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2944 ;;
2945 *-*-netbsd*)
a92834c8 2946 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2947 ;;
2948 ppc*-*-pe)
675c6968 2949 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2950 ;;
2951 powerpc-*-beos*)
675c6968 2952 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2953 ;;
a0da8069 2954esac
252b5132 2955
4b1cb4fe 2956
81ecdfbb
RW
2957# Check whether --enable-libada was given.
2958if test "${enable_libada+set}" = set; then :
2959 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2960else
2961 ENABLE_LIBADA=yes
81ecdfbb
RW
2962fi
2963
a2592b1b 2964if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2965 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2966fi
2967
81ecdfbb
RW
2968# Check whether --enable-libssp was given.
2969if test "${enable_libssp+set}" = set; then :
2970 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2971else
2972 ENABLE_LIBSSP=yes
81ecdfbb
RW
2973fi
2974
5f128533 2975
a0da8069
NN
2976# Save it here so that, even in case of --enable-libgcj, if the Java
2977# front-end isn't enabled, we still get libgcj disabled.
2978libgcj_saved=$libgcj
2979case $enable_libgcj in
2980yes)
2981 # If we reset it here, it won't get added to noconfigdirs in the
2982 # target-specific build rules, so it will be forcibly enabled
2983 # (unless the Java language itself isn't enabled).
2984 libgcj=
2985 ;;
2986no)
2987 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
2988 # Don't disable libffi, though, other languages use it.
2989 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
a0da8069
NN
2990 ;;
2991esac
252b5132 2992
4b1cb4fe 2993
a6df5a19
PB
2994# Disable libmudflap on some systems.
2995if test x$enable_libmudflap = x ; then
3e707e94 2996 case "${target}" in
29383458 2997 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2998 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2999 ;;
3000 *-*-freebsd*)
3001 # Enable libmudflap by default in FreeBSD.
3002 ;;
3003 *)
3004 # Disable it by default everywhere else.
3005 noconfigdirs="$noconfigdirs target-libmudflap"
3006 ;;
3007 esac
a6df5a19 3008fi
4b1cb4fe 3009
a6df5a19
PB
3010# Disable libgomp on non POSIX hosted systems.
3011if test x$enable_libgomp = x ; then
b3ded179
PB
3012 # Enable libgomp by default on hosted POSIX systems.
3013 case "${target}" in
29383458 3014 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3015 ;;
3016 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3017 ;;
64ce424c 3018 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3019 ;;
3020 *-*-darwin* | *-*-aix*)
3021 ;;
3022 *)
3023 noconfigdirs="$noconfigdirs target-libgomp"
3024 ;;
3025 esac
a6df5a19 3026fi
b3ded179 3027
691bb5a1
DD
3028# Default libgloss CPU subdirectory.
3029libgloss_dir="$target_cpu"
4b1cb4fe 3030
a0da8069
NN
3031case "${target}" in
3032 *-*-chorusos)
54d1c879 3033 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3034 ;;
24741ab2 3035 powerpc-*-darwin*)
9d39db92 3036 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3037 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3038 ;;
85bd1942
TG
3039 i[3456789]86-*-darwin*)
3040 noconfigdirs="$noconfigdirs ld gprof"
3041 noconfigdirs="$noconfigdirs sim target-rda"
3042 ;;
e8a5fa9c 3043 x86_64-*-darwin[912]*)
652dec25
TG
3044 noconfigdirs="$noconfigdirs ld gas gprof"
3045 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3046 ;;
04d1ab34 3047 *-*-darwin*)
d320aacb 3048 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3049 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3050 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3051 ;;
a0da8069 3052 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3053 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3054 ;;
de0b4a87 3055 *-*-freebsd*)
4b1cb4fe
DD
3056 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3057 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3058 && test -f /usr/local/include/gmp.h; then
3059 with_gmp=/usr/local
3060 fi
3061
3062 # Skip some stuff that's unsupported on some FreeBSD configurations.
3063 case "${target}" in
3064 i*86-*-*) ;;
3065 alpha*-*-*) ;;
143754cd 3066 x86_64-*-*) ;;
4b1cb4fe 3067 *)
54d1c879 3068 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3069 ;;
3070 esac
3071 ;;
f8a495c8
NC
3072 *-*-kaos*)
3073 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3074 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3075 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3076 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3077 noconfigdirs="$noconfigdirs target-libgloss"
3078 ;;
a0da8069
NN
3079 *-*-netbsd*)
3080 # Skip some stuff on all NetBSD configurations.
3081 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3082
3083 # Skip some stuff that's unsupported on some NetBSD configurations.
3084 case "${target}" in
3085 i*86-*-netbsdelf*) ;;
5b474aa8 3086 arm*-*-netbsdelf*) ;;
a0da8069 3087 *)
54d1c879 3088 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3089 ;;
3090 esac
3091 ;;
2a3124ca 3092 *-*-netware*)
54d1c879 3093 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3094 ;;
3095 *-*-rtems*)
a009f2e7 3096 skipdirs="${skipdirs} target-libiberty"
54d1c879 3097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3098 ;;
1587117a
EC
3099 # The tpf target doesn't support gdb yet.
3100 *-*-tpf*)
54d1c879 3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3102 ;;
c1968181 3103 *-*-uclinux*)
54d1c879 3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3105 ;;
a0da8069 3106 *-*-vxworks*)
54d1c879 3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3108 ;;
3109 alpha*-dec-osf*)
3110 # ld works, but does not support shared libraries.
3111 # newlib is not 64 bit ready. I'm not sure about fileutils.
3112 # gas doesn't generate exception information.
3113 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3114 ;;
3115 alpha*-*-*vms*)
d594eacc 3116 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3117 ;;
3118 alpha*-*-linux*)
3119 # newlib is not 64 bit ready
3120 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121 ;;
a0da8069
NN
3122 alpha*-*-*)
3123 # newlib is not 64 bit ready
54d1c879 3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3125 ;;
4a18bd6b 3126 am33_2.0-*-linux*)
54d1c879 3127 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3128 ;;
a0da8069 3129 sh-*-linux*)
54d1c879 3130 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3131 ;;
a0da8069 3132 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3133 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3134 noconfigdirs="$noconfigdirs target-examples"
3135 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3136 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3137 noconfigdirs="$noconfigdirs expect dejagnu"
3138 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3139 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3140 noconfigdirs="$noconfigdirs target-newlib"
3141 case "${host}" in
3142 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3143 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3144 ;;
3145 esac
691bb5a1 3146 libgloss_dir=wince
a0da8069
NN
3147 ;;
3148 arc-*-*)
54d1c879 3149 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3150 ;;
caeba88f 3151 arm-semi-aof )
caeba88f 3152 ;;
a0da8069 3153 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3154 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3155 libgloss_dir=arm
a0da8069 3156 ;;
11b04d1f 3157 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3158 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3159 libgloss_dir=arm
a0da8069 3160 ;;
bd70a46f 3161 arm*-*-linux-gnueabi)
6d18b86b 3162 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3163 case ${with_newlib} in
3164 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3165 esac
691bb5a1 3166 libgloss_dir=arm
bd70a46f 3167 ;;
df4a6958 3168 arm*-*-symbianelf*)
54d1c879 3169 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3170 libgloss_dir=arm
df4a6958 3171 ;;
a0da8069 3172 arm-*-pe*)
54d1c879 3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3174 ;;
a0da8069 3175 thumb-*-coff)
54d1c879 3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3177 ;;
3178 thumb-*-elf)
54d1c879 3179 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3180 ;;
a0da8069 3181 thumb-*-pe)
54d1c879 3182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3183 ;;
3184 arm-*-riscix*)
54d1c879 3185 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3186 ;;
3187 avr-*-*)
266df637 3188 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3189 ;;
376a0e54 3190 bfin-*-*)
df51e4e1
JZ
3191 unsupported_languages="$unsupported_languages java"
3192 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3193 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3194 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3195 fi
3196 ;;
a0da8069 3197 c4x-*-* | tic4x-*-*)
54d1c879 3198 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3199 ;;
3200 c54x*-*-* | tic54x-*-*)
54d1c879 3201 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3202 ;;
52310858
NC
3203 cr16-*-*)
3204 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3205 ;;
c7e66c6d 3206 cris-*-* | crisv32-*-*)
59f7ec45 3207 unsupported_languages="$unsupported_languages java"
c7e66c6d 3208 case "${target}" in
2faa2958 3209 *-*-aout)
096f7d00 3210 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3211 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3212 *-*-elf)
5e818318 3213 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3214 *-*-linux*)
5e818318 3215 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3216 *)
096f7d00 3217 unsupported_languages="$unsupported_languages fortran"
54d1c879 3218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3219 esac
691bb5a1 3220 libgloss_dir=cris
a0da8069 3221 ;;
3e707e94 3222 crx-*-*)
54d1c879 3223 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3224 ;;
a0da8069 3225 d10v-*-*)
54d1c879 3226 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3227 ;;
3228 d30v-*-*)
54d1c879 3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3230 ;;
691bb5a1
DD
3231 ep9312-*-elf | ep9312-*-coff)
3232 libgloss_dir=arm
3233 ;;
a0da8069 3234 fr30-*-elf*)
54d1c879 3235 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3236 ;;
3237 frv-*-*)
54d1c879 3238 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3239 ;;
20135e4c
NC
3240 moxie-*-*)
3241 noconfigdirs="$noconfigdirs ${libgcj}"
3242 noconfigdirs="$noconfigdirs gprof"
3243 ;;
a0da8069 3244 h8300*-*-*)
54d1c879 3245 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3246 ;;
3247 h8500-*-*)
54d1c879 3248 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3249 ;;
caeba88f 3250 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3251 ;;
a0da8069
NN
3252 hppa*64*-*-linux* | parisc*64*-*-linux*)
3253 # In this case, it's because the hppa64-linux target is for
3254 # the kernel only at this point and has no libc, and thus no
3255 # headers, crt*.o, etc., all of which are needed by these.
3256 noconfigdirs="$noconfigdirs target-zlib"
3257 ;;
5dcac624
DA
3258 parisc*-*-linux* | hppa*-*-linux*)
3259 ;;
a0da8069 3260 hppa*-*-*elf* | \
a0da8069
NN
3261 hppa*-*-lites* | \
3262 hppa*-*-openbsd* | \
3263 hppa*64*-*-*)
54d1c879 3264 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3265 ;;
3266 hppa*-hp-hpux11*)
3267 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3268 ;;
691bb5a1
DD
3269 hppa*-*-pro*)
3270 libgloss_dir=pa
3271 ;;
a0da8069
NN
3272 hppa*-*-*)
3273 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3274 # build on HP-UX 10.20.
54d1c879 3275 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3276 ;;
b07c2aad 3277 i960-*-*)
54d1c879 3278 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3279 ;;
a0da8069
NN
3280 ia64*-*-elf*)
3281 # No gdb support yet.
675c6968 3282 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3283 ;;
3284 ia64*-**-hpux*)
3285 # No gdb or ld support yet.
54d1c879 3286 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3287 ;;
19e99079
NC
3288 ia64*-*-*vms*)
3289 # No gdb or ld support yet.
3290 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3291 ;;
caeba88f 3292 i370-*-opened*)
caeba88f 3293 ;;
ec11bdc6 3294 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3295 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3296 libgloss_dir=i386
a0da8069 3297 ;;
ec11bdc6 3298 i[3456789]86-*-linux*)
a0da8069
NN
3299 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3300 # not build java stuff by default.
3301 case "${target}" in
3302 *-*-*libc1*)
54d1c879 3303 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3304 esac
3305
3306 # This section makes it possible to build newlib natively on linux.
3307 # If we are using a cross compiler then don't configure newlib.
3308 if test x${is_cross_compiler} != xno ; then
bba45b8b 3309 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3310 fi
3311 noconfigdirs="$noconfigdirs target-libgloss"
3312 # If we are not using a cross compiler, do configure newlib.
3313 # Note however, that newlib will only be configured in this situation
3314 # if the --with-newlib option has been given, because otherwise
3315 # 'target-newlib' will appear in skipdirs.
3316 ;;
1f53ca9a
AO
3317 i[3456789]86-w64-mingw*)
3318 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3319 ;;
3320 i[3456789]86-*-mingw*)
45055374
CV
3321 target_configdirs="$target_configdirs target-winsup"
3322 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3323 ;;
2d1e8239 3324 x86_64-*-mingw*)
2d1e8239 3325 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3326 ;;
a0da8069
NN
3327 *-*-cygwin*)
3328 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3329 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3330 # always build newlib if winsup directory is present.
45055374 3331 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3332 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3333 elif test -d "$srcdir/newlib"; then
45055374 3334 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3335 fi
c6b750e1 3336 ;;
caeba88f
AL
3337 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3338 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3339 ;;
ec11bdc6 3340 i[3456789]86-*-pe)
54d1c879 3341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3342 ;;
ec11bdc6 3343 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3344 # The linker does not yet know about weak symbols in COFF,
3345 # and is not configured to handle mixed ELF and COFF.
54d1c879 3346 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3347 ;;
ec11bdc6 3348 i[3456789]86-*-sco*)
54d1c879 3349 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3350 ;;
ec11bdc6 3351 i[3456789]86-*-solaris2*)
a0da8069
NN
3352 noconfigdirs="$noconfigdirs target-libgloss"
3353 ;;
ec11bdc6 3354 i[3456789]86-*-sysv4*)
54d1c879 3355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3356 ;;
ec11bdc6 3357 i[3456789]86-*-beos*)
54d1c879 3358 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3359 ;;
b59bea8a 3360 i[3456789]86-*-rdos*)
2429c060
PB
3361 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362 ;;
b07c2aad 3363 m32r-*-*)
54d1c879 3364 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3365 ;;
a0da8069 3366 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3367 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3368 libgloss_dir=m68hc11
a0da8069
NN
3369 ;;
3370 m68k-*-elf*)
54d1c879 3371 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3372 ;;
3373 m68k-*-coff*)
54d1c879 3374 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3375 ;;
691bb5a1
DD
3376 m68*-*-* | fido-*-*)
3377 libgloss_dir=m68k
3378 ;;
a0da8069
NN
3379 mcore-*-pe*)
3380 # The EPOC C++ environment does not support exceptions or rtti,
3381 # and so building libstdc++-v3 tends not to always work.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 mmix-*-*)
59f7ec45 3385 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3386 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3387 ;;
3388 mn10200-*-*)
54d1c879 3389 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3390 ;;
3391 mn10300-*-*)
54d1c879 3392 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3393 ;;
4970f871 3394 mt-*-*)
cdb9b172
AH
3395 noconfigdirs="$noconfigdirs sim"
3396 ;;
a0da8069
NN
3397 powerpc-*-aix*)
3398 # copied from rs6000-*-* entry
e8a5fa9c 3399 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3400 ;;
3401 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3402 target_configdirs="$target_configdirs target-winsup"
54d1c879 3403 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3404 # always build newlib.
3405 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3406 ;;
3407 # This is temporary until we can link against shared libraries
3408 powerpcle-*-solaris*)
54d1c879 3409 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3410 libgloss_dir=rs6000
a0da8069
NN
3411 ;;
3412 powerpc-*-beos*)
54d1c879 3413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3414 ;;
a0da8069 3415 powerpc-*-eabi)
54d1c879 3416 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3417 libgloss_dir=rs6000
caeba88f
AL
3418 ;;
3419 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3420 libgloss_dir=rs6000
a0da8069 3421 ;;
a0da8069 3422 rs6000-*-lynxos*)
54d1c879 3423 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3424 ;;
3425 rs6000-*-aix*)
e8a5fa9c 3426 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3427 ;;
3428 rs6000-*-*)
54d1c879 3429 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3430 ;;
3431 m68k-apollo-*)
54d1c879 3432 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3433 ;;
25a07265 3434 microblaze*)
29821356 3435 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3436 ;;
5bd8be13
RS
3437 mips*-sde-elf*)
3438 skipdirs="$skipdirs target-libiberty"
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 if test x$with_newlib = xyes; then
3441 noconfigdirs="$noconfigdirs gprof"
3442 fi
3443 libgloss_dir=mips
3444 ;;
a0da8069 3445 mips*-*-irix5*)
54d1c879 3446 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3447 ;;
3448 mips*-*-irix6*)
a0da8069
NN
3449 # Linking libjava exceeds command-line length limits on at least
3450 # IRIX 6.2, but not on IRIX 6.5.
3451 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3452 # <oldham@codesourcery.com>
54d1c879 3453 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3454 ;;
a0da8069 3455 mips*-*-bsd*)
54d1c879 3456 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3457 ;;
a0da8069
NN
3458 mips*-*-linux*)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 mips*-*-*)
54d1c879 3462 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3463 libgloss_dir=mips
a0da8069
NN
3464 ;;
3465 romp-*-*)
54d1c879 3466 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3467 ;;
dbf85af7 3468 sh-*-* | sh64-*-*)
a0da8069 3469 case "${host}" in
ec11bdc6
DD
3470 i[3456789]86-*-vsta) ;; # don't add gprof back in
3471 i[3456789]86-*-go32*) ;; # don't add gprof back in
3472 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3473 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3474 esac
e8a5fa9c
RW
3475 case "${target}" in
3476 sh*-*-elf)
3477 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3478 *)
3479 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3480 esac
a0da8069 3481 ;;
691bb5a1
DD
3482 sparclet-*-aout* | sparc86x-*-*)
3483 libgloss_dir=sparc
3484 ;;
a0da8069 3485 sparc-*-elf*)
54d1c879 3486 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3487 ;;
3488 sparc64-*-elf*)
54d1c879 3489 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3490 libgloss_dir=sparc
a0da8069
NN
3491 ;;
3492 sparclite-*-*)
54d1c879 3493 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3494 libgloss_dir=sparc
a0da8069
NN
3495 ;;
3496 sparc-*-sunos4*)
54d1c879 3497 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3498 if test x${is_cross_compiler} != xno ; then
3499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3500 else
3501 use_gnu_ld=no
3502 fi
3503 ;;
e3c770b1 3504 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3505 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3506 ;;
a0da8069
NN
3507 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3508 ;;
619a3713
JM
3509 tic6x-*-*)
3510 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3511 ;;
a0da8069 3512 v810-*-*)
54d1c879 3513 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3514 ;;
1cd986c5
NC
3515 v850*-*-*)
3516 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3517 ;;
3518 vax-*-vms)
54d1c879 3519 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3520 ;;
3521 vax-*-*)
54d1c879 3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3523 ;;
8b66833e 3524 xtensa*-*-*)
54d1c879 3525 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3526 ;;
a0da8069 3527 ip2k-*-*)
54d1c879 3528 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3529 ;;
29383458 3530 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-lynxos*)
54d1c879 3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3535 ;;
a0da8069 3536 *-*-*)
54d1c879 3537 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3538 ;;
3539esac
252b5132 3540
a0da8069
NN
3541# If we aren't building newlib, then don't build libgloss, since libgloss
3542# depends upon some newlib header files.
3543case "${noconfigdirs}" in
3544 *target-libgloss*) ;;
3545 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3546esac
3547
a0da8069
NN
3548# Work in distributions that contain no compiler tools, like Autoconf.
3549tentative_cc=""
3550host_makefile_frag=/dev/null
3551if test -d ${srcdir}/config ; then
3552case "${host}" in
3553 m68k-hp-hpux*)
3554 # Avoid "too much defining" errors from HPUX compiler.
3555 tentative_cc="cc -Wp,-H256000"
3556 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3557 # If it's HP/UX ar, this should be harmless.
3558 RANLIB="ar ts"
3559 ;;
3560 m68k-apollo-sysv*)
3561 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3562 ;;
3563 m68k-apollo-bsd*)
3564 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3565 # chokes on bfd, the compiler won't let you assign integers to enums, and
3566 # other problems. Defining CC to gcc is a questionable way to say "don't use
3567 # the apollo compiler" (the preferred version of GCC could be called cc,
3568 # or whatever), but I'm not sure leaving CC as cc is any better...
3569 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3570 # Used to have BISON=yacc.
3571 tentative_cc=gcc
3572 ;;
3573 m88k-dg-dgux*)
3574 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3575 ;;
3576 m88k-harris-cxux*)
3577 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3578 tentative_cc="cc -Xa"
3579 host_makefile_frag="config/mh-cxux"
3580 ;;
3581 m88k-motorola-sysv*)
3582 ;;
3583 mips*-dec-ultrix*)
3584 tentative_cc="cc -Wf,-XNg1000"
3585 host_makefile_frag="config/mh-decstation"
3586 ;;
3587 mips*-nec-sysv4*)
3588 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3589 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3590 host_makefile_frag="config/mh-necv4"
3591 ;;
3592 mips*-sgi-irix4*)
3593 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3594 # environment. Also bump switch table size so that cp-parse will
3595 # compile. Bump string length limit so linker builds.
3596 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3597 ;;
3598 mips*-*-sysv4*)
3599 host_makefile_frag="config/mh-sysv4"
3600 ;;
3601 mips*-*-sysv*)
3602 # This is for a MIPS running RISC/os 4.52C.
3603
3604 # This is needed for GDB, but needs to be in the top-level make because
3605 # if a library is compiled with the bsd headers and gets linked with the
3606 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3607 # a different size).
3608 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3609 # known except to select the sysv environment. Could we use /proc instead?
3610 # These "sysv environments" and "bsd environments" often end up being a pain.
3611 #
3612 # This is not part of CFLAGS because perhaps not all C compilers have this
3613 # option.
3614 tentative_cc="cc -systype sysv"
3615 ;;
3616 i370-ibm-opened*)
3617 tentative_cc="c89"
3618 ;;
ec11bdc6 3619 i[3456789]86-*-sysv5*)
a0da8069
NN
3620 host_makefile_frag="config/mh-sysv5"
3621 ;;
ec11bdc6 3622 i[3456789]86-*-dgux*)
a0da8069
NN
3623 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3624 host_makefile_frag="config/mh-dgux386"
3625 ;;
ec11bdc6 3626 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3627 # The MetaWare compiler will generate a copyright message unless you
3628 # turn it off by adding the -Hnocopyr flag.
3629 tentative_cc="cc -Hnocopyr"
3630 ;;
ec11bdc6 3631 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3632 # for an NCR 3000 (i486/SVR4) system.
3633 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3634 # This compiler not only emits obnoxious copyright messages every time
3635 # you run it, but it chokes and dies on a whole bunch of GNU source
3636 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3637 tentative_cc="/usr/ccs/ATT/cc"
3638 host_makefile_frag="config/mh-ncr3000"
3639 ;;
ec11bdc6 3640 i[3456789]86-*-sco3.2v5*)
a0da8069 3641 ;;
ec11bdc6 3642 i[3456789]86-*-sco*)
a0da8069
NN
3643 # The native C compiler botches some simple uses of const. Unfortunately,
3644 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3645 tentative_cc="cc -Dconst="
3646 host_makefile_frag="config/mh-sco"
3647 ;;
ec11bdc6 3648 i[3456789]86-*-udk*)
a0da8069
NN
3649 host_makefile_frag="config/mh-sysv5"
3650 ;;
ec11bdc6 3651 i[3456789]86-*-solaris2*)
a0da8069
NN
3652 host_makefile_frag="config/mh-sysv4"
3653 ;;
ec11bdc6 3654 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3655 host_makefile_frag="config/mh-djgpp"
3656 ;;
3657 *-cygwin*)
e33b51a6 3658
81ecdfbb
RW
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3660$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3661echo a >cygwin-cat-check
1f53ca9a 3662if test `cat cygwin-cat-check` = a ; then
8ade07e9 3663 rm cygwin-cat-check
81ecdfbb
RW
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665$as_echo "yes" >&6; }
e33b51a6 3666else
8ade07e9 3667 rm cygwin-cat-check
81ecdfbb
RW
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3671 Please either mount the build directory in binary mode or run the following
3672 commands before running any configure script:
3673set -o igncr
3674export SHELLOPTS
81ecdfbb 3675 " "$LINENO" 5
e33b51a6 3676fi
e33b51a6 3677
a0da8069
NN
3678 host_makefile_frag="config/mh-cygwin"
3679 ;;
8a1599ab 3680 *-mingw*)
84e7906e 3681 host_makefile_frag="config/mh-mingw"
2d1e8239 3682 ;;
a0da8069
NN
3683 *-interix*)
3684 host_makefile_frag="config/mh-interix"
3685 ;;
3686 vax-*-ultrix2*)
3687 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3688 tentative_cc=gcc
3689 ;;
3690 *-*-solaris2*)
3691 host_makefile_frag="config/mh-solaris"
3692 ;;
3693 m68k-sun-sunos*)
3694 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3695 # without overflowing the jump tables (-J says to use a 32 bit table)
3696 tentative_cc="cc -J"
3697 ;;
da888c87 3698 hppa*-hp-hpux10*)
a0da8069 3699 tentative_cc="cc -Wp,-H256000"
da888c87 3700 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3701 ;;
da888c87
PB
3702 hppa*-hp-hpux* | hppa*-*-hiux*)
3703 tentative_cc="cc -Wp,-H256000"
3704 host_makefile_frag="config/mh-pa"
3705 ;;
3706 hppa*-*)
3707 host_makefile_frag="config/mh-pa"
3708 ;;
3709 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3710 tentative_cc="cc -Wp,-H256000"
3711 ;;
3712 rs6000-*-lynxos*)
3713 # /bin/cc is less than useful for our purposes. Always use GCC
3714 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3715 host_makefile_frag="config/mh-lynxrs6k"
3716 ;;
e552509b
ILT
3717 *-*-darwin*)
3718 host_makefile_frag="config/mh-darwin"
0df3d27f 3719 ;;
f6d183c0
PB
3720 powerpc-*-aix*)
3721 host_makefile_frag="config/mh-ppc-aix"
3722 ;;
3723 rs6000-*-aix*)
3724 host_makefile_frag="config/mh-ppc-aix"
3725 ;;
a0da8069
NN
3726 *-*-lynxos*)
3727 # /bin/cc is less than useful for our purposes. Always use GCC
3728 tentative_cc="/bin/gcc"
3729 ;;
3730 *-*-sysv4*)
3731 host_makefile_frag="config/mh-sysv4"
3732 ;;
fe69863c
DD
3733 # This is placed last to prevent interfering with the cases above.
3734 i[3456789]86-*-*)
3735 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3736 host_makefile_frag="config/mh-x86omitfp"
3737 ;;
a0da8069
NN
3738esac
3739fi
3740
9e07f89d
NN
3741# If we aren't going to be using gcc, see if we can extract a definition
3742# of CC from the fragment.
3743# Actually, use the 'pre-extracted' version above.
3744if test -z "${CC}" && test "${build}" = "${host}" ; then
3745 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3746 found=
3747 for dir in $PATH; do
3748 test -z "$dir" && dir=.
3749 if test -f $dir/gcc; then
3750 found=yes
3751 break
3752 fi
3753 done
3754 IFS="$save_ifs"
3755 if test -z "${found}" && test -n "${tentative_cc}" ; then
3756 CC=$tentative_cc
3757 fi
3758fi
3759
3760if test "${build}" != "${host}" ; then
1576798e
PB
3761 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3762 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3763 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3764 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3765 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3766 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3767 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3768 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3769 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3770 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3771 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3772 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3773 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3774else
3775 AR_FOR_BUILD="\$(AR)"
3776 AS_FOR_BUILD="\$(AS)"
512b7dfb 3777 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3778 CXX_FOR_BUILD="\$(CXX)"
3779 GCJ_FOR_BUILD="\$(GCJ)"
3780 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3781 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3782 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3783 LD_FOR_BUILD="\$(LD)"
3784 NM_FOR_BUILD="\$(NM)"
3785 RANLIB_FOR_BUILD="\$(RANLIB)"
3786 WINDRES_FOR_BUILD="\$(WINDRES)"
3787 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3788fi
3789
3790ac_ext=c
c6b750e1
DJ
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
3800if test "${ac_cv_prog_CC+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3802else
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3815 break 2
3816 fi
3817done
81ecdfbb
RW
3818 done
3819IFS=$as_save_IFS
c6b750e1
DJ
3820
3821fi
3822fi
3823CC=$ac_cv_prog_CC
3824if test -n "$CC"; then
81ecdfbb
RW
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826$as_echo "$CC" >&6; }
c6b750e1 3827else
81ecdfbb
RW
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
c6b750e1
DJ
3830fi
3831
81ecdfbb 3832
c6b750e1
DJ
3833fi
3834if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
6a9cf61e 3836 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3837set dummy gcc; ac_word=$2
81ecdfbb
RW
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
3840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3842else
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3853 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3855 break 2
3856 fi
3857done
81ecdfbb
RW
3858 done
3859IFS=$as_save_IFS
c6b750e1
DJ
3860
3861fi
3862fi
3863ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3867else
81ecdfbb
RW
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
c6b750e1
DJ
3870fi
3871
81ecdfbb
RW
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876yes:)
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879ac_tool_warned=yes ;;
3880esac
3881 CC=$ac_ct_CC
3882 fi
c6b750e1
DJ
3883else
3884 CC="$ac_cv_prog_CC"
3885fi
3886
3887if test -z "$CC"; then
81ecdfbb
RW
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3890set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if test "${ac_cv_prog_CC+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
9e07f89d
NN
3895else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898else
c6b750e1
DJ
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3908 break 2
3909 fi
3910done
81ecdfbb
RW
3911 done
3912IFS=$as_save_IFS
c6b750e1 3913
9e07f89d
NN
3914fi
3915fi
c6b750e1 3916CC=$ac_cv_prog_CC
9e07f89d 3917if test -n "$CC"; then
81ecdfbb
RW
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
c6b750e1 3920else
81ecdfbb
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
c6b750e1
DJ
3923fi
3924
c6b750e1 3925
81ecdfbb 3926 fi
c6b750e1 3927fi
9e07f89d
NN
3928if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930set dummy cc; ac_word=$2
81ecdfbb
RW
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if test "${ac_cv_prog_CC+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
9e07f89d
NN
3935else
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
9e07f89d 3939 ac_prog_rejected=no
c6b750e1
DJ
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3949 continue
3950 fi
3951 ac_cv_prog_CC="cc"
81ecdfbb 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3953 break 2
3954 fi
3955done
81ecdfbb
RW
3956 done
3957IFS=$as_save_IFS
c6b750e1 3958
9e07f89d
NN
3959if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3962 shift
c6b750e1 3963 if test $# != 0; then
9e07f89d
NN
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3967 shift
c6b750e1 3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3969 fi
3970fi
3971fi
3972fi
c6b750e1 3973CC=$ac_cv_prog_CC
9e07f89d 3974if test -n "$CC"; then
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976$as_echo "$CC" >&6; }
9e07f89d 3977else
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
9e07f89d
NN
3980fi
3981
81ecdfbb 3982
c6b750e1
DJ
3983fi
3984if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
81ecdfbb 3986 for ac_prog in cl.exe
c6b750e1
DJ
3987 do
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
9e07f89d
NN
3994else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997else
c6b750e1
DJ
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4007 break 2
376a0e54 4008 fi
c6b750e1 4009done
81ecdfbb
RW
4010 done
4011IFS=$as_save_IFS
cac3d6c4 4012
c6b750e1
DJ
4013fi
4014fi
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
81ecdfbb
RW
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018$as_echo "$CC" >&6; }
cac3d6c4 4019else
81ecdfbb
RW
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
9e07f89d 4022fi
cac3d6c4 4023
81ecdfbb 4024
c6b750e1
DJ
4025 test -n "$CC" && break
4026 done
cac3d6c4 4027fi
c6b750e1
DJ
4028if test -z "$CC"; then
4029 ac_ct_CC=$CC
81ecdfbb 4030 for ac_prog in cl.exe
c6b750e1
DJ
4031do
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
cac3d6c4 4038else
c6b750e1
DJ
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4041else
c6b750e1
DJ
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4049 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4051 break 2
4052 fi
4053done
81ecdfbb
RW
4054 done
4055IFS=$as_save_IFS
c6b750e1 4056
cac3d6c4
CM
4057fi
4058fi
c6b750e1
DJ
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4063else
81ecdfbb
RW
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
cac3d6c4 4066fi
376a0e54 4067
81ecdfbb 4068
c6b750e1
DJ
4069 test -n "$ac_ct_CC" && break
4070done
4071
81ecdfbb
RW
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
c6b750e1
DJ
4083fi
4084
4085fi
4086
4087
81ecdfbb
RW
4088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090as_fn_error "no acceptable C compiler found in \$PATH
4091See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4092
4093# Provide some information about the compiler.
81ecdfbb
RW
4094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095set X $ac_compile
4096ac_compiler=$2
4097for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104$as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4106 ac_status=$?
81ecdfbb
RW
4107 if test -s conftest.err; then
4108 sed '10a\
4109... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4112 rm -f conftest.er1 conftest.err
4113 fi
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116done
c6b750e1 4117
81ecdfbb 4118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4119/* end confdefs.h. */
4120
4121int
4122main ()
4123{
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129ac_clean_files_save=$ac_clean_files
81ecdfbb 4130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4131# Try to create an executable without -o first, disregard a.out.
4132# It will help us diagnose broken compilers, and finding out an intuition
4133# of exeext.
81ecdfbb
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135$as_echo_n "checking for C compiler default output file name... " >&6; }
4136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138# The possible output files:
4139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141ac_rmfiles=
4142for ac_file in $ac_files
4143do
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 esac
4148done
4149rm -f $ac_rmfiles
4150
4151if { { ac_try="$ac_link_default"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157$as_echo "$ac_try_echo"; } >&5
4158 (eval "$ac_link_default") 2>&5
c6b750e1 4159 ac_status=$?
81ecdfbb
RW
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }; then :
4162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4164# in a Makefile. We should not override ac_cv_exeext if it was cached,
4165# so that the user can short-circuit this test for compilers unknown to
4166# Autoconf.
4167for ac_file in $ac_files ''
c6b750e1
DJ
4168do
4169 test -f "$ac_file" || continue
4170 case $ac_file in
81ecdfbb 4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4172 ;;
4173 [ab].out )
4174 # We found the default executable, but exeext='' is most
4175 # certainly right.
4176 break;;
4177 *.* )
81ecdfbb
RW
4178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4179 then :; else
4180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181 fi
4182 # We set ac_cv_exeext here because the later test for it is not
4183 # safe: cross compilers may not add the suffix if given an `-o'
4184 # argument, so we may need to know it at that point already.
4185 # Even if this section looks crufty: it has the advantage of
4186 # actually working.
c6b750e1
DJ
4187 break;;
4188 * )
4189 break;;
4190 esac
4191done
81ecdfbb
RW
4192test "$ac_cv_exeext" = no && ac_cv_exeext=
4193
c6b750e1 4194else
81ecdfbb
RW
4195 ac_file=''
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4198$as_echo "$ac_file" >&6; }
4199if test -z "$ac_file"; then :
4200 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
81ecdfbb
RW
4203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205{ as_fn_set_status 77
4206as_fn_error "C compiler cannot create executables
4207See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4208fi
c6b750e1 4209ac_exeext=$ac_cv_exeext
c6b750e1 4210
81ecdfbb 4211# Check that the compiler produces executables we can run. If not, either
c6b750e1 4212# the compiler is broken, or we cross compile.
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4214$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4215# If not cross compiling, check that we can run a simple program.
4216if test "$cross_compiling" != yes; then
4217 if { ac_try='./$ac_file'
81ecdfbb
RW
4218 { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223$as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
c6b750e1 4225 ac_status=$?
81ecdfbb
RW
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }; }; then
c6b750e1
DJ
4228 cross_compiling=no
4229 else
4230 if test "$cross_compiling" = maybe; then
4231 cross_compiling=yes
4232 else
81ecdfbb
RW
4233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235as_fn_error "cannot run C compiled programs.
c6b750e1 4236If you meant to cross compile, use \`--host'.
81ecdfbb 4237See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4238 fi
4239 fi
4240fi
81ecdfbb
RW
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242$as_echo "yes" >&6; }
c6b750e1 4243
81ecdfbb 4244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4245ac_clean_files=$ac_clean_files_save
81ecdfbb 4246# Check that the compiler produces executables we can run. If not, either
c6b750e1 4247# the compiler is broken, or we cross compile.
81ecdfbb
RW
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4249$as_echo_n "checking whether we are cross compiling... " >&6; }
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4251$as_echo "$cross_compiling" >&6; }
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254$as_echo_n "checking for suffix of executables... " >&6; }
4255if { { ac_try="$ac_link"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_link") 2>&5
c6b750e1 4263 ac_status=$?
81ecdfbb
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
c6b750e1
DJ
4266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4268# work properly (i.e., refer to `conftest.exe'), while it won't with
4269# `rm'.
4270for ac_file in conftest.exe conftest conftest.*; do
4271 test -f "$ac_file" || continue
4272 case $ac_file in
81ecdfbb 4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4275 break;;
4276 * ) break;;
4277 esac
4278done
4279else
81ecdfbb
RW
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282as_fn_error "cannot compute suffix of executables: cannot compile and link
4283See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4284fi
c6b750e1 4285rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4287$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4288
4289rm -f conftest.$ac_ext
4290EXEEXT=$ac_cv_exeext
4291ac_exeext=$EXEEXT
81ecdfbb
RW
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4293$as_echo_n "checking for suffix of object files... " >&6; }
4294if test "${ac_cv_objext+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
c6b750e1 4296else
81ecdfbb 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4298/* end confdefs.h. */
4299
4300int
4301main ()
4302{
4303
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308rm -f conftest.o conftest.obj
81ecdfbb
RW
4309if { { ac_try="$ac_compile"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315$as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compile") 2>&5
c6b750e1 4317 ac_status=$?
81ecdfbb
RW
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; then :
4320 for ac_file in conftest.o conftest.obj conftest.*; do
4321 test -f "$ac_file" || continue;
c6b750e1 4322 case $ac_file in
81ecdfbb 4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325 break;;
4326 esac
4327done
cac3d6c4 4328else
81ecdfbb 4329 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
81ecdfbb
RW
4332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334as_fn_error "cannot compute suffix of object files: cannot compile
4335See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4336fi
c6b750e1
DJ
4337rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338fi
81ecdfbb
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4340$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4341OBJEXT=$ac_cv_objext
4342ac_objext=$OBJEXT
81ecdfbb
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4344$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4345if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
c6b750e1 4347else
81ecdfbb 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354#ifndef __GNUC__
4355 choke me
4356#endif
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
81ecdfbb 4362if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4363 ac_compiler_gnu=yes
4364else
81ecdfbb 4365 ac_compiler_gnu=no
c6b750e1 4366fi
81ecdfbb 4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4368ac_cv_c_compiler_gnu=$ac_compiler_gnu
4369
4370fi
81ecdfbb
RW
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4372$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4373if test $ac_compiler_gnu = yes; then
4374 GCC=yes
4375else
4376 GCC=
4377fi
c6b750e1
DJ
4378ac_test_CFLAGS=${CFLAGS+set}
4379ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4381$as_echo_n "checking whether $CC accepts -g... " >&6; }
4382if test "${ac_cv_prog_cc_g+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384else
4385 ac_save_c_werror_flag=$ac_c_werror_flag
4386 ac_c_werror_flag=yes
4387 ac_cv_prog_cc_g=no
4388 CFLAGS="-g"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4390/* end confdefs.h. */
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
81ecdfbb 4400if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4401 ac_cv_prog_cc_g=yes
4402else
81ecdfbb
RW
4403 CFLAGS=""
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406
4407int
4408main ()
4409{
4410
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415if ac_fn_c_try_compile "$LINENO"; then :
4416
4417else
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h. */
cac3d6c4 4422
81ecdfbb
RW
4423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4435fi
81ecdfbb 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4437fi
81ecdfbb
RW
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_c_werror_flag=$ac_save_c_werror_flag
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4442$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4443if test "$ac_test_CFLAGS" = set; then
c6b750e1 4444 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4445elif test $ac_cv_prog_cc_g = yes; then
4446 if test "$GCC" = yes; then
4447 CFLAGS="-g -O2"
4448 else
4449 CFLAGS="-g"
4450 fi
4451else
4452 if test "$GCC" = yes; then
4453 CFLAGS="-O2"
4454 else
4455 CFLAGS=
4456 fi
4457fi
81ecdfbb
RW
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4459$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4460if test "${ac_cv_prog_cc_c89+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
c6b750e1 4462else
81ecdfbb 4463 ac_cv_prog_cc_c89=no
c6b750e1 4464ac_save_CC=$CC
81ecdfbb 4465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4466/* end confdefs.h. */
4467#include <stdarg.h>
4468#include <stdio.h>
4469#include <sys/types.h>
4470#include <sys/stat.h>
4471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4472struct buf { int x; };
4473FILE * (*rcsopen) (struct buf *, struct stat *, int);
4474static char *e (p, i)
4475 char **p;
4476 int i;
4477{
4478 return p[i];
4479}
4480static char *f (char * (*g) (char **, int), char **p, ...)
4481{
4482 char *s;
4483 va_list v;
4484 va_start (v,p);
4485 s = g (p, va_arg (v,int));
4486 va_end (v);
4487 return s;
4488}
4489
4490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4491 function prototypes and stuff, but not '\xHH' hex character constants.
4492 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4493 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4495 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4496 that's true only with -std. */
c6b750e1
DJ
4497int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498
81ecdfbb
RW
4499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4500 inside strings and character constants. */
4501#define FOO(x) 'x'
4502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503
c6b750e1
DJ
4504int test (int i, double x);
4505struct s1 {int (*f) (int a);};
4506struct s2 {int (*f) (double a);};
4507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508int argc;
4509char **argv;
4510int
4511main ()
4512{
4513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 ;
4515 return 0;
4516}
4517_ACEOF
81ecdfbb
RW
4518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4520do
4521 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4524fi
81ecdfbb
RW
4525rm -f core conftest.err conftest.$ac_objext
4526 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4527done
81ecdfbb 4528rm -f conftest.$ac_ext
c6b750e1
DJ
4529CC=$ac_save_CC
4530
4531fi
81ecdfbb
RW
4532# AC_CACHE_VAL
4533case "x$ac_cv_prog_cc_c89" in
4534 x)
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536$as_echo "none needed" >&6; } ;;
4537 xno)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539$as_echo "unsupported" >&6; } ;;
c6b750e1 4540 *)
81ecdfbb
RW
4541 CC="$CC $ac_cv_prog_cc_c89"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4544esac
81ecdfbb 4545if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4546
c6b750e1
DJ
4547fi
4548
c6b750e1
DJ
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4554
81ecdfbb 4555ac_ext=cpp
18f6b6ee
PB
4556ac_cpp='$CXXCPP $CPPFLAGS'
4557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4560if test -z "$CXX"; then
4561 if test -n "$CCC"; then
4562 CXX=$CCC
4563 else
4564 if test -n "$ac_tool_prefix"; then
4565 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4566 do
4567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
4571if test "${ac_cv_prog_CXX+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4573else
4574 if test -n "$CXX"; then
4575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
512b7dfb 4591
18f6b6ee
PB
4592fi
4593fi
4594CXX=$ac_cv_prog_CXX
4595if test -n "$CXX"; then
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597$as_echo "$CXX" >&6; }
18f6b6ee 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
18f6b6ee
PB
4601fi
4602
81ecdfbb 4603
18f6b6ee
PB
4604 test -n "$CXX" && break
4605 done
4606fi
4607if test -z "$CXX"; then
4608 ac_ct_CXX=$CXX
81ecdfbb 4609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4610do
4611 # Extract the first word of "$ac_prog", so it can be a program name with args.
4612set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4617else
4618 if test -n "$ac_ct_CXX"; then
4619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4628 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4630 break 2
512b7dfb 4631 fi
18f6b6ee 4632done
81ecdfbb
RW
4633 done
4634IFS=$as_save_IFS
512b7dfb 4635
18f6b6ee
PB
4636fi
4637fi
4638ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4639if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4641$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4642else
81ecdfbb
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
18f6b6ee
PB
4645fi
4646
81ecdfbb 4647
18f6b6ee
PB
4648 test -n "$ac_ct_CXX" && break
4649done
18f6b6ee 4650
81ecdfbb
RW
4651 if test "x$ac_ct_CXX" = x; then
4652 CXX="g++"
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655yes:)
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658ac_tool_warned=yes ;;
4659esac
4660 CXX=$ac_ct_CXX
4661 fi
18f6b6ee
PB
4662fi
4663
81ecdfbb
RW
4664 fi
4665fi
18f6b6ee 4666# Provide some information about the compiler.
81ecdfbb
RW
4667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4668set X $ac_compile
4669ac_compiler=$2
4670for ac_option in --version -v -V -qversion; do
4671 { { ac_try="$ac_compiler $ac_option >&5"
4672case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
4676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677$as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4679 ac_status=$?
81ecdfbb
RW
4680 if test -s conftest.err; then
4681 sed '10a\
4682... rest of stderr output deleted ...
4683 10q' conftest.err >conftest.er1
4684 cat conftest.er1 >&5
4685 rm -f conftest.er1 conftest.err
4686 fi
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }
4689done
18f6b6ee 4690
81ecdfbb
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4692$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4693if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
18f6b6ee 4695else
81ecdfbb 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4697/* end confdefs.h. */
4698
4699int
4700main ()
4701{
4702#ifndef __GNUC__
4703 choke me
4704#endif
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
81ecdfbb 4710if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4711 ac_compiler_gnu=yes
4712else
81ecdfbb 4713 ac_compiler_gnu=no
18f6b6ee 4714fi
81ecdfbb 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4716ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4717
4718fi
81ecdfbb
RW
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4720$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4721if test $ac_compiler_gnu = yes; then
4722 GXX=yes
4723else
4724 GXX=
4725fi
18f6b6ee
PB
4726ac_test_CXXFLAGS=${CXXFLAGS+set}
4727ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4729$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4730if test "${ac_cv_prog_cxx_g+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4734 ac_cxx_werror_flag=yes
4735 ac_cv_prog_cxx_g=no
4736 CXXFLAGS="-g"
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4738/* end confdefs.h. */
4739
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb 4748if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4749 ac_cv_prog_cxx_g=yes
4750else
81ecdfbb
RW
4751 CXXFLAGS=""
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4753/* end confdefs.h. */
81ecdfbb 4754
18f6b6ee
PB
4755int
4756main ()
4757{
81ecdfbb 4758
18f6b6ee
PB
4759 ;
4760 return 0;
4761}
4762_ACEOF
81ecdfbb 4763if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4764
81ecdfbb
RW
4765else
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767 CXXFLAGS="-g"
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4769/* end confdefs.h. */
81ecdfbb 4770
18f6b6ee
PB
4771int
4772main ()
4773{
81ecdfbb 4774
18f6b6ee
PB
4775 ;
4776 return 0;
4777}
4778_ACEOF
81ecdfbb
RW
4779if ac_fn_cxx_try_compile "$LINENO"; then :
4780 ac_cv_prog_cxx_g=yes
18f6b6ee 4781fi
81ecdfbb
RW
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4790$as_echo "$ac_cv_prog_cxx_g" >&6; }
4791if test "$ac_test_CXXFLAGS" = set; then
4792 CXXFLAGS=$ac_save_CXXFLAGS
4793elif test $ac_cv_prog_cxx_g = yes; then
4794 if test "$GXX" = yes; then
4795 CXXFLAGS="-g -O2"
4796 else
4797 CXXFLAGS="-g"
4798 fi
4799else
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-O2"
4802 else
4803 CXXFLAGS=
4804 fi
18f6b6ee 4805fi
18f6b6ee
PB
4806ac_ext=c
4807ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813# We must set the default linker to the linker used by gcc for the correct
4814# operation of libtool. If LD is not defined and we are using gcc, try to
4815# set the LD default to the ld used by gcc.
4816if test -z "$LD"; then
4817 if test "$GCC" = yes; then
4818 case $build in
4819 *-*-mingw*)
4820 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821 *)
4822 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4823 esac
4824 case $gcc_prog_ld in
4825 # Accept absolute paths.
4826 [\\/]* | [A-Za-z]:[\\/]*)
4827 LD="$gcc_prog_ld" ;;
4828 esac
4829 fi
512b7dfb
PB
4830fi
4831
4832
4833
4834
c6b750e1 4835if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4836 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4837set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
9e07f89d 4842else
512b7dfb
PB
4843 if test -n "$GNATBIND"; then
4844 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4845else
c6b750e1
DJ
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4853 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4855 break 2
4856 fi
4857done
81ecdfbb
RW
4858 done
4859IFS=$as_save_IFS
c6b750e1 4860
9e07f89d
NN
4861fi
4862fi
512b7dfb
PB
4863GNATBIND=$ac_cv_prog_GNATBIND
4864if test -n "$GNATBIND"; then
81ecdfbb
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4866$as_echo "$GNATBIND" >&6; }
9e07f89d 4867else
81ecdfbb
RW
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
9e07f89d
NN
4870fi
4871
81ecdfbb 4872
c6b750e1 4873fi
512b7dfb
PB
4874if test -z "$ac_cv_prog_GNATBIND"; then
4875 ac_ct_GNATBIND=$GNATBIND
4876 # Extract the first word of "gnatbind", so it can be a program name with args.
4877set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
9e07f89d 4882else
512b7dfb
PB
4883 if test -n "$ac_ct_GNATBIND"; then
4884 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4885else
c6b750e1
DJ
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4893 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4895 break 2
4896 fi
4897done
81ecdfbb
RW
4898 done
4899IFS=$as_save_IFS
c6b750e1 4900
9e07f89d
NN
4901fi
4902fi
512b7dfb
PB
4903ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4904if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4906$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4907else
81ecdfbb
RW
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
9e07f89d
NN
4910fi
4911
81ecdfbb
RW
4912 if test "x$ac_ct_GNATBIND" = x; then
4913 GNATBIND="no"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 GNATBIND=$ac_ct_GNATBIND
4922 fi
24ff9987 4923else
512b7dfb 4924 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4925fi
4926
7df2cd5d 4927if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4928 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4929set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
7df2cd5d 4934else
512b7dfb
PB
4935 if test -n "$GNATMAKE"; then
4936 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4945 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4947 break 2
4948 fi
4949done
81ecdfbb
RW
4950 done
4951IFS=$as_save_IFS
7df2cd5d
PB
4952
4953fi
4954fi
512b7dfb
PB
4955GNATMAKE=$ac_cv_prog_GNATMAKE
4956if test -n "$GNATMAKE"; then
81ecdfbb
RW
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4958$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4959else
81ecdfbb
RW
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
7df2cd5d
PB
4962fi
4963
81ecdfbb 4964
7df2cd5d 4965fi
512b7dfb
PB
4966if test -z "$ac_cv_prog_GNATMAKE"; then
4967 ac_ct_GNATMAKE=$GNATMAKE
4968 # Extract the first word of "gnatmake", so it can be a program name with args.
4969set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971$as_echo_n "checking for $ac_word... " >&6; }
4972if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
7df2cd5d 4974else
512b7dfb
PB
4975 if test -n "$ac_ct_GNATMAKE"; then
4976 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4985 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4987 break 2
4988 fi
4989done
81ecdfbb
RW
4990 done
4991IFS=$as_save_IFS
7df2cd5d 4992
7df2cd5d
PB
4993fi
4994fi
512b7dfb
PB
4995ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4996if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4998$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4999else
81ecdfbb
RW
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
7df2cd5d
PB
5002fi
5003
81ecdfbb
RW
5004 if test "x$ac_ct_GNATMAKE" = x; then
5005 GNATMAKE="no"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011ac_tool_warned=yes ;;
5012esac
5013 GNATMAKE=$ac_ct_GNATMAKE
5014 fi
7df2cd5d 5015else
512b7dfb 5016 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5017fi
5018
81ecdfbb
RW
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5020$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5021if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
9e07f89d
NN
5023else
5024 cat >conftest.adb <<EOF
5025procedure conftest is begin null; end conftest;
5026EOF
5027acx_cv_cc_gcc_supports_ada=no
5028# There is a bug in old released versions of GCC which causes the
5029# driver to exit successfully when the appropriate language module
5030# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5031# Therefore we must check for the error message as well as an
5032# unsuccessful exit.
b8908782
DD
5033# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5034# given a .adb file, but produce no object file. So we must check
5035# if an object file was really produced to guard against this.
9e07f89d 5036errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5037if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5038 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5039fi
5040rm -f conftest.*
5041fi
81ecdfbb
RW
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5043$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5044
512b7dfb 5045if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5046 have_gnat=yes
5047else
5048 have_gnat=no
5049fi
5050
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5052$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5053if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
b8908782
DD
5055else
5056 echo abfoo >t1
5057 echo cdfoo >t2
5058 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5059 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5060 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061 :
5062 else
5063 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5064 fi
5065 fi
b8908782
DD
5066 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5067 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5068 :
b8908782
DD
5069 else
5070 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5071 fi
5072 fi
5073 rm t1 t2
5074
5075fi
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5077$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5078do_compare="$gcc_cv_prog_cmp_skip"
5079
5080
9e07f89d 5081
e8a5fa9c 5082# See if we are building gcc with C++.
81ecdfbb
RW
5083# Check whether --enable-build-with-cxx was given.
5084if test "${enable_build_with_cxx+set}" = set; then :
5085 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5086else
5087 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5088fi
5089
e8a5fa9c 5090
d5f2ee2e
KG
5091# Used for setting $lt_cv_objdir
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5093$as_echo_n "checking for objdir... " >&6; }
5094if test "${lt_cv_objdir+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 rm -f .libs 2>/dev/null
5098mkdir .libs 2>/dev/null
5099if test -d .libs; then
5100 lt_cv_objdir=.libs
5101else
5102 # MS-DOS does not allow filenames that begin with a dot.
5103 lt_cv_objdir=_libs
5104fi
5105rmdir .libs 2>/dev/null
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5108$as_echo "$lt_cv_objdir" >&6; }
5109objdir=$lt_cv_objdir
5110
5111
5112
5113
5114
5115cat >>confdefs.h <<_ACEOF
5116#define LT_OBJDIR "$lt_cv_objdir/"
5117_ACEOF
5118
5119
5120
e8a5fa9c 5121# Check for GMP, MPFR and MPC
d9b76ff9 5122gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5123gmpinc=
4b900473 5124have_gmp=no
e8a5fa9c
RW
5125
5126# Specify a location for mpc
5127# check for this first so it ends up on the link line before mpfr.
5128
81ecdfbb
RW
5129# Check whether --with-mpc was given.
5130if test "${with_mpc+set}" = set; then :
5131 withval=$with_mpc;
5132fi
e8a5fa9c 5133
e8a5fa9c 5134
e552509b 5135# Check whether --with-mpc-include was given.
81ecdfbb
RW
5136if test "${with_mpc_include+set}" = set; then :
5137 withval=$with_mpc_include;
5138fi
e8a5fa9c 5139
e8a5fa9c 5140
e552509b 5141# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5142if test "${with_mpc_lib+set}" = set; then :
5143 withval=$with_mpc_lib;
5144fi
e8a5fa9c 5145
e8a5fa9c
RW
5146
5147if test "x$with_mpc" != x; then
d9b76ff9
KG
5148 gmplibs="-L$with_mpc/lib $gmplibs"
5149 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5150fi
5151if test "x$with_mpc_include" != x; then
d9b76ff9 5152 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5153fi
5154if test "x$with_mpc_lib" != x; then
d9b76ff9 5155 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5156fi
5157if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5158 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5159 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5160 # Do not test the mpc version. Assume that it is sufficient, since
5161 # it is in the source tree, and the library has not been built yet
5162 # but it would be included on the link line in the version check below
5163 # hence making the test fail.
d9b76ff9 5164 have_gmp=yes
e8a5fa9c 5165fi
4b900473 5166
11b04d1f
DD
5167# Specify a location for mpfr
5168# check for this first so it ends up on the link line before gmp.
c6b750e1 5169
81ecdfbb
RW
5170# Check whether --with-mpfr-dir was given.
5171if test "${with_mpfr_dir+set}" = set; then :
5172 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5173Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5174fi
5175
11b04d1f
DD
5176
5177
81ecdfbb
RW
5178# Check whether --with-mpfr was given.
5179if test "${with_mpfr+set}" = set; then :
5180 withval=$with_mpfr;
5181fi
c6b750e1 5182
11b04d1f 5183
e552509b 5184# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5185if test "${with_mpfr_include+set}" = set; then :
5186 withval=$with_mpfr_include;
5187fi
c6b750e1 5188
8a0d8a5c 5189
e552509b 5190# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5191if test "${with_mpfr_lib+set}" = set; then :
5192 withval=$with_mpfr_lib;
5193fi
8a0d8a5c 5194
11b04d1f
DD
5195
5196if test "x$with_mpfr" != x; then
5197 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5198 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5199fi
8a0d8a5c 5200if test "x$with_mpfr_include" != x; then
d9b76ff9 5201 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5202fi
5203if test "x$with_mpfr_lib" != x; then
5204 gmplibs="-L$with_mpfr_lib $gmplibs"
5205fi
4b900473 5206if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5207 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5208 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5209 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5210 # Do not test the mpfr version. Assume that it is sufficient, since
5211 # it is in the source tree, and the library has not been built yet
5212 # but it would be included on the link line in the version check below
5213 # hence making the test fail.
5214 have_gmp=yes
5215fi
11b04d1f 5216
4b1cb4fe 5217# Specify a location for gmp
c6b750e1 5218
81ecdfbb
RW
5219# Check whether --with-gmp-dir was given.
5220if test "${with_gmp_dir+set}" = set; then :
5221 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5222Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5223fi
5224
4b1cb4fe
DD
5225
5226
81ecdfbb
RW
5227# Check whether --with-gmp was given.
5228if test "${with_gmp+set}" = set; then :
5229 withval=$with_gmp;
5230fi
c6b750e1 5231
4b1cb4fe 5232
e552509b 5233# Check whether --with-gmp-include was given.
81ecdfbb
RW
5234if test "${with_gmp_include+set}" = set; then :
5235 withval=$with_gmp_include;
5236fi
c6b750e1 5237
8a0d8a5c 5238
e552509b 5239# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5240if test "${with_gmp_lib+set}" = set; then :
5241 withval=$with_gmp_lib;
5242fi
8a0d8a5c
PB
5243
5244
4b1cb4fe 5245
11b04d1f
DD
5246if test "x$with_gmp" != x; then
5247 gmplibs="-L$with_gmp/lib $gmplibs"
5248 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5249fi
8a0d8a5c
PB
5250if test "x$with_gmp_include" != x; then
5251 gmpinc="-I$with_gmp_include $gmpinc"
5252fi
5253if test "x$with_gmp_lib" != x; then
5254 gmplibs="-L$with_gmp_lib $gmplibs"
5255fi
4b900473 5256if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5257 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5258 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5259 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5260 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5261 # Do not test the gmp version. Assume that it is sufficient, since
5262 # it is in the source tree, and the library has not been built yet
5263 # but it would be included on the link line in the version check below
5264 # hence making the test fail.
5265 have_gmp=yes
5266fi
4b1cb4fe 5267
ceb92e78 5268if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5269 have_gmp=yes
5270 saved_CFLAGS="$CFLAGS"
5271 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5272 # Check for the recommended and required versions of GMP.
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5274$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5275
5276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5277/* end confdefs.h. */
5278#include "gmp.h"
5279int
5280main ()
5281{
5282
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,2,0)
5286 choke me
5287 #endif
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5293if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5295/* end confdefs.h. */
a6b5846e 5296#include <gmp.h>
c6b750e1
DJ
5297int
5298main ()
5299{
4b1cb4fe 5300
a6b5846e
KG
5301 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5302 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5303 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5304 choke me
5305 #endif
c6b750e1
DJ
5306
5307 ;
5308 return 0;
5309}
5310_ACEOF
81ecdfbb
RW
5311if ac_fn_c_try_compile "$LINENO"; then :
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313$as_echo "yes" >&6; }
a6b5846e
KG
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5316$as_echo "buggy but acceptable" >&6; }
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5319else
81ecdfbb
RW
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5322fi
81ecdfbb 5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5324
e8a5fa9c 5325 # If we have GMP, check the MPFR version.
4b900473 5326 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5327 # Check for the recommended and required versions of MPFR.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5329$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5331/* end confdefs.h. */
9b134994 5332#include <gmp.h>
4b900473 5333 #include <mpfr.h>
c6b750e1
DJ
5334int
5335main ()
5336{
9b134994 5337
ef699244 5338 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5339 choke me
5340 #endif
c6b750e1
DJ
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
81ecdfbb
RW
5346if ac_fn_c_try_compile "$LINENO"; then :
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5348/* end confdefs.h. */
4b1cb4fe 5349#include <gmp.h>
4b900473 5350 #include <mpfr.h>
c6b750e1
DJ
5351int
5352main ()
5353{
9dbaa842 5354
a6b5846e 5355 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5356 choke me
5357 #endif
e8a5fa9c
RW
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
81ecdfbb
RW
5363if ac_fn_c_try_compile "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365$as_echo "yes" >&6; }
e8a5fa9c 5366else
81ecdfbb
RW
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5368$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5369fi
81ecdfbb 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5371else
81ecdfbb
RW
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5374fi
81ecdfbb 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5376 fi
5377
5378 # Check for the MPC header version.
d9b76ff9 5379 if test x"$have_gmp" = xyes ; then
a6b5846e 5380 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5382$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5384/* end confdefs.h. */
5385#include <mpc.h>
5386int
5387main ()
5388{
5389
a6b5846e
KG
5390 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5391 choke me
5392 #endif
5393
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h. */
5401#include <mpc.h>
5402int
5403main ()
5404{
5405
5406 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5407 choke me
5408 #endif
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
81ecdfbb
RW
5414if ac_fn_c_try_compile "$LINENO"; then :
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5416$as_echo "yes" >&6; }
a6b5846e
KG
5417else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5419$as_echo "buggy but acceptable" >&6; }
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5422else
81ecdfbb 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5424$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5425fi
81ecdfbb 5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5427 fi
5428
5429 # Now check the MPFR library.
5430 if test x"$have_gmp" = xyes; then
5431 saved_LIBS="$LIBS"
5432 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5434$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5436/* end confdefs.h. */
d9b76ff9 5437#include <mpc.h>
e8a5fa9c
RW
5438int
5439main ()
5440{
5441
5442 mpfr_t n;
5443 mpfr_t x;
d9b76ff9 5444 mpc_t c;
e8a5fa9c
RW
5445 int t;
5446 mpfr_init (n);
5447 mpfr_init (x);
5448 mpfr_atan2 (n, n, x, GMP_RNDN);
5449 mpfr_erfc (n, x, GMP_RNDN);
5450 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5451 mpfr_clear(n);
5452 mpfr_clear(x);
5453 mpc_init2 (c, 53);
5454 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5455 mpc_cosh (c, c, MPC_RNDNN);
5456 mpc_pow (c, c, c, MPC_RNDNN);
5457 mpc_acosh (c, c, MPC_RNDNN);
5458 mpc_clear (c);
c6b750e1
DJ
5459
5460 ;
5461 return 0;
5462}
5463_ACEOF
81ecdfbb
RW
5464if ac_fn_c_try_link "$LINENO"; then :
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466$as_echo "yes" >&6; }
c6b750e1 5467else
81ecdfbb
RW
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5470fi
81ecdfbb
RW
5471rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5473 LIBS="$saved_LIBS"
5474 fi
5475
4b900473 5476 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5477
a6b5846e
KG
5478# The library versions listed in the error message below should match
5479# the HARD-minimums enforced above.
4b900473 5480 if test x$have_gmp != xyes; then
a6b5846e 5481 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5482Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5483their locations. Source code for these libraries can be found at
5484their respective hosting sites as well as at
5485ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5486http://gcc.gnu.org/install/prerequisites.html for additional info. If
5487you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5488make sure that you have installed both the libraries and the header
5489files. They may be located in separate packages." "$LINENO" 5
4b900473 5490 fi
9dbaa842
DD
5491fi
5492
e8a5fa9c
RW
5493# Flags needed for both GMP, MPFR and/or MPC.
5494
5495
5496
4b1cb4fe
DD
5497
5498
5499
29383458
JM
5500# Allow host libstdc++ to be specified for static linking with PPL.
5501
81ecdfbb
RW
5502# Check whether --with-host-libstdcxx was given.
5503if test "${with_host_libstdcxx+set}" = set; then :
5504 withval=$with_host_libstdcxx;
5505fi
29383458 5506
29383458
JM
5507
5508case $with_host_libstdcxx in
5509 no|yes)
81ecdfbb 5510 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5511 ;;
5512esac
e28c595f 5513
e8a5fa9c
RW
5514# Linker flags to use for stage1 or when not boostrapping.
5515
81ecdfbb
RW
5516# Check whether --with-stage1-ldflags was given.
5517if test "${with_stage1_ldflags+set}" = set; then :
5518 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5519 stage1_ldflags=
5520 else
5521 stage1_ldflags=$withval
5522 fi
5523else
5524 stage1_ldflags=
81ecdfbb
RW
5525fi
5526
e8a5fa9c
RW
5527
5528
5529# Libraries to use for stage1 or when not bootstrapping.
5530
81ecdfbb
RW
5531# Check whether --with-stage1-libs was given.
5532if test "${with_stage1_libs+set}" = set; then :
5533 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5534 stage1_libs=
5535 else
5536 stage1_libs=$withval
5537 fi
5538else
5539 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5540fi
5541
e8a5fa9c
RW
5542
5543
e8a5fa9c
RW
5544# Libraries to use for stage2 and later builds. This defaults to the
5545# argument passed to --with-host-libstdcxx.
5546
81ecdfbb
RW
5547# Check whether --with-boot-libs was given.
5548if test "${with_boot_libs+set}" = set; then :
5549 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5550 poststage1_libs=
5551 else
5552 poststage1_libs=$withval
5553 fi
5554else
5555 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5556fi
5557
e8a5fa9c
RW
5558
5559
143754cd
NC
5560# Linker flags to use for stage2 and later builds.
5561
5562# Check whether --with-boot-ldflags was given.
5563if test "${with_boot_ldflags+set}" = set; then :
5564 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5565 poststage1_ldflags=
5566 else
5567 poststage1_ldflags=$withval
5568 fi
5569else
5570 poststage1_ldflags=
5571 # With --enable-build-with-cxx, default to linking libstdc++ and
5572 # libgcc statically. But if the user explicitly specified the
5573 # libraries to use, trust that they are doing what they want.
5574 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5575 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5576 fi
5577fi
5578
5579
5580
e28c595f 5581# Check for PPL
e8a5fa9c 5582ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5583pplinc=
5584
5585
81ecdfbb
RW
5586# Check whether --with-ppl was given.
5587if test "${with_ppl+set}" = set; then :
5588 withval=$with_ppl;
81ecdfbb 5589fi
e28c595f 5590
e28c595f 5591
e552509b 5592# Check whether --with-ppl-include was given.
81ecdfbb
RW
5593if test "${with_ppl_include+set}" = set; then :
5594 withval=$with_ppl_include;
5595fi
5596
e28c595f 5597
e552509b 5598# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5599if test "${with_ppl_lib+set}" = set; then :
5600 withval=$with_ppl_lib;
5601fi
e28c595f 5602
e28c595f 5603
29383458
JM
5604case $with_ppl in
5605 no)
5606 ppllibs=
5607 ;;
1f53ca9a
AO
5608 "" | yes)
5609 ;;
29383458 5610 *)
e8a5fa9c 5611 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5612 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5613 ;;
5614esac
e28c595f
JM
5615if test "x$with_ppl_include" != x; then
5616 pplinc="-I$with_ppl_include $pplinc"
5617fi
5618if test "x$with_ppl_lib" != x; then
e8a5fa9c 5619 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5620fi
5621if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5622 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
5623 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5624 enable_ppl_version_check=no
e28c595f
JM
5625fi
5626
81ecdfbb
RW
5627# Check whether --enable-ppl-version-check was given.
5628if test "${enable_ppl_version_check+set}" = set; then :
5629 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5630else
5631 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5632fi
5633
e28c595f 5634
1f53ca9a 5635if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5636 saved_CFLAGS="$CFLAGS"
5637 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5639$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5641/* end confdefs.h. */
5642#include "ppl_c.h"
5643int
5644main ()
5645{
5646
a009f2e7 5647 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
81ecdfbb
RW
5655if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657$as_echo "yes" >&6; }
e28c595f 5658else
81ecdfbb 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5660$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5661fi
81ecdfbb 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5663 CFLAGS="$saved_CFLAGS"
5664fi
5665
5666# Flags needed for PPL
5667
5668
5669
5670
5671# Check for CLOOG
e552509b 5672
e28c595f
JM
5673
5674
81ecdfbb
RW
5675# Check whether --with-cloog was given.
5676if test "${with_cloog+set}" = set; then :
5677 withval=$with_cloog;
81ecdfbb
RW
5678fi
5679
e28c595f 5680
e552509b 5681# Check whether --with-cloog-include was given.
81ecdfbb
RW
5682if test "${with_cloog_include+set}" = set; then :
5683 withval=$with_cloog_include;
5684fi
e28c595f 5685
e28c595f 5686
e552509b 5687# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5688if test "${with_cloog_lib+set}" = set; then :
5689 withval=$with_cloog_lib;
5690fi
e28c595f 5691
e28c595f 5692
e552509b
ILT
5693 # Check whether --enable-cloog-backend was given.
5694if test "${enable_cloog_backend+set}" = set; then :
5695 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5696 cloog_backend=isl
5697 elif test "x${enableval}" = "xppl"; then
5698 cloog_backend=ppl
5699 else
5700 cloog_backend=ppl-legacy
5701 fi
5702else
5703 cloog_backend=ppl-legacy
5704fi
5705
5706 # Check whether --enable-cloog-version-check was given.
5707if test "${enable_cloog_version_check+set}" = set; then :
5708 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5709else
5710 ENABLE_CLOOG_CHECK=yes
5711fi
5712
5713
5714 # Initialize clooglibs and clooginc.
5715 case $with_cloog in
5716 no)
5717 clooglibs=
5718 clooginc=
5719 ;;
5720 "" | yes)
5721 ;;
5722 *)
5723 clooglibs="-L$with_cloog/lib"
5724 clooginc="-I$with_cloog/include"
5725 ;;
5726 esac
5727 if test "x${with_cloog_include}" != x ; then
5728 clooginc="-I$with_cloog_include"
5729 fi
5730 if test "x${with_cloog_lib}" != x; then
5731 clooglibs="-L$with_cloog_lib"
5732 fi
5733
5734
5735
5736
5737
1f53ca9a
AO
5738if test "x$with_ppl" = "xno"; then
5739 with_cloog=no
5740fi
e552509b
ILT
5741if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5742 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5743 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5744 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5745fi
5746if test "x$with_cloog" != "xno"; then
1f53ca9a 5747
e552509b
ILT
5748
5749
5750 _cloog_saved_CFLAGS=$CFLAGS
5751 _cloog_saved_CPPFLAGS=$CPPFLAGS
5752 _cloog_saved_LDFLAGS=$LDFLAGS
5753 _cloog_saved_LIBS=$LIBS
5754
5755 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5756
5757 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5758 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5759 LDFLAGS="${LDFLAGS} ${clooglibs}"
5760
5761 case $cloog_backend in
5762 "ppl-legacy")
5763 CFLAGS="${CFLAGS} ${pplinc}"
5764 LDFLAGS="${LDFLAGS} ${ppllibs}"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5766$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5767if test "${gcc_cv_cloog_type+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769else
5770 LIBS="-lcloog ${_cloog_saved_LIBS}"
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h. */
5773#include "cloog/cloog.h"
5774int
5775main ()
5776{
5777#ifndef CLOOG_PPL_BACKEND
5778 choke me
5779 #endif
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_link "$LINENO"; then :
5785 gcc_cv_cloog_type="PPL Legacy"
5786else
5787 gcc_cv_cloog_type=no
5788fi
5789rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
e28c595f 5791fi
e552509b
ILT
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5793$as_echo "$gcc_cv_cloog_type" >&6; }
5794 ;;
5795 "isl")
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5797$as_echo_n "checking for installed CLooG ISL... " >&6; }
5798if test "${gcc_cv_cloog_type+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804#include "cloog/cloog.h"
5805int
5806main ()
5807{
5808cloog_version ()
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_link "$LINENO"; then :
5814 gcc_cv_cloog_type="ISL"
5815else
5816 gcc_cv_cloog_type=no
e28c595f 5817fi
e552509b
ILT
5818rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
e28c595f 5820fi
e552509b
ILT
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5822$as_echo "$gcc_cv_cloog_type" >&6; }
5823 ;;
5824 "ppl")
5825 CFLAGS="${CFLAGS} ${pplinc}"
5826 LDFLAGS="${LDFLAGS} ${ppllibs}"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5828$as_echo_n "checking for installed CLooG PPL... " >&6; }
5829if test "${gcc_cv_cloog_type+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
e28c595f 5831else
e552509b
ILT
5832 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h. */
5835#include "cloog/cloog.h"
5836 #include "cloog/ppl/cloog.h"
5837int
5838main ()
5839{
5840cloog_version ()
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_link "$LINENO"; then :
5846 gcc_cv_cloog_type="PPL"
5847else
5848 gcc_cv_cloog_type=no
81ecdfbb 5849fi
e552509b
ILT
5850rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5854$as_echo "$gcc_cv_cloog_type" >&6; }
5855 ;;
5856 *)
5857 gcc_cv_cloog_type=""
5858 esac
5859
5860 case $gcc_cv_cloog_type in
5861 "PPL Legacy")
5862 clooginc="${clooginc}"
5863 clooglibs="${clooglibs} -lcloog"
5864 cloog_org=no
5865 ;;
5866 "ISL")
5867 clooginc="${clooginc} ${_cloogorginc}"
5868 clooglibs="${clooglibs} -lcloog-isl"
5869 cloog_org=yes
5870 ;;
5871 "PPL")
5872 clooginc="${clooginc} ${_cloogorginc}"
5873 clooglibs="${clooglibs} -lcloog-ppl"
5874 cloog_org=yes
5875 ;;
5876 *)
5877 clooglibs=
5878 clooginc=
5879 cloog_org=
5880 ;;
5881 esac
81ecdfbb 5882
e552509b
ILT
5883 LIBS=$_cloog_saved_LIBS
5884 CFLAGS=$_cloog_saved_CFLAGS
5885 CPPFLAGS=$_cloog_saved_CPPFLAGS
5886 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5887
e552509b
ILT
5888
5889
5890
5891
5892 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5893 _cloog_saved_CFLAGS=$CFLAGS
5894 _cloog_saved_LDFLAGS=$LDFLAGS
5895
5896 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5897 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5898
5899 if test "${cloog_org}" = yes ; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5901$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5902if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
5907#include "cloog/cloog.h"
5908int
5909main ()
5910{
5911#if CLOOG_VERSION_MAJOR != 0 \
5912 || CLOOG_VERSION_MINOR != 14 \
5913 || CLOOG_VERSION_REVISION < 0
5914 choke me
5915 #endif
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921 gcc_cv_cloog_ct_0_14_0=yes
5922else
5923 gcc_cv_cloog_ct_0_14_0=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5928$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5929 elif test "${cloog_org}" = no ; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5931$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5932if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934else
81ecdfbb 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5936/* end confdefs.h. */
5937#include "cloog/cloog.h"
5938int
5939main ()
5940{
e552509b
ILT
5941#if CLOOG_VERSION_MAJOR != 0 \
5942 || CLOOG_VERSION_MINOR != 15 \
5943 || CLOOG_VERSION_REVISION < 5
5944 choke me
5945 #endif
e28c595f
JM
5946 ;
5947 return 0;
5948}
5949_ACEOF
a009f2e7
RW
5950if ac_fn_c_try_compile "$LINENO"; then :
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953#include "cloog/cloog.h"
5954int
5955main ()
5956{
e552509b
ILT
5957#if CLOOG_VERSION_MAJOR != 0 \
5958 || CLOOG_VERSION_MINOR != 15 \
5959 || CLOOG_VERSION_REVISION < 9
5960 choke me
5961 #endif
a009f2e7
RW
5962 ;
5963 return 0;
5964}
5965_ACEOF
81ecdfbb 5966if ac_fn_c_try_compile "$LINENO"; then :
e552509b 5967 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 5968else
e552509b 5969 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5972else
e552509b 5973 gcc_cv_cloog_ct_0_15_5=no
e28c595f 5974fi
81ecdfbb 5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5976fi
e552509b
ILT
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5978$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5979 fi
5980
5981 CFLAGS=$_cloog_saved_CFLAGS
5982 LDFLAGS=$_cloog_saved_LDFLAGS
5983 fi
5984
5985
5986
e28c595f 5987
e28c595f
JM
5988
5989
5990
e552509b
ILT
5991 if test "x${with_cloog}" != x \
5992 || test "x${with_cloog_include}" != x \
5993 || test "x${with_cloog_lib}" != x ; then
5994 graphite_requested=yes
5995 else
5996 graphite_requested=no
5997 fi
5998
5999
6000
6001 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6003 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6004 clooglibs=
6005 clooginc=
6006 fi
6007
6008 if test "${graphite_requested}" = yes \
6009 && test "x${clooglibs}" = x \
6010 && test "x${clooginc}" = x ; then
6011
6012 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6013 fi
6014
6015
6016fi
6017
700d40ca
ILT
6018# Check for LTO support.
6019# Check whether --enable-lto was given.
6020if test "${enable_lto+set}" = set; then :
6021 enableval=$enable_lto; enable_lto=$enableval
6022else
6023 enable_lto=yes; default_enable_lto=yes
6024fi
6025
6026
143754cd 6027
e49e5c92
DK
6028
6029
6030target_elf=no
6031case $target in
6032 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6033 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6034 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6035 target_elf=no
6036 ;;
6037 *)
6038 target_elf=yes
6039 ;;
6040esac
6041
6042if test $target_elf = yes; then :
74cea91b
DK
6043 # ELF platforms build the lto-plugin always.
6044 build_lto_plugin=yes
e49e5c92 6045
e49e5c92
DK
6046else
6047 if test x"$default_enable_lto" = x"yes" ; then
29821356 6048 case $target in
a8eb3f0a 6049 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6050 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6051 *) enable_lto=no ;;
6052 esac
e49e5c92 6053 else
29821356
RW
6054 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6055 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6056 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6057 # warn during gcc/ subconfigure; unless you're bootstrapping with
6058 # -flto it won't be needed until after installation anyway.
6059 case $target in
a8eb3f0a 6060 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6061 *) if test x"$enable_lto" = x"yes"; then
6062 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6063 fi
6064 ;;
6065 esac
6066 fi
a8eb3f0a 6067 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6068 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6069 case $target in
74cea91b 6070 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6071 *) ;;
6072 esac
74cea91b 6073
e49e5c92
DK
6074fi
6075
700d40ca 6076
e28c595f 6077
947f426e 6078# By default, C is the only stage 1 language.
9b134994 6079stage1_languages=,c,
1d39f329 6080
e8a5fa9c 6081# Target libraries that we bootstrap.
2aa2364a 6082bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6083
9e07f89d
NN
6084# Figure out what language subdirectories are present.
6085# Look if the user specified --enable-languages="..."; if not, use
6086# the environment variable $LANGUAGES if defined. $LANGUAGES might
6087# go away some day.
6088# NB: embedded tabs in this IF block -- do not untabify
6089if test -d ${srcdir}/gcc; then
6090 if test x"${enable_languages+set}" != xset; then
6091 if test x"${LANGUAGES+set}" = xset; then
6092 enable_languages="${LANGUAGES}"
6093 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6094 else
6095 enable_languages=all
6096 fi
6097 else
6098 if test x"${enable_languages}" = x ||
6099 test x"${enable_languages}" = xyes;
6100 then
6101 echo configure.in: --enable-languages needs at least one language argument 1>&2
6102 exit 1
6103 fi
6104 fi
6105 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6106
096f7d00
DE
6107 # 'f95' is the old name for the 'fortran' language. We issue a warning
6108 # and make the substitution.
6109 case ,${enable_languages}, in
6110 *,f95,*)
6111 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6112 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6113 ;;
6114 esac
6115
9e07f89d
NN
6116 # First scan to see if an enabled language requires some other language.
6117 # We assume that a given config-lang.in will list all the language
6118 # front ends it requires, even if some are required indirectly.
6119 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6120 case ${lang_frag} in
6121 ..) ;;
6122 # The odd quoting in the next line works around
6123 # an apparent bug in bash 1.12 on linux.
6124 ${srcdir}/gcc/[*]/config-lang.in) ;;
6125 *)
e552509b
ILT
6126 # From the config-lang.in, get $language, $lang_requires, and
6127 # $lang_requires_boot_languages.
9e07f89d
NN
6128 language=
6129 lang_requires=
e552509b 6130 lang_requires_boot_languages=
9e07f89d 6131 . ${lang_frag}
e552509b 6132 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6133 case ,${enable_languages}, in
6134 *,$other,*) ;;
6135 *,all,*) ;;
6136 *,$language,*)
6137 echo " \`$other' language required by \`$language'; enabling" 1>&2
6138 enable_languages="${enable_languages},${other}"
6139 ;;
6140 esac
6141 done
e552509b
ILT
6142 for other in ${lang_requires_boot_languages} ; do
6143 if test "$other" != "c"; then
6144 case ,${enable_stage1_languages}, in
6145 *,$other,*) ;;
6146 *,all,*) ;;
6147 *)
6148 case ,${enable_languages}, in
6149 *,$language,*)
6150 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6151 enable_stage1_languages="$enable_stage1_languages,${other}"
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157 done
9e07f89d
NN
6158 ;;
6159 esac
6160 done
6161
9b134994 6162 new_enable_languages=,c,
700d40ca
ILT
6163
6164 # If LTO is enabled, add the LTO front end.
6165 extra_host_libiberty_configure_flags=
6166 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6167 case ,${enable_languages}, in
6168 *,lto,*) ;;
6169 *) enable_languages="${enable_languages},lto" ;;
6170 esac
a8eb3f0a 6171 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6172 configdirs="$configdirs lto-plugin"
6173 extra_host_libiberty_configure_flags=--enable-shared
6174 fi
6175 fi
6176
6177
9e07f89d 6178 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6179 potential_languages=,c,
9e07f89d 6180
9e1a94f4
ILT
6181 enabled_target_libs=
6182 disabled_target_libs=
6183
9e07f89d
NN
6184 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6185 case ${lang_frag} in
6186 ..) ;;
6187 # The odd quoting in the next line works around
6188 # an apparent bug in bash 1.12 on linux.
6189 ${srcdir}/gcc/[*]/config-lang.in) ;;
6190 *)
c6b750e1 6191 # From the config-lang.in, get $language, $target_libs,
1d39f329 6192 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6193 language=
6194 target_libs=
6195 lang_dirs=
64ce424c 6196 subdir_requires=
9b134994
PB
6197 boot_language=no
6198 build_by_default=yes
9e07f89d 6199 . ${lang_frag}
9b134994
PB
6200 if test x${language} = x; then
6201 echo "${lang_frag} doesn't set \$language." 1>&2
6202 exit 1
6203 fi
6204
1f53ca9a
AO
6205 if test "$language" = "c++" \
6206 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6207 boot_language=yes
6208 fi
6209
9b134994
PB
6210 case ,${enable_languages}, in
6211 *,${language},*)
9e07f89d
NN
6212 # Language was explicitly selected; include it.
6213 add_this_lang=yes
6214 ;;
9b134994
PB
6215 *,all,*)
6216 # 'all' was selected, select it if it is a default language
6217 add_this_lang=${build_by_default}
9e07f89d
NN
6218 ;;
6219 *)
6220 add_this_lang=no
6221 ;;
6222 esac
4b1cb4fe 6223
64ce424c 6224 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6225 for i in $subdir_requires; do
3d3adb43 6226 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6227 case ,${enable_languages}, in
6228 *,${language},*)
6229 # Specifically requested language; tell them.
81ecdfbb 6230 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6231 ;;
6232 *)
6233 # Silently disable.
9b134994 6234 add_this_lang=unsupported
64ce424c
PB
6235 ;;
6236 esac
6237 done
6238
9b134994
PB
6239 # Disable Ada if no preexisting GNAT is available.
6240 case ,${enable_languages},:${language}:${have_gnat} in
6241 *,${language},*:ada:no)
6242 # Specifically requested language; tell them.
81ecdfbb 6243 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6244 ;;
6245 *:ada:no)
6246 # Silently disable.
6247 add_this_lang=unsupported
6248 ;;
6249 esac
6250
59f7ec45
HPN
6251 # Disable a language that is unsupported by the target.
6252 case " $unsupported_languages " in
6253 *" $language "*)
9b134994 6254 add_this_lang=unsupported
59f7ec45
HPN
6255 ;;
6256 esac
6257
4b1cb4fe 6258 case $add_this_lang in
9b134994 6259 unsupported)
9e07f89d 6260 # Remove language-dependent dirs.
9e1a94f4
ILT
6261 disabled_target_libs="$disabled_target_libs $target_libs"
6262 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6263 ;;
9b134994
PB
6264 no)
6265 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6266 disabled_target_libs="$disabled_target_libs $target_libs"
6267 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6268 potential_languages="${potential_languages}${language},"
6269 ;;
6270 yes)
6271 new_enable_languages="${new_enable_languages}${language},"
6272 potential_languages="${potential_languages}${language},"
1d39f329 6273 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6274 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6275 case "${boot_language}:,$enable_stage1_languages," in
6276 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6277 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6278 case ",$stage1_languages," in
6279 *,$language,* | ,yes, | ,all,) ;;
6280 *) stage1_languages="${stage1_languages}${language}," ;;
6281 esac
e8a5fa9c
RW
6282 # We need to bootstrap any supporting libraries.
6283 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6284 ;;
6285 esac
6286 ;;
9e07f89d
NN
6287 esac
6288 ;;
6289 esac
6290 done
6291
9e1a94f4
ILT
6292 # Add target libraries which are only needed for disabled languages
6293 # to noconfigdirs.
6294 if test -n "$disabled_target_libs"; then
6295 for dir in $disabled_target_libs; do
6296 case " $enabled_target_libs " in
6297 *" ${dir} "*) ;;
6298 *) noconfigdirs="$noconfigdirs $dir" ;;
6299 esac
6300 done
6301 fi
6302
81ecdfbb
RW
6303 # Check whether --enable-stage1-languages was given.
6304if test "${enable_stage1_languages+set}" = set; then :
6305 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6306 ,no,|,,)
6307 # Set it to something that will have no effect in the loop below
6308 enable_stage1_languages=c ;;
6309 ,yes,)
6310 enable_stage1_languages=`echo $new_enable_languages | \
6311 sed -e "s/^,//" -e "s/,$//" ` ;;
6312 *,all,*)
6313 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6314 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6315 esac
6316
6317 # Add "good" languages from enable_stage1_languages to stage1_languages,
6318 # while "bad" languages go in missing_languages. Leave no duplicates.
6319 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6320 case $potential_languages in
6321 *,$i,*)
6322 case $stage1_languages in
6323 *,$i,*) ;;
6324 *) stage1_languages="$stage1_languages$i," ;;
6325 esac ;;
6326 *)
6327 case $missing_languages in
6328 *,$i,*) ;;
6329 *) missing_languages="$missing_languages$i," ;;
6330 esac ;;
6331 esac
6332 done
81ecdfbb
RW
6333fi
6334
9b134994
PB
6335
6336 # Remove leading/trailing commas that were added for simplicity
6337 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6338 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6339 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6340 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6341
9e07f89d 6342 if test "x$missing_languages" != x; then
81ecdfbb 6343 as_fn_error "
27258dd4 6344The following requested languages could not be built: ${missing_languages}
81ecdfbb 6345Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6346 fi
9e07f89d
NN
6347 if test "x$new_enable_languages" != "x$enable_languages"; then
6348 echo The following languages will be built: ${new_enable_languages}
9b134994 6349 enable_languages="$new_enable_languages"
9e07f89d 6350 fi
9b134994 6351
c6b750e1 6352
81ec575a 6353 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6354fi
6355
a6df5a19
PB
6356# Handle --disable-<component> generically.
6357for dir in $configdirs $build_configdirs $target_configdirs ; do
6358 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6359 varname=`echo $dirname | sed -e s/+/_/g`
6360 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6361 noconfigdirs="$noconfigdirs $dir"
6362 fi
6363done
6364
4f0ef2d8 6365# Check for Boehm's garbage collector
81ecdfbb
RW
6366# Check whether --enable-objc-gc was given.
6367if test "${enable_objc_gc+set}" = set; then :
6368 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6369 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6370 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6371 ;;
6372esac
81ecdfbb
RW
6373fi
6374
4f0ef2d8
CD
6375
6376# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6377case ,${enable_languages},:${enable_objc_gc} in
6378 *,objc,*:yes)
4f0ef2d8
CD
6379 # Keep target-boehm-gc if requested for Objective-C.
6380 ;;
4f0ef2d8 6381 *)
d42c4017
DA
6382 # Otherwise remove target-boehm-gc depending on target-libjava.
6383 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6384 noconfigdirs="$noconfigdirs target-boehm-gc"
6385 fi
4f0ef2d8
CD
6386 ;;
6387esac
6388
caeba88f
AL
6389# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6390# $build_configdirs and $target_configdirs.
9e07f89d
NN
6391# If we have the source for $noconfigdirs entries, add them to $notsupp.
6392
6393notsupp=""
6394for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6395 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6396 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6397 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6398 if test -r $srcdir/$dirname/configure ; then
6399 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400 true
6401 else
6402 notsupp="$notsupp $dir"
6403 fi
6404 fi
6405 fi
caeba88f
AL
6406 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6407 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6408 if test -r $srcdir/$dirname/configure ; then
6409 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6410 true
6411 else
6412 notsupp="$notsupp $dir"
6413 fi
6414 fi
6415 fi
9e07f89d
NN
6416 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6417 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6418 if test -r $srcdir/$dirname/configure ; then
6419 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6420 true
6421 else
6422 notsupp="$notsupp $dir"
6423 fi
6424 fi
6425 fi
6426done
6427
6428# Sometimes the tools are distributed with libiberty but with no other
6429# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6430# Don't let libgcc imply libiberty either.
9e07f89d 6431if test -n "${target_configdirs}" ; then
f86e35b8 6432 libgcc=
9e07f89d
NN
6433 others=
6434 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6435 if test "$i" = "libgcc"; then
6436 libgcc=target-libgcc
6437 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6438 if test -r $srcdir/$i/configure ; then
6439 others=yes;
6440 break;
6441 fi
6442 fi
6443 done
6444 if test -z "${others}" ; then
f86e35b8 6445 target_configdirs=$libgcc
9e07f89d
NN
6446 fi
6447fi
6448
6449# Quietly strip out all directories which aren't configurable in this tree.
6450# This relies on all configurable subdirectories being autoconfiscated, which
6451# is now the case.
6a9cf61e
PB
6452build_configdirs_all="$build_configdirs"
6453build_configdirs=
6454for i in ${build_configdirs_all} ; do
c6b750e1 6455 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6456 if test -f ${srcdir}/$j/configure ; then
6457 build_configdirs="${build_configdirs} $i"
6458 fi
6459done
6460
9e07f89d
NN
6461configdirs_all="$configdirs"
6462configdirs=
6463for i in ${configdirs_all} ; do
6464 if test -f ${srcdir}/$i/configure ; then
6465 configdirs="${configdirs} $i"
6466 fi
6467done
6a9cf61e 6468
9e07f89d
NN
6469target_configdirs_all="$target_configdirs"
6470target_configdirs=
6471for i in ${target_configdirs_all} ; do
c6b750e1 6472 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6473 if test -f ${srcdir}/$j/configure ; then
6474 target_configdirs="${target_configdirs} $i"
6475 fi
6476done
6477
6478# Produce a warning message for the subdirs we can't configure.
6479# This isn't especially interesting in the Cygnus tree, but in the individual
6480# FSF releases, it's important to let people know when their machine isn't
6481# supported by the one or two programs in a package.
6482
6483if test -n "${notsupp}" && test -z "${norecursion}" ; then
6484 # If $appdirs is non-empty, at least one of those directories must still
6485 # be configured, or we error out. (E.g., if the gas release supports a
6486 # specified target in some subdirs but not the gas subdir, we shouldn't
6487 # pretend that all is well.)
6488 if test -n "$appdirs" ; then
6489 for dir in $appdirs ; do
6490 if test -r $dir/Makefile.in ; then
6491 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 appdirs=""
6493 break
6494 fi
6a9cf61e 6495 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6496 appdirs=""
6497 break
6498 fi
6499 fi
6500 done
6501 if test -n "$appdirs" ; then
6502 echo "*** This configuration is not supported by this package." 1>&2
6503 exit 1
6504 fi
6505 fi
6506 # Okay, some application will build, or we don't care to check. Still
6507 # notify of subdirs not getting built.
6508 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6509 echo " ${notsupp}" 1>&2
6510 echo " (Any other directories should still work fine.)" 1>&2
6511fi
6512
6513case "$host" in
6514 *msdosdjgpp*)
6515 enable_gdbtk=no ;;
6516esac
6517
18f6b6ee
PB
6518# To find our prefix, in gcc_cv_tool_prefix.
6519
6520# The user is always right.
6521if test "${PATH_SEPARATOR+set}" != set; then
6522 echo "#! /bin/sh" >conf$$.sh
6523 echo "exit 0" >>conf$$.sh
6524 chmod +x conf$$.sh
6525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6526 PATH_SEPARATOR=';'
6527 else
6528 PATH_SEPARATOR=:
6529 fi
6530 rm -f conf$$.sh
6531fi
6532
6533
6534
6535if test "x$exec_prefix" = xNONE; then
6536 if test "x$prefix" = xNONE; then
6537 gcc_cv_tool_prefix=$ac_default_prefix
6538 else
6539 gcc_cv_tool_prefix=$prefix
6540 fi
6541else
6542 gcc_cv_tool_prefix=$exec_prefix
6543fi
6544
6545# If there is no compiler in the tree, use the PATH only. In any
6546# case, if there is no compiler in the tree nobody should use
6547# AS_FOR_TARGET and LD_FOR_TARGET.
6548if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6549 gcc_version=`cat $srcdir/gcc/BASE-VER`
6550 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6551 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6552 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6553 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6554 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6555 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6556else
6557 gcc_cv_tool_dirs=
6558fi
6559
6560if test x$build = x$target && test -n "$md_exec_prefix"; then
6561 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6562fi
6563
6564
6565
9e07f89d
NN
6566copy_dirs=
6567
c6b750e1 6568
81ecdfbb
RW
6569# Check whether --with-build-sysroot was given.
6570if test "${with_build_sysroot+set}" = set; then :
6571 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6572 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6573 fi
6574else
6575 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6576fi
a19b6204
MM
6577
6578
8a6ee3ab 6579
81ecdfbb
RW
6580
6581# Check whether --with-debug-prefix-map was given.
6582if test "${with_debug_prefix_map+set}" = set; then :
6583 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6584 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6585 for debug_map in $withval; do
6586 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6587 done
6588 fi
6589else
6590 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6591fi
6592
8a6ee3ab
JM
6593
6594
7f6ef0c0
PB
6595# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6596# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6597# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6598# We want to ensure that TARGET libraries (which we know are built with
6599# gcc) are built with "-O2 -g", so include those options when setting
6600# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6601if test "x$CFLAGS_FOR_TARGET" = x; then
6602 CFLAGS_FOR_TARGET=$CFLAGS
6603 case " $CFLAGS " in
6604 *" -O2 "*) ;;
6605 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6606 esac
6607 case " $CFLAGS " in
6608 *" -g "* | *" -g3 "*) ;;
6609 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6610 esac
6611fi
6612
6613
6614if test "x$CXXFLAGS_FOR_TARGET" = x; then
6615 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6616 case " $CXXFLAGS " in
6617 *" -O2 "*) ;;
6618 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6619 esac
6620 case " $CXXFLAGS " in
6621 *" -g "* | *" -g3 "*) ;;
6622 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6623 esac
6624fi
6625
6626
9e07f89d
NN
6627# Handle --with-headers=XXX. If the value is not "yes", the contents of
6628# the named directory are copied to $(tooldir)/sys-include.
6629if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6630 if test x${is_cross_compiler} = xno ; then
6631 echo 1>&2 '***' --with-headers is only supported when cross compiling
6632 exit 1
6633 fi
6634 if test x"${with_headers}" != xyes ; then
18f6b6ee 6635 x=${gcc_cv_tool_prefix}
c6b750e1 6636 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6637 fi
6638fi
6639
6640# Handle --with-libs=XXX. If the value is not "yes", the contents of
6641# the name directories are copied to $(tooldir)/lib. Multiple directories
6642# are permitted.
6643if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6644 if test x${is_cross_compiler} = xno ; then
6645 echo 1>&2 '***' --with-libs is only supported when cross compiling
6646 exit 1
6647 fi
6648 if test x"${with_libs}" != xyes ; then
6649 # Copy the libraries in reverse order, so that files in the first named
6650 # library override files in subsequent libraries.
18f6b6ee 6651 x=${gcc_cv_tool_prefix}
9e07f89d 6652 for l in ${with_libs}; do
c6b750e1 6653 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6654 done
6655 fi
6656fi
6657
700d40ca 6658# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6659#
6660# This is done by determining whether or not the appropriate directory
6661# is available, and by checking whether or not specific configurations
6662# have requested that this magic not happen.
c6b750e1
DJ
6663#
6664# The command line options always override the explicit settings in
2429c060
PB
6665# configure.in, and the settings in configure.in override this magic.
6666#
c6b750e1 6667# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6668# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6669# --without-gnu-ld options for the configure script. Similarly, if
6670# the default is to use the included zlib and you don't want to do that,
6671# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6672
6673if test x${use_gnu_as} = x &&
6674 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6675 with_gnu_as=yes
6676 extra_host_args="$extra_host_args --with-gnu-as"
6677fi
6678
6679if test x${use_gnu_ld} = x &&
93f9b408 6680 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6681 with_gnu_ld=yes
6682 extra_host_args="$extra_host_args --with-gnu-ld"
6683fi
6684
700d40ca
ILT
6685if test x${use_included_zlib} = x &&
6686 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6687 :
6688else
6689 with_system_zlib=yes
6690 extra_host_args="$extra_host_args --with-system-zlib"
6691fi
6692
2429c060
PB
6693# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6694# can detect this case.
6695
6696if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6697 with_newlib=yes
6698 extra_host_args="$extra_host_args --with-newlib"
6699fi
6700
9e07f89d
NN
6701# Handle ${copy_dirs}
6702set fnord ${copy_dirs}
6703shift
6704while test $# != 0 ; do
6705 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6706 :
6707 else
6708 echo Copying $1 to $2
6709
6710 # Use the install script to create the directory and all required
6711 # parent directories.
6712 if test -d $2 ; then
6713 :
6714 else
6715 echo >config.temp
6716 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6717 fi
6718
6719 # Copy the directory, assuming we have tar.
6720 # FIXME: Should we use B in the second tar? Not all systems support it.
6721 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6722
6723 # It is the responsibility of the user to correctly adjust all
6724 # symlinks. If somebody can figure out how to handle them correctly
6725 # here, feel free to add the code.
6726
6727 echo $1 > $2/COPIED
6728 fi
6729 shift; shift
6730done
6731
2429c060
PB
6732# Determine a target-dependent exec_prefix that the installed
6733# gcc will search in. Keep this list sorted by triplet, with
6734# the *-*-osname triplets last.
6735md_exec_prefix=
6736case "${target}" in
6737 alpha*-*-*vms*)
6738 md_exec_prefix=/gnu/lib/gcc-lib
6739 ;;
521ec477 6740 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6741 md_exec_prefix=/dev/env/DJDIR/bin
6742 ;;
521ec477 6743 i[34567]86-*-sco3.2v5*)
2429c060
PB
6744 if test $with_gnu_as = yes; then
6745 md_exec_prefix=/usr/gnu/bin
6746 else
6747 md_exec_prefix=/usr/ccs/bin/elf
6748 fi
6749 ;;
6750
6751 mn10300-*-* | \
6752 powerpc-*-chorusos* | \
6753 powerpc*-*-eabi* | \
6754 powerpc*-*-sysv* | \
6755 powerpc*-*-kaos* | \
6756 s390x-ibm-tpf*)
6757 md_exec_prefix=/usr/ccs/bin
6758 ;;
6759 sparc64-*-elf*)
6760 ;;
6761 v850*-*-*)
6762 md_exec_prefix=/usr/ccs/bin
6763 ;;
8b66833e 6764 xtensa*-*-elf*)
2429c060
PB
6765 ;;
6766
6767 *-*-beos* | \
6768 *-*-elf* | \
6769 *-*-hpux* | \
6770 *-*-netware* | \
6771 *-*-nto-qnx* | \
6772 *-*-rtems* | \
6773 *-*-solaris2* | \
521ec477 6774 *-*-sysv[45]* | \
2429c060
PB
6775 *-*-vxworks* | \
6776 *-wrs-windiss)
6777 md_exec_prefix=/usr/ccs/bin
6778 ;;
6779esac
6780
a0da8069
NN
6781extra_arflags_for_target=
6782extra_nmflags_for_target=
6783extra_ranlibflags_for_target=
6784target_makefile_frag=/dev/null
6785case "${target}" in
4e206d7e
DB
6786 mep*-*-*)
6787 target_makefile_frag="config/mt-mep"
6788 ;;
77d7106f
AM
6789 spu-*-*)
6790 target_makefile_frag="config/mt-spu"
6791 ;;
429acdec
RS
6792 mips*-sde-elf*)
6793 target_makefile_frag="config/mt-sde"
6794 ;;
f3b1e08e
RS
6795 mipsisa*-*-elfoabi*)
6796 target_makefile_frag="config/mt-mips-elfoabi"
6797 ;;
e7c8859c
RS
6798 mips*-*-*linux* | mips*-*-gnu*)
6799 target_makefile_frag="config/mt-mips-gnu"
6800 ;;
2a3124ca 6801 *-*-netware*)
a0da8069
NN
6802 target_makefile_frag="config/mt-netware"
6803 ;;
29383458 6804 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6805 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6806 ;;
6807 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6808 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6809 # commands to handle both 32-bit and 64-bit objects. These flags are
6810 # harmless if we're using GNU nm or ar.
6811 extra_arflags_for_target=" -X32_64"
6812 extra_nmflags_for_target=" -B -X32_64"
6813 ;;
92f4e989
JM
6814 *-*-darwin[3-9]*)
6815 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6816 extra_ranlibflags_for_target=" -c"
6817 ;;
6818 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6819 target_makefile_frag="config/mt-wince"
6820 ;;
6821esac
6822
6823alphaieee_frag=/dev/null
6824case $target in
6825 alpha*-*-*)
6826 # This just makes sure to use the -mieee option to build target libs.
6827 # This should probably be set individually by each library.
6828 alphaieee_frag="config/mt-alphaieee"
6829 ;;
6830esac
6831
6832# If --enable-target-optspace always use -Os instead of -O2 to build
6833# the target libraries, similarly if it is not specified, use -Os
6834# on selected platforms.
6835ospace_frag=/dev/null
6836case "${enable_target_optspace}:${target}" in
6837 yes:*)
6838 ospace_frag="config/mt-ospace"
6839 ;;
6840 :d30v-*)
6841 ospace_frag="config/mt-d30v"
6842 ;;
6843 :m32r-* | :d10v-* | :fr30-*)
6844 ospace_frag="config/mt-ospace"
6845 ;;
6846 no:* | :*)
6847 ;;
6848 *)
6849 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6850 ;;
6851esac
6852
a0da8069
NN
6853# Default to using --with-stabs for certain targets.
6854if test x${with_stabs} = x ; then
6855 case "${target}" in
e31d1ea3 6856 mips*-*-irix[56]*)
a0da8069
NN
6857 ;;
6858 mips*-*-* | alpha*-*-osf*)
6859 with_stabs=yes;
6860 extra_host_args="${extra_host_args} --with-stabs"
6861 ;;
6862 esac
6863fi
6864
6865# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6866# them automatically.
6867case "${host}" in
c6b750e1 6868 hppa*64*-*-hpux11*)
a0da8069
NN
6869 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6870 ;;
6871esac
6872
a0da8069
NN
6873# Some systems (e.g., one of the i386-aix systems the gas testers are
6874# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6875tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6876build_tooldir=${tooldir}
6877
a0da8069
NN
6878# Create a .gdbinit file which runs the one in srcdir
6879# and tells GDB to look there for source files.
6880
6881if test -r ${srcdir}/.gdbinit ; then
6882 case ${srcdir} in
6883 .) ;;
6884 *) cat > ./.gdbinit <<EOF
6885# ${NO_EDIT}
6886dir ${srcdir}
6887dir .
6888source ${srcdir}/.gdbinit
6889EOF
6890 ;;
6891 esac
6892fi
6893
a0da8069
NN
6894# Make sure that the compiler is able to generate an executable. If it
6895# can't, we are probably in trouble. We don't care whether we can run the
6896# executable--we might be using a cross compiler--we only care whether it
6897# can be created. At this point the main configure script has set CC.
6898we_are_ok=no
6899echo "int main () { return 0; }" > conftest.c
6900${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6901if test $? = 0 ; then
6902 if test -s conftest || test -s conftest.exe ; then
6903 we_are_ok=yes
6904 fi
c6b750e1 6905fi
a0da8069
NN
6906case $we_are_ok in
6907 no)
6908 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6909 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6910 rm -f conftest*
6911 exit 1
6912 ;;
6913esac
6914rm -f conftest*
6915
6916# The Solaris /usr/ucb/cc compiler does not appear to work.
6917case "${host}" in
6918 sparc-sun-solaris2*)
6919 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6920 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6921 could_use=
6922 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6923 if test -d /opt/cygnus/bin ; then
6924 if test "$could_use" = "" ; then
6925 could_use="/opt/cygnus/bin"
6926 else
6927 could_use="$could_use or /opt/cygnus/bin"
6928 fi
6929 fi
6930 if test "$could_use" = "" ; then
6931 echo "Warning: compilation may fail because you're using"
6932 echo "/usr/ucb/cc. You should change your PATH or CC "
6933 echo "variable and rerun configure."
6934 else
6935 echo "Warning: compilation may fail because you're using"
6936 echo "/usr/ucb/cc, when you should use the C compiler from"
6937 echo "$could_use. You should change your"
6938 echo "PATH or CC variable and rerun configure."
6939 fi
6940 fi
6941 ;;
6942esac
6943
3bbd2f8f 6944# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6945case "${host}" in
6946 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6947 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6948 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6949 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6950esac
6951
3bbd2f8f 6952# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6953# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6954# built executables to PATH.
3bbd2f8f
AL
6955if test "$RPATH_ENVVAR" = PATH; then
6956 GCC_SHLIB_SUBDIR=/shlib
6957else
6958 GCC_SHLIB_SUBDIR=
6959fi
6960
a0da8069
NN
6961# Record target_configdirs and the configure arguments for target and
6962# build configuration in Makefile.
6963target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6964build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6965
2aa2364a
JR
6966# If we are building libgomp, bootstrap it.
6967if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6968 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6969fi
6970
a0da8069
NN
6971# Determine whether gdb needs tk/tcl or not.
6972# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6973# and in that case we want gdb to be built without tk. Ugh!
6974# In fact I believe gdb is the *only* package directly dependent on tk,
6975# so we should be able to put the 'maybe's in unconditionally and
6976# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6977# 100% sure that that's safe though.
c180f501 6978
675c6968 6979gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6980case "$enable_gdbtk" in
6981 no)
6982 GDB_TK="" ;;
c180f501
AC
6983 yes)
6984 GDB_TK="${gdb_tk}" ;;
a0da8069 6985 *)
c180f501
AC
6986 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6987 # distro. Eventually someone will fix this and move Insight, nee
6988 # gdbtk to a separate directory.
6989 if test -d ${srcdir}/gdb/gdbtk ; then
6990 GDB_TK="${gdb_tk}"
6991 else
6992 GDB_TK=""
6993 fi
6994 ;;
a0da8069 6995esac
907be67c
DJ
6996CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6997INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6998
6bd3dfaa 6999# Strip out unwanted targets.
dd12c3a8
NN
7000
7001# While at that, we remove Makefiles if we were started for recursive
7002# configuration, so that the top-level Makefile reconfigures them,
7003# like we used to do when configure itself was recursive.
dd12c3a8 7004
06a51eac
RW
7005# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7006# but now we're fixing up the Makefile ourselves with the additional
7007# commands passed to AC_CONFIG_FILES. Use separate variables
7008# extrasub-{build,host,target} not because there is any reason to split
7009# the substitutions up that way, but only to remain below the limit of
7010# 99 commands in a script, for HP-UX sed.
7011# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7012
81ecdfbb
RW
7013# Check whether --enable-bootstrap was given.
7014if test "${enable_bootstrap+set}" = set; then :
7015 enableval=$enable_bootstrap;
319cab08 7016else
9cb3fa6f 7017 enable_bootstrap=default
81ecdfbb
RW
7018fi
7019
319cab08 7020
9cb3fa6f
PB
7021# Issue errors and warnings for invalid/strange bootstrap combinations.
7022case "$configdirs" in
7023 *gcc*) have_compiler=yes ;;
7024 *) have_compiler=no ;;
7025esac
7026
7027case "$have_compiler:$host:$target:$enable_bootstrap" in
7028 *:*:*:no) ;;
7029
0aed8855 7030 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7031 # and we are in a native configuration.
7032 yes:$build:$build:default)
0aed8855 7033 enable_bootstrap=yes ;;
9cb3fa6f
PB
7034
7035 *:*:*:default)
7036 enable_bootstrap=no ;;
7037
7038 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7039 yes:$build:$build:yes)
9cb3fa6f
PB
7040 ;;
7041
7042 # Other configurations, but we have a compiler. Assume the user knows
7043 # what he's doing.
80911fe1 7044 yes:*:*:yes)
81ecdfbb
RW
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7046$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7047 ;;
7048
7049 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7050 no:*:*:yes)
81ecdfbb 7051 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7052
7053 # Fail if wrong command line
7054 *)
81ecdfbb 7055 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7056 ;;
7057esac
7058
4385ad3c
RW
7059case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7060 *,c++,*:yes:yes) ;;
7061 *:yes:yes)
7062 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7063 ;;
7064esac
7065
16b1ad29
RW
7066case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7067 yes:yes:*\ gold\ *:*,c++,*) ;;
7068 yes:yes:*\ gold\ *:*)
7069 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7070 ;;
7071esac
7072
9cb3fa6f 7073# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7074case $enable_bootstrap in
319cab08 7075 yes)
96655cc4
AO
7076 bootstrap_suffix=bootstrap
7077 BUILD_CONFIG=bootstrap-debug
7078 ;;
319cab08 7079 no)
96655cc4
AO
7080 bootstrap_suffix=no-bootstrap
7081 BUILD_CONFIG=
7082 ;;
319cab08
PB
7083esac
7084
96655cc4
AO
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7086$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7087
7088
7089# Check whether --with-build-config was given.
7090if test "${with_build_config+set}" = set; then :
7091 withval=$with_build_config; case $with_build_config in
7092 yes) with_build_config= ;;
7093 no) with_build_config= BUILD_CONFIG= ;;
7094 esac
7095fi
7096
7097
7098if test "x${with_build_config}" != x; then
7099 BUILD_CONFIG=$with_build_config
7100else
7101 case $BUILD_CONFIG in
7102 bootstrap-debug)
7103 if echo "int f (void) { return 0; }" > conftest.c &&
7104 ${CC} -c conftest.c &&
7105 mv conftest.o conftest.o.g0 &&
7106 ${CC} -c -g conftest.c &&
7107 mv conftest.o conftest.o.g &&
a009f2e7 7108 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7109 :
7110 else
7111 BUILD_CONFIG=
7112 fi
7113 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7114 ;;
7115 esac
7116fi
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7118$as_echo "$BUILD_CONFIG" >&6; }
7119
7120
06a51eac 7121extrasub_build=
6a9cf61e 7122for module in ${build_configdirs} ; do
498d4a71
CF
7123 if test -z "${no_recursion}" \
7124 && test -f ${build_subdir}/${module}/Makefile; then
7125 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7126 rm -f ${build_subdir}/${module}/Makefile
7127 fi
06a51eac 7128 extrasub_build="$extrasub_build
498d4a71
CF
7129/^@if build-$module\$/d
7130/^@endif build-$module\$/d
7131/^@if build-$module-$bootstrap_suffix\$/d
7132/^@endif build-$module-$bootstrap_suffix\$/d"
7133done
06a51eac 7134extrasub_host=
498d4a71 7135for module in ${configdirs} ; do
80911fe1 7136 if test -z "${no_recursion}"; then
8cf39b1b 7137 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7138 if test -f ${file}; then
7139 echo 1>&2 "*** removing ${file} to force reconfigure"
7140 rm -f ${file}
7141 fi
7142 done
498d4a71 7143 fi
06a51eac 7144 extrasub_host="$extrasub_host
498d4a71
CF
7145/^@if $module\$/d
7146/^@endif $module\$/d
7147/^@if $module-$bootstrap_suffix\$/d
7148/^@endif $module-$bootstrap_suffix\$/d"
7149done
06a51eac 7150extrasub_target=
498d4a71
CF
7151for module in ${target_configdirs} ; do
7152 if test -z "${no_recursion}" \
7153 && test -f ${target_subdir}/${module}/Makefile; then
7154 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7155 rm -f ${target_subdir}/${module}/Makefile
7156 fi
e8a5fa9c
RW
7157
7158 # We only bootstrap target libraries listed in bootstrap_target_libs.
7159 case $bootstrap_target_libs in
7160 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7161 *) target_bootstrap_suffix=no-bootstrap ;;
7162 esac
7163
06a51eac 7164 extrasub_target="$extrasub_target
498d4a71
CF
7165/^@if target-$module\$/d
7166/^@endif target-$module\$/d
e8a5fa9c
RW
7167/^@if target-$module-$target_bootstrap_suffix\$/d
7168/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7169done
7170
06a51eac
RW
7171# Do the final fixup along with target modules.
7172extrasub_target="$extrasub_target
6bd3dfaa 7173/^@if /,/^@endif /d"
a0da8069
NN
7174
7175# Create the serialization dependencies. This uses a temporary file.
7176
81ecdfbb
RW
7177# Check whether --enable-serial-configure was given.
7178if test "${enable_serial_configure+set}" = set; then :
7179 enableval=$enable_serial_configure;
7180fi
e6bfb94a
AO
7181
7182
1047cb91
DD
7183case ${enable_serial_configure} in
7184 yes)
7185 enable_serial_build_configure=yes
7186 enable_serial_host_configure=yes
7187 enable_serial_target_configure=yes
7188 ;;
7189esac
7190
a0da8069
NN
7191# These force 'configure's to be done one at a time, to avoid problems
7192# with contention over a shared config.cache.
7193rm -f serdep.tmp
e6bfb94a 7194echo '# serdep.tmp' > serdep.tmp
a0da8069 7195olditem=
1047cb91 7196test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7197for item in ${build_configdirs} ; do
7198 case ${olditem} in
7199 "") ;;
e6bfb94a 7200 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7201 esac
7202 olditem=${item}
7203done
7204olditem=
1047cb91 7205test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7206for item in ${configdirs} ; do
7207 case ${olditem} in
7208 "") ;;
e6bfb94a 7209 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7210 esac
7211 olditem=${item}
7212done
7213olditem=
1047cb91 7214test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7215for item in ${target_configdirs} ; do
7216 case ${olditem} in
7217 "") ;;
e6bfb94a 7218 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7219 esac
7220 olditem=${item}
7221done
7222serialization_dependencies=serdep.tmp
7223
7224
e6bfb94a 7225# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7226# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7227# might not want to pass down to subconfigures. The exception being
7228# --cache-file=/dev/null, which is used to turn off the use of cache
7229# files altogether, and which should be passed on to subconfigures.
7230# Also strip program-prefix, program-suffix, and program-transform-name,
7231# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7232baseargs=
7233keep_next=no
7234skip_next=no
7235eval "set -- $ac_configure_args"
18f6b6ee
PB
7236for ac_arg
7237do
c6b750e1
DJ
7238 if test X"$skip_next" = X"yes"; then
7239 skip_next=no
7240 continue
7241 fi
7242 if test X"$keep_next" = X"yes"; then
7243 case $ac_arg in
7244 *\'*)
7245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7246 esac
7247 baseargs="$baseargs '$ac_arg'"
7248 keep_next=no
7249 continue
7250 fi
7251
7252 # Handle separated arguments. Based on the logic generated by
7253 # autoconf 2.59.
7254 case $ac_arg in
7255 *=* | --config-cache | -C | -disable-* | --disable-* \
7256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7258 | -with-* | --with-* | -without-* | --without-* | --x)
7259 separate_arg=no
7260 ;;
7261 -*)
7262 separate_arg=yes
7263 ;;
7264 *)
7265 separate_arg=no
7266 ;;
7267 esac
7268
7269 case "$ac_arg" in
30167e0a
NC
7270 --cache-file=/dev/null | \
7271 -cache-file=/dev/null )
7272 # Handled here to avoid the test to skip args below.
7273 baseargs="$baseargs '$ac_arg'"
7274 # Assert: $separate_arg should always be no.
7275 keep_next=$separate_arg
7276 ;;
c6b750e1
DJ
7277 --no*)
7278 continue
7279 ;;
7280 --c* | \
7281 --sr* | \
7282 --ho* | \
7283 --bu* | \
7284 --t* | \
7285 --program-* | \
7286 -cache_file* | \
7287 -srcdir* | \
7288 -host* | \
7289 -build* | \
7290 -target* | \
7291 -program-prefix* | \
7292 -program-suffix* | \
7293 -program-transform-name* )
7294 skip_next=$separate_arg
7295 continue
7296 ;;
7297 -*)
7298 # An option. Add it.
7299 case $ac_arg in
7300 *\'*)
7301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7302 esac
7303 baseargs="$baseargs '$ac_arg'"
7304 keep_next=$separate_arg
7305 ;;
7306 *)
7307 # Either a variable assignment, or a nonopt (triplet). Don't
7308 # pass it down; let the Makefile handle this.
7309 continue
7310 ;;
7311 esac
7312done
7313# Remove the initial space we just introduced and, as these will be
7314# expanded by make, quote '$'.
7315baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7316
f27d4f92
DJ
7317# Add in --program-transform-name, after --program-prefix and
7318# --program-suffix have been applied to it. Autoconf has already
7319# doubled dollar signs and backslashes in program_transform_name; we want
7320# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7321# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7322# Also, because we want to override the logic in subdir configure scripts to
7323# choose program_transform_name, replace any s,x,x, with s,y,y,.
7324sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7325${program_transform_name}
7326EOF_SED
7327gcc_transform_name=`cat conftestsed.out`
7328rm -f conftestsed.out
7329baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7330if test "$silent" = yes; then
7331 baseargs="$baseargs --silent"
7332fi
34a0f3cf 7333baseargs="$baseargs --disable-option-checking"
f27d4f92 7334
4074d5f2
RW
7335# Record and document user additions to sub configure arguments.
7336
7337
7338
7339
a0da8069
NN
7340# For the build-side libraries, we just need to pretend we're native,
7341# and not use the same cache file. Multilibs are neither needed nor
7342# desired.
4074d5f2 7343build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7344
7345# For host modules, accept cache file option, or specification as blank.
7346case "${cache_file}" in
7347"") # empty
7348 cache_file_option="" ;;
7349/* | [A-Za-z]:[\\/]* ) # absolute path
7350 cache_file_option="--cache-file=${cache_file}" ;;
7351*) # relative path
7352 cache_file_option="--cache-file=../${cache_file}" ;;
7353esac
7354
82252c06
NN
7355# Host dirs don't like to share a cache file either, horribly enough.
7356# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7357host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7358
4074d5f2 7359target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7360
7361# Passing a --with-cross-host argument lets the target libraries know
7362# whether they are being built with a cross-compiler or being built
7363# native. However, it would be better to use other mechanisms to make the
7364# sorts of decisions they want to make on this basis. Please consider
7365# this option to be deprecated. FIXME.
7366if test x${is_cross_compiler} = xyes ; then
c6b750e1 7367 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7368fi
7369
938d2b74
RW
7370# Default to --enable-multilib.
7371if test x${enable_multilib} = x ; then
a0da8069 7372 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7373fi
a0da8069
NN
7374
7375# Pass --with-newlib if appropriate. Note that target_configdirs has
7376# changed from the earlier setting of with_newlib.
7377if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7378 target_configargs="--with-newlib ${target_configargs}"
7379fi
7380
95036d20
NN
7381# Different target subdirs use different values of certain variables
7382# (notably CXX). Worse, multilibs use *lots* of different values.
7383# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7384# it doesn't automatically accept command-line overrides of them.
7385# This means it's not safe for target subdirs to share a cache file,
7386# which is disgusting, but there you have it. Hopefully this can be
7387# fixed in future. It's still worthwhile to use a cache file for each
7388# directory. I think.
7389
ae380b45
MS
7390# Pass the appropriate --build, --host, --target and --cache-file arguments.
7391# We need to pass --target, as newer autoconf's requires consistency
7392# for target_alias and gcc doesn't manage it consistently.
4b900473 7393target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7394
a0da8069
NN
7395FLAGS_FOR_TARGET=
7396case " $target_configdirs " in
7397 *" newlib "*)
7398 case " $target_configargs " in
7399 *" --with-newlib "*)
7400 case "$target" in
1f53ca9a
AO
7401 *-cygwin*)
7402 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'
7403 ;;
a0da8069
NN
7404 esac
7405
7406 # If we're not building GCC, don't discard standard headers.
7407 if test -d ${srcdir}/gcc; then
7408 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7409
7410 if test "${build}" != "${host}"; then
7411 # On Canadian crosses, CC_FOR_TARGET will have already been set
7412 # by `configure', so we won't have an opportunity to add -Bgcc/
7413 # to it. This is right: we don't want to search that directory
7414 # for binaries, but we want the header files in there, so add
7415 # them explicitly.
e552509b 7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7417
7418 # Someone might think of using the pre-installed headers on
7419 # Canadian crosses, in case the installed compiler is not fully
7420 # compatible with the compiler being built. In this case, it
7421 # would be better to flag an error than risking having
7422 # incompatible object files being constructed. We can't
7423 # guarantee that an error will be flagged, but let's hope the
7424 # compiler will do it, when presented with incompatible header
7425 # files.
7426 fi
7427 fi
7428
7429 case "${target}-${is_cross_compiler}" in
ec11bdc6 7430 i[3456789]86-*-linux*-no)
a0da8069
NN
7431 # Here host == target, so we don't need to build gcc,
7432 # so we don't want to discard standard headers.
7433 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7434 ;;
7435 *)
7436 # If we're building newlib, use its generic headers last, but search
7437 # for any libc-related directories first (so make it the last -B
7438 # switch).
7439 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
7440
7441 # If we're building libgloss, find the startup file, simulator library
7442 # and linker script.
7443 case " $target_configdirs " in
7444 *" libgloss "*)
7445 # Look for startup file, simulator library and maybe linker script.
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7447 # Look for libnosys.a in case the target needs it.
7448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7449 # Most targets have the linker script in the source directory.
7450 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7451 ;;
7452 esac
a0da8069
NN
7453 ;;
7454 esac
7455 ;;
7456 esac
7457 ;;
7458esac
1f53ca9a 7459
45055374 7460case "$target" in
1f53ca9a
AO
7461 x86_64-*mingw* | *-w64-mingw*)
7462 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7463 # however, use a symlink named 'mingw' in ${prefix} .
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7465 ;;
7466 *-mingw*)
7467 # MinGW can't be handled as Cygwin above since it does not use newlib.
7468 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'
7469 ;;
45055374 7470esac
a0da8069 7471
5fbad20a
DD
7472# Allow the user to override the flags for
7473# our build compiler if desired.
c66487f8
NC
7474if test x"${build}" = x"${host}" ; then
7475 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7476 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7477 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7478fi
5fbad20a 7479
a0da8069
NN
7480# On Canadian crosses, we'll be searching the right directories for
7481# the previously-installed cross compiler, so don't bother to add
7482# flags for directories within the install tree of the compiler
7483# being built; programs in there won't even run.
7484if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7485 # Search for pre-installed headers if nothing else fits.
bba45b8b 7486 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
7487fi
7488
7489if test "x${use_gnu_ld}" = x &&
7490 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7491 # Arrange for us to find uninstalled linker scripts.
b00612cc 7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7493fi
7494
a481dbb7
DD
7495# Search for other target-specific linker scripts and such.
7496case "${target}" in
4e206d7e
DB
7497 mep*)
7498 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7499 ;;
7500esac
7501
a0da8069 7502# Makefile fragments.
3e707e94
PB
7503for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7504do
7505 eval fragval=\$$frag
7506 if test $fragval != /dev/null; then
7507 eval $frag=${srcdir}/$fragval
7508 fi
7509done
a0da8069
NN
7510
7511
7512
7513
7514
7515# Miscellanea: directories, flags, etc.
7516
7517
7518
7519
7520
7521
7522
3bbd2f8f 7523
6a9cf61e 7524# Build module lists & subconfigure args.
a0da8069
NN
7525
7526
7527
be01d343
PB
7528# Host module lists & subconfigure args.
7529
7530
7531
911e63d0 7532
be01d343
PB
7533# Target module lists & subconfigure args.
7534
7535
7536
7537# Build tools.
7538
7539
7540
1576798e
PB
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
e552509b 7555
be01d343
PB
7556# Generate default definitions for YACC, M4, LEX and other programs that run
7557# on the build machine. These are used if the Makefile can't locate these
7558# programs in objdir.
7559MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7560
7561for ac_prog in 'bison -y' byacc yacc
7562do
c6b750e1 7563 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7564set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566$as_echo_n "checking for $ac_word... " >&6; }
7567if test "${ac_cv_prog_YACC+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
be01d343
PB
7569else
7570 if test -n "$YACC"; then
7571 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7572else
c6b750e1
DJ
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7580 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7582 break 2
7583 fi
7584done
81ecdfbb
RW
7585 done
7586IFS=$as_save_IFS
c6b750e1 7587
be01d343
PB
7588fi
7589fi
c6b750e1 7590YACC=$ac_cv_prog_YACC
be01d343 7591if test -n "$YACC"; then
81ecdfbb
RW
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7593$as_echo "$YACC" >&6; }
be01d343 7594else
81ecdfbb
RW
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
be01d343
PB
7597fi
7598
81ecdfbb 7599
c6b750e1 7600 test -n "$YACC" && break
be01d343
PB
7601done
7602test -n "$YACC" || YACC="$MISSING bison -y"
7603
7604case " $build_configdirs " in
7605 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7606 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7607esac
7608
7609for ac_prog in bison
7610do
c6b750e1 7611 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7612set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614$as_echo_n "checking for $ac_word... " >&6; }
7615if test "${ac_cv_prog_BISON+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
be01d343
PB
7617else
7618 if test -n "$BISON"; then
7619 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7620else
c6b750e1
DJ
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7628 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7630 break 2
7631 fi
7632done
81ecdfbb
RW
7633 done
7634IFS=$as_save_IFS
c6b750e1 7635
be01d343
PB
7636fi
7637fi
c6b750e1 7638BISON=$ac_cv_prog_BISON
be01d343 7639if test -n "$BISON"; then
81ecdfbb
RW
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7641$as_echo "$BISON" >&6; }
be01d343 7642else
81ecdfbb
RW
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644$as_echo "no" >&6; }
be01d343
PB
7645fi
7646
81ecdfbb 7647
c6b750e1 7648 test -n "$BISON" && break
be01d343
PB
7649done
7650test -n "$BISON" || BISON="$MISSING bison"
7651
7652case " $build_configdirs " in
7653 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7654esac
7655
7656for ac_prog in gm4 gnum4 m4
7657do
c6b750e1 7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7659set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661$as_echo_n "checking for $ac_word... " >&6; }
7662if test "${ac_cv_prog_M4+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
be01d343
PB
7664else
7665 if test -n "$M4"; then
7666 ac_cv_prog_M4="$M4" # Let the user override the test.
7667else
c6b750e1
DJ
7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7675 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7677 break 2
7678 fi
7679done
81ecdfbb
RW
7680 done
7681IFS=$as_save_IFS
c6b750e1 7682
be01d343
PB
7683fi
7684fi
c6b750e1 7685M4=$ac_cv_prog_M4
be01d343 7686if test -n "$M4"; then
81ecdfbb
RW
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7688$as_echo "$M4" >&6; }
be01d343 7689else
81ecdfbb
RW
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; }
be01d343
PB
7692fi
7693
81ecdfbb 7694
c6b750e1 7695 test -n "$M4" && break
be01d343
PB
7696done
7697test -n "$M4" || M4="$MISSING m4"
7698
7699case " $build_configdirs " in
7700 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7701esac
7702
7703for ac_prog in flex lex
7704do
c6b750e1 7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7706set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if test "${ac_cv_prog_LEX+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
be01d343
PB
7711else
7712 if test -n "$LEX"; then
7713 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7714else
c6b750e1
DJ
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7722 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7724 break 2
7725 fi
7726done
81ecdfbb
RW
7727 done
7728IFS=$as_save_IFS
c6b750e1 7729
be01d343
PB
7730fi
7731fi
c6b750e1 7732LEX=$ac_cv_prog_LEX
be01d343 7733if test -n "$LEX"; then
81ecdfbb
RW
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7735$as_echo "$LEX" >&6; }
be01d343 7736else
81ecdfbb
RW
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
be01d343
PB
7739fi
7740
81ecdfbb 7741
c6b750e1 7742 test -n "$LEX" && break
be01d343
PB
7743done
7744test -n "$LEX" || LEX="$MISSING flex"
7745
7746case " $build_configdirs " in
7747 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7748 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7749esac
7750
7751for ac_prog in flex
7752do
c6b750e1 7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7754set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
7757if test "${ac_cv_prog_FLEX+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
be01d343
PB
7759else
7760 if test -n "$FLEX"; then
7761 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7762else
c6b750e1
DJ
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7770 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7772 break 2
7773 fi
7774done
81ecdfbb
RW
7775 done
7776IFS=$as_save_IFS
c6b750e1 7777
be01d343
PB
7778fi
7779fi
c6b750e1 7780FLEX=$ac_cv_prog_FLEX
be01d343 7781if test -n "$FLEX"; then
81ecdfbb
RW
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7783$as_echo "$FLEX" >&6; }
be01d343 7784else
81ecdfbb
RW
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
be01d343
PB
7787fi
7788
81ecdfbb 7789
c6b750e1 7790 test -n "$FLEX" && break
be01d343
PB
7791done
7792test -n "$FLEX" || FLEX="$MISSING flex"
7793
7794case " $build_configdirs " in
7795 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7796esac
7797
7798for ac_prog in makeinfo
7799do
c6b750e1 7800 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7801set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803$as_echo_n "checking for $ac_word... " >&6; }
7804if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
be01d343
PB
7806else
7807 if test -n "$MAKEINFO"; then
7808 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7809else
c6b750e1
DJ
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7817 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7819 break 2
7820 fi
7821done
81ecdfbb
RW
7822 done
7823IFS=$as_save_IFS
c6b750e1 7824
be01d343
PB
7825fi
7826fi
c6b750e1 7827MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7828if test -n "$MAKEINFO"; then
81ecdfbb
RW
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7830$as_echo "$MAKEINFO" >&6; }
be01d343 7831else
81ecdfbb
RW
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
be01d343
PB
7834fi
7835
81ecdfbb 7836
c6b750e1 7837 test -n "$MAKEINFO" && break
be01d343
PB
7838done
7839test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7840
7841case " $build_configdirs " in
7842 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7843 *)
7844
10ad8ef3 7845 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7846 # higher, else we use the "missing" dummy.
7847 if ${MAKEINFO} --version \
10ad8ef3 7848 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7849 :
7850 else
7851 MAKEINFO="$MISSING makeinfo"
7852 fi
7853 ;;
7854
7855esac
a0da8069 7856
be01d343 7857# FIXME: expect and dejagnu may become build tools?
a0da8069 7858
be01d343
PB
7859for ac_prog in expect
7860do
c6b750e1 7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7862set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_EXPECT+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
be01d343
PB
7867else
7868 if test -n "$EXPECT"; then
7869 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7870else
c6b750e1
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7878 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7880 break 2
7881 fi
7882done
81ecdfbb
RW
7883 done
7884IFS=$as_save_IFS
c6b750e1 7885
be01d343
PB
7886fi
7887fi
c6b750e1 7888EXPECT=$ac_cv_prog_EXPECT
be01d343 7889if test -n "$EXPECT"; then
81ecdfbb
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7891$as_echo "$EXPECT" >&6; }
be01d343 7892else
81ecdfbb
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
be01d343 7895fi
a0da8069 7896
81ecdfbb 7897
c6b750e1 7898 test -n "$EXPECT" && break
be01d343
PB
7899done
7900test -n "$EXPECT" || EXPECT="expect"
a0da8069 7901
be01d343
PB
7902case " $configdirs " in
7903 *" expect "*)
7904 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7905 ;;
7906esac
a0da8069 7907
be01d343
PB
7908for ac_prog in runtest
7909do
c6b750e1 7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7911set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
7914if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
be01d343
PB
7916else
7917 if test -n "$RUNTEST"; then
7918 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7919else
c6b750e1
DJ
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7927 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7929 break 2
7930 fi
7931done
81ecdfbb
RW
7932 done
7933IFS=$as_save_IFS
c6b750e1 7934
be01d343
PB
7935fi
7936fi
c6b750e1 7937RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7938if test -n "$RUNTEST"; then
81ecdfbb
RW
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7940$as_echo "$RUNTEST" >&6; }
be01d343 7941else
81ecdfbb
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
be01d343 7944fi
a0da8069 7945
81ecdfbb 7946
c6b750e1 7947 test -n "$RUNTEST" && break
be01d343
PB
7948done
7949test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7950
be01d343
PB
7951case " $configdirs " in
7952 *" dejagnu "*)
6b89cc21 7953 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7954 ;;
7955esac
a0da8069
NN
7956
7957
a0da8069 7958# Host tools.
859789af
AC
7959ncn_tool_prefix=
7960test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7961ncn_target_tool_prefix=
7962test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7963
9a819804
AO
7964
7965
7966if test -n "$AR"; then
7967 ac_cv_prog_AR=$AR
7968elif test -n "$ac_cv_prog_AR"; then
7969 AR=$ac_cv_prog_AR
7970fi
7971
7972if test -n "$ac_cv_prog_AR"; then
7973 for ncn_progname in ar; do
7974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7975set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977$as_echo_n "checking for $ac_word... " >&6; }
7978if test "${ac_cv_prog_AR+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
9a819804
AO
7980else
7981 if test -n "$AR"; then
7982 ac_cv_prog_AR="$AR" # Let the user override the test.
7983else
7984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7991 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7993 break 2
7994 fi
7995done
81ecdfbb
RW
7996 done
7997IFS=$as_save_IFS
9a819804
AO
7998
7999fi
8000fi
8001AR=$ac_cv_prog_AR
8002if test -n "$AR"; then
81ecdfbb
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8004$as_echo "$AR" >&6; }
9a819804 8005else
81ecdfbb
RW
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
9a819804
AO
8008fi
8009
81ecdfbb 8010
9a819804
AO
8011 done
8012fi
8013
8014for ncn_progname in ar; do
05cbd757
PB
8015 if test -n "$ncn_tool_prefix"; then
8016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8017set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_AR+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
859789af
AC
8022else
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR="$AR" # Let the user override the test.
8025else
c6b750e1
DJ
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8033 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8035 break 2
8036 fi
8037done
81ecdfbb
RW
8038 done
8039IFS=$as_save_IFS
c6b750e1 8040
859789af
AC
8041fi
8042fi
c6b750e1 8043AR=$ac_cv_prog_AR
859789af 8044if test -n "$AR"; then
81ecdfbb
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046$as_echo "$AR" >&6; }
859789af 8047else
81ecdfbb
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
859789af
AC
8050fi
8051
81ecdfbb 8052
05cbd757
PB
8053 fi
8054 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8056set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if test "${ac_cv_prog_AR+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
859789af 8061else
05cbd757
PB
8062 if test -n "$AR"; then
8063 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8064else
c6b750e1
DJ
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8072 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8074 break 2
8075 fi
8076done
81ecdfbb
RW
8077 done
8078IFS=$as_save_IFS
c6b750e1 8079
859789af
AC
8080fi
8081fi
c6b750e1 8082AR=$ac_cv_prog_AR
05cbd757 8083if test -n "$AR"; then
81ecdfbb
RW
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8085$as_echo "$AR" >&6; }
859789af 8086else
81ecdfbb
RW
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
859789af 8089fi
c6b750e1 8090
81ecdfbb 8091
05cbd757
PB
8092 fi
8093 test -n "$ac_cv_prog_AR" && break
8094done
8095
8096if test -z "$ac_cv_prog_AR" ; then
8097 set dummy ar
8098 if test $build = $host ; then
8099 AR="$2"
859789af 8100 else
05cbd757 8101 AR="${ncn_tool_prefix}$2"
859789af 8102 fi
859789af
AC
8103fi
8104
9a819804
AO
8105
8106
8107if test -n "$AS"; then
8108 ac_cv_prog_AS=$AS
8109elif test -n "$ac_cv_prog_AS"; then
8110 AS=$ac_cv_prog_AS
8111fi
8112
8113if test -n "$ac_cv_prog_AS"; then
8114 for ncn_progname in as; do
8115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8116set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118$as_echo_n "checking for $ac_word... " >&6; }
8119if test "${ac_cv_prog_AS+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
9a819804
AO
8121else
8122 if test -n "$AS"; then
8123 ac_cv_prog_AS="$AS" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8132 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8134 break 2
8135 fi
8136done
81ecdfbb
RW
8137 done
8138IFS=$as_save_IFS
9a819804
AO
8139
8140fi
8141fi
8142AS=$ac_cv_prog_AS
8143if test -n "$AS"; then
81ecdfbb
RW
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8145$as_echo "$AS" >&6; }
9a819804 8146else
81ecdfbb
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
9a819804
AO
8149fi
8150
81ecdfbb 8151
9a819804
AO
8152 done
8153fi
8154
8155for ncn_progname in as; do
05cbd757
PB
8156 if test -n "$ncn_tool_prefix"; then
8157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160$as_echo_n "checking for $ac_word... " >&6; }
8161if test "${ac_cv_prog_AS+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
859789af
AC
8163else
8164 if test -n "$AS"; then
8165 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8174 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8176 break 2
8177 fi
8178done
81ecdfbb
RW
8179 done
8180IFS=$as_save_IFS
c6b750e1 8181
859789af
AC
8182fi
8183fi
c6b750e1 8184AS=$ac_cv_prog_AS
859789af 8185if test -n "$AS"; then
81ecdfbb
RW
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8187$as_echo "$AS" >&6; }
859789af 8188else
81ecdfbb
RW
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190$as_echo "no" >&6; }
859789af
AC
8191fi
8192
81ecdfbb 8193
05cbd757
PB
8194 fi
8195 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8197set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199$as_echo_n "checking for $ac_word... " >&6; }
8200if test "${ac_cv_prog_AS+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
859789af 8202else
05cbd757
PB
8203 if test -n "$AS"; then
8204 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8205else
c6b750e1
DJ
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8213 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8215 break 2
8216 fi
8217done
81ecdfbb
RW
8218 done
8219IFS=$as_save_IFS
c6b750e1 8220
859789af
AC
8221fi
8222fi
c6b750e1 8223AS=$ac_cv_prog_AS
05cbd757 8224if test -n "$AS"; then
81ecdfbb
RW
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8226$as_echo "$AS" >&6; }
859789af 8227else
81ecdfbb
RW
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229$as_echo "no" >&6; }
859789af 8230fi
c6b750e1 8231
81ecdfbb 8232
05cbd757
PB
8233 fi
8234 test -n "$ac_cv_prog_AS" && break
8235done
8236
8237if test -z "$ac_cv_prog_AS" ; then
8238 set dummy as
8239 if test $build = $host ; then
8240 AS="$2"
859789af 8241 else
05cbd757 8242 AS="${ncn_tool_prefix}$2"
859789af 8243 fi
859789af
AC
8244fi
8245
9a819804
AO
8246
8247
8248if test -n "$DLLTOOL"; then
8249 ac_cv_prog_DLLTOOL=$DLLTOOL
8250elif test -n "$ac_cv_prog_DLLTOOL"; then
8251 DLLTOOL=$ac_cv_prog_DLLTOOL
8252fi
8253
8254if test -n "$ac_cv_prog_DLLTOOL"; then
8255 for ncn_progname in dlltool; do
8256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8257set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259$as_echo_n "checking for $ac_word... " >&6; }
8260if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
9a819804
AO
8262else
8263 if test -n "$DLLTOOL"; then
8264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8265else
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8273 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8275 break 2
8276 fi
8277done
81ecdfbb
RW
8278 done
8279IFS=$as_save_IFS
9a819804
AO
8280
8281fi
8282fi
8283DLLTOOL=$ac_cv_prog_DLLTOOL
8284if test -n "$DLLTOOL"; then
81ecdfbb
RW
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8286$as_echo "$DLLTOOL" >&6; }
9a819804 8287else
81ecdfbb
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
9a819804
AO
8290fi
8291
81ecdfbb 8292
9a819804
AO
8293 done
8294fi
8295
8296for ncn_progname in dlltool; do
05cbd757
PB
8297 if test -n "$ncn_tool_prefix"; then
8298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8299set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
859789af
AC
8304else
8305 if test -n "$DLLTOOL"; then
8306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8307else
c6b750e1
DJ
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8315 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8317 break 2
8318 fi
8319done
81ecdfbb
RW
8320 done
8321IFS=$as_save_IFS
c6b750e1 8322
859789af
AC
8323fi
8324fi
c6b750e1 8325DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8326if test -n "$DLLTOOL"; then
81ecdfbb
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8328$as_echo "$DLLTOOL" >&6; }
859789af 8329else
81ecdfbb
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
859789af
AC
8332fi
8333
81ecdfbb 8334
05cbd757
PB
8335 fi
8336 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340$as_echo_n "checking for $ac_word... " >&6; }
8341if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
859789af 8343else
05cbd757
PB
8344 if test -n "$DLLTOOL"; then
8345 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8346else
c6b750e1
DJ
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8354 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8356 break 2
8357 fi
8358done
81ecdfbb
RW
8359 done
8360IFS=$as_save_IFS
c6b750e1 8361
859789af
AC
8362fi
8363fi
c6b750e1 8364DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8365if test -n "$DLLTOOL"; then
81ecdfbb
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8367$as_echo "$DLLTOOL" >&6; }
859789af 8368else
81ecdfbb
RW
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
859789af 8371fi
c6b750e1 8372
81ecdfbb 8373
05cbd757
PB
8374 fi
8375 test -n "$ac_cv_prog_DLLTOOL" && break
8376done
8377
8378if test -z "$ac_cv_prog_DLLTOOL" ; then
8379 set dummy dlltool
8380 if test $build = $host ; then
8381 DLLTOOL="$2"
859789af 8382 else
05cbd757 8383 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8384 fi
859789af
AC
8385fi
8386
9a819804
AO
8387
8388
8389if test -n "$LD"; then
8390 ac_cv_prog_LD=$LD
8391elif test -n "$ac_cv_prog_LD"; then
8392 LD=$ac_cv_prog_LD
8393fi
8394
8395if test -n "$ac_cv_prog_LD"; then
8396 for ncn_progname in ld; do
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8398set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400$as_echo_n "checking for $ac_word... " >&6; }
8401if test "${ac_cv_prog_LD+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
9a819804
AO
8403else
8404 if test -n "$LD"; then
8405 ac_cv_prog_LD="$LD" # Let the user override the test.
8406else
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8414 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8416 break 2
8417 fi
8418done
81ecdfbb
RW
8419 done
8420IFS=$as_save_IFS
9a819804
AO
8421
8422fi
8423fi
8424LD=$ac_cv_prog_LD
8425if test -n "$LD"; then
81ecdfbb
RW
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8427$as_echo "$LD" >&6; }
9a819804 8428else
81ecdfbb
RW
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430$as_echo "no" >&6; }
9a819804
AO
8431fi
8432
81ecdfbb 8433
9a819804
AO
8434 done
8435fi
8436
8437for ncn_progname in ld; do
05cbd757
PB
8438 if test -n "$ncn_tool_prefix"; then
8439 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8440set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442$as_echo_n "checking for $ac_word... " >&6; }
8443if test "${ac_cv_prog_LD+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
859789af
AC
8445else
8446 if test -n "$LD"; then
8447 ac_cv_prog_LD="$LD" # Let the user override the test.
8448else
c6b750e1
DJ
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8456 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8458 break 2
8459 fi
8460done
81ecdfbb
RW
8461 done
8462IFS=$as_save_IFS
c6b750e1 8463
859789af
AC
8464fi
8465fi
c6b750e1 8466LD=$ac_cv_prog_LD
859789af 8467if test -n "$LD"; then
81ecdfbb
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8469$as_echo "$LD" >&6; }
859789af 8470else
81ecdfbb
RW
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
859789af
AC
8473fi
8474
81ecdfbb 8475
05cbd757
PB
8476 fi
8477 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8479set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481$as_echo_n "checking for $ac_word... " >&6; }
8482if test "${ac_cv_prog_LD+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
859789af 8484else
05cbd757
PB
8485 if test -n "$LD"; then
8486 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8487else
c6b750e1
DJ
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8495 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8497 break 2
8498 fi
8499done
81ecdfbb
RW
8500 done
8501IFS=$as_save_IFS
c6b750e1 8502
859789af
AC
8503fi
8504fi
c6b750e1 8505LD=$ac_cv_prog_LD
05cbd757 8506if test -n "$LD"; then
81ecdfbb
RW
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8508$as_echo "$LD" >&6; }
859789af 8509else
81ecdfbb
RW
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511$as_echo "no" >&6; }
859789af 8512fi
c6b750e1 8513
81ecdfbb 8514
05cbd757
PB
8515 fi
8516 test -n "$ac_cv_prog_LD" && break
8517done
8518
8519if test -z "$ac_cv_prog_LD" ; then
8520 set dummy ld
8521 if test $build = $host ; then
8522 LD="$2"
859789af 8523 else
05cbd757 8524 LD="${ncn_tool_prefix}$2"
859789af 8525 fi
859789af
AC
8526fi
8527
9a819804
AO
8528
8529
8530if test -n "$LIPO"; then
8531 ac_cv_prog_LIPO=$LIPO
8532elif test -n "$ac_cv_prog_LIPO"; then
8533 LIPO=$ac_cv_prog_LIPO
8534fi
8535
8536if test -n "$ac_cv_prog_LIPO"; then
8537 for ncn_progname in lipo; do
8538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8539set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
8542if test "${ac_cv_prog_LIPO+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
9a819804
AO
8544else
8545 if test -n "$LIPO"; then
8546 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8547else
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8555 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8557 break 2
8558 fi
8559done
81ecdfbb
RW
8560 done
8561IFS=$as_save_IFS
9a819804
AO
8562
8563fi
8564fi
8565LIPO=$ac_cv_prog_LIPO
8566if test -n "$LIPO"; then
81ecdfbb
RW
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8568$as_echo "$LIPO" >&6; }
9a819804 8569else
81ecdfbb
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
9a819804
AO
8572fi
8573
81ecdfbb 8574
9a819804
AO
8575 done
8576fi
8577
8578for ncn_progname in lipo; do
be01d343
PB
8579 if test -n "$ncn_tool_prefix"; then
8580 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8581set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if test "${ac_cv_prog_LIPO+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
be01d343
PB
8586else
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589else
c6b750e1
DJ
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8597 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8599 break 2
8600 fi
8601done
81ecdfbb
RW
8602 done
8603IFS=$as_save_IFS
c6b750e1 8604
be01d343
PB
8605fi
8606fi
c6b750e1 8607LIPO=$ac_cv_prog_LIPO
be01d343 8608if test -n "$LIPO"; then
81ecdfbb
RW
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610$as_echo "$LIPO" >&6; }
be01d343 8611else
81ecdfbb
RW
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
be01d343
PB
8614fi
8615
81ecdfbb 8616
be01d343
PB
8617 fi
8618 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8620set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622$as_echo_n "checking for $ac_word... " >&6; }
8623if test "${ac_cv_prog_LIPO+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
be01d343
PB
8625else
8626 if test -n "$LIPO"; then
8627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8628else
c6b750e1
DJ
8629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630for as_dir in $PATH
8631do
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8636 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8638 break 2
8639 fi
8640done
81ecdfbb
RW
8641 done
8642IFS=$as_save_IFS
c6b750e1 8643
be01d343
PB
8644fi
8645fi
c6b750e1 8646LIPO=$ac_cv_prog_LIPO
be01d343 8647if test -n "$LIPO"; then
81ecdfbb
RW
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8649$as_echo "$LIPO" >&6; }
be01d343 8650else
81ecdfbb
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652$as_echo "no" >&6; }
be01d343 8653fi
c6b750e1 8654
81ecdfbb 8655
be01d343
PB
8656 fi
8657 test -n "$ac_cv_prog_LIPO" && break
8658done
8659
8660if test -z "$ac_cv_prog_LIPO" ; then
8661 set dummy lipo
8662 if test $build = $host ; then
8663 LIPO="$2"
8664 else
8665 LIPO="${ncn_tool_prefix}$2"
8666 fi
8667fi
8668
9a819804
AO
8669
8670
8671if test -n "$NM"; then
8672 ac_cv_prog_NM=$NM
8673elif test -n "$ac_cv_prog_NM"; then
8674 NM=$ac_cv_prog_NM
8675fi
8676
8677if test -n "$ac_cv_prog_NM"; then
8678 for ncn_progname in nm; do
8679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8680set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682$as_echo_n "checking for $ac_word... " >&6; }
8683if test "${ac_cv_prog_NM+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
859789af
AC
8685else
8686 if test -n "$NM"; then
8687 ac_cv_prog_NM="$NM" # Let the user override the test.
8688else
c6b750e1
DJ
8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690for as_dir in $PATH
8691do
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8696 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8698 break 2
8699 fi
8700done
81ecdfbb
RW
8701 done
8702IFS=$as_save_IFS
c6b750e1 8703
859789af
AC
8704fi
8705fi
c6b750e1 8706NM=$ac_cv_prog_NM
859789af 8707if test -n "$NM"; then
81ecdfbb
RW
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8709$as_echo "$NM" >&6; }
859789af 8710else
81ecdfbb
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
859789af
AC
8713fi
8714
81ecdfbb 8715
9a819804
AO
8716 done
8717fi
8718
8719for ncn_progname in nm; do
8720 if test -n "$ncn_tool_prefix"; then
8721 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8722set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
8725if test "${ac_cv_prog_NM+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
859789af 8727else
05cbd757
PB
8728 if test -n "$NM"; then
8729 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8730else
c6b750e1
DJ
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8738 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8740 break 2
8741 fi
8742done
81ecdfbb
RW
8743 done
8744IFS=$as_save_IFS
c6b750e1 8745
859789af
AC
8746fi
8747fi
c6b750e1 8748NM=$ac_cv_prog_NM
05cbd757 8749if test -n "$NM"; then
81ecdfbb
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8751$as_echo "$NM" >&6; }
859789af 8752else
81ecdfbb
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
859789af 8755fi
c6b750e1 8756
81ecdfbb 8757
05cbd757 8758 fi
9a819804
AO
8759 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8761set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763$as_echo_n "checking for $ac_word... " >&6; }
8764if test "${ac_cv_prog_NM+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
9a819804
AO
8766else
8767 if test -n "$NM"; then
8768 ac_cv_prog_NM="$NM" # Let the user override the test.
8769else
8770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771for as_dir in $PATH
8772do
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8777 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8779 break 2
8780 fi
8781done
81ecdfbb
RW
8782 done
8783IFS=$as_save_IFS
9a819804
AO
8784
8785fi
8786fi
8787NM=$ac_cv_prog_NM
8788if test -n "$NM"; then
81ecdfbb
RW
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8790$as_echo "$NM" >&6; }
9a819804 8791else
81ecdfbb
RW
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
9a819804
AO
8794fi
8795
81ecdfbb 8796
9a819804
AO
8797 fi
8798 test -n "$ac_cv_prog_NM" && break
8799done
8800
8801if test -z "$ac_cv_prog_NM" ; then
8802 set dummy nm
8803 if test $build = $host ; then
8804 NM="$2"
8805 else
8806 NM="${ncn_tool_prefix}$2"
8807 fi
8808fi
8809
8810
8811
8812if test -n "$RANLIB"; then
8813 ac_cv_prog_RANLIB=$RANLIB
8814elif test -n "$ac_cv_prog_RANLIB"; then
8815 RANLIB=$ac_cv_prog_RANLIB
8816fi
8817
8818if test -n "$ac_cv_prog_RANLIB"; then
8819 for ncn_progname in ranlib; do
8820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8821set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823$as_echo_n "checking for $ac_word... " >&6; }
8824if test "${ac_cv_prog_RANLIB+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
9a819804
AO
8826else
8827 if test -n "$RANLIB"; then
8828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8829else
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8837 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8839 break 2
8840 fi
8841done
81ecdfbb
RW
8842 done
8843IFS=$as_save_IFS
9a819804
AO
8844
8845fi
8846fi
8847RANLIB=$ac_cv_prog_RANLIB
8848if test -n "$RANLIB"; then
81ecdfbb
RW
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8850$as_echo "$RANLIB" >&6; }
9a819804 8851else
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853$as_echo "no" >&6; }
9a819804
AO
8854fi
8855
81ecdfbb 8856
9a819804
AO
8857 done
8858fi
859789af 8859
9a819804 8860for ncn_progname in ranlib; do
05cbd757
PB
8861 if test -n "$ncn_tool_prefix"; then
8862 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8863set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if test "${ac_cv_prog_RANLIB+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
859789af
AC
8868else
8869 if test -n "$RANLIB"; then
8870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8871else
c6b750e1
DJ
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8879 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8881 break 2
8882 fi
8883done
81ecdfbb
RW
8884 done
8885IFS=$as_save_IFS
c6b750e1 8886
859789af
AC
8887fi
8888fi
c6b750e1 8889RANLIB=$ac_cv_prog_RANLIB
859789af 8890if test -n "$RANLIB"; then
81ecdfbb
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8892$as_echo "$RANLIB" >&6; }
859789af 8893else
81ecdfbb
RW
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
859789af
AC
8896fi
8897
81ecdfbb 8898
05cbd757
PB
8899 fi
8900 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8902set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904$as_echo_n "checking for $ac_word... " >&6; }
8905if test "${ac_cv_prog_RANLIB+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
859789af 8907else
05cbd757
PB
8908 if test -n "$RANLIB"; then
8909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8910else
c6b750e1
DJ
8911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912for as_dir in $PATH
8913do
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8918 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8920 break 2
8921 fi
8922done
81ecdfbb
RW
8923 done
8924IFS=$as_save_IFS
c6b750e1 8925
859789af
AC
8926fi
8927fi
c6b750e1 8928RANLIB=$ac_cv_prog_RANLIB
05cbd757 8929if test -n "$RANLIB"; then
81ecdfbb
RW
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8931$as_echo "$RANLIB" >&6; }
859789af 8932else
81ecdfbb
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
859789af 8935fi
c6b750e1 8936
81ecdfbb 8937
859789af 8938 fi
05cbd757
PB
8939 test -n "$ac_cv_prog_RANLIB" && break
8940done
8941
8942if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8943 RANLIB="true"
859789af
AC
8944fi
8945
9a819804
AO
8946
8947
8948if test -n "$STRIP"; then
8949 ac_cv_prog_STRIP=$STRIP
8950elif test -n "$ac_cv_prog_STRIP"; then
8951 STRIP=$ac_cv_prog_STRIP
8952fi
8953
8954if test -n "$ac_cv_prog_STRIP"; then
8955 for ncn_progname in strip; do
8956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8957set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959$as_echo_n "checking for $ac_word... " >&6; }
8960if test "${ac_cv_prog_STRIP+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
9a819804
AO
8962else
8963 if test -n "$STRIP"; then
8964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8965else
8966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $PATH
8968do
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8973 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8975 break 2
8976 fi
8977done
81ecdfbb
RW
8978 done
8979IFS=$as_save_IFS
9a819804
AO
8980
8981fi
8982fi
8983STRIP=$ac_cv_prog_STRIP
8984if test -n "$STRIP"; then
81ecdfbb
RW
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8986$as_echo "$STRIP" >&6; }
9a819804 8987else
81ecdfbb
RW
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989$as_echo "no" >&6; }
9a819804
AO
8990fi
8991
81ecdfbb 8992
9a819804
AO
8993 done
8994fi
8995
8996for ncn_progname in strip; do
be01d343
PB
8997 if test -n "$ncn_tool_prefix"; then
8998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8999set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001$as_echo_n "checking for $ac_word... " >&6; }
9002if test "${ac_cv_prog_STRIP+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
be01d343
PB
9004else
9005 if test -n "$STRIP"; then
9006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9007else
c6b750e1
DJ
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9015 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9017 break 2
9018 fi
9019done
81ecdfbb
RW
9020 done
9021IFS=$as_save_IFS
c6b750e1 9022
be01d343
PB
9023fi
9024fi
c6b750e1 9025STRIP=$ac_cv_prog_STRIP
be01d343 9026if test -n "$STRIP"; then
81ecdfbb
RW
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9028$as_echo "$STRIP" >&6; }
be01d343 9029else
81ecdfbb
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031$as_echo "no" >&6; }
be01d343
PB
9032fi
9033
81ecdfbb 9034
be01d343
PB
9035 fi
9036 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9038set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
9041if test "${ac_cv_prog_STRIP+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
be01d343
PB
9043else
9044 if test -n "$STRIP"; then
9045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9046else
c6b750e1
DJ
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9054 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9056 break 2
9057 fi
9058done
81ecdfbb
RW
9059 done
9060IFS=$as_save_IFS
c6b750e1 9061
be01d343
PB
9062fi
9063fi
c6b750e1 9064STRIP=$ac_cv_prog_STRIP
be01d343 9065if test -n "$STRIP"; then
81ecdfbb
RW
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9067$as_echo "$STRIP" >&6; }
be01d343 9068else
81ecdfbb
RW
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
be01d343 9071fi
c6b750e1 9072
81ecdfbb 9073
be01d343
PB
9074 fi
9075 test -n "$ac_cv_prog_STRIP" && break
9076done
9077
9078if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9079 STRIP="true"
be01d343
PB
9080fi
9081
9a819804
AO
9082
9083
9084if test -n "$WINDRES"; then
9085 ac_cv_prog_WINDRES=$WINDRES
9086elif test -n "$ac_cv_prog_WINDRES"; then
9087 WINDRES=$ac_cv_prog_WINDRES
9088fi
9089
9090if test -n "$ac_cv_prog_WINDRES"; then
9091 for ncn_progname in windres; do
9092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9093set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095$as_echo_n "checking for $ac_word... " >&6; }
9096if test "${ac_cv_prog_WINDRES+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9a819804
AO
9098else
9099 if test -n "$WINDRES"; then
9100 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9101else
9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103for as_dir in $PATH
9104do
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9109 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9111 break 2
9112 fi
9113done
81ecdfbb
RW
9114 done
9115IFS=$as_save_IFS
9a819804
AO
9116
9117fi
9118fi
9119WINDRES=$ac_cv_prog_WINDRES
9120if test -n "$WINDRES"; then
81ecdfbb
RW
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9122$as_echo "$WINDRES" >&6; }
9a819804 9123else
81ecdfbb
RW
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125$as_echo "no" >&6; }
9a819804
AO
9126fi
9127
81ecdfbb 9128
9a819804
AO
9129 done
9130fi
9131
9132for ncn_progname in windres; do
05cbd757
PB
9133 if test -n "$ncn_tool_prefix"; then
9134 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9135set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137$as_echo_n "checking for $ac_word... " >&6; }
9138if test "${ac_cv_prog_WINDRES+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
859789af
AC
9140else
9141 if test -n "$WINDRES"; then
9142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9143else
c6b750e1
DJ
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9151 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9153 break 2
9154 fi
9155done
81ecdfbb
RW
9156 done
9157IFS=$as_save_IFS
c6b750e1 9158
859789af
AC
9159fi
9160fi
c6b750e1 9161WINDRES=$ac_cv_prog_WINDRES
859789af 9162if test -n "$WINDRES"; then
81ecdfbb
RW
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9164$as_echo "$WINDRES" >&6; }
859789af 9165else
81ecdfbb
RW
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167$as_echo "no" >&6; }
859789af
AC
9168fi
9169
81ecdfbb 9170
05cbd757
PB
9171 fi
9172 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9174set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176$as_echo_n "checking for $ac_word... " >&6; }
9177if test "${ac_cv_prog_WINDRES+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
859789af 9179else
05cbd757
PB
9180 if test -n "$WINDRES"; then
9181 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9182else
c6b750e1
DJ
9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184for as_dir in $PATH
9185do
9186 IFS=$as_save_IFS
9187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9190 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9192 break 2
9193 fi
9194done
81ecdfbb
RW
9195 done
9196IFS=$as_save_IFS
c6b750e1 9197
859789af
AC
9198fi
9199fi
c6b750e1 9200WINDRES=$ac_cv_prog_WINDRES
05cbd757 9201if test -n "$WINDRES"; then
81ecdfbb
RW
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9203$as_echo "$WINDRES" >&6; }
859789af 9204else
81ecdfbb
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206$as_echo "no" >&6; }
859789af 9207fi
c6b750e1 9208
81ecdfbb 9209
05cbd757
PB
9210 fi
9211 test -n "$ac_cv_prog_WINDRES" && break
9212done
9213
9214if test -z "$ac_cv_prog_WINDRES" ; then
9215 set dummy windres
9216 if test $build = $host ; then
9217 WINDRES="$2"
859789af 9218 else
05cbd757 9219 WINDRES="${ncn_tool_prefix}$2"
859789af 9220 fi
859789af
AC
9221fi
9222
9a819804
AO
9223
9224
0c24b341
NC
9225if test -n "$WINDMC"; then
9226 ac_cv_prog_WINDMC=$WINDMC
9227elif test -n "$ac_cv_prog_WINDMC"; then
9228 WINDMC=$ac_cv_prog_WINDMC
9229fi
9230
9231if test -n "$ac_cv_prog_WINDMC"; then
9232 for ncn_progname in windmc; do
9233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9234set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236$as_echo_n "checking for $ac_word... " >&6; }
9237if test "${ac_cv_prog_WINDMC+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
0c24b341
NC
9239else
9240 if test -n "$WINDMC"; then
9241 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9242else
9243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244for as_dir in $PATH
9245do
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9250 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9252 break 2
9253 fi
9254done
81ecdfbb
RW
9255 done
9256IFS=$as_save_IFS
0c24b341
NC
9257
9258fi
9259fi
9260WINDMC=$ac_cv_prog_WINDMC
9261if test -n "$WINDMC"; then
81ecdfbb
RW
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9263$as_echo "$WINDMC" >&6; }
0c24b341 9264else
81ecdfbb
RW
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266$as_echo "no" >&6; }
0c24b341
NC
9267fi
9268
81ecdfbb 9269
0c24b341
NC
9270 done
9271fi
9272
9273for ncn_progname in windmc; do
9274 if test -n "$ncn_tool_prefix"; then
9275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9276set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278$as_echo_n "checking for $ac_word... " >&6; }
9279if test "${ac_cv_prog_WINDMC+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
0c24b341
NC
9281else
9282 if test -n "$WINDMC"; then
9283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9284else
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9292 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9294 break 2
9295 fi
9296done
81ecdfbb
RW
9297 done
9298IFS=$as_save_IFS
0c24b341
NC
9299
9300fi
9301fi
9302WINDMC=$ac_cv_prog_WINDMC
9303if test -n "$WINDMC"; then
81ecdfbb
RW
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9305$as_echo "$WINDMC" >&6; }
0c24b341 9306else
81ecdfbb
RW
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
0c24b341
NC
9309fi
9310
81ecdfbb 9311
0c24b341
NC
9312 fi
9313 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9315set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317$as_echo_n "checking for $ac_word... " >&6; }
9318if test "${ac_cv_prog_WINDMC+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
0c24b341
NC
9320else
9321 if test -n "$WINDMC"; then
9322 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9323else
9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in $PATH
9326do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9331 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9333 break 2
9334 fi
9335done
81ecdfbb
RW
9336 done
9337IFS=$as_save_IFS
0c24b341
NC
9338
9339fi
9340fi
9341WINDMC=$ac_cv_prog_WINDMC
9342if test -n "$WINDMC"; then
81ecdfbb
RW
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9344$as_echo "$WINDMC" >&6; }
0c24b341 9345else
81ecdfbb
RW
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347$as_echo "no" >&6; }
0c24b341
NC
9348fi
9349
81ecdfbb 9350
0c24b341
NC
9351 fi
9352 test -n "$ac_cv_prog_WINDMC" && break
9353done
9354
9355if test -z "$ac_cv_prog_WINDMC" ; then
9356 set dummy windmc
9357 if test $build = $host ; then
9358 WINDMC="$2"
9359 else
9360 WINDMC="${ncn_tool_prefix}$2"
9361 fi
9362fi
9363
9364
9365
9a819804
AO
9366if test -n "$OBJCOPY"; then
9367 ac_cv_prog_OBJCOPY=$OBJCOPY
9368elif test -n "$ac_cv_prog_OBJCOPY"; then
9369 OBJCOPY=$ac_cv_prog_OBJCOPY
9370fi
9371
9372if test -n "$ac_cv_prog_OBJCOPY"; then
9373 for ncn_progname in objcopy; do
9374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9375set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377$as_echo_n "checking for $ac_word... " >&6; }
9378if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9a819804
AO
9380else
9381 if test -n "$OBJCOPY"; then
9382 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9383else
9384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385for as_dir in $PATH
9386do
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9391 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9393 break 2
9394 fi
9395done
81ecdfbb
RW
9396 done
9397IFS=$as_save_IFS
9a819804
AO
9398
9399fi
9400fi
9401OBJCOPY=$ac_cv_prog_OBJCOPY
9402if test -n "$OBJCOPY"; then
81ecdfbb
RW
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9404$as_echo "$OBJCOPY" >&6; }
9a819804 9405else
81ecdfbb
RW
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407$as_echo "no" >&6; }
9a819804
AO
9408fi
9409
81ecdfbb 9410
9a819804
AO
9411 done
9412fi
9413
9414for ncn_progname in objcopy; do
05cbd757
PB
9415 if test -n "$ncn_tool_prefix"; then
9416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9417set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419$as_echo_n "checking for $ac_word... " >&6; }
9420if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
859789af
AC
9422else
9423 if test -n "$OBJCOPY"; then
9424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9425else
c6b750e1
DJ
9426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427for as_dir in $PATH
9428do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9433 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9435 break 2
9436 fi
9437done
81ecdfbb
RW
9438 done
9439IFS=$as_save_IFS
c6b750e1 9440
859789af
AC
9441fi
9442fi
c6b750e1 9443OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9444if test -n "$OBJCOPY"; then
81ecdfbb
RW
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9446$as_echo "$OBJCOPY" >&6; }
859789af 9447else
81ecdfbb
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
859789af
AC
9450fi
9451
81ecdfbb 9452
05cbd757
PB
9453 fi
9454 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9456set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458$as_echo_n "checking for $ac_word... " >&6; }
9459if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
859789af 9461else
05cbd757
PB
9462 if test -n "$OBJCOPY"; then
9463 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9464else
c6b750e1
DJ
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9472 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9474 break 2
9475 fi
9476done
81ecdfbb
RW
9477 done
9478IFS=$as_save_IFS
c6b750e1 9479
859789af
AC
9480fi
9481fi
c6b750e1 9482OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9483if test -n "$OBJCOPY"; then
81ecdfbb
RW
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9485$as_echo "$OBJCOPY" >&6; }
859789af 9486else
81ecdfbb
RW
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
859789af 9489fi
c6b750e1 9490
81ecdfbb 9491
05cbd757
PB
9492 fi
9493 test -n "$ac_cv_prog_OBJCOPY" && break
9494done
9495
9496if test -z "$ac_cv_prog_OBJCOPY" ; then
9497 set dummy objcopy
9498 if test $build = $host ; then
9499 OBJCOPY="$2"
859789af 9500 else
05cbd757 9501 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9502 fi
859789af
AC
9503fi
9504
9a819804
AO
9505
9506
9507if test -n "$OBJDUMP"; then
9508 ac_cv_prog_OBJDUMP=$OBJDUMP
9509elif test -n "$ac_cv_prog_OBJDUMP"; then
9510 OBJDUMP=$ac_cv_prog_OBJDUMP
9511fi
9512
9513if test -n "$ac_cv_prog_OBJDUMP"; then
9514 for ncn_progname in objdump; do
9515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9516set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518$as_echo_n "checking for $ac_word... " >&6; }
9519if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9a819804
AO
9521else
9522 if test -n "$OBJDUMP"; then
9523 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9524else
9525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526for as_dir in $PATH
9527do
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9532 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9534 break 2
9535 fi
9536done
81ecdfbb
RW
9537 done
9538IFS=$as_save_IFS
9a819804
AO
9539
9540fi
9541fi
9542OBJDUMP=$ac_cv_prog_OBJDUMP
9543if test -n "$OBJDUMP"; then
81ecdfbb
RW
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9545$as_echo "$OBJDUMP" >&6; }
9a819804 9546else
81ecdfbb
RW
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548$as_echo "no" >&6; }
9a819804
AO
9549fi
9550
81ecdfbb 9551
9a819804
AO
9552 done
9553fi
9554
9555for ncn_progname in objdump; do
05cbd757
PB
9556 if test -n "$ncn_tool_prefix"; then
9557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9558set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
859789af
AC
9563else
9564 if test -n "$OBJDUMP"; then
9565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9566else
c6b750e1
DJ
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9574 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9576 break 2
9577 fi
9578done
81ecdfbb
RW
9579 done
9580IFS=$as_save_IFS
c6b750e1 9581
859789af
AC
9582fi
9583fi
c6b750e1 9584OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9585if test -n "$OBJDUMP"; then
81ecdfbb
RW
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9587$as_echo "$OBJDUMP" >&6; }
859789af 9588else
81ecdfbb
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
859789af
AC
9591fi
9592
81ecdfbb 9593
05cbd757
PB
9594 fi
9595 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9597set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599$as_echo_n "checking for $ac_word... " >&6; }
9600if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
859789af 9602else
05cbd757
PB
9603 if test -n "$OBJDUMP"; then
9604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9605else
c6b750e1
DJ
9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9613 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9615 break 2
9616 fi
9617done
81ecdfbb
RW
9618 done
9619IFS=$as_save_IFS
c6b750e1 9620
859789af
AC
9621fi
9622fi
c6b750e1 9623OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9624if test -n "$OBJDUMP"; then
81ecdfbb
RW
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9626$as_echo "$OBJDUMP" >&6; }
859789af 9627else
81ecdfbb
RW
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629$as_echo "no" >&6; }
859789af 9630fi
c6b750e1 9631
81ecdfbb 9632
05cbd757
PB
9633 fi
9634 test -n "$ac_cv_prog_OBJDUMP" && break
9635done
9636
9637if test -z "$ac_cv_prog_OBJDUMP" ; then
9638 set dummy objdump
9639 if test $build = $host ; then
9640 OBJDUMP="$2"
859789af 9641 else
05cbd757 9642 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9643 fi
859789af
AC
9644fi
9645
a0da8069
NN
9646
9647
9648
9649
9650
be01d343 9651# Target tools.
c6b750e1 9652
81ecdfbb
RW
9653# Check whether --with-build-time-tools was given.
9654if test "${with_build_time_tools+set}" = set; then :
9655 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9656 x/*) ;;
9657 *)
9658 with_build_time_tools=
81ecdfbb
RW
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9660$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9661 ;;
9662 esac
859789af 9663else
2429c060 9664 with_build_time_tools=
81ecdfbb
RW
9665fi
9666
859789af 9667
9a819804
AO
9668
9669
9670if test -n "$CC_FOR_TARGET"; then
9671 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9672elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9673 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9674fi
9675
9676if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9677 for ncn_progname in cc gcc; do
9678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9679set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681$as_echo_n "checking for $ac_word... " >&6; }
9682if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9a819804
AO
9684else
9685 if test -n "$CC_FOR_TARGET"; then
9686 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9687else
9688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689for as_dir in $PATH
9690do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9695 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9697 break 2
9698 fi
9699done
81ecdfbb
RW
9700 done
9701IFS=$as_save_IFS
9a819804
AO
9702
9703fi
9704fi
9705CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9706if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9708$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9709else
81ecdfbb
RW
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711$as_echo "no" >&6; }
9a819804
AO
9712fi
9713
81ecdfbb 9714
9a819804
AO
9715 done
9716fi
9717
9718if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9719 for ncn_progname in cc gcc; do
81ecdfbb
RW
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9721$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9722 if test -x $with_build_time_tools/${ncn_progname}; then
9723 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9725$as_echo "yes" >&6; }
cac3d6c4 9726 break
2429c060 9727 else
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
cac3d6c4
CM
9730 fi
9731 done
55db4b87
PB
9732fi
9733
2429c060
PB
9734if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9735 for ncn_progname in cc gcc; do
9736 if test -n "$ncn_target_tool_prefix"; then
9737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9738set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740$as_echo_n "checking for $ac_word... " >&6; }
9741if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9742 $as_echo_n "(cached) " >&6
55db4b87
PB
9743else
9744 if test -n "$CC_FOR_TARGET"; then
9745 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9746else
c6b750e1
DJ
9747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748for as_dir in $PATH
9749do
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9754 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9756 break 2
9757 fi
9758done
81ecdfbb
RW
9759 done
9760IFS=$as_save_IFS
c6b750e1 9761
55db4b87
PB
9762fi
9763fi
c6b750e1 9764CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9765if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9767$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9768else
81ecdfbb
RW
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770$as_echo "no" >&6; }
55db4b87
PB
9771fi
9772
81ecdfbb 9773
2429c060
PB
9774 fi
9775 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9777set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
9780if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9781 $as_echo_n "(cached) " >&6
55db4b87 9782else
05cbd757
PB
9783 if test -n "$CC_FOR_TARGET"; then
9784 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9785else
c6b750e1
DJ
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9793 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9795 break 2
9796 fi
9797done
81ecdfbb
RW
9798 done
9799IFS=$as_save_IFS
c6b750e1 9800
55db4b87
PB
9801fi
9802fi
c6b750e1 9803CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9804if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9806$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9807else
81ecdfbb
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
55db4b87 9810fi
c6b750e1 9811
81ecdfbb 9812
2429c060
PB
9813 fi
9814 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9815 done
9816fi
c6b750e1 9817
05cbd757
PB
9818if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9819 set dummy cc gcc
9820 if test $build = $target ; then
9821 CC_FOR_TARGET="$2"
55db4b87 9822 else
05cbd757 9823 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9824 fi
d3f5afc4
MS
9825else
9826 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9827fi
9828
9a819804
AO
9829
9830
9831if test -n "$CXX_FOR_TARGET"; then
9832 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9833elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9834 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9835fi
9836
9837if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9838 for ncn_progname in c++ g++ cxx gxx; do
9839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9840set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842$as_echo_n "checking for $ac_word... " >&6; }
9843if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9a819804
AO
9845else
9846 if test -n "$CXX_FOR_TARGET"; then
9847 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9848else
9849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850for as_dir in $PATH
9851do
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9856 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9858 break 2
9859 fi
9860done
81ecdfbb
RW
9861 done
9862IFS=$as_save_IFS
9a819804
AO
9863
9864fi
9865fi
9866CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9867if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9869$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9870else
81ecdfbb
RW
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9a819804
AO
9873fi
9874
81ecdfbb 9875
9a819804
AO
9876 done
9877fi
9878
9879if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9880 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9882$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9883 if test -x $with_build_time_tools/${ncn_progname}; then
9884 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9886$as_echo "yes" >&6; }
2429c060
PB
9887 break
9888 else
81ecdfbb
RW
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890$as_echo "no" >&6; }
2429c060
PB
9891 fi
9892 done
9893fi
9894
9895if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9896 for ncn_progname in c++ g++ cxx gxx; do
9897 if test -n "$ncn_target_tool_prefix"; then
9898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9899set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901$as_echo_n "checking for $ac_word... " >&6; }
9902if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
55db4b87
PB
9904else
9905 if test -n "$CXX_FOR_TARGET"; then
9906 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9907else
c6b750e1
DJ
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9915 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9917 break 2
9918 fi
9919done
81ecdfbb
RW
9920 done
9921IFS=$as_save_IFS
c6b750e1 9922
55db4b87
PB
9923fi
9924fi
c6b750e1 9925CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9926if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9928$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9929else
81ecdfbb
RW
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931$as_echo "no" >&6; }
55db4b87
PB
9932fi
9933
81ecdfbb 9934
2429c060
PB
9935 fi
9936 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9938set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940$as_echo_n "checking for $ac_word... " >&6; }
9941if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
55db4b87 9943else
05cbd757
PB
9944 if test -n "$CXX_FOR_TARGET"; then
9945 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9946else
c6b750e1
DJ
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9954 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9956 break 2
9957 fi
9958done
81ecdfbb
RW
9959 done
9960IFS=$as_save_IFS
c6b750e1 9961
55db4b87
PB
9962fi
9963fi
c6b750e1 9964CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9965if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9967$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9968else
81ecdfbb
RW
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
55db4b87 9971fi
c6b750e1 9972
81ecdfbb 9973
2429c060
PB
9974 fi
9975 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9976 done
9977fi
c6b750e1 9978
05cbd757
PB
9979if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9980 set dummy c++ g++ cxx gxx
9981 if test $build = $target ; then
9982 CXX_FOR_TARGET="$2"
55db4b87 9983 else
05cbd757 9984 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9985 fi
d3f5afc4
MS
9986else
9987 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9988fi
9989
9a819804
AO
9990
9991
9992if test -n "$GCC_FOR_TARGET"; then
9993 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9994elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9995 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9996fi
9997
9998if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9999 for ncn_progname in gcc; do
10000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10001set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003$as_echo_n "checking for $ac_word... " >&6; }
10004if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
9a819804
AO
10006else
10007 if test -n "$GCC_FOR_TARGET"; then
10008 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10017 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10019 break 2
10020 fi
10021done
81ecdfbb
RW
10022 done
10023IFS=$as_save_IFS
9a819804
AO
10024
10025fi
10026fi
10027GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10028if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10030$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10031else
81ecdfbb
RW
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033$as_echo "no" >&6; }
9a819804
AO
10034fi
10035
81ecdfbb 10036
9a819804
AO
10037 done
10038fi
10039
10040if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10041 for ncn_progname in gcc; do
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10043$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10044 if test -x $with_build_time_tools/${ncn_progname}; then
10045 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10047$as_echo "yes" >&6; }
2429c060
PB
10048 break
10049 else
81ecdfbb
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
2429c060
PB
10052 fi
10053 done
10054fi
10055
10056if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10057 for ncn_progname in gcc; do
10058 if test -n "$ncn_target_tool_prefix"; then
10059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10060set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062$as_echo_n "checking for $ac_word... " >&6; }
10063if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
859789af 10065else
2429c060
PB
10066 if test -n "$GCC_FOR_TARGET"; then
10067 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10068else
c6b750e1
DJ
10069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070for as_dir in $PATH
10071do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10076 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10078 break 2
10079 fi
10080done
81ecdfbb
RW
10081 done
10082IFS=$as_save_IFS
c6b750e1 10083
55db4b87
PB
10084fi
10085fi
c6b750e1 10086GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10087if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10089$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10090else
81ecdfbb
RW
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
55db4b87
PB
10093fi
10094
81ecdfbb 10095
2429c060
PB
10096 fi
10097 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10099set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101$as_echo_n "checking for $ac_word... " >&6; }
10102if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
55db4b87 10104else
05cbd757
PB
10105 if test -n "$GCC_FOR_TARGET"; then
10106 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10107else
c6b750e1
DJ
10108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10115 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10117 break 2
10118 fi
10119done
81ecdfbb
RW
10120 done
10121IFS=$as_save_IFS
c6b750e1 10122
55db4b87
PB
10123fi
10124fi
c6b750e1 10125GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10126if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10128$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10129else
81ecdfbb
RW
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131$as_echo "no" >&6; }
55db4b87 10132fi
c6b750e1 10133
81ecdfbb 10134
2429c060
PB
10135 fi
10136 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10137 done
10138fi
c6b750e1 10139
05cbd757
PB
10140if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10141 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10142else
10143 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10144fi
10145
9a819804
AO
10146
10147
10148if test -n "$GCJ_FOR_TARGET"; then
10149 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10150elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10151 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10152fi
10153
10154if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10155 for ncn_progname in gcj; do
10156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10157set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159$as_echo_n "checking for $ac_word... " >&6; }
10160if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
9a819804
AO
10162else
10163 if test -n "$GCJ_FOR_TARGET"; then
10164 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10165else
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10173 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10175 break 2
10176 fi
10177done
81ecdfbb
RW
10178 done
10179IFS=$as_save_IFS
9a819804
AO
10180
10181fi
10182fi
10183GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10184if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10186$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10187else
81ecdfbb
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
9a819804
AO
10190fi
10191
81ecdfbb 10192
9a819804
AO
10193 done
10194fi
10195
10196if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10197 for ncn_progname in gcj; do
81ecdfbb
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10199$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10200 if test -x $with_build_time_tools/${ncn_progname}; then
10201 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10203$as_echo "yes" >&6; }
2429c060
PB
10204 break
10205 else
81ecdfbb
RW
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207$as_echo "no" >&6; }
2429c060
PB
10208 fi
10209 done
10210fi
10211
10212if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10213 for ncn_progname in gcj; do
10214 if test -n "$ncn_target_tool_prefix"; then
10215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10216set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218$as_echo_n "checking for $ac_word... " >&6; }
10219if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
55db4b87
PB
10221else
10222 if test -n "$GCJ_FOR_TARGET"; then
10223 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10224else
c6b750e1
DJ
10225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10232 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10234 break 2
10235 fi
10236done
81ecdfbb
RW
10237 done
10238IFS=$as_save_IFS
c6b750e1 10239
55db4b87
PB
10240fi
10241fi
9a819804
AO
10242GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10243if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10245$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10246else
81ecdfbb
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
9a819804
AO
10249fi
10250
81ecdfbb 10251
9a819804
AO
10252 fi
10253 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10255set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257$as_echo_n "checking for $ac_word... " >&6; }
10258if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
9a819804
AO
10260else
10261 if test -n "$GCJ_FOR_TARGET"; then
10262 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10263else
10264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265for as_dir in $PATH
10266do
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10271 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10273 break 2
10274 fi
10275done
81ecdfbb
RW
10276 done
10277IFS=$as_save_IFS
9a819804
AO
10278
10279fi
10280fi
10281GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10282if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10284$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10285else
81ecdfbb
RW
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287$as_echo "no" >&6; }
9a819804
AO
10288fi
10289
81ecdfbb 10290
9a819804
AO
10291 fi
10292 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10293 done
10294fi
10295
10296if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10297 set dummy gcj
10298 if test $build = $target ; then
10299 GCJ_FOR_TARGET="$2"
10300 else
10301 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10302 fi
d3f5afc4
MS
10303else
10304 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10305fi
10306
10307
10308
10309if test -n "$GFORTRAN_FOR_TARGET"; then
10310 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10311elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10312 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10313fi
10314
9a819804
AO
10315if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10316 for ncn_progname in gfortran; do
10317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10318set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320$as_echo_n "checking for $ac_word... " >&6; }
10321if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
55db4b87 10323else
9a819804
AO
10324 if test -n "$GFORTRAN_FOR_TARGET"; then
10325 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10326else
c6b750e1
DJ
10327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10334 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10336 break 2
10337 fi
10338done
81ecdfbb
RW
10339 done
10340IFS=$as_save_IFS
c6b750e1 10341
55db4b87
PB
10342fi
10343fi
9a819804
AO
10344GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10345if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10347$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10348else
81ecdfbb
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
55db4b87 10351fi
c6b750e1 10352
81ecdfbb 10353
2429c060
PB
10354 done
10355fi
c6b750e1 10356
9a819804 10357if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10358 for ncn_progname in gfortran; do
81ecdfbb
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10360$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10361 if test -x $with_build_time_tools/${ncn_progname}; then
10362 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10364$as_echo "yes" >&6; }
2429c060
PB
10365 break
10366 else
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
2429c060
PB
10369 fi
10370 done
10371fi
10372
10373if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10374 for ncn_progname in gfortran; do
10375 if test -n "$ncn_target_tool_prefix"; then
10376 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10377set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379$as_echo_n "checking for $ac_word... " >&6; }
10380if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
55db4b87
PB
10382else
10383 if test -n "$GFORTRAN_FOR_TARGET"; then
10384 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10385else
c6b750e1
DJ
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10393 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10395 break 2
10396 fi
10397done
81ecdfbb
RW
10398 done
10399IFS=$as_save_IFS
c6b750e1 10400
55db4b87
PB
10401fi
10402fi
c6b750e1 10403GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10404if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10406$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10407else
81ecdfbb
RW
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
55db4b87
PB
10410fi
10411
81ecdfbb 10412
2429c060
PB
10413 fi
10414 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10416set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418$as_echo_n "checking for $ac_word... " >&6; }
10419if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10420 $as_echo_n "(cached) " >&6
55db4b87 10421else
05cbd757 10422 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10423 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10424else
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10432 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10434 break 2
10435 fi
10436done
81ecdfbb
RW
10437 done
10438IFS=$as_save_IFS
c6b750e1 10439
55db4b87
PB
10440fi
10441fi
c6b750e1 10442GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10443if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10445$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10446else
81ecdfbb
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448$as_echo "no" >&6; }
55db4b87 10449fi
c6b750e1 10450
81ecdfbb 10451
2429c060
PB
10452 fi
10453 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10454 done
10455fi
c6b750e1 10456
05cbd757
PB
10457if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10458 set dummy gfortran
10459 if test $build = $target ; then
10460 GFORTRAN_FOR_TARGET="$2"
55db4b87 10461 else
05cbd757 10462 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10463 fi
d3f5afc4
MS
10464else
10465 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10466fi
10467
2429c060
PB
10468
10469
e552509b
ILT
10470if test -n "$GOC_FOR_TARGET"; then
10471 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10472elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10473 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10474fi
10475
10476if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10477 for ncn_progname in gccgo; do
10478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479set dummy ${ncn_progname}; ac_word=$2
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
10482if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484else
10485 if test -n "$GOC_FOR_TARGET"; then
10486 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10487else
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499done
10500 done
10501IFS=$as_save_IFS
10502
10503fi
10504fi
10505GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10506if test -n "$GOC_FOR_TARGET"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10508$as_echo "$GOC_FOR_TARGET" >&6; }
10509else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513
10514
10515 done
10516fi
10517
10518if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10519 for ncn_progname in gccgo; do
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10521$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10522 if test -x $with_build_time_tools/${ncn_progname}; then
10523 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10525$as_echo "yes" >&6; }
10526 break
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529$as_echo "no" >&6; }
10530 fi
10531 done
10532fi
10533
10534if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10535 for ncn_progname in gccgo; do
10536 if test -n "$ncn_target_tool_prefix"; then
10537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10538set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540$as_echo_n "checking for $ac_word... " >&6; }
10541if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543else
10544 if test -n "$GOC_FOR_TARGET"; then
10545 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10546else
10547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH
10549do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558done
10559 done
10560IFS=$as_save_IFS
10561
10562fi
10563fi
10564GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10565if test -n "$GOC_FOR_TARGET"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10567$as_echo "$GOC_FOR_TARGET" >&6; }
10568else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571fi
10572
10573
10574 fi
10575 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10577set dummy ${ncn_progname}; ac_word=$2
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579$as_echo_n "checking for $ac_word... " >&6; }
10580if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10582else
10583 if test -n "$GOC_FOR_TARGET"; then
10584 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598 done
10599IFS=$as_save_IFS
10600
10601fi
10602fi
10603GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10604if test -n "$GOC_FOR_TARGET"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10606$as_echo "$GOC_FOR_TARGET" >&6; }
10607else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611
10612
10613 fi
10614 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10615 done
10616fi
10617
10618if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10619 set dummy gccgo
10620 if test $build = $target ; then
10621 GOC_FOR_TARGET="$2"
10622 else
10623 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10624 fi
10625else
10626 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10627fi
10628
10629
10630
2429c060
PB
10631cat > conftest.c << \EOF
10632#ifdef __GNUC__
10633 gcc_yay;
10634#endif
10635EOF
10636if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10637 have_gcc_for_target=yes
859789af 10638else
2429c060
PB
10639 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10640 have_gcc_for_target=no
859789af 10641fi
2429c060
PB
10642rm conftest.c
10643
10644
10645
859789af 10646
2429c060
PB
10647if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10648 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10650$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10651 if test -x $with_build_time_tools/ar; then
10652 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10653 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10655$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10656 else
81ecdfbb
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658$as_echo "no" >&6; }
3a35eeb3 10659 fi
2429c060
PB
10660 elif test $build != $host && test $have_gcc_for_target = yes; then
10661 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10662 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10663 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10664 fi
2429c060 10665fi
c6b750e1 10666if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10667 # Extract the first word of "ar", so it can be a program name with args.
10668set dummy ar; ac_word=$2
81ecdfbb
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
859789af 10673else
c6b750e1
DJ
10674 case $AR_FOR_TARGET in
10675 [\\/]* | ?:[\\/]*)
2429c060
PB
10676 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10677 ;;
2429c060 10678 *)
c6b750e1
DJ
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $gcc_cv_tool_dirs
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10686 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10688 break 2
10689 fi
10690done
81ecdfbb
RW
10691 done
10692IFS=$as_save_IFS
c6b750e1 10693
2429c060
PB
10694 ;;
10695esac
859789af 10696fi
c6b750e1 10697AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10698if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10700$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10701else
81ecdfbb
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
859789af 10704fi
05cbd757 10705
81ecdfbb 10706
2429c060
PB
10707fi
10708if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10709
10710
10711if test -n "$AR_FOR_TARGET"; then
10712 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10713elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10714 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10715fi
10716
10717if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10718 for ncn_progname in ar; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
10723if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
9a819804
AO
10725else
10726 if test -n "$AR_FOR_TARGET"; then
10727 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10736 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10738 break 2
10739 fi
10740done
81ecdfbb
RW
10741 done
10742IFS=$as_save_IFS
9a819804
AO
10743
10744fi
10745fi
10746AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10747if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10749$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10750else
81ecdfbb
RW
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
9a819804
AO
10753fi
10754
81ecdfbb 10755
9a819804
AO
10756 done
10757fi
10758
10759if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10760 for ncn_progname in ar; do
81ecdfbb
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10763 if test -x $with_build_time_tools/${ncn_progname}; then
10764 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766$as_echo "yes" >&6; }
2429c060
PB
10767 break
10768 else
81ecdfbb
RW
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
2429c060
PB
10771 fi
10772 done
859789af
AC
10773fi
10774
2429c060
PB
10775if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10776 for ncn_progname in ar; do
10777 if test -n "$ncn_target_tool_prefix"; then
10778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10779set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
7e0f7140 10784else
2429c060
PB
10785 if test -n "$AR_FOR_TARGET"; then
10786 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10787else
c6b750e1
DJ
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10795 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10797 break 2
10798 fi
10799done
81ecdfbb
RW
10800 done
10801IFS=$as_save_IFS
c6b750e1 10802
7e0f7140
GK
10803fi
10804fi
c6b750e1 10805AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10806if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10808$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10809else
81ecdfbb
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
7e0f7140
GK
10812fi
10813
81ecdfbb 10814
2429c060
PB
10815 fi
10816 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10818set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820$as_echo_n "checking for $ac_word... " >&6; }
10821if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
7e0f7140 10823else
2429c060
PB
10824 if test -n "$AR_FOR_TARGET"; then
10825 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10826else
c6b750e1
DJ
10827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10834 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10836 break 2
10837 fi
10838done
81ecdfbb
RW
10839 done
10840IFS=$as_save_IFS
c6b750e1 10841
7e0f7140
GK
10842fi
10843fi
c6b750e1 10844AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10845if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10847$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10848else
81ecdfbb
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
7e0f7140 10851fi
c6b750e1 10852
81ecdfbb 10853
2429c060
PB
10854 fi
10855 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10856 done
10857fi
c6b750e1 10858
2429c060
PB
10859if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10860 set dummy ar
7e0f7140 10861 if test $build = $target ; then
2429c060 10862 AR_FOR_TARGET="$2"
7e0f7140 10863 else
2429c060 10864 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10865 fi
d3f5afc4
MS
10866else
10867 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10868fi
10869
3a35eeb3
PB
10870else
10871 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10872fi
10873
10874
10875
10876
10877if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10878 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10880$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10881 if test -x $with_build_time_tools/as; then
10882 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10883 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10885$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10886 else
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
3a35eeb3 10889 fi
2429c060
PB
10890 elif test $build != $host && test $have_gcc_for_target = yes; then
10891 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10892 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10893 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10894 fi
10895fi
c6b750e1 10896if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10897 # Extract the first word of "as", so it can be a program name with args.
10898set dummy as; ac_word=$2
81ecdfbb
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
10901if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
2429c060 10903else
c6b750e1
DJ
10904 case $AS_FOR_TARGET in
10905 [\\/]* | ?:[\\/]*)
2429c060
PB
10906 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10907 ;;
2429c060 10908 *)
c6b750e1
DJ
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $gcc_cv_tool_dirs
10911do
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10916 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10918 break 2
10919 fi
10920done
81ecdfbb
RW
10921 done
10922IFS=$as_save_IFS
c6b750e1 10923
2429c060
PB
10924 ;;
10925esac
10926fi
c6b750e1 10927AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10928if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10930$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10931else
81ecdfbb
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
2429c060
PB
10934fi
10935
81ecdfbb 10936
2429c060
PB
10937fi
10938if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10939
10940
10941if test -n "$AS_FOR_TARGET"; then
10942 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10943elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10944 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10945fi
10946
10947if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10948 for ncn_progname in as; do
10949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10950set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952$as_echo_n "checking for $ac_word... " >&6; }
10953if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
9a819804
AO
10955else
10956 if test -n "$AS_FOR_TARGET"; then
10957 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10958else
10959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10966 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10968 break 2
10969 fi
10970done
81ecdfbb
RW
10971 done
10972IFS=$as_save_IFS
9a819804
AO
10973
10974fi
10975fi
10976AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10977if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10979$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10980else
81ecdfbb
RW
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
9a819804
AO
10983fi
10984
81ecdfbb 10985
9a819804
AO
10986 done
10987fi
10988
10989if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10990 for ncn_progname in as; do
81ecdfbb
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10992$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10993 if test -x $with_build_time_tools/${ncn_progname}; then
10994 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996$as_echo "yes" >&6; }
2429c060
PB
10997 break
10998 else
81ecdfbb
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
2429c060
PB
11001 fi
11002 done
11003fi
11004
11005if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11006 for ncn_progname in as; do
11007 if test -n "$ncn_target_tool_prefix"; then
11008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11009set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
11012if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
2429c060
PB
11014else
11015 if test -n "$AS_FOR_TARGET"; then
11016 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11017else
c6b750e1
DJ
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11025 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11027 break 2
11028 fi
11029done
81ecdfbb
RW
11030 done
11031IFS=$as_save_IFS
c6b750e1 11032
2429c060
PB
11033fi
11034fi
c6b750e1 11035AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11036if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11038$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11039else
81ecdfbb
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
2429c060
PB
11042fi
11043
81ecdfbb 11044
2429c060
PB
11045 fi
11046 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050$as_echo_n "checking for $ac_word... " >&6; }
11051if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11052 $as_echo_n "(cached) " >&6
2429c060
PB
11053else
11054 if test -n "$AS_FOR_TARGET"; then
11055 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11056else
c6b750e1
DJ
11057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058for as_dir in $PATH
11059do
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11064 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11066 break 2
11067 fi
11068done
81ecdfbb
RW
11069 done
11070IFS=$as_save_IFS
c6b750e1 11071
2429c060
PB
11072fi
11073fi
c6b750e1 11074AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11075if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11077$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11078else
81ecdfbb
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
2429c060 11081fi
c6b750e1 11082
81ecdfbb 11083
2429c060
PB
11084 fi
11085 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11086 done
11087fi
c6b750e1 11088
2429c060
PB
11089if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11090 set dummy as
11091 if test $build = $target ; then
11092 AS_FOR_TARGET="$2"
11093 else
11094 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11095 fi
d3f5afc4
MS
11096else
11097 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11098fi
11099
3a35eeb3
PB
11100else
11101 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11102fi
11103
11104
11105
11106
11107if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11108 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11110$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11111 if test -x $with_build_time_tools/dlltool; then
11112 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11113 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11115$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11116 else
81ecdfbb
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
3a35eeb3 11119 fi
2429c060
PB
11120 elif test $build != $host && test $have_gcc_for_target = yes; then
11121 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11122 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11123 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11124 fi
11125fi
c6b750e1 11126if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11127 # Extract the first word of "dlltool", so it can be a program name with args.
11128set dummy dlltool; ac_word=$2
81ecdfbb
RW
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130$as_echo_n "checking for $ac_word... " >&6; }
11131if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
2429c060 11133else
c6b750e1
DJ
11134 case $DLLTOOL_FOR_TARGET in
11135 [\\/]* | ?:[\\/]*)
2429c060
PB
11136 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11137 ;;
2429c060 11138 *)
c6b750e1
DJ
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $gcc_cv_tool_dirs
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11146 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11148 break 2
11149 fi
11150done
81ecdfbb
RW
11151 done
11152IFS=$as_save_IFS
c6b750e1 11153
2429c060
PB
11154 ;;
11155esac
11156fi
c6b750e1 11157DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11158if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11160$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11161else
81ecdfbb
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
2429c060
PB
11164fi
11165
81ecdfbb 11166
2429c060
PB
11167fi
11168if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11169
11170
11171if test -n "$DLLTOOL_FOR_TARGET"; then
11172 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11173elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11174 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11175fi
11176
11177if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11178 for ncn_progname in dlltool; do
11179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
11183if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
9a819804
AO
11185else
11186 if test -n "$DLLTOOL_FOR_TARGET"; then
11187 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11196 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11198 break 2
11199 fi
11200done
81ecdfbb
RW
11201 done
11202IFS=$as_save_IFS
9a819804
AO
11203
11204fi
11205fi
11206DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11207if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11209$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11210else
81ecdfbb
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
9a819804
AO
11213fi
11214
81ecdfbb 11215
9a819804
AO
11216 done
11217fi
11218
11219if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11220 for ncn_progname in dlltool; do
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11222$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11223 if test -x $with_build_time_tools/${ncn_progname}; then
11224 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226$as_echo "yes" >&6; }
2429c060
PB
11227 break
11228 else
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
2429c060
PB
11231 fi
11232 done
11233fi
11234
11235if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11236 for ncn_progname in dlltool; do
11237 if test -n "$ncn_target_tool_prefix"; then
11238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241$as_echo_n "checking for $ac_word... " >&6; }
11242if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
2429c060
PB
11244else
11245 if test -n "$DLLTOOL_FOR_TARGET"; then
11246 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11247else
c6b750e1
DJ
11248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249for as_dir in $PATH
11250do
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11255 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11257 break 2
11258 fi
11259done
81ecdfbb
RW
11260 done
11261IFS=$as_save_IFS
c6b750e1 11262
2429c060
PB
11263fi
11264fi
c6b750e1 11265DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11266if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11268$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11269else
81ecdfbb
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
2429c060
PB
11272fi
11273
81ecdfbb 11274
2429c060
PB
11275 fi
11276 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11278set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
11281if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
2429c060
PB
11283else
11284 if test -n "$DLLTOOL_FOR_TARGET"; then
11285 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11286else
c6b750e1
DJ
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11294 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11296 break 2
11297 fi
11298done
81ecdfbb
RW
11299 done
11300IFS=$as_save_IFS
c6b750e1 11301
2429c060
PB
11302fi
11303fi
c6b750e1 11304DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11305if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11307$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11308else
81ecdfbb
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
2429c060 11311fi
c6b750e1 11312
81ecdfbb 11313
2429c060
PB
11314 fi
11315 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11316 done
11317fi
c6b750e1 11318
2429c060
PB
11319if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11320 set dummy dlltool
11321 if test $build = $target ; then
11322 DLLTOOL_FOR_TARGET="$2"
11323 else
11324 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11325 fi
d3f5afc4
MS
11326else
11327 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11328fi
11329
3a35eeb3
PB
11330else
11331 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11332fi
11333
11334
11335
11336
11337if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11338 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11340$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11341 if test -x $with_build_time_tools/ld; then
11342 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11343 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11345$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11346 else
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
3a35eeb3 11349 fi
2429c060
PB
11350 elif test $build != $host && test $have_gcc_for_target = yes; then
11351 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11352 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11353 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11354 fi
11355fi
c6b750e1 11356if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11357 # Extract the first word of "ld", so it can be a program name with args.
11358set dummy ld; ac_word=$2
81ecdfbb
RW
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360$as_echo_n "checking for $ac_word... " >&6; }
11361if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
2429c060 11363else
c6b750e1
DJ
11364 case $LD_FOR_TARGET in
11365 [\\/]* | ?:[\\/]*)
2429c060
PB
11366 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11367 ;;
2429c060 11368 *)
c6b750e1
DJ
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370for as_dir in $gcc_cv_tool_dirs
11371do
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11376 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11378 break 2
11379 fi
11380done
81ecdfbb
RW
11381 done
11382IFS=$as_save_IFS
c6b750e1 11383
2429c060
PB
11384 ;;
11385esac
11386fi
c6b750e1 11387LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11388if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11390$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11391else
81ecdfbb
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
2429c060
PB
11394fi
11395
81ecdfbb 11396
2429c060
PB
11397fi
11398if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11399
11400
11401if test -n "$LD_FOR_TARGET"; then
11402 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11403elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11404 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11405fi
11406
11407if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11408 for ncn_progname in ld; do
11409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11410set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412$as_echo_n "checking for $ac_word... " >&6; }
11413if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
9a819804
AO
11415else
11416 if test -n "$LD_FOR_TARGET"; then
11417 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11418else
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11426 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11428 break 2
11429 fi
11430done
81ecdfbb
RW
11431 done
11432IFS=$as_save_IFS
9a819804
AO
11433
11434fi
11435fi
11436LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11437if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11439$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11440else
81ecdfbb
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
9a819804
AO
11443fi
11444
81ecdfbb 11445
9a819804
AO
11446 done
11447fi
11448
11449if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11450 for ncn_progname in ld; do
81ecdfbb
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11452$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11453 if test -x $with_build_time_tools/${ncn_progname}; then
11454 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456$as_echo "yes" >&6; }
2429c060
PB
11457 break
11458 else
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
2429c060
PB
11461 fi
11462 done
11463fi
11464
11465if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11466 for ncn_progname in ld; do
11467 if test -n "$ncn_target_tool_prefix"; then
11468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11469set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
2429c060
PB
11474else
11475 if test -n "$LD_FOR_TARGET"; then
11476 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11477else
c6b750e1
DJ
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11485 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11487 break 2
11488 fi
11489done
81ecdfbb
RW
11490 done
11491IFS=$as_save_IFS
c6b750e1 11492
2429c060
PB
11493fi
11494fi
c6b750e1 11495LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11496if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11498$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11499else
81ecdfbb
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
2429c060
PB
11502fi
11503
81ecdfbb 11504
2429c060
PB
11505 fi
11506 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11508set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510$as_echo_n "checking for $ac_word... " >&6; }
11511if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
2429c060
PB
11513else
11514 if test -n "$LD_FOR_TARGET"; then
11515 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11516else
c6b750e1
DJ
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11524 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11526 break 2
11527 fi
11528done
81ecdfbb
RW
11529 done
11530IFS=$as_save_IFS
c6b750e1 11531
2429c060
PB
11532fi
11533fi
c6b750e1 11534LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11535if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11537$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11538else
81ecdfbb
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
2429c060 11541fi
c6b750e1 11542
81ecdfbb 11543
2429c060
PB
11544 fi
11545 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11546 done
11547fi
c6b750e1 11548
2429c060
PB
11549if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11550 set dummy ld
11551 if test $build = $target ; then
11552 LD_FOR_TARGET="$2"
11553 else
11554 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11555 fi
d3f5afc4
MS
11556else
11557 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11558fi
11559
3a35eeb3
PB
11560else
11561 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11562fi
11563
11564
11565
11566
11567if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11568 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11570$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11571 if test -x $with_build_time_tools/lipo; then
11572 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11573 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11575$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11576 else
81ecdfbb
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
3a35eeb3 11579 fi
2429c060
PB
11580 elif test $build != $host && test $have_gcc_for_target = yes; then
11581 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11582 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11583 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11584 fi
11585fi
9a819804
AO
11586if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11587 # Extract the first word of "lipo", so it can be a program name with args.
11588set dummy lipo; ac_word=$2
81ecdfbb
RW
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
11591if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11592 $as_echo_n "(cached) " >&6
9a819804
AO
11593else
11594 case $LIPO_FOR_TARGET in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11597 ;;
11598 *)
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $gcc_cv_tool_dirs
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11606 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11608 break 2
11609 fi
11610done
81ecdfbb
RW
11611 done
11612IFS=$as_save_IFS
9a819804
AO
11613
11614 ;;
11615esac
11616fi
11617LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11618if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11620$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11621else
81ecdfbb
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
9a819804
AO
11624fi
11625
81ecdfbb 11626
9a819804
AO
11627fi
11628if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11629
11630
11631if test -n "$LIPO_FOR_TARGET"; then
11632 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11633elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11634 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11635fi
11636
11637if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11638 for ncn_progname in lipo; do
11639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11640set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
11643if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
2429c060 11645else
9a819804
AO
11646 if test -n "$LIPO_FOR_TARGET"; then
11647 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11648else
11649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650for as_dir in $PATH
c6b750e1
DJ
11651do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11656 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11658 break 2
11659 fi
11660done
81ecdfbb
RW
11661 done
11662IFS=$as_save_IFS
c6b750e1 11663
2429c060 11664fi
9a819804
AO
11665fi
11666LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11667if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11669$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11670else
81ecdfbb
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
2429c060
PB
11673fi
11674
81ecdfbb 11675
9a819804 11676 done
2429c060 11677fi
9a819804
AO
11678
11679if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11680 for ncn_progname in lipo; do
81ecdfbb
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11682$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11683 if test -x $with_build_time_tools/${ncn_progname}; then
11684 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686$as_echo "yes" >&6; }
2429c060
PB
11687 break
11688 else
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
2429c060
PB
11691 fi
11692 done
11693fi
11694
11695if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11696 for ncn_progname in lipo; do
11697 if test -n "$ncn_target_tool_prefix"; then
11698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11699set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
2429c060
PB
11704else
11705 if test -n "$LIPO_FOR_TARGET"; then
11706 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11707else
c6b750e1
DJ
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11715 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11717 break 2
11718 fi
11719done
81ecdfbb
RW
11720 done
11721IFS=$as_save_IFS
c6b750e1 11722
2429c060
PB
11723fi
11724fi
c6b750e1 11725LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11726if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11728$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11729else
81ecdfbb
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
2429c060
PB
11732fi
11733
81ecdfbb 11734
2429c060
PB
11735 fi
11736 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11738set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
11741if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
2429c060
PB
11743else
11744 if test -n "$LIPO_FOR_TARGET"; then
11745 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11746else
c6b750e1
DJ
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11754 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11756 break 2
11757 fi
11758done
81ecdfbb
RW
11759 done
11760IFS=$as_save_IFS
c6b750e1 11761
2429c060
PB
11762fi
11763fi
c6b750e1 11764LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11765if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11767$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11768else
81ecdfbb
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
2429c060 11771fi
c6b750e1 11772
81ecdfbb 11773
2429c060
PB
11774 fi
11775 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11776 done
11777fi
c6b750e1 11778
2429c060
PB
11779if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11780 set dummy lipo
11781 if test $build = $target ; then
11782 LIPO_FOR_TARGET="$2"
11783 else
11784 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11785 fi
d3f5afc4
MS
11786else
11787 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11788fi
11789
3a35eeb3
PB
11790else
11791 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11792fi
11793
11794
11795
11796
11797if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11798 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11800$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11801 if test -x $with_build_time_tools/nm; then
11802 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11803 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11805$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11806 else
81ecdfbb
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
3a35eeb3 11809 fi
2429c060
PB
11810 elif test $build != $host && test $have_gcc_for_target = yes; then
11811 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11812 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11813 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11814 fi
11815fi
c6b750e1 11816if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11817 # Extract the first word of "nm", so it can be a program name with args.
11818set dummy nm; ac_word=$2
81ecdfbb
RW
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820$as_echo_n "checking for $ac_word... " >&6; }
11821if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
2429c060 11823else
c6b750e1
DJ
11824 case $NM_FOR_TARGET in
11825 [\\/]* | ?:[\\/]*)
2429c060
PB
11826 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11827 ;;
2429c060 11828 *)
c6b750e1
DJ
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $gcc_cv_tool_dirs
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11836 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11838 break 2
11839 fi
11840done
81ecdfbb
RW
11841 done
11842IFS=$as_save_IFS
c6b750e1 11843
2429c060
PB
11844 ;;
11845esac
11846fi
c6b750e1 11847NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11848if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11850$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11851else
81ecdfbb
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853$as_echo "no" >&6; }
2429c060
PB
11854fi
11855
81ecdfbb 11856
2429c060
PB
11857fi
11858if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11859
11860
11861if test -n "$NM_FOR_TARGET"; then
11862 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11863elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11864 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11865fi
11866
11867if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11868 for ncn_progname in nm; do
11869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872$as_echo_n "checking for $ac_word... " >&6; }
11873if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
9a819804
AO
11875else
11876 if test -n "$NM_FOR_TARGET"; then
11877 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11886 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11888 break 2
11889 fi
11890done
81ecdfbb
RW
11891 done
11892IFS=$as_save_IFS
9a819804
AO
11893
11894fi
11895fi
11896NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11897if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11899$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11900else
81ecdfbb
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
9a819804
AO
11903fi
11904
81ecdfbb 11905
9a819804
AO
11906 done
11907fi
11908
11909if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11910 for ncn_progname in nm; do
81ecdfbb
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11913 if test -x $with_build_time_tools/${ncn_progname}; then
11914 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916$as_echo "yes" >&6; }
2429c060
PB
11917 break
11918 else
81ecdfbb
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
2429c060
PB
11921 fi
11922 done
11923fi
11924
11925if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11926 for ncn_progname in nm; do
11927 if test -n "$ncn_target_tool_prefix"; then
11928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
11932if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
859789af 11934else
55db4b87
PB
11935 if test -n "$NM_FOR_TARGET"; then
11936 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11937else
c6b750e1
DJ
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11945 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11947 break 2
11948 fi
11949done
81ecdfbb
RW
11950 done
11951IFS=$as_save_IFS
c6b750e1 11952
859789af
AC
11953fi
11954fi
c6b750e1 11955NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11956if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11958$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11959else
81ecdfbb
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
859789af
AC
11962fi
11963
81ecdfbb 11964
2429c060
PB
11965 fi
11966 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11968set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
859789af 11973else
05cbd757
PB
11974 if test -n "$NM_FOR_TARGET"; then
11975 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11976else
c6b750e1
DJ
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11984 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11986 break 2
11987 fi
11988done
81ecdfbb
RW
11989 done
11990IFS=$as_save_IFS
c6b750e1 11991
859789af
AC
11992fi
11993fi
c6b750e1 11994NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11995if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11997$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11998else
81ecdfbb
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
859789af 12001fi
c6b750e1 12002
81ecdfbb 12003
2429c060
PB
12004 fi
12005 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12006 done
12007fi
c6b750e1 12008
05cbd757
PB
12009if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12010 set dummy nm
12011 if test $build = $target ; then
12012 NM_FOR_TARGET="$2"
859789af 12013 else
05cbd757 12014 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12015 fi
d3f5afc4
MS
12016else
12017 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12018fi
12019
3a35eeb3
PB
12020else
12021 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12022fi
12023
12024
12025
12026
12027if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12028 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12030$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12031 if test -x $with_build_time_tools/objdump; then
12032 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12033 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12035$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12036 else
81ecdfbb
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
3a35eeb3 12039 fi
2429c060
PB
12040 elif test $build != $host && test $have_gcc_for_target = yes; then
12041 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12042 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12043 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12044 fi
12045fi
c6b750e1 12046if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12047 # Extract the first word of "objdump", so it can be a program name with args.
12048set dummy objdump; ac_word=$2
81ecdfbb
RW
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
12051if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
2429c060 12053else
c6b750e1
DJ
12054 case $OBJDUMP_FOR_TARGET in
12055 [\\/]* | ?:[\\/]*)
2429c060
PB
12056 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12057 ;;
2429c060 12058 *)
c6b750e1
DJ
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060for as_dir in $gcc_cv_tool_dirs
12061do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12066 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12068 break 2
12069 fi
12070done
81ecdfbb
RW
12071 done
12072IFS=$as_save_IFS
c6b750e1 12073
2429c060
PB
12074 ;;
12075esac
12076fi
c6b750e1 12077OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12078if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12080$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12081else
81ecdfbb
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083$as_echo "no" >&6; }
2429c060
PB
12084fi
12085
81ecdfbb 12086
2429c060
PB
12087fi
12088if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12089
12090
12091if test -n "$OBJDUMP_FOR_TARGET"; then
12092 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12093elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12094 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12095fi
12096
12097if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12098 for ncn_progname in objdump; do
12099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12100set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102$as_echo_n "checking for $ac_word... " >&6; }
12103if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
9a819804
AO
12105else
12106 if test -n "$OBJDUMP_FOR_TARGET"; then
12107 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12108else
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12116 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12118 break 2
12119 fi
12120done
81ecdfbb
RW
12121 done
12122IFS=$as_save_IFS
9a819804
AO
12123
12124fi
12125fi
12126OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12127if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12129$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12130else
81ecdfbb
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
9a819804
AO
12133fi
12134
81ecdfbb 12135
9a819804
AO
12136 done
12137fi
12138
12139if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12140 for ncn_progname in objdump; do
81ecdfbb
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12142$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12143 if test -x $with_build_time_tools/${ncn_progname}; then
12144 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146$as_echo "yes" >&6; }
2429c060
PB
12147 break
12148 else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
2429c060
PB
12151 fi
12152 done
12153fi
12154
12155if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12156 for ncn_progname in objdump; do
12157 if test -n "$ncn_target_tool_prefix"; then
12158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12159set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
5ae72758
DJ
12164else
12165 if test -n "$OBJDUMP_FOR_TARGET"; then
12166 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12167else
c6b750e1
DJ
12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169for as_dir in $PATH
12170do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12175 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12177 break 2
12178 fi
12179done
81ecdfbb
RW
12180 done
12181IFS=$as_save_IFS
c6b750e1 12182
5ae72758
DJ
12183fi
12184fi
c6b750e1 12185OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12186if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12188$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12189else
81ecdfbb
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
5ae72758
DJ
12192fi
12193
81ecdfbb 12194
2429c060
PB
12195 fi
12196 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12198set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200$as_echo_n "checking for $ac_word... " >&6; }
12201if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
5ae72758
DJ
12203else
12204 if test -n "$OBJDUMP_FOR_TARGET"; then
12205 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12206else
c6b750e1
DJ
12207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208for as_dir in $PATH
12209do
12210 IFS=$as_save_IFS
12211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12212 for ac_exec_ext in '' $ac_executable_extensions; do
12213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12214 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12216 break 2
12217 fi
12218done
81ecdfbb
RW
12219 done
12220IFS=$as_save_IFS
c6b750e1 12221
5ae72758
DJ
12222fi
12223fi
c6b750e1 12224OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12225if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12227$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12228else
81ecdfbb
RW
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230$as_echo "no" >&6; }
5ae72758 12231fi
c6b750e1 12232
81ecdfbb 12233
2429c060
PB
12234 fi
12235 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12236 done
12237fi
c6b750e1 12238
5ae72758
DJ
12239if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12240 set dummy objdump
12241 if test $build = $target ; then
12242 OBJDUMP_FOR_TARGET="$2"
12243 else
12244 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12245 fi
d3f5afc4
MS
12246else
12247 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12248fi
12249
3a35eeb3
PB
12250else
12251 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12252fi
12253
12254
12255
12256
12257if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12258 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12260$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12261 if test -x $with_build_time_tools/ranlib; then
12262 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12263 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12265$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12266 else
81ecdfbb
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
3a35eeb3 12269 fi
2429c060
PB
12270 elif test $build != $host && test $have_gcc_for_target = yes; then
12271 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12272 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12273 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12274 fi
12275fi
c6b750e1 12276if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12277 # Extract the first word of "ranlib", so it can be a program name with args.
12278set dummy ranlib; ac_word=$2
81ecdfbb
RW
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280$as_echo_n "checking for $ac_word... " >&6; }
12281if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
2429c060 12283else
c6b750e1
DJ
12284 case $RANLIB_FOR_TARGET in
12285 [\\/]* | ?:[\\/]*)
2429c060
PB
12286 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12287 ;;
2429c060 12288 *)
c6b750e1
DJ
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290for as_dir in $gcc_cv_tool_dirs
12291do
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12296 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12298 break 2
12299 fi
12300done
81ecdfbb
RW
12301 done
12302IFS=$as_save_IFS
c6b750e1 12303
2429c060
PB
12304 ;;
12305esac
12306fi
c6b750e1 12307RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12308if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12310$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12311else
81ecdfbb
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
2429c060
PB
12314fi
12315
81ecdfbb 12316
2429c060
PB
12317fi
12318if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12319
12320
12321if test -n "$RANLIB_FOR_TARGET"; then
12322 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12323elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12324 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12325fi
12326
12327if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12328 for ncn_progname in ranlib; do
12329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
12333if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
9a819804
AO
12335else
12336 if test -n "$RANLIB_FOR_TARGET"; then
12337 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12338else
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12346 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12348 break 2
12349 fi
12350done
81ecdfbb
RW
12351 done
12352IFS=$as_save_IFS
9a819804
AO
12353
12354fi
12355fi
12356RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12357if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12359$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12360else
81ecdfbb
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
9a819804
AO
12363fi
12364
81ecdfbb 12365
9a819804
AO
12366 done
12367fi
12368
12369if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12370 for ncn_progname in ranlib; do
81ecdfbb
RW
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12372$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12373 if test -x $with_build_time_tools/${ncn_progname}; then
12374 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376$as_echo "yes" >&6; }
2429c060
PB
12377 break
12378 else
81ecdfbb
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
2429c060
PB
12381 fi
12382 done
12383fi
12384
12385if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12386 for ncn_progname in ranlib; do
12387 if test -n "$ncn_target_tool_prefix"; then
12388 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12389set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
859789af 12394else
55db4b87
PB
12395 if test -n "$RANLIB_FOR_TARGET"; then
12396 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12397else
c6b750e1
DJ
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12405 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12407 break 2
12408 fi
12409done
81ecdfbb
RW
12410 done
12411IFS=$as_save_IFS
c6b750e1 12412
859789af
AC
12413fi
12414fi
c6b750e1 12415RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12416if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12418$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12419else
81ecdfbb
RW
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
859789af
AC
12422fi
12423
81ecdfbb 12424
2429c060
PB
12425 fi
12426 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12428set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430$as_echo_n "checking for $ac_word... " >&6; }
12431if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
859789af 12433else
05cbd757
PB
12434 if test -n "$RANLIB_FOR_TARGET"; then
12435 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12436else
c6b750e1
DJ
12437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438for as_dir in $PATH
12439do
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12444 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12446 break 2
12447 fi
12448done
81ecdfbb
RW
12449 done
12450IFS=$as_save_IFS
c6b750e1 12451
859789af
AC
12452fi
12453fi
c6b750e1 12454RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12455if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12457$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12458else
81ecdfbb
RW
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460$as_echo "no" >&6; }
859789af 12461fi
c6b750e1 12462
81ecdfbb 12463
2429c060
PB
12464 fi
12465 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12466 done
12467fi
c6b750e1 12468
2429c060
PB
12469if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12470 set dummy ranlib
12471 if test $build = $target ; then
12472 RANLIB_FOR_TARGET="$2"
12473 else
12474 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12475 fi
d3f5afc4
MS
12476else
12477 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12478fi
05cbd757 12479
3a35eeb3
PB
12480else
12481 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12482fi
12483
2429c060
PB
12484
12485
12486
12487if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12488 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12490$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12491 if test -x $with_build_time_tools/strip; then
12492 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12493 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12495$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12496 else
81ecdfbb
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
3a35eeb3 12499 fi
2429c060
PB
12500 elif test $build != $host && test $have_gcc_for_target = yes; then
12501 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12502 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12503 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12504 fi
12505fi
c6b750e1 12506if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12507 # Extract the first word of "strip", so it can be a program name with args.
12508set dummy strip; ac_word=$2
81ecdfbb
RW
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510$as_echo_n "checking for $ac_word... " >&6; }
12511if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
2429c060 12513else
c6b750e1
DJ
12514 case $STRIP_FOR_TARGET in
12515 [\\/]* | ?:[\\/]*)
2429c060
PB
12516 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12517 ;;
2429c060 12518 *)
c6b750e1
DJ
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $gcc_cv_tool_dirs
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12526 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12528 break 2
12529 fi
12530done
81ecdfbb
RW
12531 done
12532IFS=$as_save_IFS
c6b750e1 12533
2429c060
PB
12534 ;;
12535esac
12536fi
c6b750e1 12537STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12538if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12540$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12541else
81ecdfbb
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
2429c060
PB
12544fi
12545
81ecdfbb 12546
2429c060
PB
12547fi
12548if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12549
12550
12551if test -n "$STRIP_FOR_TARGET"; then
12552 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12553elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12554 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12555fi
12556
12557if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12558 for ncn_progname in strip; do
12559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12560set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562$as_echo_n "checking for $ac_word... " >&6; }
12563if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
9a819804
AO
12565else
12566 if test -n "$STRIP_FOR_TARGET"; then
12567 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12568else
12569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in $PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12576 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12578 break 2
12579 fi
12580done
81ecdfbb
RW
12581 done
12582IFS=$as_save_IFS
9a819804
AO
12583
12584fi
12585fi
12586STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12587if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12589$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12590else
81ecdfbb
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
9a819804
AO
12593fi
12594
81ecdfbb 12595
9a819804
AO
12596 done
12597fi
12598
12599if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12600 for ncn_progname in strip; do
81ecdfbb
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12602$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12603 if test -x $with_build_time_tools/${ncn_progname}; then
12604 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606$as_echo "yes" >&6; }
2429c060
PB
12607 break
12608 else
81ecdfbb
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
2429c060
PB
12611 fi
12612 done
12613fi
12614
12615if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12616 for ncn_progname in strip; do
12617 if test -n "$ncn_target_tool_prefix"; then
12618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12619set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
7e0f7140
GK
12624else
12625 if test -n "$STRIP_FOR_TARGET"; then
12626 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12627else
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12635 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12637 break 2
12638 fi
12639done
81ecdfbb
RW
12640 done
12641IFS=$as_save_IFS
c6b750e1 12642
7e0f7140
GK
12643fi
12644fi
c6b750e1 12645STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12646if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12648$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12649else
81ecdfbb
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
7e0f7140
GK
12652fi
12653
81ecdfbb 12654
2429c060
PB
12655 fi
12656 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12658set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
7e0f7140
GK
12663else
12664 if test -n "$STRIP_FOR_TARGET"; then
12665 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12666else
c6b750e1
DJ
12667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12674 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12676 break 2
12677 fi
12678done
81ecdfbb
RW
12679 done
12680IFS=$as_save_IFS
c6b750e1 12681
7e0f7140
GK
12682fi
12683fi
c6b750e1 12684STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12685if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12687$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12688else
81ecdfbb
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
7e0f7140 12691fi
c6b750e1 12692
81ecdfbb 12693
2429c060
PB
12694 fi
12695 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12696 done
12697fi
c6b750e1 12698
7e0f7140
GK
12699if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12700 set dummy strip
12701 if test $build = $target ; then
12702 STRIP_FOR_TARGET="$2"
12703 else
12704 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12705 fi
d3f5afc4
MS
12706else
12707 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12708fi
12709
3a35eeb3
PB
12710else
12711 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12712fi
12713
12714
12715
12716
12717if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12718 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12720$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12721 if test -x $with_build_time_tools/windres; then
12722 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12723 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12725$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12726 else
81ecdfbb
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
3a35eeb3 12729 fi
2429c060
PB
12730 elif test $build != $host && test $have_gcc_for_target = yes; then
12731 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12732 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12733 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12734 fi
12735fi
c6b750e1 12736if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12737 # Extract the first word of "windres", so it can be a program name with args.
12738set dummy windres; ac_word=$2
81ecdfbb
RW
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
12741if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
2429c060 12743else
c6b750e1
DJ
12744 case $WINDRES_FOR_TARGET in
12745 [\\/]* | ?:[\\/]*)
2429c060
PB
12746 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12747 ;;
2429c060 12748 *)
c6b750e1
DJ
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750for as_dir in $gcc_cv_tool_dirs
12751do
12752 IFS=$as_save_IFS
12753 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12756 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12758 break 2
12759 fi
12760done
81ecdfbb
RW
12761 done
12762IFS=$as_save_IFS
c6b750e1 12763
2429c060
PB
12764 ;;
12765esac
12766fi
c6b750e1 12767WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12768if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12770$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12771else
81ecdfbb
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
2429c060
PB
12774fi
12775
81ecdfbb 12776
2429c060
PB
12777fi
12778if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12779
12780
12781if test -n "$WINDRES_FOR_TARGET"; then
12782 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12783elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12784 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12785fi
12786
12787if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12788 for ncn_progname in windres; do
12789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
12793if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
9a819804
AO
12795else
12796 if test -n "$WINDRES_FOR_TARGET"; then
12797 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12806 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12808 break 2
12809 fi
12810done
81ecdfbb
RW
12811 done
12812IFS=$as_save_IFS
9a819804
AO
12813
12814fi
12815fi
12816WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12817if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12819$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12820else
81ecdfbb
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
9a819804
AO
12823fi
12824
81ecdfbb 12825
9a819804
AO
12826 done
12827fi
12828
12829if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12830 for ncn_progname in windres; do
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12832$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12833 if test -x $with_build_time_tools/${ncn_progname}; then
12834 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836$as_echo "yes" >&6; }
2429c060
PB
12837 break
12838 else
81ecdfbb
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
2429c060
PB
12841 fi
12842 done
12843fi
12844
12845if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12846 for ncn_progname in windres; do
12847 if test -n "$ncn_target_tool_prefix"; then
12848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
12852if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
859789af 12854else
55db4b87
PB
12855 if test -n "$WINDRES_FOR_TARGET"; then
12856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12857else
c6b750e1
DJ
12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859for as_dir in $PATH
12860do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12867 break 2
12868 fi
12869done
81ecdfbb
RW
12870 done
12871IFS=$as_save_IFS
c6b750e1 12872
859789af
AC
12873fi
12874fi
c6b750e1 12875WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12876if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12878$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12879else
81ecdfbb
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
859789af
AC
12882fi
12883
81ecdfbb 12884
2429c060
PB
12885 fi
12886 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12888set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890$as_echo_n "checking for $ac_word... " >&6; }
12891if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
859789af 12893else
05cbd757
PB
12894 if test -n "$WINDRES_FOR_TARGET"; then
12895 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12896else
c6b750e1
DJ
12897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898for as_dir in $PATH
12899do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12904 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12906 break 2
12907 fi
12908done
81ecdfbb
RW
12909 done
12910IFS=$as_save_IFS
c6b750e1 12911
859789af
AC
12912fi
12913fi
c6b750e1 12914WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12915if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12917$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12918else
81ecdfbb
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
859789af 12921fi
c6b750e1 12922
81ecdfbb 12923
2429c060
PB
12924 fi
12925 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12926 done
12927fi
c6b750e1 12928
05cbd757
PB
12929if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12930 set dummy windres
12931 if test $build = $target ; then
12932 WINDRES_FOR_TARGET="$2"
859789af 12933 else
05cbd757 12934 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12935 fi
d3f5afc4
MS
12936else
12937 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12938fi
12939
3a35eeb3
PB
12940else
12941 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12942fi
12943
852e5f18 12944
0c24b341
NC
12945
12946
12947if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12948 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12950$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12951 if test -x $with_build_time_tools/windmc; then
12952 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12953 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12955$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12956 else
81ecdfbb
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
0c24b341
NC
12959 fi
12960 elif test $build != $host && test $have_gcc_for_target = yes; then
12961 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12962 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12963 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12964 fi
12965fi
12966if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12967 # Extract the first word of "windmc", so it can be a program name with args.
12968set dummy windmc; ac_word=$2
81ecdfbb
RW
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970$as_echo_n "checking for $ac_word... " >&6; }
12971if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
0c24b341
NC
12973else
12974 case $WINDMC_FOR_TARGET in
12975 [\\/]* | ?:[\\/]*)
12976 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12977 ;;
12978 *)
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980for as_dir in $gcc_cv_tool_dirs
12981do
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12986 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12988 break 2
12989 fi
12990done
81ecdfbb
RW
12991 done
12992IFS=$as_save_IFS
0c24b341
NC
12993
12994 ;;
12995esac
12996fi
12997WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12998if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13000$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13001else
81ecdfbb
RW
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
0c24b341
NC
13004fi
13005
81ecdfbb 13006
0c24b341
NC
13007fi
13008if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13009
13010
13011if test -n "$WINDMC_FOR_TARGET"; then
13012 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13013elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13014 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13015fi
13016
13017if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13018 for ncn_progname in windmc; do
13019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
13023if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
0c24b341
NC
13025else
13026 if test -n "$WINDMC_FOR_TARGET"; then
13027 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13036 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13038 break 2
13039 fi
13040done
81ecdfbb
RW
13041 done
13042IFS=$as_save_IFS
0c24b341
NC
13043
13044fi
13045fi
13046WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13047if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13049$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13050else
81ecdfbb
RW
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
0c24b341
NC
13053fi
13054
81ecdfbb 13055
0c24b341
NC
13056 done
13057fi
13058
13059if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13060 for ncn_progname in windmc; do
81ecdfbb
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13062$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13063 if test -x $with_build_time_tools/${ncn_progname}; then
13064 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066$as_echo "yes" >&6; }
0c24b341
NC
13067 break
13068 else
81ecdfbb
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
0c24b341
NC
13071 fi
13072 done
13073fi
13074
13075if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13076 for ncn_progname in windmc; do
13077 if test -n "$ncn_target_tool_prefix"; then
13078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
0c24b341
NC
13084else
13085 if test -n "$WINDMC_FOR_TARGET"; then
13086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13097 break 2
13098 fi
13099done
81ecdfbb
RW
13100 done
13101IFS=$as_save_IFS
0c24b341
NC
13102
13103fi
13104fi
13105WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13106if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13108$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13109else
81ecdfbb
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
0c24b341
NC
13112fi
13113
81ecdfbb 13114
0c24b341
NC
13115 fi
13116 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13118set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
13121if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
0c24b341
NC
13123else
13124 if test -n "$WINDMC_FOR_TARGET"; then
13125 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13134 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13136 break 2
13137 fi
13138done
81ecdfbb
RW
13139 done
13140IFS=$as_save_IFS
0c24b341
NC
13141
13142fi
13143fi
13144WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13145if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13147$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13148else
81ecdfbb
RW
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
0c24b341
NC
13151fi
13152
81ecdfbb 13153
0c24b341
NC
13154 fi
13155 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13156 done
13157fi
13158
13159if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13160 set dummy windmc
13161 if test $build = $target ; then
13162 WINDMC_FOR_TARGET="$2"
13163 else
13164 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13165 fi
13166else
13167 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13168fi
13169
13170else
13171 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13172fi
13173
13174
be01d343
PB
13175RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13176
81ecdfbb
RW
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13178$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13179if test "x${build}" != "x${host}" ; then
2429c060
PB
13180 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13181 # We already found the complete path
b8025f34 13182 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13184$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13185 else
13186 # Canadian cross, just use what we found
81ecdfbb
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13188$as_echo "pre-installed" >&6; }
2429c060 13189 fi
be01d343
PB
13190else
13191 ok=yes
13192 case " ${configdirs} " in
13193 *" binutils "*) ;;
13194 *) ok=no ;;
13195 esac
c6b750e1 13196
be01d343
PB
13197 if test $ok = yes; then
13198 # An in-tree tool is available and we can use it
13199 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13201$as_echo "just compiled" >&6; }
2429c060
PB
13202 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13203 # We already found the complete path
b8025f34 13204 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13206$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13207 elif test "x$target" = "x$host"; then
13208 # We can use an host tool
13209 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13211$as_echo "host tool" >&6; }
be01d343
PB
13212 else
13213 # We need a cross tool
81ecdfbb
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13215$as_echo "pre-installed" >&6; }
be01d343
PB
13216 fi
13217fi
4b900473 13218
81ecdfbb
RW
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13220$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13221if test "x${build}" != "x${host}" ; then
2429c060
PB
13222 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13223 # We already found the complete path
b8025f34 13224 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13226$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13227 else
13228 # Canadian cross, just use what we found
81ecdfbb
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13230$as_echo "pre-installed" >&6; }
2429c060 13231 fi
be01d343
PB
13232else
13233 ok=yes
13234 case " ${configdirs} " in
13235 *" gas "*) ;;
13236 *) ok=no ;;
13237 esac
c6b750e1 13238
be01d343
PB
13239 if test $ok = yes; then
13240 # An in-tree tool is available and we can use it
13241 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13243$as_echo "just compiled" >&6; }
2429c060
PB
13244 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13245 # We already found the complete path
b8025f34 13246 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13248$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13249 elif test "x$target" = "x$host"; then
13250 # We can use an host tool
13251 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13253$as_echo "host tool" >&6; }
be01d343
PB
13254 else
13255 # We need a cross tool
81ecdfbb
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13257$as_echo "pre-installed" >&6; }
be01d343
PB
13258 fi
13259fi
4b900473 13260
81ecdfbb
RW
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13262$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13263if test "x${build}" != "x${host}" ; then
2429c060
PB
13264 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13265 # We already found the complete path
b8025f34 13266 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13268$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13269 else
13270 # Canadian cross, just use what we found
81ecdfbb
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13272$as_echo "pre-installed" >&6; }
2429c060 13273 fi
be01d343
PB
13274else
13275 ok=yes
13276 case " ${configdirs} " in
13277 *" gcc "*) ;;
13278 *) ok=no ;;
13279 esac
c6b750e1 13280
be01d343
PB
13281 if test $ok = yes; then
13282 # An in-tree tool is available and we can use it
13283 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13285$as_echo "just compiled" >&6; }
2429c060
PB
13286 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13287 # We already found the complete path
b8025f34 13288 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13290$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13291 elif test "x$target" = "x$host"; then
13292 # We can use an host tool
13293 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13295$as_echo "host tool" >&6; }
be01d343
PB
13296 else
13297 # We need a cross tool
81ecdfbb
RW
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13299$as_echo "pre-installed" >&6; }
be01d343
PB
13300 fi
13301fi
4b900473 13302
81ecdfbb
RW
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13304$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13305if test "x${build}" != "x${host}" ; then
2429c060
PB
13306 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13307 # We already found the complete path
b8025f34 13308 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13310$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13311 else
13312 # Canadian cross, just use what we found
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13314$as_echo "pre-installed" >&6; }
2429c060 13315 fi
be01d343
PB
13316else
13317 ok=yes
13318 case " ${configdirs} " in
13319 *" gcc "*) ;;
13320 *) ok=no ;;
13321 esac
13322 case ,${enable_languages}, in
13323 *,c++,*) ;;
13324 *) ok=no ;;
13325 esac
13326 if test $ok = yes; then
13327 # An in-tree tool is available and we can use it
13328 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
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13330$as_echo "just compiled" >&6; }
2429c060
PB
13331 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13332 # We already found the complete path
b8025f34 13333 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13335$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13336 elif test "x$target" = "x$host"; then
13337 # We can use an host tool
13338 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13340$as_echo "host tool" >&6; }
be01d343
PB
13341 else
13342 # We need a cross tool
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344$as_echo "pre-installed" >&6; }
be01d343
PB
13345 fi
13346fi
4b900473 13347
81ecdfbb
RW
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13349$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13350if test "x${build}" != "x${host}" ; then
2429c060
PB
13351 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13352 # We already found the complete path
b8025f34 13353 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13355$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13356 else
13357 # Canadian cross, just use what we found
81ecdfbb
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13359$as_echo "pre-installed" >&6; }
2429c060 13360 fi
be01d343
PB
13361else
13362 ok=yes
13363 case " ${configdirs} " in
13364 *" gcc "*) ;;
13365 *) ok=no ;;
13366 esac
13367 case ,${enable_languages}, in
13368 *,c++,*) ;;
13369 *) ok=no ;;
13370 esac
13371 if test $ok = yes; then
13372 # An in-tree tool is available and we can use it
13373 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
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13375$as_echo "just compiled" >&6; }
2429c060
PB
13376 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13377 # We already found the complete path
b8025f34 13378 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13380$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13381 elif test "x$target" = "x$host"; then
13382 # We can use an host tool
13383 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13385$as_echo "host tool" >&6; }
be01d343
PB
13386 else
13387 # We need a cross tool
81ecdfbb
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13389$as_echo "pre-installed" >&6; }
be01d343
PB
13390 fi
13391fi
4b900473 13392
81ecdfbb
RW
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13394$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13395if test "x${build}" != "x${host}" ; then
2429c060
PB
13396 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13397 # We already found the complete path
b8025f34 13398 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13400$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13401 else
13402 # Canadian cross, just use what we found
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13404$as_echo "pre-installed" >&6; }
2429c060 13405 fi
be01d343
PB
13406else
13407 ok=yes
13408 case " ${configdirs} " in
13409 *" binutils "*) ;;
13410 *) ok=no ;;
13411 esac
c6b750e1 13412
be01d343
PB
13413 if test $ok = yes; then
13414 # An in-tree tool is available and we can use it
13415 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13417$as_echo "just compiled" >&6; }
2429c060
PB
13418 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13419 # We already found the complete path
b8025f34 13420 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13423 elif test "x$target" = "x$host"; then
13424 # We can use an host tool
13425 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427$as_echo "host tool" >&6; }
be01d343
PB
13428 else
13429 # We need a cross tool
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431$as_echo "pre-installed" >&6; }
be01d343
PB
13432 fi
13433fi
4b900473 13434
81ecdfbb
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13436$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13437if test "x${build}" != "x${host}" ; then
2429c060
PB
13438 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13439 # We already found the complete path
b8025f34 13440 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13443 else
13444 # Canadian cross, just use what we found
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446$as_echo "pre-installed" >&6; }
2429c060 13447 fi
be01d343
PB
13448else
13449 ok=yes
13450 case " ${configdirs} " in
13451 *" gcc "*) ;;
13452 *) ok=no ;;
13453 esac
c6b750e1 13454
be01d343
PB
13455 if test $ok = yes; then
13456 # An in-tree tool is available and we can use it
13457 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13459$as_echo "just compiled" >&6; }
2429c060
PB
13460 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13461 # We already found the complete path
b8025f34 13462 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13464$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13465 elif test "x$target" = "x$host"; then
13466 # We can use an host tool
13467 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13469$as_echo "host tool" >&6; }
be01d343
PB
13470 else
13471 # We need a cross tool
81ecdfbb
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13473$as_echo "pre-installed" >&6; }
be01d343
PB
13474 fi
13475fi
4b900473 13476
81ecdfbb
RW
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13478$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13479if test "x${build}" != "x${host}" ; then
2429c060
PB
13480 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13481 # We already found the complete path
b8025f34 13482 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13484$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13485 else
13486 # Canadian cross, just use what we found
81ecdfbb
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13488$as_echo "pre-installed" >&6; }
2429c060 13489 fi
be01d343
PB
13490else
13491 ok=yes
13492 case " ${configdirs} " in
13493 *" gcc "*) ;;
13494 *) ok=no ;;
13495 esac
13496 case ,${enable_languages}, in
13497 *,java,*) ;;
13498 *) ok=no ;;
13499 esac
13500 if test $ok = yes; then
13501 # An in-tree tool is available and we can use it
13502 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13504$as_echo "just compiled" >&6; }
2429c060
PB
13505 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13506 # We already found the complete path
b8025f34 13507 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13509$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13510 elif test "x$target" = "x$host"; then
13511 # We can use an host tool
13512 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13514$as_echo "host tool" >&6; }
be01d343
PB
13515 else
13516 # We need a cross tool
81ecdfbb
RW
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13518$as_echo "pre-installed" >&6; }
be01d343
PB
13519 fi
13520fi
4b900473 13521
81ecdfbb
RW
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13523$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13524if test "x${build}" != "x${host}" ; then
2429c060
PB
13525 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13526 # We already found the complete path
b8025f34 13527 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13529$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13530 else
13531 # Canadian cross, just use what we found
81ecdfbb
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13533$as_echo "pre-installed" >&6; }
2429c060 13534 fi
be01d343
PB
13535else
13536 ok=yes
13537 case " ${configdirs} " in
13538 *" gcc "*) ;;
13539 *) ok=no ;;
13540 esac
13541 case ,${enable_languages}, in
13542 *,fortran,*) ;;
13543 *) ok=no ;;
13544 esac
13545 if test $ok = yes; then
13546 # An in-tree tool is available and we can use it
13547 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13549$as_echo "just compiled" >&6; }
2429c060
PB
13550 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13551 # We already found the complete path
b8025f34 13552 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13554$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13555 elif test "x$target" = "x$host"; then
13556 # We can use an host tool
13557 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13559$as_echo "host tool" >&6; }
be01d343
PB
13560 else
13561 # We need a cross tool
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563$as_echo "pre-installed" >&6; }
be01d343
PB
13564 fi
13565fi
4b900473 13566
e552509b
ILT
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13568$as_echo_n "checking where to find the target gccgo... " >&6; }
13569if test "x${build}" != "x${host}" ; then
13570 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13571 # We already found the complete path
13572 ac_dir=`dirname $GOC_FOR_TARGET`
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13574$as_echo "pre-installed in $ac_dir" >&6; }
13575 else
13576 # Canadian cross, just use what we found
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578$as_echo "pre-installed" >&6; }
13579 fi
13580else
13581 ok=yes
13582 case " ${configdirs} " in
13583 *" gcc "*) ;;
13584 *) ok=no ;;
13585 esac
13586 case ,${enable_languages}, in
13587 *,go,*) ;;
13588 *) ok=no ;;
13589 esac
13590 if test $ok = yes; then
13591 # An in-tree tool is available and we can use it
13592 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13594$as_echo "just compiled" >&6; }
13595 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13596 # We already found the complete path
13597 ac_dir=`dirname $GOC_FOR_TARGET`
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599$as_echo "pre-installed in $ac_dir" >&6; }
13600 elif test "x$target" = "x$host"; then
13601 # We can use an host tool
13602 GOC_FOR_TARGET='$(GOC)'
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13604$as_echo "host tool" >&6; }
13605 else
13606 # We need a cross tool
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13608$as_echo "pre-installed" >&6; }
13609 fi
13610fi
13611
81ecdfbb
RW
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13613$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13614if test "x${build}" != "x${host}" ; then
2429c060
PB
13615 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13616 # We already found the complete path
b8025f34 13617 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13620 else
13621 # Canadian cross, just use what we found
81ecdfbb
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13623$as_echo "pre-installed" >&6; }
2429c060 13624 fi
be01d343
PB
13625else
13626 ok=yes
13627 case " ${configdirs} " in
13628 *" ld "*) ;;
13629 *) ok=no ;;
13630 esac
c6b750e1 13631
be01d343
PB
13632 if test $ok = yes; then
13633 # An in-tree tool is available and we can use it
13634 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13636$as_echo "just compiled" >&6; }
2429c060
PB
13637 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13638 # We already found the complete path
b8025f34 13639 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13642 elif test "x$target" = "x$host"; then
13643 # We can use an host tool
13644 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13646$as_echo "host tool" >&6; }
be01d343
PB
13647 else
13648 # We need a cross tool
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650$as_echo "pre-installed" >&6; }
be01d343
PB
13651 fi
13652fi
4b900473 13653
81ecdfbb
RW
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13655$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13656if test "x${build}" != "x${host}" ; then
2429c060
PB
13657 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13658 # We already found the complete path
b8025f34 13659 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13662 else
13663 # Canadian cross, just use what we found
81ecdfbb
RW
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665$as_echo "pre-installed" >&6; }
2429c060 13666 fi
be01d343 13667else
2429c060
PB
13668 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13669 # We already found the complete path
b8025f34 13670 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13672$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13673 elif test "x$target" = "x$host"; then
be01d343
PB
13674 # We can use an host tool
13675 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13677$as_echo "host tool" >&6; }
be01d343
PB
13678 else
13679 # We need a cross tool
81ecdfbb
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13681$as_echo "pre-installed" >&6; }
be01d343
PB
13682 fi
13683fi
4b900473 13684
81ecdfbb
RW
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13686$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13687if test "x${build}" != "x${host}" ; then
2429c060
PB
13688 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
b8025f34 13690 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13693 else
13694 # Canadian cross, just use what we found
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13696$as_echo "pre-installed" >&6; }
2429c060 13697 fi
be01d343
PB
13698else
13699 ok=yes
13700 case " ${configdirs} " in
13701 *" binutils "*) ;;
13702 *) ok=no ;;
13703 esac
c6b750e1 13704
be01d343
PB
13705 if test $ok = yes; then
13706 # An in-tree tool is available and we can use it
13707 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13709$as_echo "just compiled" >&6; }
2429c060
PB
13710 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13711 # We already found the complete path
b8025f34 13712 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13714$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13715 elif test "x$target" = "x$host"; then
13716 # We can use an host tool
13717 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13719$as_echo "host tool" >&6; }
be01d343
PB
13720 else
13721 # We need a cross tool
81ecdfbb
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13723$as_echo "pre-installed" >&6; }
be01d343
PB
13724 fi
13725fi
4b900473 13726
81ecdfbb
RW
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13728$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13729if test "x${build}" != "x${host}" ; then
2429c060
PB
13730 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13731 # We already found the complete path
b8025f34 13732 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13734$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13735 else
13736 # Canadian cross, just use what we found
81ecdfbb
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13738$as_echo "pre-installed" >&6; }
2429c060 13739 fi
be01d343
PB
13740else
13741 ok=yes
13742 case " ${configdirs} " in
13743 *" binutils "*) ;;
13744 *) ok=no ;;
13745 esac
c6b750e1 13746
be01d343
PB
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
13749 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751$as_echo "just compiled" >&6; }
2429c060
PB
13752 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
b8025f34 13754 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761$as_echo "host tool" >&6; }
be01d343
PB
13762 else
13763 # We need a cross tool
81ecdfbb
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765$as_echo "pre-installed" >&6; }
be01d343
PB
13766 fi
13767fi
4b900473 13768
81ecdfbb
RW
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13770$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13771if test "x${build}" != "x${host}" ; then
2429c060
PB
13772 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
b8025f34 13774 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13777 else
13778 # Canadian cross, just use what we found
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780$as_echo "pre-installed" >&6; }
2429c060 13781 fi
be01d343
PB
13782else
13783 ok=yes
13784 case " ${configdirs} " in
13785 *" binutils "*) ;;
13786 *) ok=no ;;
13787 esac
c6b750e1 13788
be01d343
PB
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793$as_echo "just compiled" >&6; }
2429c060
PB
13794 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
b8025f34 13796 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803$as_echo "host tool" >&6; }
be01d343
PB
13804 else
13805 # We need a cross tool
81ecdfbb
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807$as_echo "pre-installed" >&6; }
be01d343
PB
13808 fi
13809fi
4b900473 13810
81ecdfbb
RW
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13812$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13813if test "x${build}" != "x${host}" ; then
2429c060
PB
13814 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
b8025f34 13816 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13819 else
13820 # Canadian cross, just use what we found
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822$as_echo "pre-installed" >&6; }
2429c060 13823 fi
be01d343
PB
13824else
13825 ok=yes
13826 case " ${configdirs} " in
13827 *" binutils "*) ;;
13828 *) ok=no ;;
13829 esac
c6b750e1 13830
be01d343
PB
13831 if test $ok = yes; then
13832 # An in-tree tool is available and we can use it
9b980aa1 13833 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13835$as_echo "just compiled" >&6; }
2429c060
PB
13836 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13837 # We already found the complete path
b8025f34 13838 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13841 elif test "x$target" = "x$host"; then
13842 # We can use an host tool
13843 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845$as_echo "host tool" >&6; }
be01d343
PB
13846 else
13847 # We need a cross tool
81ecdfbb
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849$as_echo "pre-installed" >&6; }
be01d343
PB
13850 fi
13851fi
4b900473 13852
81ecdfbb
RW
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13854$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13855if test "x${build}" != "x${host}" ; then
2429c060
PB
13856 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
b8025f34 13858 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13861 else
13862 # Canadian cross, just use what we found
81ecdfbb
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864$as_echo "pre-installed" >&6; }
2429c060 13865 fi
be01d343
PB
13866else
13867 ok=yes
13868 case " ${configdirs} " in
13869 *" binutils "*) ;;
13870 *) ok=no ;;
13871 esac
c6b750e1 13872
be01d343
PB
13873 if test $ok = yes; then
13874 # An in-tree tool is available and we can use it
13875 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877$as_echo "just compiled" >&6; }
2429c060
PB
13878 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
b8025f34 13880 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13883 elif test "x$target" = "x$host"; then
13884 # We can use an host tool
13885 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887$as_echo "host tool" >&6; }
be01d343
PB
13888 else
13889 # We need a cross tool
81ecdfbb
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891$as_echo "pre-installed" >&6; }
be01d343 13892 fi
a0da8069 13893fi
54752a6b 13894
81ecdfbb
RW
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13896$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13897if test "x${build}" != "x${host}" ; then
13898 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
13900 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13903 else
13904 # Canadian cross, just use what we found
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906$as_echo "pre-installed" >&6; }
0c24b341
NC
13907 fi
13908else
13909 ok=yes
13910 case " ${configdirs} " in
13911 *" binutils "*) ;;
13912 *) ok=no ;;
13913 esac
13914
13915 if test $ok = yes; then
13916 # An in-tree tool is available and we can use it
13917 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919$as_echo "just compiled" >&6; }
0c24b341
NC
13920 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
13922 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13925 elif test "x$target" = "x$host"; then
13926 # We can use an host tool
13927 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929$as_echo "host tool" >&6; }
0c24b341
NC
13930 else
13931 # We need a cross tool
81ecdfbb
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933$as_echo "pre-installed" >&6; }
0c24b341
NC
13934 fi
13935fi
13936
54752a6b
NN
13937
13938
be01d343 13939
4b900473 13940
a0da8069
NN
13941# Certain tools may need extra flags.
13942AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13943RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13944NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13945
be01d343
PB
13946# When building target libraries, except in a Canadian cross, we use
13947# the same toolchain as the compiler we just built.
13948COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13949COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13950COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13951if test $host = $build; then
13952 case " $configdirs " in
13953 *" gcc "*)
13954 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13955 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13956 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13957 ;;
13958 esac
13959fi
13960
13961
13962
13963
13964
81ecdfbb
RW
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13966$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13967# Check whether --enable-maintainer-mode was given.
13968if test "${enable_maintainer_mode+set}" = set; then :
13969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13970else
13971 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13972fi
13973
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13975$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13976
13977
13978if test "$USE_MAINTAINER_MODE" = yes; then
13979 MAINTAINER_MODE_TRUE=
13980 MAINTAINER_MODE_FALSE='#'
13981else
13982 MAINTAINER_MODE_TRUE='#'
13983 MAINTAINER_MODE_FALSE=
c6b750e1 13984fi
3d5e36ae
AO
13985MAINT=$MAINTAINER_MODE_TRUE
13986
1d39f329
NN
13987# ---------------------
13988# GCC bootstrap support
13989# ---------------------
13990
13991# Stage specific cflags for build.
13992stage1_cflags="-g"
13993case $build in
13994 vax-*-*)
13995 case ${GCC} in
13996 yes) stage1_cflags="-g -Wa,-J" ;;
13997 *) stage1_cflags="-g -J" ;;
13998 esac ;;
1d39f329
NN
13999esac
14000
1d89b610 14001# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14002if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14003 saved_CFLAGS="$CFLAGS"
14004
14005 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14006 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14008$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14010/* end confdefs.h. */
14011
2038f525
PB
14012#if (__GNUC__ < 3) \
14013 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14014 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14015#error http://gcc.gnu.org/PR29382
14016#endif
14017
c6b750e1
DJ
14018int
14019main ()
14020{
14021
14022 ;
14023 return 0;
14024}
14025_ACEOF
81ecdfbb
RW
14026if ac_fn_c_try_compile "$LINENO"; then :
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14028$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14029else
81ecdfbb
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031$as_echo "no" >&6; }
c6b750e1 14032fi
81ecdfbb 14033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14034
14035 CFLAGS="$saved_CFLAGS"
14036fi
14037
14038
1d39f329 14039
8a0d8a5c 14040# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14041# Check whether --enable-stage1-checking was given.
14042if test "${enable_stage1_checking+set}" = set; then :
14043 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14044else
5566c1fa 14045 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14046 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14047else
5566c1fa 14048 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14049fi
81ecdfbb 14050fi
8a0d8a5c
PB
14051
14052
c6b750e1 14053
81ecdfbb
RW
14054# Enable -Werror in bootstrap stage2 and later.
14055# Check whether --enable-werror was given.
14056if test "${enable_werror+set}" = set; then :
14057 enableval=$enable_werror;
1d39f329 14058else
a0323144 14059 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14060 enable_werror=yes
79fcd0ec
PB
14061else
14062 enable_werror=no
14063fi
81ecdfbb
RW
14064fi
14065
1a6f2dc7
NN
14066case ${enable_werror} in
14067 yes) stage2_werror_flag="--enable-werror-always" ;;
14068 *) stage2_werror_flag="" ;;
1d39f329
NN
14069esac
14070
14071
e8a5fa9c
RW
14072# Specify what files to not compare during bootstrap.
14073
14074compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14075case "$target" in
14076 hppa*64*-*-hpux*) ;;
14077 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14078esac
1f53ca9a
AO
14079case " $configdirs " in
14080*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14081esac
e8a5fa9c
RW
14082
14083
81ecdfbb
RW
14084ac_config_files="$ac_config_files Makefile"
14085
c6b750e1 14086cat >confcache <<\_ACEOF
a0da8069
NN
14087# This file is a shell script that caches the results of configure
14088# tests run on this system so they can be shared between configure
c6b750e1
DJ
14089# scripts and configure runs, see configure's option --config-cache.
14090# It is not useful on other systems. If it contains results you don't
14091# want to keep, you may remove or edit it.
a0da8069 14092#
c6b750e1
DJ
14093# config.status only pays attention to the cache file if you give it
14094# the --recheck option to rerun configure.
a0da8069 14095#
c6b750e1
DJ
14096# `ac_cv_env_foo' variables (set or unset) will be overridden when
14097# loading this file, other *unset* `ac_cv_foo' will be assigned the
14098# following values.
14099
14100_ACEOF
14101
a0da8069
NN
14102# The following way of writing the cache mishandles newlines in values,
14103# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14104# So, we kill variables containing newlines.
a0da8069
NN
14105# Ultrix sh set writes to stderr and can't be redirected directly,
14106# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14107(
14108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14109 eval ac_val=\$$ac_var
14110 case $ac_val in #(
14111 *${as_nl}*)
14112 case $ac_var in #(
14113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14115 esac
14116 case $ac_var in #(
14117 _ | IFS | as_nl) ;; #(
14118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14119 *) { eval $ac_var=; unset $ac_var;} ;;
14120 esac ;;
14121 esac
14122 done
14123
c6b750e1 14124 (set) 2>&1 |
81ecdfbb
RW
14125 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14126 *${as_nl}ac_space=\ *)
14127 # `set' does not quote correctly, so add quotes: double-quote
14128 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14129 sed -n \
14130 "s/'/'\\\\''/g;
14131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14132 ;; #(
c6b750e1
DJ
14133 *)
14134 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14136 ;;
81ecdfbb
RW
14137 esac |
14138 sort
14139) |
c6b750e1 14140 sed '
81ecdfbb 14141 /^ac_cv_env_/b end
c6b750e1 14142 t clear
81ecdfbb 14143 :clear
c6b750e1
DJ
14144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14145 t end
81ecdfbb
RW
14146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14147 :end' >>confcache
14148if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14149 if test -w "$cache_file"; then
14150 test "x$cache_file" != "x/dev/null" &&
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14152$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14153 cat confcache >$cache_file
a0da8069 14154 else
81ecdfbb
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14156$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14157 fi
852e5f18 14158fi
a0da8069 14159rm -f confcache
852e5f18 14160
a0da8069
NN
14161test "x$prefix" = xNONE && prefix=$ac_default_prefix
14162# Let make expand exec_prefix.
14163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14164
a0da8069
NN
14165# Transform confdefs.h into DEFS.
14166# Protect against shell expansion while executing Makefile rules.
14167# Protect against Makefile macro expansion.
c6b750e1
DJ
14168#
14169# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14170# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14171# look for a macro that doesn't take arguments.
81ecdfbb
RW
14172ac_script='
14173:mline
14174/\\$/{
14175 N
14176 s,\\\n,,
14177 b mline
14178}
c6b750e1 14179t clear
81ecdfbb
RW
14180:clear
14181s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14182t quote
81ecdfbb 14183s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14184t quote
81ecdfbb
RW
14185b any
14186:quote
14187s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14188s/\[/\\&/g
14189s/\]/\\&/g
14190s/\$/$$/g
14191H
14192:any
14193${
14194 g
14195 s/^\n//
14196 s/\n/ /g
14197 p
14198}
14199'
14200DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14201
14202
14203ac_libobjs=
14204ac_ltlibobjs=
14205for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14206 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14207 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14208 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14209 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14210 # will be set to the directory where LIBOBJS objects are built.
14211 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14212 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14213done
14214LIBOBJS=$ac_libobjs
852e5f18 14215
c6b750e1 14216LTLIBOBJS=$ac_ltlibobjs
376a0e54 14217
cac3d6c4 14218
c6b750e1
DJ
14219
14220: ${CONFIG_STATUS=./config.status}
81ecdfbb 14221ac_write_fail=0
c6b750e1
DJ
14222ac_clean_files_save=$ac_clean_files
14223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14225$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14226as_write_fail=0
14227cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14228#! $SHELL
14229# Generated by $as_me.
a0da8069 14230# Run this file to recreate the current configuration.
a0da8069 14231# Compiler output produced by configure, useful for debugging
c6b750e1 14232# configure, is in config.log if it exists.
376a0e54 14233
c6b750e1
DJ
14234debug=false
14235ac_cs_recheck=false
14236ac_cs_silent=false
c6b750e1 14237
81ecdfbb
RW
14238SHELL=\${CONFIG_SHELL-$SHELL}
14239export SHELL
14240_ASEOF
14241cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14242## -------------------- ##
14243## M4sh Initialization. ##
14244## -------------------- ##
14245
14246# Be more Bourne compatible
14247DUALCASE=1; export DUALCASE # for MKS sh
14248if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14249 emulate sh
14250 NULLCMD=:
81ecdfbb 14251 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14252 # is contrary to our usage. Disable this feature.
14253 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14254 setopt NO_GLOB_SUBST
14255else
14256 case `(set -o) 2>/dev/null` in #(
14257 *posix*) :
14258 set -o posix ;; #(
14259 *) :
14260 ;;
14261esac
c6b750e1 14262fi
c6b750e1 14263
81ecdfbb
RW
14264
14265as_nl='
14266'
14267export as_nl
14268# Printing a long string crashes Solaris 7 /usr/bin/printf.
14269as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14272# Prefer a ksh shell builtin over an external printf program on Solaris,
14273# but without wasting forks for bash or zsh.
14274if test -z "$BASH_VERSION$ZSH_VERSION" \
14275 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14276 as_echo='print -r --'
14277 as_echo_n='print -rn --'
14278elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14279 as_echo='printf %s\n'
14280 as_echo_n='printf %s'
14281else
14282 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14283 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14284 as_echo_n='/usr/ucb/echo -n'
14285 else
14286 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14287 as_echo_n_body='eval
14288 arg=$1;
14289 case $arg in #(
14290 *"$as_nl"*)
14291 expr "X$arg" : "X\\(.*\\)$as_nl";
14292 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14293 esac;
14294 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14295 '
14296 export as_echo_n_body
14297 as_echo_n='sh -c $as_echo_n_body as_echo'
14298 fi
14299 export as_echo_body
14300 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14301fi
14302
81ecdfbb
RW
14303# The user is always right.
14304if test "${PATH_SEPARATOR+set}" != set; then
14305 PATH_SEPARATOR=:
14306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14308 PATH_SEPARATOR=';'
14309 }
14310fi
14311
14312
14313# IFS
14314# We need space, tab and new line, in precisely that order. Quoting is
14315# there to prevent editors from complaining about space-tab.
14316# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14317# splitting by setting IFS to empty value.)
14318IFS=" "" $as_nl"
14319
14320# Find who we are. Look in the path if we contain no directory separator.
14321case $0 in #((
14322 *[\\/]* ) as_myself=$0 ;;
14323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14329 done
14330IFS=$as_save_IFS
14331
14332 ;;
14333esac
14334# We did not find ourselves, most probably we were run as `sh COMMAND'
14335# in which case we are not to be found in the path.
14336if test "x$as_myself" = x; then
14337 as_myself=$0
14338fi
14339if test ! -f "$as_myself"; then
14340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14341 exit 1
14342fi
c6b750e1 14343
81ecdfbb
RW
14344# Unset variables that we do not need and which cause bugs (e.g. in
14345# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14346# suppresses any "Segmentation fault" message there. '((' could
14347# trigger a bug in pdksh 5.2.14.
14348for as_var in BASH_ENV ENV MAIL MAILPATH
14349do eval test x\${$as_var+set} = xset \
14350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14351done
c6b750e1
DJ
14352PS1='$ '
14353PS2='> '
14354PS4='+ '
14355
14356# NLS nuisances.
81ecdfbb
RW
14357LC_ALL=C
14358export LC_ALL
14359LANGUAGE=C
14360export LANGUAGE
14361
14362# CDPATH.
14363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14364
14365
14366# as_fn_error ERROR [LINENO LOG_FD]
14367# ---------------------------------
14368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14370# script with status $?, using 1 if that was 0.
14371as_fn_error ()
14372{
14373 as_status=$?; test $as_status -eq 0 && as_status=1
14374 if test "$3"; then
14375 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14377 fi
81ecdfbb
RW
14378 $as_echo "$as_me: error: $1" >&2
14379 as_fn_exit $as_status
14380} # as_fn_error
14381
14382
14383# as_fn_set_status STATUS
14384# -----------------------
14385# Set $? to STATUS, without forking.
14386as_fn_set_status ()
14387{
14388 return $1
14389} # as_fn_set_status
14390
14391# as_fn_exit STATUS
14392# -----------------
14393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14394as_fn_exit ()
14395{
14396 set +e
14397 as_fn_set_status $1
14398 exit $1
14399} # as_fn_exit
14400
14401# as_fn_unset VAR
14402# ---------------
14403# Portably unset VAR.
14404as_fn_unset ()
14405{
14406 { eval $1=; unset $1;}
14407}
14408as_unset=as_fn_unset
14409# as_fn_append VAR VALUE
14410# ----------------------
14411# Append the text in VALUE to the end of the definition contained in VAR. Take
14412# advantage of any shell optimizations that allow amortized linear growth over
14413# repeated appends, instead of the typical quadratic growth present in naive
14414# implementations.
14415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14416 eval 'as_fn_append ()
14417 {
14418 eval $1+=\$2
14419 }'
14420else
14421 as_fn_append ()
14422 {
14423 eval $1=\$$1\$2
14424 }
14425fi # as_fn_append
14426
14427# as_fn_arith ARG...
14428# ------------------
14429# Perform arithmetic evaluation on the ARGs, and store the result in the
14430# global $as_val. Take advantage of shells that can avoid forks. The arguments
14431# must be portable across $(()) and expr.
14432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14433 eval 'as_fn_arith ()
14434 {
14435 as_val=$(( $* ))
14436 }'
14437else
14438 as_fn_arith ()
14439 {
14440 as_val=`expr "$@" || test $? -eq 1`
14441 }
14442fi # as_fn_arith
14443
c6b750e1 14444
81ecdfbb
RW
14445if expr a : '\(a\)' >/dev/null 2>&1 &&
14446 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14447 as_expr=expr
14448else
14449 as_expr=false
14450fi
14451
81ecdfbb 14452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14453 as_basename=basename
14454else
14455 as_basename=false
14456fi
14457
81ecdfbb
RW
14458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14459 as_dirname=dirname
14460else
14461 as_dirname=false
14462fi
c6b750e1 14463
81ecdfbb 14464as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14466 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14468$as_echo X/"$0" |
14469 sed '/^.*\/\([^/][^/]*\)\/*$/{
14470 s//\1/
14471 q
14472 }
14473 /^X\/\(\/\/\)$/{
14474 s//\1/
14475 q
14476 }
14477 /^X\/\(\/\).*/{
14478 s//\1/
14479 q
14480 }
14481 s/.*/./; q'`
c6b750e1 14482
c6b750e1
DJ
14483# Avoid depending upon Character Ranges.
14484as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14486as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14487as_cr_digits='0123456789'
14488as_cr_alnum=$as_cr_Letters$as_cr_digits
14489
81ecdfbb
RW
14490ECHO_C= ECHO_N= ECHO_T=
14491case `echo -n x` in #(((((
14492-n*)
14493 case `echo 'xy\c'` in
14494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14495 xy) ECHO_C='\c';;
14496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14497 ECHO_T=' ';;
14498 esac;;
14499*)
14500 ECHO_N='-n';;
c6b750e1
DJ
14501esac
14502
81ecdfbb
RW
14503rm -f conf$$ conf$$.exe conf$$.file
14504if test -d conf$$.dir; then
14505 rm -f conf$$.dir/conf$$.file
c6b750e1 14506else
81ecdfbb
RW
14507 rm -f conf$$.dir
14508 mkdir conf$$.dir 2>/dev/null
c6b750e1 14509fi
81ecdfbb
RW
14510if (echo >conf$$.file) 2>/dev/null; then
14511 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14512 as_ln_s='ln -s'
81ecdfbb
RW
14513 # ... but there are two gotchas:
14514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14516 # In both cases, we have to default to `cp -p'.
14517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14518 as_ln_s='cp -p'
14519 elif ln conf$$.file conf$$ 2>/dev/null; then
14520 as_ln_s=ln
14521 else
14522 as_ln_s='cp -p'
c6b750e1 14523 fi
c6b750e1
DJ
14524else
14525 as_ln_s='cp -p'
14526fi
81ecdfbb
RW
14527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14528rmdir conf$$.dir 2>/dev/null
14529
14530
14531# as_fn_mkdir_p
14532# -------------
14533# Create "$as_dir" as a directory, including parents if necessary.
14534as_fn_mkdir_p ()
14535{
14536
14537 case $as_dir in #(
14538 -*) as_dir=./$as_dir;;
14539 esac
14540 test -d "$as_dir" || eval $as_mkdir_p || {
14541 as_dirs=
14542 while :; do
14543 case $as_dir in #(
14544 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14545 *) as_qdir=$as_dir;;
14546 esac
14547 as_dirs="'$as_qdir' $as_dirs"
14548 as_dir=`$as_dirname -- "$as_dir" ||
14549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14550 X"$as_dir" : 'X\(//\)[^/]' \| \
14551 X"$as_dir" : 'X\(//\)$' \| \
14552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14553$as_echo X"$as_dir" |
14554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14555 s//\1/
14556 q
14557 }
14558 /^X\(\/\/\)[^/].*/{
14559 s//\1/
14560 q
14561 }
14562 /^X\(\/\/\)$/{
14563 s//\1/
14564 q
14565 }
14566 /^X\(\/\).*/{
14567 s//\1/
14568 q
14569 }
14570 s/.*/./; q'`
14571 test -d "$as_dir" && break
14572 done
14573 test -z "$as_dirs" || eval "mkdir $as_dirs"
14574 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14575
c6b750e1 14576
81ecdfbb 14577} # as_fn_mkdir_p
c6b750e1 14578if mkdir -p . 2>/dev/null; then
81ecdfbb 14579 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14580else
14581 test -d ./-p && rmdir ./-p
14582 as_mkdir_p=false
14583fi
14584
81ecdfbb
RW
14585if test -x / >/dev/null 2>&1; then
14586 as_test_x='test -x'
14587else
14588 if ls -dL / >/dev/null 2>&1; then
14589 as_ls_L_option=L
14590 else
14591 as_ls_L_option=
14592 fi
14593 as_test_x='
14594 eval sh -c '\''
14595 if test -d "$1"; then
14596 test -d "$1/.";
14597 else
14598 case $1 in #(
14599 -*)set "./$1";;
14600 esac;
14601 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14602 ???[sx]*):;;*)false;;esac;fi
14603 '\'' sh
14604 '
14605fi
14606as_executable_p=$as_test_x
c6b750e1
DJ
14607
14608# Sed expression to map a string onto a valid CPP name.
14609as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14610
14611# Sed expression to map a string onto a valid variable name.
14612as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14613
14614
c6b750e1 14615exec 6>&1
81ecdfbb
RW
14616## ----------------------------------- ##
14617## Main body of $CONFIG_STATUS script. ##
14618## ----------------------------------- ##
14619_ASEOF
14620test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14621
14622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14623# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14624# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14625# values after options handling.
14626ac_log="
c6b750e1 14627This file was extended by $as_me, which was
81ecdfbb 14628generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14629
14630 CONFIG_FILES = $CONFIG_FILES
14631 CONFIG_HEADERS = $CONFIG_HEADERS
14632 CONFIG_LINKS = $CONFIG_LINKS
14633 CONFIG_COMMANDS = $CONFIG_COMMANDS
14634 $ $0 $@
14635
81ecdfbb
RW
14636on `(hostname || uname -n) 2>/dev/null | sed 1q`
14637"
14638
c6b750e1
DJ
14639_ACEOF
14640
81ecdfbb
RW
14641case $ac_config_files in *"
14642"*) set x $ac_config_files; shift; ac_config_files=$*;;
14643esac
c6b750e1 14644
c6b750e1 14645
c6b750e1 14646
81ecdfbb
RW
14647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648# Files that config.status was made for.
14649config_files="$ac_config_files"
c6b750e1 14650
81ecdfbb 14651_ACEOF
c6b750e1 14652
81ecdfbb 14653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14654ac_cs_usage="\
81ecdfbb
RW
14655\`$as_me' instantiates files and other configuration actions
14656from templates according to the current configuration. Unless the files
14657and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14658
81ecdfbb 14659Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14660
14661 -h, --help print this help, then exit
81ecdfbb
RW
14662 -V, --version print version number and configuration settings, then exit
14663 -q, --quiet, --silent
14664 do not print progress messages
c6b750e1
DJ
14665 -d, --debug don't remove temporary files
14666 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14667 --file=FILE[:TEMPLATE]
14668 instantiate the configuration file FILE
c6b750e1
DJ
14669
14670Configuration files:
14671$config_files
14672
81ecdfbb 14673Report bugs to the package provider."
c6b750e1 14674
81ecdfbb
RW
14675_ACEOF
14676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14677ac_cs_version="\\
14678config.status
81ecdfbb
RW
14679configured by $0, generated by GNU Autoconf 2.64,
14680 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14681
81ecdfbb 14682Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14683This config.status script is free software; the Free Software Foundation
14684gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14685
14686ac_pwd='$ac_pwd'
14687srcdir='$srcdir'
14688INSTALL='$INSTALL'
8e957354 14689AWK='$AWK'
81ecdfbb 14690test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14691_ACEOF
14692
81ecdfbb
RW
14693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14695ac_need_defaults=:
14696while test $# != 0
a0da8069 14697do
c6b750e1
DJ
14698 case $1 in
14699 --*=*)
81ecdfbb
RW
14700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14702 ac_shift=:
14703 ;;
81ecdfbb 14704 *)
c6b750e1
DJ
14705 ac_option=$1
14706 ac_optarg=$2
14707 ac_shift=shift
14708 ;;
c6b750e1
DJ
14709 esac
14710
14711 case $ac_option in
14712 # Handling of the options.
a0da8069 14713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14714 ac_cs_recheck=: ;;
81ecdfbb
RW
14715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14716 $as_echo "$ac_cs_version"; exit ;;
14717 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14718 debug=: ;;
14719 --file | --fil | --fi | --f )
14720 $ac_shift
81ecdfbb
RW
14721 case $ac_optarg in
14722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14723 esac
14724 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14725 ac_need_defaults=false;;
81ecdfbb
RW
14726 --he | --h | --help | --hel | -h )
14727 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14730 ac_cs_silent=: ;;
14731
14732 # This is an error.
81ecdfbb
RW
14733 -*) as_fn_error "unrecognized option: \`$1'
14734Try \`$0 --help' for more information." ;;
c6b750e1 14735
81ecdfbb
RW
14736 *) as_fn_append ac_config_targets " $1"
14737 ac_need_defaults=false ;;
c6b750e1 14738
376a0e54 14739 esac
c6b750e1 14740 shift
376a0e54
CM
14741done
14742
c6b750e1 14743ac_configure_extra_args=
376a0e54 14744
c6b750e1
DJ
14745if $ac_cs_silent; then
14746 exec 6>/dev/null
14747 ac_configure_extra_args="$ac_configure_extra_args --silent"
14748fi
376a0e54 14749
c6b750e1 14750_ACEOF
81ecdfbb 14751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14752if \$ac_cs_recheck; then
81ecdfbb
RW
14753 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14754 shift
14755 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14756 CONFIG_SHELL='$SHELL'
14757 export CONFIG_SHELL
14758 exec "\$@"
c6b750e1
DJ
14759fi
14760
14761_ACEOF
81ecdfbb
RW
14762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14763exec 5>>config.log
14764{
14765 echo
14766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14767## Running $as_me. ##
14768_ASBOX
14769 $as_echo "$ac_log"
14770} >&5
c6b750e1 14771
81ecdfbb
RW
14772_ACEOF
14773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14774#
14775# INIT-COMMANDS
14776#
14777extrasub_build="$extrasub_build"
14778 extrasub_host="$extrasub_host"
14779 extrasub_target="$extrasub_target"
14780
81ecdfbb 14781_ACEOF
c6b750e1 14782
81ecdfbb 14783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14784
81ecdfbb 14785# Handling of arguments.
c6b750e1
DJ
14786for ac_config_target in $ac_config_targets
14787do
81ecdfbb
RW
14788 case $ac_config_target in
14789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14790
14791 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14792 esac
14793done
14794
81ecdfbb 14795
c6b750e1
DJ
14796# If the user did not use the arguments to specify the items to instantiate,
14797# then the envvar interface is used. Set only those that are not.
14798# We use the long form for the default assignment because of an extremely
14799# bizarre bug on SunOS 4.1.3.
14800if $ac_need_defaults; then
14801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14802fi
14803
14804# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14805# simply because there is no reason against having it here, and in addition,
c6b750e1 14806# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14807# Hook for its removal unless debugging.
14808# Note that there is a small window in which the directory will not be cleaned:
14809# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14810$debug ||
14811{
81ecdfbb
RW
14812 tmp=
14813 trap 'exit_status=$?
14814 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14815' 0
14816 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14817}
c6b750e1
DJ
14818# Create a (secure) tmp directory for tmp files.
14819
14820{
81ecdfbb 14821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14822 test -n "$tmp" && test -d "$tmp"
14823} ||
14824{
81ecdfbb
RW
14825 tmp=./conf$$-$RANDOM
14826 (umask 077 && mkdir "$tmp")
14827} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14828
14829# Set up the scripts for CONFIG_FILES section.
14830# No need to generate them if there are no CONFIG_FILES.
14831# This happens for instance with `./config.status config.h'.
14832if test -n "$CONFIG_FILES"; then
14833
14834if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14835 ac_cs_awk_getline=:
14836 ac_cs_awk_pipe_init=
14837 ac_cs_awk_read_file='
14838 while ((getline aline < (F[key])) > 0)
14839 print(aline)
14840 close(F[key])'
14841 ac_cs_awk_pipe_fini=
14842else
14843 ac_cs_awk_getline=false
14844 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14845 ac_cs_awk_read_file='
14846 print "|#_!!_#|"
14847 print "cat " F[key] " &&"
14848 '$ac_cs_awk_pipe_init
14849 # The final `:' finishes the AND list.
14850 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14851fi
14852ac_cr=`echo X | tr X '\015'`
14853# On cygwin, bash can eat \r inside `` if the user requested igncr.
14854# But we know of no other shell where ac_cr would be empty at this
14855# point, so we can use a bashism as a fallback.
14856if test "x$ac_cr" = x; then
14857 eval ac_cr=\$\'\\r\'
14858fi
14859ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14860if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14861 ac_cs_awk_cr='\r'
14862else
14863 ac_cs_awk_cr=$ac_cr
14864fi
14865
14866echo 'BEGIN {' >"$tmp/subs1.awk" &&
14867_ACEOF
14868
14869# Create commands to substitute file output variables.
c6b750e1 14870{
81ecdfbb
RW
14871 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14872 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14873 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14874 echo "_ACAWK" &&
14875 echo "_ACEOF"
14876} >conf$$files.sh &&
14877. ./conf$$files.sh ||
14878 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14879rm -f conf$$files.sh
c6b750e1 14880
81ecdfbb
RW
14881{
14882 echo "cat >conf$$subs.awk <<_ACEOF" &&
14883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14884 echo "_ACEOF"
14885} >conf$$subs.sh ||
14886 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14887ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14888ac_delim='%!_!# '
14889for ac_last_try in false false false false false :; do
14890 . ./conf$$subs.sh ||
14891 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14892
14893 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14894 if test $ac_delim_n = $ac_delim_num; then
14895 break
14896 elif $ac_last_try; then
14897 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14898 else
14899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14900 fi
14901done
14902rm -f conf$$subs.sh
14903
14904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14906_ACEOF
81ecdfbb
RW
14907sed -n '
14908h
14909s/^/S["/; s/!.*/"]=/
14910p
14911g
14912s/^[^!]*!//
14913:repl
14914t repl
14915s/'"$ac_delim"'$//
14916t delim
14917:nl
14918h
14919s/\(.\{148\}\).*/\1/
14920t more1
14921s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14922p
14923n
14924b repl
14925:more1
14926s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14927p
14928g
14929s/.\{148\}//
14930t nl
14931:delim
14932h
14933s/\(.\{148\}\).*/\1/
14934t more2
14935s/["\\]/\\&/g; s/^/"/; s/$/"/
14936p
14937b
14938:more2
14939s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14940p
14941g
14942s/.\{148\}//
14943t delim
14944' <conf$$subs.awk | sed '
14945/^[^""]/{
14946 N
14947 s/\n//
14948}
14949' >>$CONFIG_STATUS || ac_write_fail=1
14950rm -f conf$$subs.awk
14951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952_ACAWK
14953cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14954 for (key in S) S_is_set[key] = 1
14955 FS = "\a"
14956 \$ac_cs_awk_pipe_init
14957}
14958{
14959 line = $ 0
14960 nfields = split(line, field, "@")
14961 substed = 0
14962 len = length(field[1])
14963 for (i = 2; i < nfields; i++) {
14964 key = field[i]
14965 keylen = length(key)
14966 if (S_is_set[key]) {
14967 value = S[key]
14968 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14969 len += length(value) + length(field[++i])
14970 substed = 1
14971 } else
14972 len += 1 + keylen
14973 }
14974 if (nfields == 3 && !substed) {
14975 key = field[2]
14976 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14977 \$ac_cs_awk_read_file
14978 next
14979 }
14980 }
14981 print line
14982}
14983\$ac_cs_awk_pipe_fini
14984_ACAWK
14985_ACEOF
14986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14989else
14990 cat
14991fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14992 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14993_ACEOF
14994
14995# VPATH may cause trouble with some makes, so we remove $(srcdir),
14996# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14997# trailing colons and then remove the whole line if VPATH becomes empty
14998# (actually we leave an empty line to preserve line numbers).
14999if test "x$srcdir" = x.; then
15000 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15001s/:*\$(srcdir):*/:/
15002s/:*\${srcdir}:*/:/
15003s/:*@srcdir@:*/:/
15004s/^\([^=]*=[ ]*\):*/\1/
15005s/:*$//
15006s/^[^=]*=[ ]*$//
15007}'
15008fi
c6b750e1 15009
81ecdfbb
RW
15010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011fi # test -n "$CONFIG_FILES"
c6b750e1 15012
c6b750e1 15013
81ecdfbb
RW
15014eval set X " :F $CONFIG_FILES "
15015shift
15016for ac_tag
15017do
15018 case $ac_tag in
15019 :[FHLC]) ac_mode=$ac_tag; continue;;
15020 esac
15021 case $ac_mode$ac_tag in
15022 :[FHL]*:*);;
15023 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15024 :[FH]-) ac_tag=-:-;;
15025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15026 esac
15027 ac_save_IFS=$IFS
15028 IFS=:
15029 set x $ac_tag
15030 IFS=$ac_save_IFS
15031 shift
15032 ac_file=$1
15033 shift
252b5132 15034
81ecdfbb
RW
15035 case $ac_mode in
15036 :L) ac_source=$1;;
15037 :[FH])
15038 ac_file_inputs=
15039 for ac_f
15040 do
15041 case $ac_f in
15042 -) ac_f="$tmp/stdin";;
15043 *) # Look for the file first in the build tree, then in the source tree
15044 # (if the path is not absolute). The absolute path cannot be DOS-style,
15045 # because $ac_f cannot contain `:'.
15046 test -f "$ac_f" ||
15047 case $ac_f in
15048 [\\/$]*) false;;
15049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15050 esac ||
15051 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15052 esac
15053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15054 as_fn_append ac_file_inputs " '$ac_f'"
15055 done
c6b750e1 15056
81ecdfbb
RW
15057 # Let's still pretend it is `configure' which instantiates (i.e., don't
15058 # use $as_me), people would be surprised to read:
15059 # /* config.h. Generated by config.status. */
15060 configure_input='Generated from '`
15061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15062 `' by configure.'
15063 if test x"$ac_file" != x-; then
15064 configure_input="$ac_file. $configure_input"
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15066$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15067 fi
81ecdfbb
RW
15068 # Neutralize special characters interpreted by sed in replacement strings.
15069 case $configure_input in #(
15070 *\&* | *\|* | *\\* )
15071 ac_sed_conf_input=`$as_echo "$configure_input" |
15072 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15073 *) ac_sed_conf_input=$configure_input;;
15074 esac
cac3d6c4 15075
81ecdfbb
RW
15076 case $ac_tag in
15077 *:-:* | *:-) cat >"$tmp/stdin" \
15078 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15079 esac
15080 ;;
a0da8069 15081 esac
252b5132 15082
81ecdfbb 15083 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15085 X"$ac_file" : 'X\(//\)[^/]' \| \
15086 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15088$as_echo X"$ac_file" |
15089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15090 s//\1/
15091 q
15092 }
15093 /^X\(\/\/\)[^/].*/{
15094 s//\1/
15095 q
15096 }
15097 /^X\(\/\/\)$/{
15098 s//\1/
15099 q
15100 }
15101 /^X\(\/\).*/{
15102 s//\1/
15103 q
15104 }
15105 s/.*/./; q'`
15106 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15107 ac_builddir=.
252b5132 15108
81ecdfbb
RW
15109case "$ac_dir" in
15110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15111*)
15112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15113 # A ".." for each directory in $ac_dir_suffix.
15114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15115 case $ac_top_builddir_sub in
15116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15118 esac ;;
15119esac
15120ac_abs_top_builddir=$ac_pwd
15121ac_abs_builddir=$ac_pwd$ac_dir_suffix
15122# for backward compatibility:
15123ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15124
15125case $srcdir in
81ecdfbb 15126 .) # We are building in place.
c6b750e1 15127 ac_srcdir=.
81ecdfbb
RW
15128 ac_top_srcdir=$ac_top_builddir_sub
15129 ac_abs_top_srcdir=$ac_pwd ;;
15130 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15131 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15132 ac_top_srcdir=$srcdir
15133 ac_abs_top_srcdir=$srcdir ;;
15134 *) # Relative name.
15135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15136 ac_top_srcdir=$ac_top_build_prefix$srcdir
15137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15138esac
81ecdfbb 15139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15140
252b5132 15141
81ecdfbb
RW
15142 case $ac_mode in
15143 :F)
15144 #
15145 # CONFIG_FILE
15146 #
c6b750e1
DJ
15147
15148 case $INSTALL in
15149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15151 esac
81ecdfbb 15152_ACEOF
252b5132 15153
81ecdfbb
RW
15154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15155# If the template does not know about datarootdir, expand it.
15156# FIXME: This hack should be removed a few years after 2.60.
15157ac_datarootdir_hack=; ac_datarootdir_seen=
15158ac_sed_dataroot='
15159/datarootdir/ {
15160 p
15161 q
15162}
15163/@datadir@/p
15164/@docdir@/p
15165/@infodir@/p
15166/@localedir@/p
15167/@mandir@/p'
15168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15169*datarootdir*) ac_datarootdir_seen=yes;;
15170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15173_ACEOF
81ecdfbb
RW
15174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175 ac_datarootdir_hack='
15176 s&@datadir@&$datadir&g
15177 s&@docdir@&$docdir&g
15178 s&@infodir@&$infodir&g
15179 s&@localedir@&$localedir&g
15180 s&@mandir@&$mandir&g
15181 s&\\\${datarootdir}&$datarootdir&g' ;;
15182esac
15183_ACEOF
15184
15185# Neutralize VPATH when `$srcdir' = `.'.
15186# Shell code in configure.ac might set extrasub.
15187# FIXME: do we really want to maintain this feature?
15188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15190$extrasub
15191_ACEOF
81ecdfbb 15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15193:t
15194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15195s|@configure_input@|$ac_sed_conf_input|;t t
15196s&@top_builddir@&$ac_top_builddir_sub&;t t
15197s&@top_build_prefix@&$ac_top_build_prefix&;t t
15198s&@srcdir@&$ac_srcdir&;t t
15199s&@abs_srcdir@&$ac_abs_srcdir&;t t
15200s&@top_srcdir@&$ac_top_srcdir&;t t
15201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15202s&@builddir@&$ac_builddir&;t t
15203s&@abs_builddir@&$ac_abs_builddir&;t t
15204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15205s&@INSTALL@&$ac_INSTALL&;t t
15206$ac_datarootdir_hack
15207"
15208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15209if $ac_cs_awk_getline; then
15210 $AWK -f "$tmp/subs.awk"
15211else
15212 $AWK -f "$tmp/subs.awk" | $SHELL
15213fi >$tmp/out \
15214 || as_fn_error "could not create $ac_file" "$LINENO" 5
15215
15216test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15220which seems to be undefined. Please make sure it is defined." >&5
15221$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15222which seems to be undefined. Please make sure it is defined." >&2;}
15223
15224 rm -f "$tmp/stdin"
15225 case $ac_file in
15226 -) cat "$tmp/out" && rm -f "$tmp/out";;
15227 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15228 esac \
15229 || as_fn_error "could not create $ac_file" "$LINENO" 5
15230 ;;
c148b4cb 15231
c148b4cb 15232
c148b4cb 15233
81ecdfbb
RW
15234 esac
15235
06a51eac
RW
15236
15237 case $ac_file$ac_mode in
15238 "Makefile":F) sed "$extrasub_build" Makefile |
15239 sed "$extrasub_host" |
15240 sed "$extrasub_target" > mf$$
15241 mv -f mf$$ Makefile ;;
15242
15243 esac
81ecdfbb
RW
15244done # for ac_tag
15245
15246
15247as_fn_exit 0
c6b750e1 15248_ACEOF
c6b750e1
DJ
15249ac_clean_files=$ac_clean_files_save
15250
81ecdfbb
RW
15251test $ac_write_fail = 0 ||
15252 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15253
c6b750e1
DJ
15254
15255# configure is writing to config.log, and then calls config.status.
15256# config.status does its own redirection, appending to config.log.
15257# Unfortunately, on DOS this fails, as config.log is still kept open
15258# by configure, so config.status won't be able to write to it; its
15259# output is simply discarded. So we exec the FD to /dev/null,
15260# effectively closing config.log, so it can be properly (re)opened and
15261# appended to by config.status. When coming back to configure, we
15262# need to make the FD available again.
15263if test "$no_create" != yes; then
15264 ac_cs_success=:
15265 ac_config_status_args=
15266 test "$silent" = yes &&
15267 ac_config_status_args="$ac_config_status_args --quiet"
15268 exec 5>/dev/null
15269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15270 exec 5>>config.log
15271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15272 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15273 $ac_cs_success || as_fn_exit $?
15274fi
15275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15277$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15278fi
c148b4cb 15279
This page took 1.502012 seconds and 4 git commands to generate.