]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Update the libiberty sources with the latest patches found in the master sources.
[thirdparty/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
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
6b91c541 577OBJCOPY_FOR_TARGET
81ecdfbb
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
e552509b 584GOC_FOR_TARGET
81ecdfbb 585GFORTRAN_FOR_TARGET
81ecdfbb
RW
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
b121d7d4 589READELF
81ecdfbb
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
81ecdfbb
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
e552509b 616GOC_FOR_BUILD
81ecdfbb 617GFORTRAN_FOR_BUILD
81ecdfbb
RW
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
e81d5d05 644extra_host_zlib_configure_flags
700d40ca 645extra_host_libiberty_configure_flags
1b6c0831
L
646stage1_languages
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
7ec59b9e 649islinc
1b6c0831 650isllibs
52cf9762 651islver
81ecdfbb 652poststage1_ldflags
143754cd 653poststage1_libs
81ecdfbb 654stage1_ldflags
b3676d82 655stage1_libs
7ec59b9e 656extra_isl_gmp_configure_flags
81ecdfbb
RW
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
1b6c0831 675extra_liboffloadmic_configure_flags
81ecdfbb
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
8e957354
PB
680AWK
681SED
81ecdfbb
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
cf39cfc5 749with_system_zlib
1b6c0831
L
750enable_as_accelerator_for
751enable_offload_targets
81ecdfbb 752enable_gold
c7791212 753enable_ld
edeefb67 754enable_compressed_debug_sections
89a1e9c3
PB
755enable_libquadmath
756enable_libquadmath_support
81ecdfbb
RW
757enable_libada
758enable_libssp
f66a9a70 759enable_libstdcxx
1b6c0831 760enable_liboffloadmic
ffdd6afc 761enable_bootstrap
81ecdfbb
RW
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
81ecdfbb 773with_stage1_libs
b3676d82 774with_stage1_ldflags
81ecdfbb 775with_boot_libs
143754cd 776with_boot_ldflags
7ec59b9e
L
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
700d40ca 781enable_lto
1b6c0831
L
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
81ecdfbb
RW
784enable_stage1_languages
785enable_objc_gc
05a13254
NC
786with_target_bdw_gc
787with_target_bdw_gc_include
788with_target_bdw_gc_lib
81ecdfbb
RW
789with_build_sysroot
790with_debug_prefix_map
96655cc4 791with_build_config
730af8ee 792enable_vtable_verify
81ecdfbb
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
82033c9b 798enable_host_shared
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
4074d5f2
RW
811build_configargs
812host_configargs
813target_configargs
81ecdfbb
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
b121d7d4 826READELF
81ecdfbb
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
81ecdfbb 830GFORTRAN_FOR_TARGET
e552509b 831GOC_FOR_TARGET
81ecdfbb
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
6b91c541 838OBJCOPY_FOR_TARGET
81ecdfbb
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
b121d7d4 841READELF_FOR_TARGET
81ecdfbb
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
a0da8069
NN
846
847# Initialize some variables set by options.
c6b750e1
DJ
848ac_init_help=
849ac_init_version=false
81ecdfbb
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
a0da8069
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
c6b750e1 854cache_file=/dev/null
a0da8069 855exec_prefix=NONE
a0da8069 856no_create=
a0da8069
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
a0da8069
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
c6b750e1
DJ
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 874# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
a0da8069
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
a0da8069
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
81ecdfbb
RW
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
252b5132 894
a0da8069 895ac_prev=
81ecdfbb 896ac_dashdash=
a0da8069
NN
897for ac_option
898do
a0da8069
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
81ecdfbb 901 eval $ac_prev=\$ac_option
a0da8069
NN
902 ac_prev=
903 continue
904 fi
252b5132 905
81ecdfbb
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
a0da8069
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
81ecdfbb
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
a0da8069
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 920 bindir=$ac_optarg ;;
a0da8069
NN
921
922 -build | --build | --buil | --bui | --bu)
c6b750e1 923 ac_prev=build_alias ;;
a0da8069 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 925 build_alias=$ac_optarg ;;
a0da8069
NN
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
a0da8069 936
81ecdfbb 937 -datadir | --datadir | --datadi | --datad)
a0da8069 938 ac_prev=datadir ;;
81ecdfbb 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 940 datadir=$ac_optarg ;;
a0da8069 941
81ecdfbb
RW
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
a0da8069 949 -disable-* | --disable-*)
81ecdfbb 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 951 # Reject names that are not valid shell variable names.
81ecdfbb
RW
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
a0da8069
NN
974
975 -enable-* | --enable-*)
81ecdfbb 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 977 # Reject names that are not valid shell variable names.
81ecdfbb
RW
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
a0da8069 988 esac
81ecdfbb 989 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
c6b750e1 998 exec_prefix=$ac_optarg ;;
a0da8069
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
c6b750e1
DJ
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
a0da8069
NN
1010
1011 -host | --host | --hos | --ho)
c6b750e1 1012 ac_prev=host_alias ;;
a0da8069 1013 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1014 host_alias=$ac_optarg ;;
a0da8069 1015
81ecdfbb
RW
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
a0da8069
NN
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1027 includedir=$ac_optarg ;;
a0da8069
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1032 infodir=$ac_optarg ;;
a0da8069
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1037 libdir=$ac_optarg ;;
a0da8069
NN
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1044 libexecdir=$ac_optarg ;;
a0da8069 1045
81ecdfbb
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
a0da8069 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1052 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1056 localstatedir=$ac_optarg ;;
a0da8069
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1061 mandir=$ac_optarg ;;
a0da8069
NN
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1068 | --no-cr | --no-c | -n)
a0da8069
NN
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1082 oldincludedir=$ac_optarg ;;
a0da8069
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1087 prefix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1094 program_prefix=$ac_optarg ;;
a0da8069
NN
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1101 program_suffix=$ac_optarg ;;
a0da8069
NN
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1118 program_transform_name=$ac_optarg ;;
a0da8069 1119
81ecdfbb
RW
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
a0da8069
NN
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
c6b750e1 1138 sbindir=$ac_optarg ;;
a0da8069
NN
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
c6b750e1 1149 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
c6b750e1 1154 site=$ac_optarg ;;
a0da8069
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1159 srcdir=$ac_optarg ;;
a0da8069
NN
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1166 sysconfdir=$ac_optarg ;;
a0da8069
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1169 ac_prev=target_alias ;;
a0da8069 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1171 target_alias=$ac_optarg ;;
a0da8069
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
c6b750e1
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
a0da8069
NN
1178
1179 -with-* | --with-*)
81ecdfbb 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1181 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
a0da8069 1192 esac
81ecdfbb 1193 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1194
1195 -without-* | --without-*)
81ecdfbb 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1197 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
a0da8069
NN
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1220 x_includes=$ac_optarg ;;
a0da8069
NN
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1227 x_libraries=$ac_optarg ;;
a0da8069 1228
81ecdfbb
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
a0da8069
NN
1231 ;;
1232
c6b750e1
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1241 export $ac_envvar ;;
1242
a0da8069 1243 *)
c6b750e1 1244 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
c6b750e1 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1256 as_fn_error "missing argument to $ac_option"
a0da8069 1257fi
a0da8069 1258
81ecdfbb
RW
1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1264 esac
81ecdfbb 1265fi
a0da8069 1266
81ecdfbb
RW
1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
a0da8069 1272do
81ecdfbb
RW
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
c6b750e1 1281 case $ac_val in
81ecdfbb
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1284 esac
81ecdfbb 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1286done
1287
c6b750e1
DJ
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
376a0e54 1294
c6b750e1
DJ
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
81ecdfbb 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
a0da8069 1310
a0da8069 1311
81ecdfbb
RW
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
a0da8069
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
81ecdfbb
RW
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
a0da8069 1347 srcdir=$ac_confdir
81ecdfbb 1348 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
81ecdfbb
RW
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
6d0cd39e
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
9cc8ae67
PB
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
81ecdfbb
RW
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
c6b750e1
DJ
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
c6b750e1
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1415 [$ac_default_prefix]
c6b750e1 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1417 [PREFIX]
c6b750e1
DJ
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
81ecdfbb
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
a0da8069 1460fi
a0da8069 1461
c6b750e1
DJ
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
81ecdfbb 1467 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
c7791212 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
89a1e9c3
PB
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
521ec477
DD
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
f66a9a70 1487 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1490 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1491 --disable-isl-version-check
4849dfd8 1492 disable check for isl version
700d40ca 1493 --enable-lto enable link time optimization support
1b6c0831
L
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
7837304f
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
ce6c656d 1505 --enable-vtable-verify Enable vtable verification feature
521ec477 1506 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
c6b750e1 1516 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1517 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1523 --with-system-zlib use installed libz
7837304f
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
c6b750e1 1533 --with-mpfr-include=PATH
521ec477
DD
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
521ec477
DD
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1543 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
7837304f
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
4849dfd8 1549 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1550 package. Equivalent to
7ec59b9e
L
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
4849dfd8
NC
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
521ec477 1565 --with-build-sysroot=SYSROOT
c6b750e1 1566 use sysroot as the system root during the build
8a6ee3ab 1567 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
521ec477 1571 --with-build-time-tools=PATH
c6b750e1 1572 use given path to find target tools during the build
c6b750e1
DJ
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
81ecdfbb
RW
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
4074d5f2
RW
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
9a819804
AO
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
0c24b341 1599 WINDMC WINDMC for the host
9a819804
AO
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
b121d7d4 1602 READELF READELF for the host
9a819804
AO
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
9a819804
AO
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
e552509b
ILT
1611 GOC_FOR_TARGET
1612 GOC for the target
9a819804
AO
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
6b91c541
AP
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
9a819804
AO
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
b121d7d4
DD
1631 READELF_FOR_TARGET
1632 READELF for the target
9a819804
AO
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
0c24b341
NC
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
c6b750e1
DJ
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
81ecdfbb 1643Report bugs to the package provider.
c6b750e1 1644_ACEOF
81ecdfbb 1645ac_status=$?
c6b750e1
DJ
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
c6b750e1 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
c6b750e1
DJ
1654 ac_builddir=.
1655
81ecdfbb
RW
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1671
1672case $srcdir in
81ecdfbb 1673 .) # We are building in place.
c6b750e1 1674 ac_srcdir=.
81ecdfbb
RW
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1678 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1685esac
81ecdfbb
RW
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1696 else
81ecdfbb
RW
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1700 done
1701fi
1702
81ecdfbb 1703test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1704if $ac_init_version; then
1705 cat <<\_ACEOF
81ecdfbb
RW
1706configure
1707generated by GNU Autoconf 2.64
c6b750e1 1708
81ecdfbb 1709Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
81ecdfbb 1713 exit
c6b750e1 1714fi
81ecdfbb
RW
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_cxx_try_compile LINENO
1759# ----------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_cxx_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_cxx_try_compile
1795
b3676d82
EB
1796# ac_fn_cxx_try_link LINENO
1797# -------------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_link ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840} # ac_fn_cxx_try_link
1841
81ecdfbb
RW
1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_c_try_link
1887cat >config.log <<_ACEOF
c6b750e1
DJ
1888This file contains any messages produced by compilers while
1889running configure, to aid debugging if configure makes a mistake.
1890
1891It was created by $as_me, which was
81ecdfbb 1892generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1893
1894 $ $0 $@
1895
1896_ACEOF
81ecdfbb 1897exec 5>>config.log
c6b750e1
DJ
1898{
1899cat <<_ASUNAME
1900## --------- ##
1901## Platform. ##
1902## --------- ##
1903
1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921_ASUNAME
1922
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1928 $as_echo "PATH: $as_dir"
1929 done
1930IFS=$as_save_IFS
c6b750e1
DJ
1931
1932} >&5
1933
1934cat >&5 <<_ACEOF
1935
1936
1937## ----------- ##
1938## Core tests. ##
1939## ----------- ##
1940
1941_ACEOF
1942
1943
1944# Keep a trace of the command line.
1945# Strip out --no-create and --no-recursion so they do not pile up.
1946# Strip out --silent because we don't want to record it for future runs.
1947# Also quote any args containing shell meta-characters.
1948# Make two passes to allow for proper duplicate-argument suppression.
1949ac_configure_args=
1950ac_configure_args0=
1951ac_configure_args1=
c6b750e1
DJ
1952ac_must_keep_next=false
1953for ac_pass in 1 2
1954do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
81ecdfbb
RW
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1964 esac
1965 case $ac_pass in
81ecdfbb 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1967 2)
81ecdfbb 1968 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
81ecdfbb 1984 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1985 ;;
1986 esac
1987 done
1988done
81ecdfbb
RW
1989{ ac_configure_args0=; unset ac_configure_args0;}
1990{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1991
1992# When interrupted or exit'd, cleanup temporary files, and complete
1993# config.log. We remove comments because anyway the quotes in there
1994# would cause problems or look ugly.
81ecdfbb
RW
1995# WARNING: Use '\'' to represent an apostrophe within the trap.
1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1997trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##
2006_ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2009(
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
c6b750e1 2025 (set) 2>&1 |
81ecdfbb
RW
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
c6b750e1 2028 sed -n \
81ecdfbb
RW
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
c6b750e1 2032 *)
81ecdfbb 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2034 ;;
81ecdfbb
RW
2035 esac |
2036 sort
2037)
c6b750e1
DJ
2038 echo
2039
2040 cat <<\_ASBOX
2041## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##
2044_ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
81ecdfbb
RW
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
81ecdfbb
RW
2058## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##
c6b750e1
DJ
2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
81ecdfbb
RW
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##
2079_ASBOX
2080 echo
81ecdfbb 2081 cat confdefs.h
c6b750e1
DJ
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
81ecdfbb
RW
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
c6b750e1 2087 } >&5
81ecdfbb
RW
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2090 exit $exit_status
81ecdfbb 2091' 0
c6b750e1 2092for ac_signal in 1 2 13 15; do
81ecdfbb 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
c6b750e1
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
c6b750e1
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
2115
c6b750e1
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
c6b750e1
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
81ecdfbb
RW
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
c6b750e1
DJ
2128
2129# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2141fi
81ecdfbb
RW
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144 test "x$ac_site_file" = xNONE && continue
a0da8069 2145 if test -r "$ac_site_file"; then
81ecdfbb
RW
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2148 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2149 . "$ac_site_file"
2150 fi
2151done
2152
2153if test -r "$cache_file"; then
c6b750e1
DJ
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
81ecdfbb
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2159 case $cache_file in
81ecdfbb
RW
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
c6b750e1
DJ
2162 esac
2163 fi
a0da8069 2164else
81ecdfbb
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2167 >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
81ecdfbb 2173for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2178 case $ac_old_set,$ac_new_set in
2179 set,)
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2182 ac_cache_corrupted=: ;;
2183 ,set)
81ecdfbb
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
81ecdfbb 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2217 esac
2218 fi
2219done
2220if $ac_cache_corrupted; then
81ecdfbb
RW
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2226fi
81ecdfbb
RW
2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
a0da8069
NN
2230
2231ac_ext=c
a0da8069 2232ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239
c6b750e1
DJ
2240
2241
34a0f3cf 2242
c6b750e1 2243
5b553f7e
RW
2244
2245progname=$0
2246# if PWD already has a value, it is probably wrong.
2247if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249# Export original configure arguments for use by sub-configures.
2250# Quote arguments with shell meta charatcers.
2251TOPLEVEL_CONFIGURE_ARGUMENTS=
2252set -- "$progname" "$@"
2253for ac_arg
2254do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264done
2265if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267fi
2268# Remove the initial space we just introduced and, as these will be
2269# expanded by make, quote '$'.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
c6b750e1
DJ
2272
2273# Find the build, host, and target systems.
a0da8069 2274ac_aux_dir=
81ecdfbb
RW
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
a0da8069
NN
2283done
2284if test -z "$ac_aux_dir"; then
81ecdfbb 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2286fi
81ecdfbb
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
a0da8069 2296
c6b750e1 2297# Make sure we can run config.sub.
81ecdfbb
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
c6b750e1 2321build=$ac_cv_build
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2333
a0da8069 2334
c6b750e1
DJ
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2338esac
2339
2340
cac3d6c4 2341
c6b750e1
DJ
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2345esac
2346
cac3d6c4 2347
c6b750e1
DJ
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2352esac
2353
cac3d6c4 2354
c6b750e1
DJ
2355
2356
2357test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
c6b750e1 2360 program_transform_name=s,y,y,
cac3d6c4 2361
81ecdfbb
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363$as_echo_n "checking host system type... " >&6; }
2364if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
cac3d6c4 2366else
81ecdfbb
RW
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372fi
c6b750e1
DJ
2373
2374fi
81ecdfbb
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380esac
c6b750e1 2381host=$ac_cv_host
81ecdfbb
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_host
2384shift
2385host_cpu=$1
2386host_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390host_os=$*
2391IFS=$ac_save_IFS
2392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2393
2394
81ecdfbb
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396$as_echo_n "checking target system type... " >&6; }
2397if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
c6b750e1 2399else
81ecdfbb
RW
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405fi
c6b750e1 2406
cac3d6c4 2407fi
81ecdfbb
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409$as_echo "$ac_cv_target" >&6; }
2410case $ac_cv_target in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413esac
c6b750e1 2414target=$ac_cv_target
81ecdfbb
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_target
2417shift
2418target_cpu=$1
2419target_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423target_os=$*
2424IFS=$ac_save_IFS
2425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2426
2427
2428# The aliases save the names the user supplied, while $host etc.
2429# will get canonicalized.
2430test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
81ecdfbb 2434
a0da8069 2435test "$program_prefix" != NONE &&
81ecdfbb 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2437# Use a double $ so make ignores it.
2438test "$program_suffix" != NONE &&
81ecdfbb
RW
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440# Double any \ or $.
c6b750e1 2441# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2444
a0da8069
NN
2445
2446
e5c3f801
NN
2447# Get 'install' or 'install-sh' and its variants.
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
c6b750e1 2455# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2459# OS/2's system install, which has a completely different semantic
e5c3f801 2460# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2461# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2464if test -z "$INSTALL"; then
81ecdfbb
RW
2465if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2467else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
c6b750e1 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2486 if test $ac_prog = install &&
c6b750e1 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2488 # AIX install. It has an incompatible calling convention.
2489 :
c6b750e1
DJ
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
e5c3f801 2494 else
58c85be7
RW
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
e5c3f801
NN
2507 fi
2508 fi
2509 done
c6b750e1
DJ
2510 done
2511 ;;
2512esac
81ecdfbb
RW
2513
2514 done
2515IFS=$as_save_IFS
c6b750e1 2516
58c85be7 2517rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2518
2519fi
2520 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2521 INSTALL=$ac_cv_path_install
e5c3f801 2522 else
58c85be7
RW
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
e5c3f801 2525 # break other packages using the cache if that directory is
58c85be7 2526 # removed, or if the value is a relative name.
c6b750e1 2527 INSTALL=$ac_install_sh
e5c3f801
NN
2528 fi
2529fi
81ecdfbb
RW
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
c6b750e1 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
81ecdfbb
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542$as_echo_n "checking whether ln works... " >&6; }
2543if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
656fdd47
PB
2545else
2546 rm -f conftestdata_t
2547echo >conftestdata_f
2548if ln conftestdata_f conftestdata_t 2>/dev/null
2549then
2550 acx_cv_prog_LN=ln
2551else
2552 acx_cv_prog_LN=no
2553fi
2554rm -f conftestdata_f conftestdata_t
2555
2556fi
2557if test $acx_cv_prog_LN = no; then
2558 LN="cp"
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560$as_echo "no, using $LN" >&6; }
656fdd47
PB
2561else
2562 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
656fdd47
PB
2565fi
2566
81ecdfbb
RW
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2569LN_S=$as_ln_s
2570if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572$as_echo "yes" >&6; }
cac3d6c4 2573else
81ecdfbb
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2576fi
2577
8e957354
PB
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601# Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603case `"$ac_path_SED" --version 2>&1` in
2604*GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606*)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637else
2638 ac_cv_path_SED=$SED
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643$as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686 test -n "$AWK" && break
2687done
2688
e5c3f801 2689
0fdbe983
DJ
2690srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693# a relative path.
2694if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696fi
2697
a0da8069
NN
2698# Set srcdir to "." if that's what it is.
2699# This is important for multilib support.
2700pwd=`${PWDCMD-pwd}`
a0da8069
NN
2701if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
252b5132
RH
2703fi
2704
a0da8069 2705topsrcdir=$srcpwd
252b5132 2706
a0da8069 2707extra_host_args=
afefada0 2708
a0da8069
NN
2709### To add a new directory to the tree, first choose whether it is a target
2710### or a host dependent tool. Then put it into the appropriate list
2711### (library or tools, host or target), doing a dependency sort.
252b5132 2712
c6b750e1 2713# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2714# configdirs, or target_configdirs; see the serialization section below.
252b5132 2715
c6b750e1
DJ
2716# Dependency sorting is only needed when *configuration* must be done in
2717# a particular order. In all cases a dependency should be specified in
a0da8069 2718# the Makefile, whether or not it's implicitly specified here.
252b5132 2719
a0da8069
NN
2720# Double entries in build_configdirs, configdirs, or target_configdirs may
2721# cause circular dependencies and break everything horribly.
252b5132 2722
6a9cf61e
PB
2723# these library is used by various programs built for the build
2724# environment
2725#
1b6c0831 2726build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2727
2728# these tools are built for the build environment
a90ef4bf 2729build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2730
a0da8069 2731# these libraries are used by various programs built for the host environment
1b6c0831
L
2732#f
2733host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2734
a0da8069
NN
2735# these tools are built for the host environment
2736# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737# know that we are building the simulator.
2738# binutils, gas and ld appear in that order because it makes sense to run
2739# "make check" in that particular order.
e6de499b 2740# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2741host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2742
a0da8069
NN
2743# these libraries are built for the target environment, and are built after
2744# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2745# Note that libiberty is not a target library.
b1299c4e 2746target_libraries="target-libgcc \
2bf680c4 2747 target-libbacktrace \
a0da8069
NN
2748 target-libgloss \
2749 target-newlib \
cff87f51 2750 target-libgomp \
522e3d71 2751 target-libcilkrts \
1b6c0831 2752 target-liboffloadmic \
7ec59b9e 2753 target-libatomic \
d32e2926 2754 target-libitm \
b9459e83 2755 target-libstdc++-v3 \
5286fdef 2756 target-libsanitizer \
95e43135 2757 target-libvtv \
1b6c0831 2758 target-libmpx \
bb780410 2759 target-libssp \
e552509b 2760 target-libquadmath \
4b1cb4fe 2761 target-libgfortran \
05a13254 2762 target-libffi \
a2592b1b 2763 target-libobjc \
e552509b
ILT
2764 target-libada \
2765 target-libgo"
a0da8069 2766
9c14acb8
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
a0da8069 2769#
9c14acb8 2770# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2771# list belongs in this list.
a0da8069 2772#
a90ef4bf 2773target_tools="target-rda"
252b5132 2774
a0da8069 2775################################################################################
252b5132 2776
a0da8069
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
a0da8069 2782configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2784build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2785
9cc8ae67
PB
2786
2787
a0da8069 2788################################################################################
252b5132 2789
a0da8069 2790srcname="gnu development package"
252b5132 2791
a0da8069
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
252b5132 2794
a0da8069
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
252b5132 2799else
a0da8069 2800 is_cross_compiler=yes
c6b750e1 2801fi
252b5132 2802
9175bfc0 2803# Find the build and target subdir names.
dd12c3a8 2804
66a79c16
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2815build_subdir="build-${build_noncanonical}"
c6b750e1 2816
81ecdfbb
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2820else
2821 build_libsubdir="$build_subdir"
81ecdfbb
RW
2822fi
2823
b00612cc
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
dd12c3a8
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
c6b750e1 2833
2fd0b40b
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
252b5132 2839
a0da8069
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
252b5132 2844
a0da8069
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
93f9b408 2849 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2850fi
2851
a0da8069
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2857fi
2858
700d40ca 2859use_included_zlib=
cf39cfc5
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
700d40ca
ILT
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
c6b750e1 2872# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2873# it's not even worth trying to configure, much less build, that tool.
252b5132 2874
a0da8069
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
675c6968 2878 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2879 # We won't be able to build gdbtk without X.
c6b750e1 2880 enable_gdbtk=no
a0da8069
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
252b5132 2884
0377a422 2885# Some are only suitable for cross toolchains.
a0da8069
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2891esac
252b5132 2892
a0da8069
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
32be62b5
RS
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
252b5132
RH
2900fi
2901
a0da8069
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
252b5132 2907
1b6c0831
L
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
c7791212
NC
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
d3b50760
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
c7791212
NC
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
d3b50760
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
c7791212
NC
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
81ecdfbb
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2948else
2949 ENABLE_GOLD=no
81ecdfbb
RW
2950fi
2951
c7791212
NC
2952case "${ENABLE_GOLD}" in
2953 yes|default)
e6de499b
NC
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d5451cd4 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
e6de499b
NC
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
93f9b408 2972 case "${target}" in
6d26190c 2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
e6de499b 2979 ENABLE_GOLD=yes
93f9b408
ILT
2980 ;;
2981 esac
e6de499b
NC
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
c7791212
NC
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
d3b50760 3001 if test x${default_ld} != x; then
c7791212
NC
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
93f9b408 3018
edeefb67
L
3019# PR gas/19109
3020# Decide the default method for compressing debug sections.
3021# Provide a configure time option to override our default.
3022# Check whether --enable-compressed_debug_sections was given.
3023if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029else
3030 enable_compressed_debug_sections=
3031fi
3032
3033
a0da8069 3034# Configure extra directories which are host specific
252b5132 3035
a0da8069
NN
3036case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039esac
252b5132 3040
59f7ec45
HPN
3041# A target can indicate whether a language isn't supported for some reason.
3042# Only spaces may be used in this macro; not newlines or tabs.
3043unsupported_languages=
3044
c6b750e1 3045# Remove more programs from consideration, based on the host or
a0da8069
NN
3046# target this usually means that a port of the program doesn't
3047# exist yet.
252b5132 3048
a0da8069 3049case "${host}" in
3516a403 3050 i[3456789]86-*-msdosdjgpp*)
6a608608 3051 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3052 ;;
a0da8069 3053esac
252b5132 3054
4b1cb4fe 3055
89a1e9c3
PB
3056# Check whether --enable-libquadmath was given.
3057if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059else
3060 ENABLE_LIBQUADMATH=yes
3061fi
3062
3063if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065fi
3066
3067
3068# Check whether --enable-libquadmath-support was given.
3069if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073fi
3074
3075enable_libquadmath_support=
3076if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078fi
3079
3080
81ecdfbb
RW
3081# Check whether --enable-libada was given.
3082if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3084else
3085 ENABLE_LIBADA=yes
81ecdfbb
RW
3086fi
3087
a2592b1b 3088if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3089 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3090fi
3091
81ecdfbb
RW
3092# Check whether --enable-libssp was given.
3093if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3095else
3096 ENABLE_LIBSSP=yes
81ecdfbb
RW
3097fi
3098
5f128533 3099
f66a9a70
L
3100# Check whether --enable-libstdcxx was given.
3101if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103else
3104 ENABLE_LIBSTDCXX=default
3105fi
3106
3107if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3109fi
3110
3111# If this is accelerator compiler and its target is intelmic we enable
3112# target liboffloadmic by default. If this is compiler with offloading
3113# for intelmic we enable host liboffloadmic by default. Otherwise
3114# liboffloadmic is disabled by default.
3115# Check whether --enable-liboffloadmic was given.
3116if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122esac
3123else
3124 if test x"$enable_as_accelerator_for" != x; then
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144fi
f66a9a70
L
3145fi
3146
1b6c0831
L
3147
3148
68996839 3149# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3150if test x$enable_libgomp = x ; then
b3ded179 3151 case "${target}" in
29383458 3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3153 ;;
5b806d27 3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3155 ;;
2479f722 3156 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3157 ;;
3158 *-*-darwin* | *-*-aix*)
3159 ;;
68996839
NC
3160 nvptx*-*-*)
3161 ;;
b3ded179
PB
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
a6df5a19 3166fi
b3ded179 3167
7ec59b9e
L
3168# Disable libatomic on unsupported systems.
3169if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172$as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
522e3d71 3187# Disable libcilkrts on unsupported systems.
3188if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191$as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202 fi
3203 fi
3204fi
3205
1b6c0831
L
3206# Disable liboffloadmic on unsupported systems.
3207if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210$as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
d32e2926
RH
3225# Disable libitm on unsupported systems.
3226if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229$as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239$as_echo "yes" >&6; }
3240 fi
3241 fi
3242fi
3243
5286fdef
L
3244# Disable libsanitizer on unsupported systems.
3245if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248$as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
95e43135
JBG
3263# Disable libvtv on unsupported systems.
3264if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267$as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
1b6c0831
L
3282
3283# Enable libmpx on supported systems by request.
3284if test -d ${srcdir}/libmpx; then
4849dfd8 3285 if test x$enable_libmpx = x; then
1b6c0831
L
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287$as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
1b6c0831
L
3299 fi
3300fi
3301
3302
3303
1488e230
DE
3304# Disable libquadmath for some systems.
3305case "${target}" in
5286fdef
L
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
1488e230
DE
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314esac
3315
065a5627
JM
3316# Disable libssp for some systems.
3317case "${target}" in
3318 avr-*-*)
c5f5c3c2 3319 # No hosted I/O support.
065a5627
JM
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3324 ;;
99c513f6 3325 rl78-*-*)
202e2356
NC
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
99c513f6
DD
3329 noconfigdirs="$noconfigdirs target-libssp"
3330 ;;
1b6c0831
L
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
065a5627
JM
3335esac
3336
065a5627 3337# Disable libstdc++-v3 for some systems.
f66a9a70
L
3338# Allow user to override this if they pass --enable-libstdc++-v3
3339if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
969b1713
L
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
f66a9a70
L
3355 esac
3356fi
065a5627
JM
3357
3358# Disable Fortran for some systems.
3359case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364esac
3365
05a13254 3366# Disable libffi for some systems.
0827f9a6 3367case "${target}" in
9863d716
JM
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
05a13254 3375 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3376 ;;
9863d716 3377 *-*-netware*)
05a13254
NC
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3382 ;;
3383 *-*-rtems*)
05a13254 3384 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3385 ;;
3386 *-*-tpf*)
05a13254 3387 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3388 ;;
3389 *-*-uclinux*)
05a13254 3390 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3391 ;;
3392 *-*-vxworks*)
05a13254
NC
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3397 ;;
9863d716 3398 alpha*-*-*vms*)
05a13254 3399 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3400 ;;
1b6c0831 3401 arm*-*-freebsd*)
05a13254 3402 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3403 ;;
0827f9a6 3404 arm-wince-pe)
05a13254 3405 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3406 ;;
9863d716 3407 arm*-*-symbianelf*)
05a13254 3408 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3409 ;;
9863d716 3410 cris-*-* | crisv32-*-*)
9863d716
JM
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
05a13254 3415 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3416 esac
3417 ;;
82ae827f 3418 hppa*64*-*-hpux*)
05a13254 3419 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
82ae827f 3423 hppa*-*-hpux*)
05a13254 3424 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3425 ;;
9863d716 3426 ia64*-*-*vms*)
05a13254 3427 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3428 ;;
9863d716 3429 i[3456789]86-w64-mingw*)
05a13254 3430 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3431 ;;
3432 i[3456789]86-*-mingw*)
05a13254 3433 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3434 ;;
3435 x86_64-*-mingw*)
05a13254 3436 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3437 ;;
9863d716 3438 mmix-*-*)
05a13254 3439 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
05a13254 3443 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3444 ;;
9863d716 3445 rs6000-*-aix*)
05a13254 3446 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3447 ;;
3f8107ab 3448 ft32-*-*)
05a13254 3449 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3450 ;;
9863d716 3451 *-*-lynxos*)
05a13254 3452 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3453 ;;
9863d716
JM
3454esac
3455
1b6c0831
L
3456# Disable the go frontend on systems where it is known to not work. Please keep
3457# this in sync with contrib/config-list.mk.
3458case "${target}" in
3459*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462esac
3463
a413f71a
ILT
3464# Disable libgo for some systems where it is known to not work.
3465# For testing, you can easily override this with --enable-libgo.
3466if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479fi
3480
691bb5a1
DD
3481# Default libgloss CPU subdirectory.
3482libgloss_dir="$target_cpu"
4b1cb4fe 3483
ff46fb8f
JM
3484case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
f1dd87fc
YZ
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
ff46fb8f
JM
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518esac
3519
c7e4b184 3520# Disable newlib and libgloss for various target OSes.
a0da8069 3521case "${target}" in
c7e4b184
JM
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
a0da8069 3552 *-*-chorusos)
b2f14e4a 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3554 ;;
c7e4b184
JM
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585esac
3586
3587case "${target}" in
3588 *-*-chorusos)
3589 ;;
f075eb5e
TG
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
24741ab2 3598 powerpc-*-darwin*)
9d39db92 3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3600 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3601 ;;
85bd1942
TG
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
e8a5fa9c 3606 x86_64-*-darwin[912]*)
652dec25
TG
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3609 ;;
04d1ab34 3610 *-*-darwin*)
d320aacb 3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3612 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3613 ;;
5b806d27 3614 *-*-dragonfly*)
5b806d27 3615 ;;
de0b4a87 3616 *-*-freebsd*)
4b1cb4fe
DD
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
4b1cb4fe 3621 ;;
f8a495c8
NC
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
a0da8069 3626 *-*-netbsd*)
a0da8069 3627 ;;
2a3124ca 3628 *-*-netware*)
a0da8069 3629 ;;
05a13254
NC
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
a0da8069 3633 *-*-rtems*)
9863d716 3634 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3635 ;;
1587117a
EC
3636 # The tpf target doesn't support gdb yet.
3637 *-*-tpf*)
c7e4b184 3638 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3639 ;;
c1968181 3640 *-*-uclinux*)
c7e4b184 3641 noconfigdirs="$noconfigdirs target-rda"
c1968181 3642 ;;
a0da8069 3643 *-*-vxworks*)
a0da8069
NN
3644 ;;
3645 alpha*-dec-osf*)
3646 # ld works, but does not support shared libraries.
a0da8069 3647 # gas doesn't generate exception information.
c7e4b184 3648 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3649 ;;
3650 alpha*-*-*vms*)
9863d716 3651 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3652 ;;
a0da8069
NN
3653 alpha*-*-*)
3654 # newlib is not 64 bit ready
9863d716 3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3656 ;;
a0da8069 3657 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3658 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3659 ;;
05a13254
NC
3660 arc*-*-*)
3661 noconfigdirs="$noconfigdirs sim"
a0da8069 3662 ;;
a0da8069 3663 arm-*-pe*)
9863d716 3664 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3665 ;;
a0da8069 3666 arm-*-riscix*)
b2f14e4a 3667 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3668 ;;
8e71395b
L
3669 avr-*-*)
3670 if test x${with_avrlibc} != xno; then
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 fi
3673 ;;
a0da8069 3674 c4x-*-* | tic4x-*-*)
b2f14e4a 3675 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3676 ;;
b2f14e4a
JM
3677 tic54x-*-*)
3678 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3679 ;;
a0da8069 3680 d10v-*-*)
b2f14e4a 3681 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3682 ;;
3683 d30v-*-*)
b2f14e4a 3684 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3685 ;;
3686 fr30-*-elf*)
9863d716 3687 noconfigdirs="$noconfigdirs gdb"
a0da8069 3688 ;;
3f8107ab
AM
3689 ft32-*-*)
3690 noconfigdirs="$noconfigdirs target-rda gprof"
3691 ;;
20135e4c 3692 moxie-*-*)
10b8fe5e 3693 noconfigdirs="$noconfigdirs"
20135e4c 3694 ;;
a0da8069 3695 h8300*-*-*)
9863d716 3696 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3697 ;;
3698 h8500-*-*)
b2f14e4a 3699 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3700 ;;
caeba88f 3701 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3702 ;;
5569a85f
JDA
3703 hppa*64*-*-hpux*)
3704 noconfigdirs="$noconfigdirs gdb"
3705 ;;
3706 hppa*-*-hpux11*)
3707 noconfigdirs="$noconfigdirs gdb ld"
3708 ;;
93cc359e 3709 hppa*64*-*-linux*)
a0da8069 3710 ;;
f0ff0f90 3711 hppa*-*-linux*)
5dcac624 3712 ;;
a0da8069 3713 hppa*-*-*elf* | \
a0da8069
NN
3714 hppa*-*-lites* | \
3715 hppa*-*-openbsd* | \
3716 hppa*64*-*-*)
4f0ef2d8 3717 ;;
691bb5a1 3718 hppa*-*-pro*)
691bb5a1 3719 ;;
a0da8069 3720 hppa*-*-*)
9863d716 3721 noconfigdirs="$noconfigdirs ld"
a0da8069 3722 ;;
b07c2aad 3723 i960-*-*)
b2f14e4a 3724 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3725 ;;
a0da8069
NN
3726 ia64*-*-elf*)
3727 # No gdb support yet.
0377a422 3728 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3729 ;;
3730 ia64*-**-hpux*)
92c9a463 3731 # No ld support yet.
5569a85f 3732 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3733 ;;
19e99079 3734 ia64*-*-*vms*)
7ec59b9e
L
3735 # No ld support yet.
3736 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3737 ;;
1f53ca9a 3738 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3739 ;;
3740 i[3456789]86-*-mingw*)
45055374 3741 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3742 ;;
a0da8069
NN
3743 *-*-cygwin*)
3744 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3745 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3746 # always build newlib if winsup directory is present.
45055374 3747 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3748 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3749 elif test -d "$srcdir/newlib"; then
45055374 3750 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3751 fi
c6b750e1 3752 ;;
ec11bdc6 3753 i[3456789]86-*-pe)
782cb41f 3754 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3755 ;;
ec11bdc6 3756 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3757 # The linker does not yet know about weak symbols in COFF,
3758 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3759 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3760 ;;
ec11bdc6 3761 i[3456789]86-*-sco*)
b2f14e4a 3762 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3763 ;;
cff32a7c 3764 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3765 noconfigdirs="$noconfigdirs target-libgloss"
3766 ;;
ec11bdc6 3767 i[3456789]86-*-sysv4*)
b2f14e4a 3768 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3769 ;;
ec11bdc6 3770 i[3456789]86-*-beos*)
c7e4b184 3771 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3772 ;;
b59bea8a 3773 i[3456789]86-*-rdos*)
c7e4b184 3774 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3775 ;;
a0da8069 3776 mmix-*-*)
9863d716 3777 noconfigdirs="$noconfigdirs gdb"
a0da8069 3778 ;;
4970f871 3779 mt-*-*)
cdb9b172
AH
3780 noconfigdirs="$noconfigdirs sim"
3781 ;;
a0da8069
NN
3782 powerpc-*-aix*)
3783 # copied from rs6000-*-* entry
c7e4b184 3784 noconfigdirs="$noconfigdirs gprof"
a0da8069 3785 ;;
93cc359e 3786 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3787 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3788 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3789 # always build newlib.
3790 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3791 ;;
3792 # This is temporary until we can link against shared libraries
3793 powerpcle-*-solaris*)
b2f14e4a 3794 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3795 ;;
3796 powerpc-*-beos*)
c7e4b184 3797 noconfigdirs="$noconfigdirs gdb"
a0da8069 3798 ;;
a0da8069 3799 rs6000-*-lynxos*)
c7e4b184 3800 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3801 ;;
3802 rs6000-*-aix*)
c7e4b184 3803 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3804 ;;
3805 rs6000-*-*)
9863d716 3806 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3807 ;;
3808 m68k-apollo-*)
b2f14e4a 3809 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3810 ;;
25a07265 3811 microblaze*)
9863d716 3812 noconfigdirs="$noconfigdirs gprof"
25a07265 3813 ;;
a9d58c06 3814 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3815 if test x$with_newlib = xyes; then
3816 noconfigdirs="$noconfigdirs gprof"
3817 fi
5bd8be13 3818 ;;
a0da8069 3819 mips*-*-irix5*)
b2f14e4a 3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3821 ;;
3822 mips*-*-irix6*)
9863d716 3823 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3824 ;;
a0da8069 3825 mips*-*-bsd*)
e8044f35 3826 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3827 ;;
a0da8069 3828 mips*-*-linux*)
a0da8069 3829 ;;
e8044f35
RS
3830 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3831 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3832 noconfigdirs="$noconfigdirs ld gas gprof"
3833 ;;
a0da8069 3834 mips*-*-*)
9863d716 3835 noconfigdirs="$noconfigdirs gprof"
a0da8069 3836 ;;
1b6c0831 3837 nvptx*-*-*)
1b6c0831
L
3838 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3839 ;;
05a13254 3840 sh-*-*)
e8a5fa9c
RW
3841 case "${target}" in
3842 sh*-*-elf)
9863d716 3843 ;;
e8a5fa9c 3844 *)
9863d716 3845 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3846 esac
a0da8069 3847 ;;
a0da8069 3848 sparc-*-sunos4*)
c7e4b184 3849 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3850 use_gnu_ld=no
3851 fi
3852 ;;
619a3713 3853 tic6x-*-*)
40ae9136 3854 noconfigdirs="$noconfigdirs sim"
619a3713 3855 ;;
05a13254 3856 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3857 noconfigdirs="$noconfigdirs sim"
3858 ;;
a0da8069 3859 v810-*-*)
b2f14e4a 3860 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3861 ;;
3862 vax-*-*)
9863d716 3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3864 ;;
a0da8069 3865esac
252b5132 3866
a0da8069
NN
3867# If we aren't building newlib, then don't build libgloss, since libgloss
3868# depends upon some newlib header files.
3869case "${noconfigdirs}" in
3870 *target-libgloss*) ;;
3871 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3872esac
3873
a0da8069 3874# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3875host_makefile_frag=/dev/null
3876if test -d ${srcdir}/config ; then
3877case "${host}" in
ec11bdc6 3878 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3879 host_makefile_frag="config/mh-djgpp"
3880 ;;
3881 *-cygwin*)
e33b51a6 3882
81ecdfbb
RW
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3884$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3885echo a >cygwin-cat-check
1f53ca9a 3886if test `cat cygwin-cat-check` = a ; then
8ade07e9 3887 rm cygwin-cat-check
81ecdfbb
RW
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889$as_echo "yes" >&6; }
e33b51a6 3890else
8ade07e9 3891 rm cygwin-cat-check
81ecdfbb
RW
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3895 Please either mount the build directory in binary mode or run the following
3896 commands before running any configure script:
3897set -o igncr
3898export SHELLOPTS
81ecdfbb 3899 " "$LINENO" 5
e33b51a6 3900fi
e33b51a6 3901
a0da8069
NN
3902 host_makefile_frag="config/mh-cygwin"
3903 ;;
8a1599ab 3904 *-mingw*)
84e7906e 3905 host_makefile_frag="config/mh-mingw"
2d1e8239 3906 ;;
ce6c656d
L
3907 alpha*-linux*)
3908 host_makefile_frag="config/mh-alpha-linux"
3909 ;;
da888c87 3910 hppa*-hp-hpux10*)
da888c87 3911 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3912 ;;
3516a403 3913 hppa*-hp-hpux*)
da888c87
PB
3914 host_makefile_frag="config/mh-pa"
3915 ;;
3916 hppa*-*)
3917 host_makefile_frag="config/mh-pa"
3918 ;;
e552509b
ILT
3919 *-*-darwin*)
3920 host_makefile_frag="config/mh-darwin"
0df3d27f 3921 ;;
f6d183c0
PB
3922 powerpc-*-aix*)
3923 host_makefile_frag="config/mh-ppc-aix"
3924 ;;
3925 rs6000-*-aix*)
3926 host_makefile_frag="config/mh-ppc-aix"
3927 ;;
a0da8069
NN
3928esac
3929fi
3930
9e07f89d 3931if test "${build}" != "${host}" ; then
1576798e
PB
3932 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3933 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3934 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3935 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3936 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3937 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3938 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3939 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3940 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3941 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3942 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3943 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3944else
3945 AR_FOR_BUILD="\$(AR)"
3946 AS_FOR_BUILD="\$(AS)"
512b7dfb 3947 CC_FOR_BUILD="\$(CC)"
1576798e 3948 CXX_FOR_BUILD="\$(CXX)"
1576798e 3949 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3950 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3951 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3952 LD_FOR_BUILD="\$(LD)"
3953 NM_FOR_BUILD="\$(NM)"
3954 RANLIB_FOR_BUILD="\$(RANLIB)"
3955 WINDRES_FOR_BUILD="\$(WINDRES)"
3956 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3957fi
3958
3959ac_ext=c
c6b750e1
DJ
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3966set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
3969if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3971else
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3984 break 2
3985 fi
3986done
81ecdfbb
RW
3987 done
3988IFS=$as_save_IFS
c6b750e1
DJ
3989
3990fi
3991fi
3992CC=$ac_cv_prog_CC
3993if test -n "$CC"; then
81ecdfbb
RW
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995$as_echo "$CC" >&6; }
c6b750e1 3996else
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
c6b750e1
DJ
3999fi
4000
81ecdfbb 4001
c6b750e1
DJ
4002fi
4003if test -z "$ac_cv_prog_CC"; then
4004 ac_ct_CC=$CC
6a9cf61e 4005 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4006set dummy gcc; ac_word=$2
81ecdfbb
RW
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008$as_echo_n "checking for $ac_word... " >&6; }
4009if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4011else
4012 if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014else
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4022 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4024 break 2
4025 fi
4026done
81ecdfbb
RW
4027 done
4028IFS=$as_save_IFS
c6b750e1
DJ
4029
4030fi
4031fi
4032ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4035$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4036else
81ecdfbb
RW
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038$as_echo "no" >&6; }
c6b750e1
DJ
4039fi
4040
81ecdfbb
RW
4041 if test "x$ac_ct_CC" = x; then
4042 CC=""
4043 else
4044 case $cross_compiling:$ac_tool_warned in
4045yes:)
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048ac_tool_warned=yes ;;
4049esac
4050 CC=$ac_ct_CC
4051 fi
c6b750e1
DJ
4052else
4053 CC="$ac_cv_prog_CC"
4054fi
4055
4056if test -z "$CC"; then
81ecdfbb
RW
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4059set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if test "${ac_cv_prog_CC+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
9e07f89d
NN
4064else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067else
c6b750e1
DJ
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4075 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4077 break 2
4078 fi
4079done
81ecdfbb
RW
4080 done
4081IFS=$as_save_IFS
c6b750e1 4082
9e07f89d
NN
4083fi
4084fi
c6b750e1 4085CC=$ac_cv_prog_CC
9e07f89d 4086if test -n "$CC"; then
81ecdfbb
RW
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088$as_echo "$CC" >&6; }
c6b750e1 4089else
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
c6b750e1
DJ
4092fi
4093
c6b750e1 4094
81ecdfbb 4095 fi
c6b750e1 4096fi
9e07f89d
NN
4097if test -z "$CC"; then
4098 # Extract the first word of "cc", so it can be a program name with args.
4099set dummy cc; ac_word=$2
81ecdfbb
RW
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
4102if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
9e07f89d
NN
4104else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107else
9e07f89d 4108 ac_prog_rejected=no
c6b750e1
DJ
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117 ac_prog_rejected=yes
4118 continue
4119 fi
4120 ac_cv_prog_CC="cc"
81ecdfbb 4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4122 break 2
4123 fi
4124done
81ecdfbb
RW
4125 done
4126IFS=$as_save_IFS
c6b750e1 4127
9e07f89d
NN
4128if test $ac_prog_rejected = yes; then
4129 # We found a bogon in the path, so make sure we never use it.
4130 set dummy $ac_cv_prog_CC
4131 shift
c6b750e1 4132 if test $# != 0; then
9e07f89d
NN
4133 # We chose a different compiler from the bogus one.
4134 # However, it has the same basename, so the bogon will be chosen
4135 # first if we set CC to just the basename; use the full file name.
4136 shift
c6b750e1 4137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4138 fi
4139fi
4140fi
4141fi
c6b750e1 4142CC=$ac_cv_prog_CC
9e07f89d 4143if test -n "$CC"; then
81ecdfbb
RW
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145$as_echo "$CC" >&6; }
9e07f89d 4146else
81ecdfbb
RW
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
9e07f89d
NN
4149fi
4150
81ecdfbb 4151
c6b750e1
DJ
4152fi
4153if test -z "$CC"; then
4154 if test -n "$ac_tool_prefix"; then
81ecdfbb 4155 for ac_prog in cl.exe
c6b750e1
DJ
4156 do
4157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160$as_echo_n "checking for $ac_word... " >&6; }
4161if test "${ac_cv_prog_CC+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
9e07f89d
NN
4163else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166else
c6b750e1
DJ
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4176 break 2
376a0e54 4177 fi
c6b750e1 4178done
81ecdfbb
RW
4179 done
4180IFS=$as_save_IFS
cac3d6c4 4181
c6b750e1
DJ
4182fi
4183fi
4184CC=$ac_cv_prog_CC
4185if test -n "$CC"; then
81ecdfbb
RW
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187$as_echo "$CC" >&6; }
cac3d6c4 4188else
81ecdfbb
RW
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
9e07f89d 4191fi
cac3d6c4 4192
81ecdfbb 4193
c6b750e1
DJ
4194 test -n "$CC" && break
4195 done
cac3d6c4 4196fi
c6b750e1
DJ
4197if test -z "$CC"; then
4198 ac_ct_CC=$CC
81ecdfbb 4199 for ac_prog in cl.exe
c6b750e1
DJ
4200do
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
4205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
cac3d6c4 4207else
c6b750e1
DJ
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4210else
c6b750e1
DJ
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4218 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4220 break 2
4221 fi
4222done
81ecdfbb
RW
4223 done
4224IFS=$as_save_IFS
c6b750e1 4225
cac3d6c4
CM
4226fi
4227fi
c6b750e1
DJ
4228ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4232else
81ecdfbb
RW
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
cac3d6c4 4235fi
376a0e54 4236
81ecdfbb 4237
c6b750e1
DJ
4238 test -n "$ac_ct_CC" && break
4239done
4240
81ecdfbb
RW
4241 if test "x$ac_ct_CC" = x; then
4242 CC=""
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245yes:)
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248ac_tool_warned=yes ;;
4249esac
4250 CC=$ac_ct_CC
4251 fi
c6b750e1
DJ
4252fi
4253
4254fi
4255
4256
81ecdfbb
RW
4257test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error "no acceptable C compiler found in \$PATH
4260See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4261
4262# Provide some information about the compiler.
81ecdfbb
RW
4263$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264set X $ac_compile
4265ac_compiler=$2
4266for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4268case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273$as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4275 ac_status=$?
81ecdfbb
RW
4276 if test -s conftest.err; then
4277 sed '10a\
4278... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4282 fi
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4285done
c6b750e1 4286
81ecdfbb 4287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298ac_clean_files_save=$ac_clean_files
81ecdfbb 4299ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4300# Try to create an executable without -o first, disregard a.out.
4301# It will help us diagnose broken compilers, and finding out an intuition
4302# of exeext.
81ecdfbb
RW
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4304$as_echo_n "checking for C compiler default output file name... " >&6; }
4305ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4306
4307# The possible output files:
4308ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309
4310ac_rmfiles=
4311for ac_file in $ac_files
4312do
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4316 esac
4317done
4318rm -f $ac_rmfiles
4319
4320if { { ac_try="$ac_link_default"
4321case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326$as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link_default") 2>&5
c6b750e1 4328 ac_status=$?
81ecdfbb
RW
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4332# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4333# in a Makefile. We should not override ac_cv_exeext if it was cached,
4334# so that the user can short-circuit this test for compilers unknown to
4335# Autoconf.
4336for ac_file in $ac_files ''
c6b750e1
DJ
4337do
4338 test -f "$ac_file" || continue
4339 case $ac_file in
81ecdfbb 4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4341 ;;
4342 [ab].out )
4343 # We found the default executable, but exeext='' is most
4344 # certainly right.
4345 break;;
4346 *.* )
81ecdfbb
RW
4347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4348 then :; else
4349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4350 fi
4351 # We set ac_cv_exeext here because the later test for it is not
4352 # safe: cross compilers may not add the suffix if given an `-o'
4353 # argument, so we may need to know it at that point already.
4354 # Even if this section looks crufty: it has the advantage of
4355 # actually working.
c6b750e1
DJ
4356 break;;
4357 * )
4358 break;;
4359 esac
4360done
81ecdfbb
RW
4361test "$ac_cv_exeext" = no && ac_cv_exeext=
4362
c6b750e1 4363else
81ecdfbb
RW
4364 ac_file=''
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4367$as_echo "$ac_file" >&6; }
4368if test -z "$ac_file"; then :
4369 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
81ecdfbb
RW
4372{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374{ as_fn_set_status 77
4375as_fn_error "C compiler cannot create executables
4376See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4377fi
c6b750e1 4378ac_exeext=$ac_cv_exeext
c6b750e1 4379
81ecdfbb 4380# Check that the compiler produces executables we can run. If not, either
c6b750e1 4381# the compiler is broken, or we cross compile.
81ecdfbb
RW
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4383$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4384# If not cross compiling, check that we can run a simple program.
4385if test "$cross_compiling" != yes; then
4386 if { ac_try='./$ac_file'
81ecdfbb
RW
4387 { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
4391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392$as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
c6b750e1 4394 ac_status=$?
81ecdfbb
RW
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; }; then
c6b750e1
DJ
4397 cross_compiling=no
4398 else
4399 if test "$cross_compiling" = maybe; then
4400 cross_compiling=yes
4401 else
81ecdfbb
RW
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404as_fn_error "cannot run C compiled programs.
c6b750e1 4405If you meant to cross compile, use \`--host'.
81ecdfbb 4406See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4407 fi
4408 fi
4409fi
81ecdfbb
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411$as_echo "yes" >&6; }
c6b750e1 4412
81ecdfbb 4413rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4414ac_clean_files=$ac_clean_files_save
81ecdfbb 4415# Check that the compiler produces executables we can run. If not, either
c6b750e1 4416# the compiler is broken, or we cross compile.
81ecdfbb
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4418$as_echo_n "checking whether we are cross compiling... " >&6; }
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420$as_echo "$cross_compiling" >&6; }
4421
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4423$as_echo_n "checking for suffix of executables... " >&6; }
4424if { { ac_try="$ac_link"
4425case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430$as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link") 2>&5
c6b750e1 4432 ac_status=$?
81ecdfbb
RW
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
c6b750e1
DJ
4435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4436# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4437# work properly (i.e., refer to `conftest.exe'), while it won't with
4438# `rm'.
4439for ac_file in conftest.exe conftest conftest.*; do
4440 test -f "$ac_file" || continue
4441 case $ac_file in
81ecdfbb 4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4444 break;;
4445 * ) break;;
4446 esac
4447done
4448else
81ecdfbb
RW
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451as_fn_error "cannot compute suffix of executables: cannot compile and link
4452See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4453fi
c6b750e1 4454rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4456$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4457
4458rm -f conftest.$ac_ext
4459EXEEXT=$ac_cv_exeext
4460ac_exeext=$EXEEXT
81ecdfbb
RW
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462$as_echo_n "checking for suffix of object files... " >&6; }
4463if test "${ac_cv_objext+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
c6b750e1 4465else
81ecdfbb 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4467/* end confdefs.h. */
4468
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477rm -f conftest.o conftest.obj
81ecdfbb
RW
4478if { { ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484$as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_compile") 2>&5
c6b750e1 4486 ac_status=$?
81ecdfbb
RW
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 for ac_file in conftest.o conftest.obj conftest.*; do
4490 test -f "$ac_file" || continue;
c6b750e1 4491 case $ac_file in
81ecdfbb 4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4494 break;;
4495 esac
4496done
cac3d6c4 4497else
81ecdfbb 4498 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
81ecdfbb
RW
4501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503as_fn_error "cannot compute suffix of object files: cannot compile
4504See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4505fi
c6b750e1
DJ
4506rm -f conftest.$ac_cv_objext conftest.$ac_ext
4507fi
81ecdfbb
RW
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4510OBJEXT=$ac_cv_objext
4511ac_objext=$OBJEXT
81ecdfbb
RW
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4513$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4514if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
c6b750e1 4516else
81ecdfbb 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4518/* end confdefs.h. */
4519
4520int
4521main ()
4522{
4523#ifndef __GNUC__
4524 choke me
4525#endif
4526
4527 ;
4528 return 0;
4529}
4530_ACEOF
81ecdfbb 4531if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4532 ac_compiler_gnu=yes
4533else
81ecdfbb 4534 ac_compiler_gnu=no
c6b750e1 4535fi
81ecdfbb 4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4537ac_cv_c_compiler_gnu=$ac_compiler_gnu
4538
4539fi
81ecdfbb
RW
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4541$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4542if test $ac_compiler_gnu = yes; then
4543 GCC=yes
4544else
4545 GCC=
4546fi
c6b750e1
DJ
4547ac_test_CFLAGS=${CFLAGS+set}
4548ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4550$as_echo_n "checking whether $CC accepts -g... " >&6; }
4551if test "${ac_cv_prog_cc_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553else
4554 ac_save_c_werror_flag=$ac_c_werror_flag
4555 ac_c_werror_flag=yes
4556 ac_cv_prog_cc_g=no
4557 CFLAGS="-g"
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4559/* end confdefs.h. */
4560
4561int
4562main ()
4563{
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
81ecdfbb 4569if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4570 ac_cv_prog_cc_g=yes
4571else
81ecdfbb
RW
4572 CFLAGS=""
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575
4576int
4577main ()
4578{
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_compile "$LINENO"; then :
4585
4586else
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
cac3d6c4 4591
81ecdfbb
RW
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_prog_cc_g=yes
4602fi
4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4604fi
81ecdfbb 4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4606fi
81ecdfbb
RW
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_c_werror_flag=$ac_save_c_werror_flag
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4612if test "$ac_test_CFLAGS" = set; then
c6b750e1 4613 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4614elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4616 CFLAGS="-g -O2"
4617 else
4618 CFLAGS="-g"
4619 fi
4620else
4621 if test "$GCC" = yes; then
4622 CFLAGS="-O2"
4623 else
4624 CFLAGS=
4625 fi
4626fi
81ecdfbb
RW
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4628$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4629if test "${ac_cv_prog_cc_c89+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
c6b750e1 4631else
81ecdfbb 4632 ac_cv_prog_cc_c89=no
c6b750e1 4633ac_save_CC=$CC
81ecdfbb 4634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4635/* end confdefs.h. */
4636#include <stdarg.h>
4637#include <stdio.h>
4638#include <sys/types.h>
4639#include <sys/stat.h>
4640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4641struct buf { int x; };
4642FILE * (*rcsopen) (struct buf *, struct stat *, int);
4643static char *e (p, i)
4644 char **p;
4645 int i;
4646{
4647 return p[i];
4648}
4649static char *f (char * (*g) (char **, int), char **p, ...)
4650{
4651 char *s;
4652 va_list v;
4653 va_start (v,p);
4654 s = g (p, va_arg (v,int));
4655 va_end (v);
4656 return s;
4657}
4658
4659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4660 function prototypes and stuff, but not '\xHH' hex character constants.
4661 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4662 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4664 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4665 that's true only with -std. */
c6b750e1
DJ
4666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4667
81ecdfbb
RW
4668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4669 inside strings and character constants. */
4670#define FOO(x) 'x'
4671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4672
c6b750e1
DJ
4673int test (int i, double x);
4674struct s1 {int (*f) (int a);};
4675struct s2 {int (*f) (double a);};
4676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4677int argc;
4678char **argv;
4679int
4680main ()
4681{
4682return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4683 ;
4684 return 0;
4685}
4686_ACEOF
81ecdfbb
RW
4687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4689do
4690 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4693fi
81ecdfbb
RW
4694rm -f core conftest.err conftest.$ac_objext
4695 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4696done
81ecdfbb 4697rm -f conftest.$ac_ext
c6b750e1
DJ
4698CC=$ac_save_CC
4699
4700fi
81ecdfbb
RW
4701# AC_CACHE_VAL
4702case "x$ac_cv_prog_cc_c89" in
4703 x)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4705$as_echo "none needed" >&6; } ;;
4706 xno)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4708$as_echo "unsupported" >&6; } ;;
c6b750e1 4709 *)
81ecdfbb
RW
4710 CC="$CC $ac_cv_prog_cc_c89"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4713esac
81ecdfbb 4714if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4715
c6b750e1
DJ
4716fi
4717
c6b750e1
DJ
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4723
81ecdfbb 4724ac_ext=cpp
18f6b6ee
PB
4725ac_cpp='$CXXCPP $CPPFLAGS'
4726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4729if test -z "$CXX"; then
4730 if test -n "$CCC"; then
4731 CXX=$CCC
4732 else
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if test "${ac_cv_prog_CXX+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4742else
4743 if test -n "$CXX"; then
4744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4755 break 2
4756 fi
4757done
81ecdfbb
RW
4758 done
4759IFS=$as_save_IFS
512b7dfb 4760
18f6b6ee
PB
4761fi
4762fi
4763CXX=$ac_cv_prog_CXX
4764if test -n "$CXX"; then
81ecdfbb
RW
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4766$as_echo "$CXX" >&6; }
18f6b6ee 4767else
81ecdfbb
RW
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
18f6b6ee
PB
4770fi
4771
81ecdfbb 4772
18f6b6ee
PB
4773 test -n "$CXX" && break
4774 done
4775fi
4776if test -z "$CXX"; then
4777 ac_ct_CXX=$CXX
81ecdfbb 4778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4779do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4786else
4787 if test -n "$ac_ct_CXX"; then
4788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4797 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4799 break 2
512b7dfb 4800 fi
18f6b6ee 4801done
81ecdfbb
RW
4802 done
4803IFS=$as_save_IFS
512b7dfb 4804
18f6b6ee
PB
4805fi
4806fi
4807ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4808if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4810$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4811else
81ecdfbb
RW
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
18f6b6ee
PB
4814fi
4815
81ecdfbb 4816
18f6b6ee
PB
4817 test -n "$ac_ct_CXX" && break
4818done
18f6b6ee 4819
81ecdfbb
RW
4820 if test "x$ac_ct_CXX" = x; then
4821 CXX="g++"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824yes:)
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827ac_tool_warned=yes ;;
4828esac
4829 CXX=$ac_ct_CXX
4830 fi
18f6b6ee
PB
4831fi
4832
81ecdfbb
RW
4833 fi
4834fi
18f6b6ee 4835# Provide some information about the compiler.
81ecdfbb
RW
4836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4837set X $ac_compile
4838ac_compiler=$2
4839for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4841case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844esac
4845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846$as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4848 ac_status=$?
81ecdfbb
RW
4849 if test -s conftest.err; then
4850 sed '10a\
4851... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 rm -f conftest.er1 conftest.err
4855 fi
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4858done
18f6b6ee 4859
81ecdfbb
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4861$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4862if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
18f6b6ee 4864else
81ecdfbb 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4866/* end confdefs.h. */
4867
4868int
4869main ()
4870{
4871#ifndef __GNUC__
4872 choke me
4873#endif
4874
4875 ;
4876 return 0;
4877}
4878_ACEOF
81ecdfbb 4879if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4880 ac_compiler_gnu=yes
4881else
81ecdfbb 4882 ac_compiler_gnu=no
18f6b6ee 4883fi
81ecdfbb 4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4885ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4886
4887fi
81ecdfbb
RW
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4889$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4890if test $ac_compiler_gnu = yes; then
4891 GXX=yes
4892else
4893 GXX=
4894fi
18f6b6ee
PB
4895ac_test_CXXFLAGS=${CXXFLAGS+set}
4896ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4898$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4899if test "${ac_cv_prog_cxx_g+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4903 ac_cxx_werror_flag=yes
4904 ac_cv_prog_cxx_g=no
4905 CXXFLAGS="-g"
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4907/* end confdefs.h. */
4908
4909int
4910main ()
4911{
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
81ecdfbb 4917if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4918 ac_cv_prog_cxx_g=yes
4919else
81ecdfbb
RW
4920 CXXFLAGS=""
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4922/* end confdefs.h. */
81ecdfbb 4923
18f6b6ee
PB
4924int
4925main ()
4926{
81ecdfbb 4927
18f6b6ee
PB
4928 ;
4929 return 0;
4930}
4931_ACEOF
81ecdfbb 4932if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4933
81ecdfbb
RW
4934else
4935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4938/* end confdefs.h. */
81ecdfbb 4939
18f6b6ee
PB
4940int
4941main ()
4942{
81ecdfbb 4943
18f6b6ee
PB
4944 ;
4945 return 0;
4946}
4947_ACEOF
81ecdfbb
RW
4948if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
18f6b6ee 4950fi
81ecdfbb
RW
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4959$as_echo "$ac_cv_prog_cxx_g" >&6; }
4960if test "$ac_test_CXXFLAGS" = set; then
4961 CXXFLAGS=$ac_save_CXXFLAGS
4962elif test $ac_cv_prog_cxx_g = yes; then
4963 if test "$GXX" = yes; then
4964 CXXFLAGS="-g -O2"
4965 else
4966 CXXFLAGS="-g"
4967 fi
4968else
4969 if test "$GXX" = yes; then
4970 CXXFLAGS="-O2"
4971 else
4972 CXXFLAGS=
4973 fi
18f6b6ee 4974fi
18f6b6ee
PB
4975ac_ext=c
4976ac_cpp='$CPP $CPPFLAGS'
4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982# We must set the default linker to the linker used by gcc for the correct
4983# operation of libtool. If LD is not defined and we are using gcc, try to
4984# set the LD default to the ld used by gcc.
4985if test -z "$LD"; then
4986 if test "$GCC" = yes; then
4987 case $build in
4988 *-*-mingw*)
4989 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4990 *)
4991 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4992 esac
4993 case $gcc_prog_ld in
4994 # Accept absolute paths.
4995 [\\/]* | [A-Za-z]:[\\/]*)
4996 LD="$gcc_prog_ld" ;;
4997 esac
4998 fi
512b7dfb
PB
4999fi
5000
b3676d82
EB
5001# Check whether -static-libstdc++ -static-libgcc is supported.
5002have_static_libs=no
5003if test "$GCC" = yes; then
5004 saved_LDFLAGS="$LDFLAGS"
5005
5006 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5008$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5009 ac_ext=cpp
5010ac_cpp='$CXXCPP $CPPFLAGS'
5011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5014
5015
5016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h. */
a882be68
EB
5018
5019#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5020#error -static-libstdc++ not implemented
5021#endif
b3676d82
EB
5022int main() {}
5023_ACEOF
5024if ac_fn_cxx_try_link "$LINENO"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026$as_echo "yes" >&6; }; have_static_libs=yes
5027else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
5030fi
5031rm -f core conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033 ac_ext=c
5034ac_cpp='$CPP $CPPFLAGS'
5035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039
5040 LDFLAGS="$saved_LDFLAGS"
5041fi
5042
512b7dfb
PB
5043
5044
5045
c6b750e1 5046if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
9e07f89d 5053else
512b7dfb
PB
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5056else
c6b750e1
DJ
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5066 break 2
5067 fi
5068done
81ecdfbb
RW
5069 done
5070IFS=$as_save_IFS
c6b750e1 5071
9e07f89d
NN
5072fi
5073fi
512b7dfb
PB
5074GNATBIND=$ac_cv_prog_GNATBIND
5075if test -n "$GNATBIND"; then
81ecdfbb
RW
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077$as_echo "$GNATBIND" >&6; }
9e07f89d 5078else
81ecdfbb
RW
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
9e07f89d
NN
5081fi
5082
81ecdfbb 5083
c6b750e1 5084fi
512b7dfb
PB
5085if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
9e07f89d 5093else
512b7dfb
PB
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5096else
c6b750e1
DJ
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5106 break 2
5107 fi
5108done
81ecdfbb
RW
5109 done
5110IFS=$as_save_IFS
c6b750e1 5111
9e07f89d
NN
5112fi
5113fi
512b7dfb
PB
5114ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5118else
81ecdfbb
RW
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
9e07f89d
NN
5121fi
5122
81ecdfbb
RW
5123 if test "x$ac_ct_GNATBIND" = x; then
5124 GNATBIND="no"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127yes:)
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130ac_tool_warned=yes ;;
5131esac
5132 GNATBIND=$ac_ct_GNATBIND
5133 fi
24ff9987 5134else
512b7dfb 5135 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5136fi
5137
7df2cd5d 5138if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142$as_echo_n "checking for $ac_word... " >&6; }
5143if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
7df2cd5d 5145else
512b7dfb
PB
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5158 break 2
5159 fi
5160done
81ecdfbb
RW
5161 done
5162IFS=$as_save_IFS
7df2cd5d
PB
5163
5164fi
5165fi
512b7dfb
PB
5166GNATMAKE=$ac_cv_prog_GNATMAKE
5167if test -n "$GNATMAKE"; then
81ecdfbb
RW
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5170else
81ecdfbb
RW
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
7df2cd5d
PB
5173fi
5174
81ecdfbb 5175
7df2cd5d 5176fi
512b7dfb
PB
5177if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
7df2cd5d 5185else
512b7dfb
PB
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5198 break 2
5199 fi
5200done
81ecdfbb
RW
5201 done
5202IFS=$as_save_IFS
7df2cd5d 5203
7df2cd5d
PB
5204fi
5205fi
512b7dfb
PB
5206ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5210else
81ecdfbb
RW
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
7df2cd5d
PB
5213fi
5214
81ecdfbb
RW
5215 if test "x$ac_ct_GNATMAKE" = x; then
5216 GNATMAKE="no"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219yes:)
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222ac_tool_warned=yes ;;
5223esac
5224 GNATMAKE=$ac_ct_GNATMAKE
5225 fi
7df2cd5d 5226else
512b7dfb 5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5228fi
5229
81ecdfbb
RW
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5231$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5232if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
9e07f89d
NN
5234else
5235 cat >conftest.adb <<EOF
5236procedure conftest is begin null; end conftest;
5237EOF
5238acx_cv_cc_gcc_supports_ada=no
5239# There is a bug in old released versions of GCC which causes the
5240# driver to exit successfully when the appropriate language module
5241# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5242# Therefore we must check for the error message as well as an
5243# unsuccessful exit.
b8908782
DD
5244# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5245# given a .adb file, but produce no object file. So we must check
5246# if an object file was really produced to guard against this.
9e07f89d 5247errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5248if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5249 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5250fi
5251rm -f conftest.*
5252fi
81ecdfbb
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5254$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5255
64b986c0 5256if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5257 have_gnat=yes
5258else
5259 have_gnat=no
5260fi
5261
81ecdfbb
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5263$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5264if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
b8908782
DD
5266else
5267 echo abfoo >t1
5268 echo cdfoo >t2
da17fe9d 5269 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5272 :
5273 else
5274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5275 fi
5276 fi
b8908782
DD
5277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5279 :
b8908782
DD
5280 else
5281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5282 fi
5283 fi
5284 rm t1 t2
5285
5286fi
81ecdfbb
RW
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5288$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5289do_compare="$gcc_cv_prog_cmp_skip"
5290
5291
9e07f89d 5292
ffdd6afc
ILT
5293# Check whether --enable-bootstrap was given.
5294if test "${enable_bootstrap+set}" = set; then :
5295 enableval=$enable_bootstrap;
5296else
5297 enable_bootstrap=default
5298fi
5299
5300
5301# Issue errors and warnings for invalid/strange bootstrap combinations.
5302if test -r $srcdir/gcc/configure; then
5303 have_compiler=yes
5304else
5305 have_compiler=no
5306fi
5307
5308case "$have_compiler:$host:$target:$enable_bootstrap" in
5309 *:*:*:no) ;;
5310
5311 # Default behavior. Enable bootstrap if we have a compiler
5312 # and we are in a native configuration.
5313 yes:$build:$build:default)
5314 enable_bootstrap=yes ;;
5315
5316 *:*:*:default)
5317 enable_bootstrap=no ;;
5318
5319 # We have a compiler and we are in a native configuration, bootstrap is ok
5320 yes:$build:$build:yes)
5321 ;;
5322
5323 # Other configurations, but we have a compiler. Assume the user knows
5324 # what he's doing.
5325 yes:*:*:yes)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5327$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5328 ;;
5329
5330 # No compiler: if they passed --enable-bootstrap explicitly, fail
5331 no:*:*:yes)
5332 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5333
5334 # Fail if wrong command line
5335 *)
5336 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5337 ;;
5338esac
5339
ce6c656d
L
5340# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5341# C++98 compiler can still start the bootstrap.
5342if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5343 CXX="$CXX -std=gnu++98"
5344fi
5345
d5f2ee2e
KG
5346# Used for setting $lt_cv_objdir
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5348$as_echo_n "checking for objdir... " >&6; }
5349if test "${lt_cv_objdir+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 rm -f .libs 2>/dev/null
5353mkdir .libs 2>/dev/null
5354if test -d .libs; then
5355 lt_cv_objdir=.libs
5356else
5357 # MS-DOS does not allow filenames that begin with a dot.
5358 lt_cv_objdir=_libs
5359fi
5360rmdir .libs 2>/dev/null
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5363$as_echo "$lt_cv_objdir" >&6; }
5364objdir=$lt_cv_objdir
5365
5366
5367
5368
5369
5370cat >>confdefs.h <<_ACEOF
5371#define LT_OBJDIR "$lt_cv_objdir/"
5372_ACEOF
5373
5374
5375
e8a5fa9c 5376# Check for GMP, MPFR and MPC
d9b76ff9 5377gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5378gmpinc=
4b900473 5379have_gmp=no
e8a5fa9c
RW
5380
5381# Specify a location for mpc
5382# check for this first so it ends up on the link line before mpfr.
5383
81ecdfbb
RW
5384# Check whether --with-mpc was given.
5385if test "${with_mpc+set}" = set; then :
5386 withval=$with_mpc;
5387fi
e8a5fa9c 5388
e8a5fa9c 5389
e552509b 5390# Check whether --with-mpc-include was given.
81ecdfbb
RW
5391if test "${with_mpc_include+set}" = set; then :
5392 withval=$with_mpc_include;
5393fi
e8a5fa9c 5394
e8a5fa9c 5395
e552509b 5396# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5397if test "${with_mpc_lib+set}" = set; then :
5398 withval=$with_mpc_lib;
5399fi
e8a5fa9c 5400
e8a5fa9c
RW
5401
5402if test "x$with_mpc" != x; then
d9b76ff9
KG
5403 gmplibs="-L$with_mpc/lib $gmplibs"
5404 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5405fi
5406if test "x$with_mpc_include" != x; then
d9b76ff9 5407 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5408fi
5409if test "x$with_mpc_lib" != x; then
d9b76ff9 5410 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5411fi
5412if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5413 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5414 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5415 # Do not test the mpc version. Assume that it is sufficient, since
5416 # it is in the source tree, and the library has not been built yet
5417 # but it would be included on the link line in the version check below
5418 # hence making the test fail.
d9b76ff9 5419 have_gmp=yes
e8a5fa9c 5420fi
4b900473 5421
11b04d1f
DD
5422# Specify a location for mpfr
5423# check for this first so it ends up on the link line before gmp.
c6b750e1 5424
81ecdfbb
RW
5425# Check whether --with-mpfr-dir was given.
5426if test "${with_mpfr_dir+set}" = set; then :
5427 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5428Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5429fi
5430
11b04d1f
DD
5431
5432
81ecdfbb
RW
5433# Check whether --with-mpfr was given.
5434if test "${with_mpfr+set}" = set; then :
5435 withval=$with_mpfr;
5436fi
c6b750e1 5437
11b04d1f 5438
e552509b 5439# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5440if test "${with_mpfr_include+set}" = set; then :
5441 withval=$with_mpfr_include;
5442fi
c6b750e1 5443
8a0d8a5c 5444
e552509b 5445# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5446if test "${with_mpfr_lib+set}" = set; then :
5447 withval=$with_mpfr_lib;
5448fi
8a0d8a5c 5449
11b04d1f
DD
5450
5451if test "x$with_mpfr" != x; then
5452 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5453 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5454fi
8a0d8a5c 5455if test "x$with_mpfr_include" != x; then
d9b76ff9 5456 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5457fi
5458if test "x$with_mpfr_lib" != x; then
5459 gmplibs="-L$with_mpfr_lib $gmplibs"
5460fi
4b900473 5461if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5462 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254
NC
5463 if ! test -d ${srcdir}/mpfr/src; then
5464 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5465 fi
05a13254
NC
5466 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5467 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5468 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5469 # Do not test the mpfr version. Assume that it is sufficient, since
5470 # it is in the source tree, and the library has not been built yet
5471 # but it would be included on the link line in the version check below
5472 # hence making the test fail.
5473 have_gmp=yes
5474fi
11b04d1f 5475
4b1cb4fe 5476# Specify a location for gmp
c6b750e1 5477
81ecdfbb
RW
5478# Check whether --with-gmp-dir was given.
5479if test "${with_gmp_dir+set}" = set; then :
5480 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5481Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5482fi
5483
4b1cb4fe
DD
5484
5485
81ecdfbb
RW
5486# Check whether --with-gmp was given.
5487if test "${with_gmp+set}" = set; then :
5488 withval=$with_gmp;
5489fi
c6b750e1 5490
4b1cb4fe 5491
e552509b 5492# Check whether --with-gmp-include was given.
81ecdfbb
RW
5493if test "${with_gmp_include+set}" = set; then :
5494 withval=$with_gmp_include;
5495fi
c6b750e1 5496
8a0d8a5c 5497
e552509b 5498# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5499if test "${with_gmp_lib+set}" = set; then :
5500 withval=$with_gmp_lib;
5501fi
8a0d8a5c
PB
5502
5503
4b1cb4fe 5504
11b04d1f
DD
5505if test "x$with_gmp" != x; then
5506 gmplibs="-L$with_gmp/lib $gmplibs"
5507 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5508fi
8a0d8a5c
PB
5509if test "x$with_gmp_include" != x; then
5510 gmpinc="-I$with_gmp_include $gmpinc"
5511fi
5512if test "x$with_gmp_lib" != x; then
5513 gmplibs="-L$with_gmp_lib $gmplibs"
5514fi
4b900473 5515if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5516 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5517 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5518 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5519 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5520 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5521 # Do not test the gmp version. Assume that it is sufficient, since
5522 # it is in the source tree, and the library has not been built yet
5523 # but it would be included on the link line in the version check below
5524 # hence making the test fail.
5525 have_gmp=yes
5526fi
4b1cb4fe 5527
ceb92e78 5528if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5529 have_gmp=yes
5530 saved_CFLAGS="$CFLAGS"
5531 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5532 # Check for the recommended and required versions of GMP.
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5534$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5535
5536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5537/* end confdefs.h. */
5538#include "gmp.h"
5539int
5540main ()
5541{
5542
5543 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5544 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5545 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5546 choke me
5547 #endif
5548
5549 ;
5550 return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5555/* end confdefs.h. */
a6b5846e 5556#include <gmp.h>
c6b750e1
DJ
5557int
5558main ()
5559{
4b1cb4fe 5560
a6b5846e
KG
5561 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5562 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5563 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5564 choke me
5565 #endif
c6b750e1
DJ
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
81ecdfbb
RW
5571if ac_fn_c_try_compile "$LINENO"; then :
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573$as_echo "yes" >&6; }
a6b5846e
KG
5574else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5576$as_echo "buggy but acceptable" >&6; }
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5579else
81ecdfbb
RW
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5582fi
81ecdfbb 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5584
e8a5fa9c 5585 # If we have GMP, check the MPFR version.
4b900473 5586 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5587 # Check for the recommended and required versions of MPFR.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5589$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5591/* end confdefs.h. */
9b134994 5592#include <gmp.h>
4b900473 5593 #include <mpfr.h>
c6b750e1
DJ
5594int
5595main ()
5596{
9b134994 5597
7ec59b9e 5598 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5599 choke me
5600 #endif
c6b750e1
DJ
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
81ecdfbb
RW
5606if ac_fn_c_try_compile "$LINENO"; then :
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5608/* end confdefs.h. */
4b1cb4fe 5609#include <gmp.h>
4b900473 5610 #include <mpfr.h>
c6b750e1
DJ
5611int
5612main ()
5613{
9dbaa842 5614
a6b5846e 5615 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5616 choke me
5617 #endif
e8a5fa9c
RW
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
81ecdfbb
RW
5623if ac_fn_c_try_compile "$LINENO"; then :
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625$as_echo "yes" >&6; }
e8a5fa9c 5626else
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5628$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5629fi
81ecdfbb 5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5631else
81ecdfbb
RW
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5634fi
81ecdfbb 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5636 fi
5637
5638 # Check for the MPC header version.
d9b76ff9 5639 if test x"$have_gmp" = xyes ; then
a6b5846e 5640 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5642$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5644/* end confdefs.h. */
5645#include <mpc.h>
5646int
5647main ()
5648{
5649
a6b5846e
KG
5650 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5651 choke me
5652 #endif
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <mpc.h>
5662int
5663main ()
5664{
5665
5666 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5667 choke me
5668 #endif
5669
5670 ;
5671 return 0;
5672}
5673_ACEOF
81ecdfbb
RW
5674if ac_fn_c_try_compile "$LINENO"; then :
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5676$as_echo "yes" >&6; }
a6b5846e
KG
5677else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5679$as_echo "buggy but acceptable" >&6; }
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5682else
81ecdfbb 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5684$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5685fi
81ecdfbb 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5687 fi
5688
5689 # Now check the MPFR library.
5690 if test x"$have_gmp" = xyes; then
5691 saved_LIBS="$LIBS"
5692 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5694$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5696/* end confdefs.h. */
d9b76ff9 5697#include <mpc.h>
e8a5fa9c
RW
5698int
5699main ()
5700{
5701
5702 mpfr_t n;
5703 mpfr_t x;
d9b76ff9 5704 mpc_t c;
e8a5fa9c
RW
5705 int t;
5706 mpfr_init (n);
5707 mpfr_init (x);
5708 mpfr_atan2 (n, n, x, GMP_RNDN);
5709 mpfr_erfc (n, x, GMP_RNDN);
5710 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5711 mpfr_clear(n);
5712 mpfr_clear(x);
5713 mpc_init2 (c, 53);
5714 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5715 mpc_cosh (c, c, MPC_RNDNN);
5716 mpc_pow (c, c, c, MPC_RNDNN);
5717 mpc_acosh (c, c, MPC_RNDNN);
5718 mpc_clear (c);
c6b750e1
DJ
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
81ecdfbb
RW
5724if ac_fn_c_try_link "$LINENO"; then :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726$as_echo "yes" >&6; }
c6b750e1 5727else
81ecdfbb
RW
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5730fi
81ecdfbb
RW
5731rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5733 LIBS="$saved_LIBS"
5734 fi
5735
4b900473 5736 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5737
a6b5846e
KG
5738# The library versions listed in the error message below should match
5739# the HARD-minimums enforced above.
4b900473 5740 if test x$have_gmp != xyes; then
7ec59b9e 5741 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5742Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5743their locations. Source code for these libraries can be found at
5744their respective hosting sites as well as at
5745ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5746http://gcc.gnu.org/install/prerequisites.html for additional info. If
5747you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5748make sure that you have installed both the libraries and the header
5749files. They may be located in separate packages." "$LINENO" 5
4b900473 5750 fi
9dbaa842
DD
5751fi
5752
e8a5fa9c
RW
5753# Flags needed for both GMP, MPFR and/or MPC.
5754
5755
5756
4b1cb4fe
DD
5757
5758
5759
7ec59b9e 5760
b3676d82 5761# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5762
b3676d82
EB
5763# Check whether --with-stage1-libs was given.
5764if test "${with_stage1_libs+set}" = set; then :
5765 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5766 stage1_libs=
e8a5fa9c 5767 else
b3676d82 5768 stage1_libs=$withval
e8a5fa9c
RW
5769 fi
5770else
68996839 5771 stage1_libs=
81ecdfbb
RW
5772fi
5773
e8a5fa9c
RW
5774
5775
b3676d82 5776# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5777
b3676d82
EB
5778# Check whether --with-stage1-ldflags was given.
5779if test "${with_stage1_ldflags+set}" = set; then :
5780 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5781 stage1_ldflags=
e8a5fa9c 5782 else
b3676d82 5783 stage1_ldflags=$withval
e8a5fa9c
RW
5784 fi
5785else
b3676d82
EB
5786 stage1_ldflags=
5787 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5788 # if supported. But if the user explicitly specified the libraries to use,
5789 # trust that they are doing what they want.
5790 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5791 stage1_ldflags="-static-libstdc++ -static-libgcc"
5792 fi
81ecdfbb
RW
5793fi
5794
e8a5fa9c
RW
5795
5796
68996839 5797# Libraries to use for stage2 and later builds.
e8a5fa9c 5798
81ecdfbb
RW
5799# Check whether --with-boot-libs was given.
5800if test "${with_boot_libs+set}" = set; then :
5801 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5802 poststage1_libs=
5803 else
5804 poststage1_libs=$withval
5805 fi
5806else
68996839 5807 poststage1_libs=
81ecdfbb
RW
5808fi
5809
e8a5fa9c
RW
5810
5811
143754cd
NC
5812# Linker flags to use for stage2 and later builds.
5813
5814# Check whether --with-boot-ldflags was given.
5815if test "${with_boot_ldflags+set}" = set; then :
5816 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5817 poststage1_ldflags=
5818 else
5819 poststage1_ldflags=$withval
5820 fi
5821else
5822 poststage1_ldflags=
4f11b223
ILT
5823 # In stages 2 and 3, default to linking libstdc++ and libgcc
5824 # statically. But if the user explicitly specified the libraries to
5825 # use, trust that they are doing what they want.
5826 if test "$poststage1_libs" = ""; then
143754cd
NC
5827 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5828 fi
5829fi
5830
5831
5832
4849dfd8 5833# GCC GRAPHITE dependency isl.
1b6c0831 5834# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5835
5836
7ec59b9e
L
5837# Check whether --with-isl was given.
5838if test "${with_isl+set}" = set; then :
5839 withval=$with_isl;
81ecdfbb 5840fi
e28c595f 5841
e28c595f 5842
1b6c0831 5843# Treat --without-isl as a request to disable
8e71395b 5844# GRAPHITE support and skip all following checks.
1b6c0831 5845if test "x$with_isl" != "xno"; then
4849dfd8 5846 # Check for isl
8e71395b
L
5847
5848
7ec59b9e
L
5849# Check whether --with-isl-include was given.
5850if test "${with_isl_include+set}" = set; then :
5851 withval=$with_isl_include;
81ecdfbb
RW
5852fi
5853
e28c595f 5854
7ec59b9e
L
5855# Check whether --with-isl-lib was given.
5856if test "${with_isl_lib+set}" = set; then :
5857 withval=$with_isl_lib;
81ecdfbb 5858fi
e28c595f 5859
e28c595f 5860
7ec59b9e
L
5861 # Check whether --enable-isl-version-check was given.
5862if test "${enable_isl_version_check+set}" = set; then :
5863 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5864else
5865 ENABLE_ISL_CHECK=yes
b123da99
SP
5866fi
5867
5868
7ec59b9e
L
5869 # Initialize isllibs and islinc.
5870 case $with_isl in
5871 no)
5872 isllibs=
5873 islinc=
5874 ;;
5875 "" | yes)
5876 ;;
5877 *)
5878 isllibs="-L$with_isl/lib"
5879 islinc="-I$with_isl/include"
5880 ;;
5881 esac
5882 if test "x${with_isl_include}" != x ; then
5883 islinc="-I$with_isl_include"
5884 fi
5885 if test "x${with_isl_lib}" != x; then
5886 isllibs="-L$with_isl_lib"
5887 fi
5888 if test "x${islinc}" = x && test "x${isllibs}" = x \
5889 && test -d ${srcdir}/isl; then
5890 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5891 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5892 ENABLE_ISL_CHECK=no
4849dfd8
NC
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5894$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5895 fi
b123da99 5896
1b6c0831 5897 isllibs="${isllibs} -lisl"
b123da99 5898
e28c595f 5899
b3fc79f8
JBG
5900
5901 if test "${ENABLE_ISL_CHECK}" = yes ; then
5902 _isl_saved_CFLAGS=$CFLAGS
5903 _isl_saved_LDFLAGS=$LDFLAGS
5904 _isl_saved_LIBS=$LIBS
5905
5906 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5907 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5908 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5909
52cf9762
NC
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5911$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
1b6c0831 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 5913/* end confdefs.h. */
4849dfd8 5914#include <isl/ctx.h>
b3fc79f8
JBG
5915int
5916main ()
5917{
4849dfd8 5918isl_ctx_get_max_operations (isl_ctx_alloc ());
b3fc79f8
JBG
5919 ;
5920 return 0;
5921}
5922_ACEOF
1b6c0831 5923if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
5924 gcc_cv_isl=yes
5925else
5926 gcc_cv_isl=no
5927fi
1b6c0831
L
5928rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5931$as_echo "$gcc_cv_isl" >&6; }
5932
4849dfd8 5933 if test "${gcc_cv_isl}" = no ; then
52cf9762
NC
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5935$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5936 fi
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5939$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h. */
5942#include <isl/schedule.h>
5943int
5944main ()
5945{
5946isl_options_set_schedule_serialize_sccs (NULL, 0);
5947 ;
5948 return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952 ac_has_isl_options_set_schedule_serialize_sccs=yes
5953else
5954 ac_has_isl_options_set_schedule_serialize_sccs=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5959$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5960
5961 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5962 islver="0.15"
5963
4849dfd8
NC
5964 fi
5965
b3fc79f8
JBG
5966 CFLAGS=$_isl_saved_CFLAGS
5967 LDFLAGS=$_isl_saved_LDFLAGS
5968 LIBS=$_isl_saved_LIBS
5969 fi
5970
5971
e28c595f 5972
e28c595f 5973
7ec59b9e
L
5974
5975
7ec59b9e
L
5976 if test "x${with_isl}" = xno; then
5977 graphite_requested=no
5978 elif test "x${with_isl}" != x \
5979 || test "x${with_isl_include}" != x \
5980 || test "x${with_isl_lib}" != x ; then
5981 graphite_requested=yes
5982 else
5983 graphite_requested=no
b123da99 5984 fi
e28c595f 5985
e28c595f
JM
5986
5987
7ec59b9e
L
5988 if test "${gcc_cv_isl}" = no ; then
5989 isllibs=
5990 islinc=
5991 fi
e28c595f 5992
7ec59b9e
L
5993 if test "${graphite_requested}" = yes \
5994 && test "x${isllibs}" = x \
5995 && test "x${islinc}" = x ; then
e28c595f 5996
4849dfd8 5997 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 5998 fi
e552509b 5999
e28c595f 6000
e552509b
ILT
6001fi
6002
4849dfd8 6003# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6004if test "x$with_isl" = xno ||
8e71395b 6005 test "x$gcc_cv_isl" = xno; then
1b6c0831 6006 noconfigdirs="$noconfigdirs isl"
8e71395b 6007 islinc=
7ec59b9e
L
6008fi
6009
8e71395b
L
6010
6011
6012
700d40ca
ILT
6013# Check for LTO support.
6014# Check whether --enable-lto was given.
6015if test "${enable_lto+set}" = set; then :
6016 enableval=$enable_lto; enable_lto=$enableval
6017else
6018 enable_lto=yes; default_enable_lto=yes
6019fi
6020
6021
143754cd 6022
e49e5c92
DK
6023
6024
6025target_elf=no
6026case $target in
6027 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6028 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6029 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6030 nvptx-*-none)
e49e5c92
DK
6031 target_elf=no
6032 ;;
6033 *)
6034 target_elf=yes
6035 ;;
6036esac
6037
6038if test $target_elf = yes; then :
74cea91b
DK
6039 # ELF platforms build the lto-plugin always.
6040 build_lto_plugin=yes
e49e5c92 6041
e49e5c92
DK
6042else
6043 if test x"$default_enable_lto" = x"yes" ; then
29821356 6044 case $target in
52cf9762 6045 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6046 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6047 *) enable_lto=no ;;
6048 esac
e49e5c92 6049 else
29821356
RW
6050 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6051 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6052 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6053 # warn during gcc/ subconfigure; unless you're bootstrapping with
6054 # -flto it won't be needed until after installation anyway.
6055 case $target in
52cf9762 6056 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92
DK
6057 *) if test x"$enable_lto" = x"yes"; then
6058 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6059 fi
6060 ;;
6061 esac
6062 fi
a8eb3f0a 6063 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6064 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6065 case $target in
74cea91b 6066 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6067 *) ;;
6068 esac
74cea91b 6069
e49e5c92
DK
6070fi
6071
700d40ca 6072
1b6c0831
L
6073# Check whether --enable-linker-plugin-configure-flags was given.
6074if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6075 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6076else
6077 extra_linker_plugin_configure_flags=
6078fi
6079
6080
6081# Check whether --enable-linker-plugin-flags was given.
6082if test "${enable_linker_plugin_flags+set}" = set; then :
6083 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6084else
6085 extra_linker_plugin_flags=
6086fi
6087
6088
6089
e28c595f 6090
7ec59b9e 6091# By default, C and C++ are the only stage 1 languages.
9b134994 6092stage1_languages=,c,
1d39f329 6093
e8a5fa9c 6094# Target libraries that we bootstrap.
2aa2364a 6095bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6096
9e07f89d
NN
6097# Figure out what language subdirectories are present.
6098# Look if the user specified --enable-languages="..."; if not, use
6099# the environment variable $LANGUAGES if defined. $LANGUAGES might
6100# go away some day.
6101# NB: embedded tabs in this IF block -- do not untabify
6102if test -d ${srcdir}/gcc; then
6103 if test x"${enable_languages+set}" != xset; then
6104 if test x"${LANGUAGES+set}" = xset; then
6105 enable_languages="${LANGUAGES}"
136bb21f 6106 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d
NN
6107 else
6108 enable_languages=all
6109 fi
6110 else
6111 if test x"${enable_languages}" = x ||
6112 test x"${enable_languages}" = xyes;
6113 then
136bb21f 6114 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6115 exit 1
6116 fi
6117 fi
6118 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6119
096f7d00
DE
6120 # 'f95' is the old name for the 'fortran' language. We issue a warning
6121 # and make the substitution.
6122 case ,${enable_languages}, in
6123 *,f95,*)
136bb21f 6124 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6126 ;;
6127 esac
6128
7ec59b9e
L
6129 # If bootstrapping, C++ must be enabled.
6130 case ",$enable_languages,:$enable_bootstrap" in
6131 *,c++,*:*) ;;
6132 *:yes)
ffdd6afc
ILT
6133 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6134 enable_languages="${enable_languages},c++"
6135 else
7ec59b9e 6136 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6137 fi
6138 ;;
6139 esac
6140
9e07f89d
NN
6141 # First scan to see if an enabled language requires some other language.
6142 # We assume that a given config-lang.in will list all the language
6143 # front ends it requires, even if some are required indirectly.
6144 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6145 case ${lang_frag} in
6146 ..) ;;
6147 # The odd quoting in the next line works around
6148 # an apparent bug in bash 1.12 on linux.
6149 ${srcdir}/gcc/[*]/config-lang.in) ;;
6150 *)
e552509b
ILT
6151 # From the config-lang.in, get $language, $lang_requires, and
6152 # $lang_requires_boot_languages.
9e07f89d
NN
6153 language=
6154 lang_requires=
e552509b 6155 lang_requires_boot_languages=
9e07f89d 6156 . ${lang_frag}
e552509b 6157 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6158 case ,${enable_languages}, in
6159 *,$other,*) ;;
6160 *,all,*) ;;
6161 *,$language,*)
6162 echo " \`$other' language required by \`$language'; enabling" 1>&2
6163 enable_languages="${enable_languages},${other}"
6164 ;;
6165 esac
6166 done
e552509b
ILT
6167 for other in ${lang_requires_boot_languages} ; do
6168 if test "$other" != "c"; then
6169 case ,${enable_stage1_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *)
6173 case ,${enable_languages}, in
6174 *,$language,*)
6175 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6176 enable_stage1_languages="$enable_stage1_languages,${other}"
6177 ;;
6178 esac
6179 ;;
6180 esac
6181 fi
6182 done
9e07f89d
NN
6183 ;;
6184 esac
6185 done
6186
9b134994 6187 new_enable_languages=,c,
700d40ca
ILT
6188
6189 # If LTO is enabled, add the LTO front end.
700d40ca 6190 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6191 case ,${enable_languages}, in
6192 *,lto,*) ;;
6193 *) enable_languages="${enable_languages},lto" ;;
6194 esac
a8eb3f0a 6195 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6196 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6197 fi
6198 fi
6199
1b6c0831
L
6200 # If we're building an offloading compiler, add the LTO front end.
6201 if test x"$enable_as_accelerator_for" != x ; then
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
6206 fi
700d40ca 6207
9e07f89d 6208 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6209 potential_languages=,c,
9e07f89d 6210
9e1a94f4
ILT
6211 enabled_target_libs=
6212 disabled_target_libs=
6213
9e07f89d
NN
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6216 ..) ;;
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 *)
c6b750e1 6221 # From the config-lang.in, get $language, $target_libs,
1d39f329 6222 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6223 language=
6224 target_libs=
6225 lang_dirs=
64ce424c 6226 subdir_requires=
9b134994
PB
6227 boot_language=no
6228 build_by_default=yes
9e07f89d 6229 . ${lang_frag}
9b134994
PB
6230 if test x${language} = x; then
6231 echo "${lang_frag} doesn't set \$language." 1>&2
6232 exit 1
6233 fi
6234
ffdd6afc 6235 if test "$language" = "c++"; then
7ec59b9e 6236 boot_language=yes
e8a5fa9c
RW
6237 fi
6238
8e71395b 6239 add_this_lang=no
9b134994
PB
6240 case ,${enable_languages}, in
6241 *,${language},*)
7ec59b9e
L
6242 # Language was explicitly selected; include it
6243 # unless it is C, which is enabled by default.
6244 if test "$language" != "c"; then
6245 add_this_lang=yes
6246 fi
9e07f89d 6247 ;;
9b134994
PB
6248 *,all,*)
6249 # 'all' was selected, select it if it is a default language
8e71395b
L
6250 if test "$language" != "c"; then
6251 add_this_lang=${build_by_default}
6252 fi
9e07f89d
NN
6253 ;;
6254 esac
4b1cb4fe 6255
64ce424c 6256 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6257 for i in $subdir_requires; do
3d3adb43 6258 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6259 case ,${enable_languages}, in
6260 *,${language},*)
6261 # Specifically requested language; tell them.
81ecdfbb 6262 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6263 ;;
6264 *)
6265 # Silently disable.
9b134994 6266 add_this_lang=unsupported
64ce424c
PB
6267 ;;
6268 esac
6269 done
6270
9b134994
PB
6271 # Disable Ada if no preexisting GNAT is available.
6272 case ,${enable_languages},:${language}:${have_gnat} in
6273 *,${language},*:ada:no)
6274 # Specifically requested language; tell them.
81ecdfbb 6275 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6276 ;;
6277 *:ada:no)
6278 # Silently disable.
6279 add_this_lang=unsupported
6280 ;;
6281 esac
6282
59f7ec45
HPN
6283 # Disable a language that is unsupported by the target.
6284 case " $unsupported_languages " in
6285 *" $language "*)
9b134994 6286 add_this_lang=unsupported
59f7ec45
HPN
6287 ;;
6288 esac
6289
4b1cb4fe 6290 case $add_this_lang in
9b134994 6291 unsupported)
9e07f89d 6292 # Remove language-dependent dirs.
9e1a94f4
ILT
6293 disabled_target_libs="$disabled_target_libs $target_libs"
6294 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6295 ;;
9b134994
PB
6296 no)
6297 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6298 disabled_target_libs="$disabled_target_libs $target_libs"
6299 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6300 potential_languages="${potential_languages}${language},"
6301 ;;
6302 yes)
6303 new_enable_languages="${new_enable_languages}${language},"
6304 potential_languages="${potential_languages}${language},"
1d39f329 6305 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6306 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6307 case "${boot_language}:,$enable_stage1_languages," in
6308 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6309 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6310 case ",$stage1_languages," in
6311 *,$language,* | ,yes, | ,all,) ;;
6312 *) stage1_languages="${stage1_languages}${language}," ;;
6313 esac
e8a5fa9c
RW
6314 # We need to bootstrap any supporting libraries.
6315 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6316 ;;
6317 esac
6318 ;;
9e07f89d
NN
6319 esac
6320 ;;
6321 esac
6322 done
6323
9e1a94f4
ILT
6324 # Add target libraries which are only needed for disabled languages
6325 # to noconfigdirs.
6326 if test -n "$disabled_target_libs"; then
6327 for dir in $disabled_target_libs; do
6328 case " $enabled_target_libs " in
6329 *" ${dir} "*) ;;
6330 *) noconfigdirs="$noconfigdirs $dir" ;;
6331 esac
6332 done
6333 fi
6334
81ecdfbb
RW
6335 # Check whether --enable-stage1-languages was given.
6336if test "${enable_stage1_languages+set}" = set; then :
6337 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6338 ,no,|,,)
6339 # Set it to something that will have no effect in the loop below
6340 enable_stage1_languages=c ;;
6341 ,yes,)
6342 enable_stage1_languages=`echo $new_enable_languages | \
6343 sed -e "s/^,//" -e "s/,$//" ` ;;
6344 *,all,*)
6345 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6346 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6347 esac
6348
6349 # Add "good" languages from enable_stage1_languages to stage1_languages,
6350 # while "bad" languages go in missing_languages. Leave no duplicates.
6351 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6352 case $potential_languages in
6353 *,$i,*)
6354 case $stage1_languages in
6355 *,$i,*) ;;
6356 *) stage1_languages="$stage1_languages$i," ;;
6357 esac ;;
6358 *)
6359 case $missing_languages in
6360 *,$i,*) ;;
6361 *) missing_languages="$missing_languages$i," ;;
6362 esac ;;
6363 esac
6364 done
81ecdfbb
RW
6365fi
6366
9b134994
PB
6367
6368 # Remove leading/trailing commas that were added for simplicity
6369 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6370 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6371 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6372 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6373
9e07f89d 6374 if test "x$missing_languages" != x; then
81ecdfbb 6375 as_fn_error "
27258dd4 6376The following requested languages could not be built: ${missing_languages}
81ecdfbb 6377Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6378 fi
9e07f89d
NN
6379 if test "x$new_enable_languages" != "x$enable_languages"; then
6380 echo The following languages will be built: ${new_enable_languages}
9b134994 6381 enable_languages="$new_enable_languages"
9e07f89d 6382 fi
9b134994 6383
c6b750e1 6384
81ec575a 6385 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6386fi
6387
a6df5a19
PB
6388# Handle --disable-<component> generically.
6389for dir in $configdirs $build_configdirs $target_configdirs ; do
6390 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6391 varname=`echo $dirname | sed -e s/+/_/g`
6392 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6393 noconfigdirs="$noconfigdirs $dir"
6394 fi
6395done
6396
4f0ef2d8 6397# Check for Boehm's garbage collector
81ecdfbb
RW
6398# Check whether --enable-objc-gc was given.
6399if test "${enable_objc_gc+set}" = set; then :
05a13254 6400 enableval=$enable_objc_gc;
81ecdfbb
RW
6401fi
6402
4f0ef2d8 6403
05a13254
NC
6404# Check whether --with-target-bdw-gc was given.
6405if test "${with_target_bdw_gc+set}" = set; then :
6406 withval=$with_target_bdw_gc;
6407fi
6408
6409
6410# Check whether --with-target-bdw-gc-include was given.
6411if test "${with_target_bdw_gc_include+set}" = set; then :
6412 withval=$with_target_bdw_gc_include;
6413fi
6414
6415
6416# Check whether --with-target-bdw-gc-lib was given.
6417if test "${with_target_bdw_gc_lib+set}" = set; then :
6418 withval=$with_target_bdw_gc_lib;
6419fi
6420
6421
6422case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6424$as_echo_n "checking for bdw garbage collector... " >&6; }
6425 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6427$as_echo "using bdw-gc in default locations" >&6; }
6428 else
6429 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6430 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6431 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6432 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6435$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6436 fi
05a13254 6437 fi
4f0ef2d8
CD
6438esac
6439
1b6c0831 6440# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6441case ,${enable_languages}, in
1b6c0831
L
6442 *,c++,*)
6443 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6444 case "${noconfigdirs}" in
6445 *target-libstdc++-v3*)
6446 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6447 ;;
6448 *) ;;
6449 esac
6450 ;;
7ec59b9e 6451 *)
1b6c0831 6452 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6453 ;;
6454esac
6455
caeba88f
AL
6456# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6457# $build_configdirs and $target_configdirs.
9e07f89d
NN
6458# If we have the source for $noconfigdirs entries, add them to $notsupp.
6459
6460notsupp=""
6461for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6462 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6463 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6464 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6465 if test -r $srcdir/$dirname/configure ; then
6466 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6467 true
6468 else
6469 notsupp="$notsupp $dir"
6470 fi
6471 fi
6472 fi
caeba88f
AL
6473 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6475 if test -r $srcdir/$dirname/configure ; then
6476 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6477 true
6478 else
6479 notsupp="$notsupp $dir"
6480 fi
6481 fi
6482 fi
9e07f89d
NN
6483 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6485 if test -r $srcdir/$dirname/configure ; then
6486 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6487 true
6488 else
6489 notsupp="$notsupp $dir"
6490 fi
6491 fi
6492 fi
6493done
6494
9e07f89d
NN
6495# Quietly strip out all directories which aren't configurable in this tree.
6496# This relies on all configurable subdirectories being autoconfiscated, which
6497# is now the case.
6a9cf61e
PB
6498build_configdirs_all="$build_configdirs"
6499build_configdirs=
6500for i in ${build_configdirs_all} ; do
c6b750e1 6501 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6502 if test -f ${srcdir}/$j/configure ; then
6503 build_configdirs="${build_configdirs} $i"
6504 fi
6505done
6506
9e07f89d
NN
6507configdirs_all="$configdirs"
6508configdirs=
6509for i in ${configdirs_all} ; do
6510 if test -f ${srcdir}/$i/configure ; then
6511 configdirs="${configdirs} $i"
6512 fi
6513done
6a9cf61e 6514
9e07f89d
NN
6515target_configdirs_all="$target_configdirs"
6516target_configdirs=
6517for i in ${target_configdirs_all} ; do
c6b750e1 6518 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6519 if test -f ${srcdir}/$j/configure ; then
6520 target_configdirs="${target_configdirs} $i"
6521 fi
6522done
6523
1b6c0831
L
6524# libiberty-linker-plugin is special: it doesn't have its own source directory,
6525# so we have to add it after the preceding checks.
6526if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6527then
6528 case " $configdirs " in
6529 *" libiberty "*)
6530 # If we can build libiberty, we can also build libiberty-linker-plugin.
6531 configdirs="$configdirs libiberty-linker-plugin"
6532 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6533 --with-libiberty=../libiberty-linker-plugin";;
6534 *)
6535 as_fn_error "libiberty missing" "$LINENO" 5;;
6536 esac
6537fi
6538
6539# Sometimes we have special requirements for the host libiberty.
6540extra_host_libiberty_configure_flags=
e81d5d05 6541extra_host_zlib_configure_flags=
1b6c0831
L
6542case " $configdirs " in
6543 *" lto-plugin "* | *" libcc1 "*)
6544 # When these are to be built as shared libraries, the same applies to
6545 # libiberty.
6546 extra_host_libiberty_configure_flags=--enable-shared
6547 ;;
e81d5d05
L
6548 *" bfd "*)
6549 # When bfd is to be built as a shared library, the same applies to
6550 # zlib.
6551 if test "$enable_shared" = "yes"; then
6552 extra_host_zlib_configure_flags=--enable-host-shared
6553 fi
6554 ;;
1b6c0831
L
6555esac
6556
6557
e81d5d05 6558
9e07f89d
NN
6559# Produce a warning message for the subdirs we can't configure.
6560# This isn't especially interesting in the Cygnus tree, but in the individual
6561# FSF releases, it's important to let people know when their machine isn't
6562# supported by the one or two programs in a package.
6563
6564if test -n "${notsupp}" && test -z "${norecursion}" ; then
6565 # If $appdirs is non-empty, at least one of those directories must still
6566 # be configured, or we error out. (E.g., if the gas release supports a
6567 # specified target in some subdirs but not the gas subdir, we shouldn't
6568 # pretend that all is well.)
6569 if test -n "$appdirs" ; then
6570 for dir in $appdirs ; do
6571 if test -r $dir/Makefile.in ; then
6572 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6573 appdirs=""
6574 break
6575 fi
6a9cf61e 6576 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6577 appdirs=""
6578 break
6579 fi
6580 fi
6581 done
6582 if test -n "$appdirs" ; then
6583 echo "*** This configuration is not supported by this package." 1>&2
6584 exit 1
6585 fi
6586 fi
6587 # Okay, some application will build, or we don't care to check. Still
6588 # notify of subdirs not getting built.
6589 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6590 echo " ${notsupp}" 1>&2
6591 echo " (Any other directories should still work fine.)" 1>&2
6592fi
6593
6594case "$host" in
6595 *msdosdjgpp*)
6596 enable_gdbtk=no ;;
6597esac
6598
18f6b6ee
PB
6599# To find our prefix, in gcc_cv_tool_prefix.
6600
6601# The user is always right.
6602if test "${PATH_SEPARATOR+set}" != set; then
6603 echo "#! /bin/sh" >conf$$.sh
6604 echo "exit 0" >>conf$$.sh
6605 chmod +x conf$$.sh
6606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6607 PATH_SEPARATOR=';'
6608 else
6609 PATH_SEPARATOR=:
6610 fi
6611 rm -f conf$$.sh
6612fi
6613
6614
6615
6616if test "x$exec_prefix" = xNONE; then
6617 if test "x$prefix" = xNONE; then
6618 gcc_cv_tool_prefix=$ac_default_prefix
6619 else
6620 gcc_cv_tool_prefix=$prefix
6621 fi
6622else
6623 gcc_cv_tool_prefix=$exec_prefix
6624fi
6625
6626# If there is no compiler in the tree, use the PATH only. In any
6627# case, if there is no compiler in the tree nobody should use
6628# AS_FOR_TARGET and LD_FOR_TARGET.
6629if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6630 gcc_version=`cat $srcdir/gcc/BASE-VER`
6631 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6636 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6637else
6638 gcc_cv_tool_dirs=
6639fi
6640
6641if test x$build = x$target && test -n "$md_exec_prefix"; then
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6643fi
6644
6645
6646
9e07f89d
NN
6647copy_dirs=
6648
c6b750e1 6649
81ecdfbb
RW
6650# Check whether --with-build-sysroot was given.
6651if test "${with_build_sysroot+set}" = set; then :
6652 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6654 fi
6655else
6656 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6657fi
a19b6204
MM
6658
6659
8a6ee3ab 6660
81ecdfbb
RW
6661
6662# Check whether --with-debug-prefix-map was given.
6663if test "${with_debug_prefix_map+set}" = set; then :
6664 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6665 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6666 for debug_map in $withval; do
6667 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6668 done
6669 fi
6670else
6671 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6672fi
6673
8a6ee3ab
JM
6674
6675
7f6ef0c0
PB
6676# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6677# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6678# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6679# We want to ensure that TARGET libraries (which we know are built with
6680# gcc) are built with "-O2 -g", so include those options when setting
6681# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6682if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6683 if test "x${is_cross_compiler}" = xyes; then
6684 CFLAGS_FOR_TARGET="-g -O2"
6685 else
6686 CFLAGS_FOR_TARGET=$CFLAGS
6687 case " $CFLAGS " in
6688 *" -O2 "*) ;;
6689 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6690 esac
6691 case " $CFLAGS " in
6692 *" -g "* | *" -g3 "*) ;;
6693 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6694 esac
6695 fi
7f6ef0c0
PB
6696fi
6697
6698
6699if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6700 if test "x${is_cross_compiler}" = xyes; then
6701 CXXFLAGS_FOR_TARGET="-g -O2"
6702 else
6703 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6704 case " $CXXFLAGS " in
6705 *" -O2 "*) ;;
6706 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6707 esac
6708 case " $CXXFLAGS " in
6709 *" -g "* | *" -g3 "*) ;;
6710 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6711 esac
6712 fi
7f6ef0c0
PB
6713fi
6714
6715
91c1f14c
DK
6716
6717
9e07f89d
NN
6718# Handle --with-headers=XXX. If the value is not "yes", the contents of
6719# the named directory are copied to $(tooldir)/sys-include.
6720if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6721 if test x${is_cross_compiler} = xno ; then
6722 echo 1>&2 '***' --with-headers is only supported when cross compiling
6723 exit 1
6724 fi
6725 if test x"${with_headers}" != xyes ; then
18f6b6ee 6726 x=${gcc_cv_tool_prefix}
c6b750e1 6727 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6728 fi
6729fi
6730
6731# Handle --with-libs=XXX. If the value is not "yes", the contents of
6732# the name directories are copied to $(tooldir)/lib. Multiple directories
6733# are permitted.
6734if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6735 if test x${is_cross_compiler} = xno ; then
6736 echo 1>&2 '***' --with-libs is only supported when cross compiling
6737 exit 1
6738 fi
6739 if test x"${with_libs}" != xyes ; then
6740 # Copy the libraries in reverse order, so that files in the first named
6741 # library override files in subsequent libraries.
18f6b6ee 6742 x=${gcc_cv_tool_prefix}
9e07f89d 6743 for l in ${with_libs}; do
c6b750e1 6744 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6745 done
6746 fi
6747fi
6748
700d40ca 6749# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6750#
6751# This is done by determining whether or not the appropriate directory
6752# is available, and by checking whether or not specific configurations
6753# have requested that this magic not happen.
c6b750e1
DJ
6754#
6755# The command line options always override the explicit settings in
136bb21f 6756# configure.ac, and the settings in configure.ac override this magic.
2429c060 6757#
c6b750e1 6758# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6759# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6760# --without-gnu-ld options for the configure script. Similarly, if
6761# the default is to use the included zlib and you don't want to do that,
6762# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6763
6764if test x${use_gnu_as} = x &&
6765 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6766 with_gnu_as=yes
6767 extra_host_args="$extra_host_args --with-gnu-as"
6768fi
6769
6770if test x${use_gnu_ld} = x &&
93f9b408 6771 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6772 with_gnu_ld=yes
6773 extra_host_args="$extra_host_args --with-gnu-ld"
6774fi
6775
700d40ca
ILT
6776if test x${use_included_zlib} = x &&
6777 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6778 :
6779else
6780 with_system_zlib=yes
6781 extra_host_args="$extra_host_args --with-system-zlib"
6782fi
6783
2429c060
PB
6784# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6785# can detect this case.
6786
6787if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6788 with_newlib=yes
6789 extra_host_args="$extra_host_args --with-newlib"
6790fi
6791
9e07f89d
NN
6792# Handle ${copy_dirs}
6793set fnord ${copy_dirs}
6794shift
6795while test $# != 0 ; do
6796 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6797 :
6798 else
6799 echo Copying $1 to $2
6800
6801 # Use the install script to create the directory and all required
6802 # parent directories.
6803 if test -d $2 ; then
6804 :
6805 else
6806 echo >config.temp
6807 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6808 fi
6809
6810 # Copy the directory, assuming we have tar.
6811 # FIXME: Should we use B in the second tar? Not all systems support it.
6812 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6813
6814 # It is the responsibility of the user to correctly adjust all
6815 # symlinks. If somebody can figure out how to handle them correctly
6816 # here, feel free to add the code.
6817
6818 echo $1 > $2/COPIED
6819 fi
6820 shift; shift
6821done
6822
2429c060
PB
6823# Determine a target-dependent exec_prefix that the installed
6824# gcc will search in. Keep this list sorted by triplet, with
6825# the *-*-osname triplets last.
6826md_exec_prefix=
6827case "${target}" in
521ec477 6828 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6829 md_exec_prefix=/dev/env/DJDIR/bin
6830 ;;
2429c060 6831 *-*-hpux* | \
2429c060 6832 *-*-nto-qnx* | \
1f111696 6833 *-*-solaris2*)
2429c060
PB
6834 md_exec_prefix=/usr/ccs/bin
6835 ;;
6836esac
6837
a0da8069
NN
6838extra_arflags_for_target=
6839extra_nmflags_for_target=
6840extra_ranlibflags_for_target=
6841target_makefile_frag=/dev/null
6842case "${target}" in
77d7106f
AM
6843 spu-*-*)
6844 target_makefile_frag="config/mt-spu"
6845 ;;
a9d58c06 6846 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6847 target_makefile_frag="config/mt-sde"
6848 ;;
f3b1e08e
RS
6849 mipsisa*-*-elfoabi*)
6850 target_makefile_frag="config/mt-mips-elfoabi"
6851 ;;
e7c8859c
RS
6852 mips*-*-*linux* | mips*-*-gnu*)
6853 target_makefile_frag="config/mt-mips-gnu"
6854 ;;
d9e042ac
SL
6855 nios2-*-elf*)
6856 target_makefile_frag="config/mt-nios2-elf"
6857 ;;
29383458 6858 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6859 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6860 ;;
6861 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6862 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6863 # commands to handle both 32-bit and 64-bit objects. These flags are
6864 # harmless if we're using GNU nm or ar.
6865 extra_arflags_for_target=" -X32_64"
6866 extra_nmflags_for_target=" -B -X32_64"
6867 ;;
a0da8069
NN
6868esac
6869
6870alphaieee_frag=/dev/null
6871case $target in
6872 alpha*-*-*)
6873 # This just makes sure to use the -mieee option to build target libs.
6874 # This should probably be set individually by each library.
6875 alphaieee_frag="config/mt-alphaieee"
6876 ;;
6877esac
6878
6879# If --enable-target-optspace always use -Os instead of -O2 to build
6880# the target libraries, similarly if it is not specified, use -Os
6881# on selected platforms.
6882ospace_frag=/dev/null
6883case "${enable_target_optspace}:${target}" in
6884 yes:*)
6885 ospace_frag="config/mt-ospace"
6886 ;;
6887 :d30v-*)
6888 ospace_frag="config/mt-d30v"
6889 ;;
16beab3d 6890 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6891 ospace_frag="config/mt-ospace"
6892 ;;
6893 no:* | :*)
6894 ;;
6895 *)
6896 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6897 ;;
6898esac
6899
a0da8069
NN
6900# Some systems (e.g., one of the i386-aix systems the gas testers are
6901# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6902tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6903build_tooldir=${tooldir}
6904
a0da8069
NN
6905# Create a .gdbinit file which runs the one in srcdir
6906# and tells GDB to look there for source files.
6907
6908if test -r ${srcdir}/.gdbinit ; then
6909 case ${srcdir} in
6910 .) ;;
6911 *) cat > ./.gdbinit <<EOF
6912# ${NO_EDIT}
6913dir ${srcdir}
6914dir .
6915source ${srcdir}/.gdbinit
6916EOF
6917 ;;
6918 esac
6919fi
6920
a0da8069
NN
6921# Make sure that the compiler is able to generate an executable. If it
6922# can't, we are probably in trouble. We don't care whether we can run the
6923# executable--we might be using a cross compiler--we only care whether it
6924# can be created. At this point the main configure script has set CC.
6925we_are_ok=no
6926echo "int main () { return 0; }" > conftest.c
6927${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6928if test $? = 0 ; then
6929 if test -s conftest || test -s conftest.exe ; then
6930 we_are_ok=yes
6931 fi
c6b750e1 6932fi
a0da8069
NN
6933case $we_are_ok in
6934 no)
6935 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6936 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6937 rm -f conftest*
6938 exit 1
6939 ;;
6940esac
6941rm -f conftest*
6942
3bbd2f8f 6943# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6944case "${host}" in
6945 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6946 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6947 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6948 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6949esac
6950
3bbd2f8f 6951# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6952# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6953# built executables to PATH.
3bbd2f8f
AL
6954if test "$RPATH_ENVVAR" = PATH; then
6955 GCC_SHLIB_SUBDIR=/shlib
6956else
6957 GCC_SHLIB_SUBDIR=
6958fi
6959
730af8ee 6960# Adjust the toplevel makefile according to whether bootstrap was selected.
6961case $enable_bootstrap in
6962 yes)
6963 bootstrap_suffix=bootstrap
6964 BUILD_CONFIG=bootstrap-debug
6965 ;;
6966 no)
6967 bootstrap_suffix=no-bootstrap
6968 BUILD_CONFIG=
6969 ;;
6970esac
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6973$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6974
6975
6976# Check whether --with-build-config was given.
6977if test "${with_build_config+set}" = set; then :
6978 withval=$with_build_config; case $with_build_config in
6979 yes) with_build_config= ;;
6980 no) with_build_config= BUILD_CONFIG= ;;
6981 esac
6982fi
6983
6984
6985if test "x${with_build_config}" != x; then
6986 BUILD_CONFIG=$with_build_config
6987else
6988 case $BUILD_CONFIG in
6989 bootstrap-debug)
6990 if echo "int f (void) { return 0; }" > conftest.c &&
6991 ${CC} -c conftest.c &&
6992 mv conftest.o conftest.o.g0 &&
6993 ${CC} -c -g conftest.c &&
6994 mv conftest.o conftest.o.g &&
6995 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6996 :
6997 else
6998 BUILD_CONFIG=
6999 fi
7000 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7001 ;;
7002 esac
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7005$as_echo "$BUILD_CONFIG" >&6; }
7006
7007
7008# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7010$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7011# Check whether --enable-vtable-verify was given.
7012if test "${enable_vtable_verify+set}" = set; then :
7013 enableval=$enable_vtable_verify; case "$enableval" in
7014 yes) enable_vtable_verify=yes ;;
7015 no) enable_vtable_verify=no ;;
7016 *) enable_vtable_verify=no;;
7017 esac
7018else
7019 enable_vtable_verify=no
7020fi
7021
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7023$as_echo "$enable_vtable_verify" >&6; }
7024
a0da8069
NN
7025# Record target_configdirs and the configure arguments for target and
7026# build configuration in Makefile.
7027target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7028build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7029bootstrap_fixincludes=no
a0da8069 7030
2aa2364a
JR
7031# If we are building libgomp, bootstrap it.
7032if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7033 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7034fi
7035
730af8ee 7036# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7037# or bootstrap-ubsan, bootstrap it.
7038if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7039 case "$BUILD_CONFIG" in
7040 *bootstrap-asan* | *bootstrap-ubsan* )
7041 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7042 bootstrap_fixincludes=yes
730af8ee 7043 ;;
7044 esac
5eb08693
L
7045fi
7046
730af8ee 7047# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7048if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7049 test "$enable_vtable_verify" != no; then
95e43135
JBG
7050 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7051fi
7052
05a13254
NC
7053# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7054# bootstrap it.
1b6c0831 7055if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
05a13254
NC
7056 case "$BUILD_CONFIG" in
7057 *bootstrap-mpx* )
7058 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7059 ;;
7060 esac
1b6c0831
L
7061fi
7062
a0da8069
NN
7063# Determine whether gdb needs tk/tcl or not.
7064# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7065# and in that case we want gdb to be built without tk. Ugh!
7066# In fact I believe gdb is the *only* package directly dependent on tk,
7067# so we should be able to put the 'maybe's in unconditionally and
7068# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7069# 100% sure that that's safe though.
c180f501 7070
675c6968 7071gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7072case "$enable_gdbtk" in
7073 no)
7074 GDB_TK="" ;;
c180f501
AC
7075 yes)
7076 GDB_TK="${gdb_tk}" ;;
a0da8069 7077 *)
c180f501
AC
7078 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7079 # distro. Eventually someone will fix this and move Insight, nee
7080 # gdbtk to a separate directory.
7081 if test -d ${srcdir}/gdb/gdbtk ; then
7082 GDB_TK="${gdb_tk}"
7083 else
7084 GDB_TK=""
7085 fi
7086 ;;
a0da8069 7087esac
907be67c
DJ
7088CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7089INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7090
6bd3dfaa 7091# Strip out unwanted targets.
dd12c3a8
NN
7092
7093# While at that, we remove Makefiles if we were started for recursive
7094# configuration, so that the top-level Makefile reconfigures them,
7095# like we used to do when configure itself was recursive.
dd12c3a8 7096
06a51eac
RW
7097# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7098# but now we're fixing up the Makefile ourselves with the additional
7099# commands passed to AC_CONFIG_FILES. Use separate variables
7100# extrasub-{build,host,target} not because there is any reason to split
7101# the substitutions up that way, but only to remain below the limit of
7102# 99 commands in a script, for HP-UX sed.
7103# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7104
16b1ad29
RW
7105case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7106 yes:yes:*\ gold\ *:*,c++,*) ;;
7107 yes:yes:*\ gold\ *:*)
7108 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7109 ;;
7110esac
7111
06a51eac 7112extrasub_build=
6a9cf61e 7113for module in ${build_configdirs} ; do
498d4a71
CF
7114 if test -z "${no_recursion}" \
7115 && test -f ${build_subdir}/${module}/Makefile; then
7116 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7117 rm -f ${build_subdir}/${module}/Makefile
7118 fi
06a51eac 7119 extrasub_build="$extrasub_build
498d4a71
CF
7120/^@if build-$module\$/d
7121/^@endif build-$module\$/d
7122/^@if build-$module-$bootstrap_suffix\$/d
7123/^@endif build-$module-$bootstrap_suffix\$/d"
7124done
06a51eac 7125extrasub_host=
498d4a71 7126for module in ${configdirs} ; do
80911fe1 7127 if test -z "${no_recursion}"; then
8cf39b1b 7128 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7129 if test -f ${file}; then
7130 echo 1>&2 "*** removing ${file} to force reconfigure"
7131 rm -f ${file}
7132 fi
7133 done
498d4a71 7134 fi
201f096f 7135 case ${module},${bootstrap_fixincludes} in
7136 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7137 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7138 esac
06a51eac 7139 extrasub_host="$extrasub_host
498d4a71
CF
7140/^@if $module\$/d
7141/^@endif $module\$/d
201f096f 7142/^@if $module-$host_bootstrap_suffix\$/d
7143/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7144done
06a51eac 7145extrasub_target=
498d4a71
CF
7146for module in ${target_configdirs} ; do
7147 if test -z "${no_recursion}" \
7148 && test -f ${target_subdir}/${module}/Makefile; then
7149 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7150 rm -f ${target_subdir}/${module}/Makefile
7151 fi
e8a5fa9c
RW
7152
7153 # We only bootstrap target libraries listed in bootstrap_target_libs.
7154 case $bootstrap_target_libs in
7155 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7156 *) target_bootstrap_suffix=no-bootstrap ;;
7157 esac
7158
06a51eac 7159 extrasub_target="$extrasub_target
498d4a71
CF
7160/^@if target-$module\$/d
7161/^@endif target-$module\$/d
e8a5fa9c
RW
7162/^@if target-$module-$target_bootstrap_suffix\$/d
7163/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7164done
7165
06a51eac
RW
7166# Do the final fixup along with target modules.
7167extrasub_target="$extrasub_target
6bd3dfaa 7168/^@if /,/^@endif /d"
a0da8069
NN
7169
7170# Create the serialization dependencies. This uses a temporary file.
7171
81ecdfbb
RW
7172# Check whether --enable-serial-configure was given.
7173if test "${enable_serial_configure+set}" = set; then :
7174 enableval=$enable_serial_configure;
7175fi
e6bfb94a
AO
7176
7177
1047cb91
DD
7178case ${enable_serial_configure} in
7179 yes)
7180 enable_serial_build_configure=yes
7181 enable_serial_host_configure=yes
7182 enable_serial_target_configure=yes
7183 ;;
7184esac
7185
a0da8069
NN
7186# These force 'configure's to be done one at a time, to avoid problems
7187# with contention over a shared config.cache.
7188rm -f serdep.tmp
e6bfb94a 7189echo '# serdep.tmp' > serdep.tmp
a0da8069 7190olditem=
1047cb91 7191test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7192for item in ${build_configdirs} ; do
7193 case ${olditem} in
7194 "") ;;
e6bfb94a 7195 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7196 esac
7197 olditem=${item}
7198done
7199olditem=
1047cb91 7200test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7201for item in ${configdirs} ; do
7202 case ${olditem} in
7203 "") ;;
e6bfb94a 7204 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7205 esac
7206 olditem=${item}
7207done
7208olditem=
1047cb91 7209test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7210for item in ${target_configdirs} ; do
7211 case ${olditem} in
7212 "") ;;
e6bfb94a 7213 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7214 esac
7215 olditem=${item}
7216done
7217serialization_dependencies=serdep.tmp
7218
7219
e6bfb94a 7220# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7221# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7222# might not want to pass down to subconfigures. The exception being
7223# --cache-file=/dev/null, which is used to turn off the use of cache
7224# files altogether, and which should be passed on to subconfigures.
7225# Also strip program-prefix, program-suffix, and program-transform-name,
7226# so that we can pass down a consistent program-transform-name.
c6b750e1 7227baseargs=
65b4571a 7228tbaseargs=
c6b750e1
DJ
7229keep_next=no
7230skip_next=no
7231eval "set -- $ac_configure_args"
18f6b6ee
PB
7232for ac_arg
7233do
c6b750e1
DJ
7234 if test X"$skip_next" = X"yes"; then
7235 skip_next=no
7236 continue
7237 fi
7238 if test X"$keep_next" = X"yes"; then
7239 case $ac_arg in
7240 *\'*)
7241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7242 esac
7243 baseargs="$baseargs '$ac_arg'"
65b4571a 7244 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7245 keep_next=no
7246 continue
7247 fi
7248
7249 # Handle separated arguments. Based on the logic generated by
7250 # autoconf 2.59.
7251 case $ac_arg in
7252 *=* | --config-cache | -C | -disable-* | --disable-* \
7253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7255 | -with-* | --with-* | -without-* | --without-* | --x)
7256 separate_arg=no
7257 ;;
7258 -*)
7259 separate_arg=yes
7260 ;;
7261 *)
7262 separate_arg=no
7263 ;;
7264 esac
7265
65b4571a
AO
7266 skip_targ=no
7267 case $ac_arg in
7268
7269 --with-* | --without-*)
7270 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7271
7272 case $libopt in
7273 *[-_]include)
7274 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7275 ;;
7276 *[-_]lib)
7277 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7278 ;;
7279 *)
7280 lib=$libopt
7281 ;;
7282 esac
7283
7284
7285 case $lib in
1b6c0831 7286 mpc | mpfr | gmp | isl)
65b4571a
AO
7287 # If we're processing --with-$lib, --with-$lib-include or
7288 # --with-$lib-lib, for one of the libs above, and target is
7289 # different from host, don't pass the current argument to any
7290 # target library's configure.
7291 if test x$is_cross_compiler = xyes; then
7292 skip_targ=yes
7293 fi
7294 ;;
7295 esac
7296 ;;
7297 esac
7298
c6b750e1 7299 case "$ac_arg" in
30167e0a
NC
7300 --cache-file=/dev/null | \
7301 -cache-file=/dev/null )
7302 # Handled here to avoid the test to skip args below.
7303 baseargs="$baseargs '$ac_arg'"
65b4571a 7304 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7305 # Assert: $separate_arg should always be no.
7306 keep_next=$separate_arg
7307 ;;
c6b750e1
DJ
7308 --no*)
7309 continue
7310 ;;
7311 --c* | \
7312 --sr* | \
7313 --ho* | \
7314 --bu* | \
7315 --t* | \
7316 --program-* | \
7317 -cache_file* | \
7318 -srcdir* | \
7319 -host* | \
7320 -build* | \
7321 -target* | \
7322 -program-prefix* | \
7323 -program-suffix* | \
7324 -program-transform-name* )
7325 skip_next=$separate_arg
7326 continue
7327 ;;
7328 -*)
7329 # An option. Add it.
7330 case $ac_arg in
7331 *\'*)
7332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7333 esac
7334 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7335 if test X"$skip_targ" = Xno; then
7336 tbaseargs="$tbaseargs '$ac_arg'"
7337 fi
c6b750e1
DJ
7338 keep_next=$separate_arg
7339 ;;
7340 *)
7341 # Either a variable assignment, or a nonopt (triplet). Don't
7342 # pass it down; let the Makefile handle this.
7343 continue
7344 ;;
7345 esac
7346done
7347# Remove the initial space we just introduced and, as these will be
7348# expanded by make, quote '$'.
7349baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7350
f27d4f92
DJ
7351# Add in --program-transform-name, after --program-prefix and
7352# --program-suffix have been applied to it. Autoconf has already
7353# doubled dollar signs and backslashes in program_transform_name; we want
7354# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7355# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7356# Also, because we want to override the logic in subdir configure scripts to
7357# choose program_transform_name, replace any s,x,x, with s,y,y,.
7358sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7359${program_transform_name}
7360EOF_SED
7361gcc_transform_name=`cat conftestsed.out`
7362rm -f conftestsed.out
7363baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7364tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7365if test "$silent" = yes; then
7366 baseargs="$baseargs --silent"
65b4571a 7367 tbaseargs="$tbaseargs --silent"
2444379b 7368fi
34a0f3cf 7369baseargs="$baseargs --disable-option-checking"
65b4571a 7370tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7371
4074d5f2
RW
7372# Record and document user additions to sub configure arguments.
7373
7374
7375
7376
a0da8069
NN
7377# For the build-side libraries, we just need to pretend we're native,
7378# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7379# desired. We can't even use the same cache file for all build-side
7380# libraries, as they're compiled differently; some with C, some with
7381# C++ or with different feature-enabling options.
7382build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7383
7384# For host modules, accept cache file option, or specification as blank.
7385case "${cache_file}" in
7386"") # empty
7387 cache_file_option="" ;;
7388/* | [A-Za-z]:[\\/]* ) # absolute path
7389 cache_file_option="--cache-file=${cache_file}" ;;
7390*) # relative path
7391 cache_file_option="--cache-file=../${cache_file}" ;;
7392esac
7393
82252c06
NN
7394# Host dirs don't like to share a cache file either, horribly enough.
7395# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7396host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7397
65b4571a 7398target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7399
7400# Passing a --with-cross-host argument lets the target libraries know
7401# whether they are being built with a cross-compiler or being built
7402# native. However, it would be better to use other mechanisms to make the
7403# sorts of decisions they want to make on this basis. Please consider
7404# this option to be deprecated. FIXME.
7405if test x${is_cross_compiler} = xyes ; then
c6b750e1 7406 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7407fi
7408
afc0578d 7409# Special user-friendly check for native x86_64-linux build, if
7410# multilib is not explicitly enabled.
7411case "$target:$have_compiler:$host:$target:$enable_multilib" in
7412 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7413 # Make sure we have a development environment that handles 32-bit
afc0578d 7414 dev64=no
7415 echo "int main () { return 0; }" > conftest.c
7416 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7417 if test $? = 0 ; then
7418 if test -s conftest || test -s conftest.exe ; then
7419 dev64=yes
7420 fi
7421 fi
7422 rm -f conftest*
7423 if test x${dev64} != xyes ; then
ce6c656d 7424 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 7425 fi
7426 ;;
7427esac
7428
938d2b74
RW
7429# Default to --enable-multilib.
7430if test x${enable_multilib} = x ; then
a0da8069 7431 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7432fi
a0da8069
NN
7433
7434# Pass --with-newlib if appropriate. Note that target_configdirs has
7435# changed from the earlier setting of with_newlib.
7436if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7437 target_configargs="--with-newlib ${target_configargs}"
7438fi
7439
95036d20
NN
7440# Different target subdirs use different values of certain variables
7441# (notably CXX). Worse, multilibs use *lots* of different values.
7442# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7443# it doesn't automatically accept command-line overrides of them.
7444# This means it's not safe for target subdirs to share a cache file,
7445# which is disgusting, but there you have it. Hopefully this can be
7446# fixed in future. It's still worthwhile to use a cache file for each
7447# directory. I think.
7448
ae380b45
MS
7449# Pass the appropriate --build, --host, --target and --cache-file arguments.
7450# We need to pass --target, as newer autoconf's requires consistency
7451# for target_alias and gcc doesn't manage it consistently.
4b900473 7452target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7453
a0da8069
NN
7454FLAGS_FOR_TARGET=
7455case " $target_configdirs " in
7456 *" newlib "*)
7457 case " $target_configargs " in
7458 *" --with-newlib "*)
7459 case "$target" in
1f53ca9a 7460 *-cygwin*)
6d94c122 7461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7462 ;;
a0da8069
NN
7463 esac
7464
7465 # If we're not building GCC, don't discard standard headers.
7466 if test -d ${srcdir}/gcc; then
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7468
7469 if test "${build}" != "${host}"; then
7470 # On Canadian crosses, CC_FOR_TARGET will have already been set
7471 # by `configure', so we won't have an opportunity to add -Bgcc/
7472 # to it. This is right: we don't want to search that directory
7473 # for binaries, but we want the header files in there, so add
7474 # them explicitly.
e552509b 7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7476
7477 # Someone might think of using the pre-installed headers on
7478 # Canadian crosses, in case the installed compiler is not fully
7479 # compatible with the compiler being built. In this case, it
7480 # would be better to flag an error than risking having
7481 # incompatible object files being constructed. We can't
7482 # guarantee that an error will be flagged, but let's hope the
7483 # compiler will do it, when presented with incompatible header
7484 # files.
7485 fi
7486 fi
7487
7488 case "${target}-${is_cross_compiler}" in
ec11bdc6 7489 i[3456789]86-*-linux*-no)
a0da8069
NN
7490 # Here host == target, so we don't need to build gcc,
7491 # so we don't want to discard standard headers.
7492 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7493 ;;
7494 *)
7495 # If we're building newlib, use its generic headers last, but search
7496 # for any libc-related directories first (so make it the last -B
7497 # switch).
7498 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
7499
7500 # If we're building libgloss, find the startup file, simulator library
7501 # and linker script.
7502 case " $target_configdirs " in
7503 *" libgloss "*)
7504 # Look for startup file, simulator library and maybe linker script.
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7506 # Look for libnosys.a in case the target needs it.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7508 # Most targets have the linker script in the source directory.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7510 ;;
7511 esac
a0da8069
NN
7512 ;;
7513 esac
7514 ;;
7515 esac
7516 ;;
7517esac
1f53ca9a 7518
45055374 7519case "$target" in
1f53ca9a
AO
7520 x86_64-*mingw* | *-w64-mingw*)
7521 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7522 # however, use a symlink named 'mingw' in ${prefix} .
7523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7524 ;;
7525 *-mingw*)
7526 # MinGW can't be handled as Cygwin above since it does not use newlib.
7527 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'
7528 ;;
45055374 7529esac
a0da8069 7530
5fbad20a
DD
7531# Allow the user to override the flags for
7532# our build compiler if desired.
c66487f8
NC
7533if test x"${build}" = x"${host}" ; then
7534 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7535 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7536 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7537fi
5fbad20a 7538
a0da8069
NN
7539# On Canadian crosses, we'll be searching the right directories for
7540# the previously-installed cross compiler, so don't bother to add
7541# flags for directories within the install tree of the compiler
7542# being built; programs in there won't even run.
7543if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7544 # Search for pre-installed headers if nothing else fits.
bba45b8b 7545 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
7546fi
7547
7548if test "x${use_gnu_ld}" = x &&
7549 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7550 # Arrange for us to find uninstalled linker scripts.
b00612cc 7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7552fi
7553
a481dbb7
DD
7554# Search for other target-specific linker scripts and such.
7555case "${target}" in
4e206d7e
DB
7556 mep*)
7557 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7558 ;;
7559esac
7560
a0da8069 7561# Makefile fragments.
3e707e94
PB
7562for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7563do
7564 eval fragval=\$$frag
7565 if test $fragval != /dev/null; then
7566 eval $frag=${srcdir}/$fragval
7567 fi
7568done
a0da8069
NN
7569
7570
7571
7572
7573
7574# Miscellanea: directories, flags, etc.
7575
7576
7577
7578
7579
7580
7581
3bbd2f8f 7582
6a9cf61e 7583# Build module lists & subconfigure args.
a0da8069
NN
7584
7585
7586
be01d343
PB
7587# Host module lists & subconfigure args.
7588
7589
7590
911e63d0 7591
be01d343
PB
7592# Target module lists & subconfigure args.
7593
7594
7595
7596# Build tools.
7597
7598
7599
1576798e
PB
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
be01d343
PB
7613# Generate default definitions for YACC, M4, LEX and other programs that run
7614# on the build machine. These are used if the Makefile can't locate these
7615# programs in objdir.
7616MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7617
7618for ac_prog in 'bison -y' byacc yacc
7619do
c6b750e1 7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7621set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if test "${ac_cv_prog_YACC+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
be01d343
PB
7626else
7627 if test -n "$YACC"; then
7628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7629else
c6b750e1
DJ
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7637 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7639 break 2
7640 fi
7641done
81ecdfbb
RW
7642 done
7643IFS=$as_save_IFS
c6b750e1 7644
be01d343
PB
7645fi
7646fi
c6b750e1 7647YACC=$ac_cv_prog_YACC
be01d343 7648if test -n "$YACC"; then
81ecdfbb
RW
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7650$as_echo "$YACC" >&6; }
be01d343 7651else
81ecdfbb
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
be01d343
PB
7654fi
7655
81ecdfbb 7656
c6b750e1 7657 test -n "$YACC" && break
be01d343
PB
7658done
7659test -n "$YACC" || YACC="$MISSING bison -y"
7660
7661case " $build_configdirs " in
7662 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7663esac
7664
7665for ac_prog in bison
7666do
c6b750e1 7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7668set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_BISON+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
be01d343
PB
7673else
7674 if test -n "$BISON"; then
7675 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7676else
c6b750e1
DJ
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7684 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7686 break 2
7687 fi
7688done
81ecdfbb
RW
7689 done
7690IFS=$as_save_IFS
c6b750e1 7691
be01d343
PB
7692fi
7693fi
c6b750e1 7694BISON=$ac_cv_prog_BISON
be01d343 7695if test -n "$BISON"; then
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7697$as_echo "$BISON" >&6; }
be01d343 7698else
81ecdfbb
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
be01d343
PB
7701fi
7702
81ecdfbb 7703
c6b750e1 7704 test -n "$BISON" && break
be01d343
PB
7705done
7706test -n "$BISON" || BISON="$MISSING bison"
7707
7708case " $build_configdirs " in
7709 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7710esac
7711
7712for ac_prog in gm4 gnum4 m4
7713do
c6b750e1 7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7715set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if test "${ac_cv_prog_M4+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
be01d343
PB
7720else
7721 if test -n "$M4"; then
7722 ac_cv_prog_M4="$M4" # Let the user override the test.
7723else
c6b750e1
DJ
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7731 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7733 break 2
7734 fi
7735done
81ecdfbb
RW
7736 done
7737IFS=$as_save_IFS
c6b750e1 7738
be01d343
PB
7739fi
7740fi
c6b750e1 7741M4=$ac_cv_prog_M4
be01d343 7742if test -n "$M4"; then
81ecdfbb
RW
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7744$as_echo "$M4" >&6; }
be01d343 7745else
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
be01d343
PB
7748fi
7749
81ecdfbb 7750
c6b750e1 7751 test -n "$M4" && break
be01d343
PB
7752done
7753test -n "$M4" || M4="$MISSING m4"
7754
7755case " $build_configdirs " in
7756 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7757esac
7758
7759for ac_prog in flex lex
7760do
c6b750e1 7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7762set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if test "${ac_cv_prog_LEX+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
be01d343
PB
7767else
7768 if test -n "$LEX"; then
7769 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7770else
c6b750e1
DJ
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7778 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7780 break 2
7781 fi
7782done
81ecdfbb
RW
7783 done
7784IFS=$as_save_IFS
c6b750e1 7785
be01d343
PB
7786fi
7787fi
c6b750e1 7788LEX=$ac_cv_prog_LEX
be01d343 7789if test -n "$LEX"; then
81ecdfbb
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7791$as_echo "$LEX" >&6; }
be01d343 7792else
81ecdfbb
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
be01d343
PB
7795fi
7796
81ecdfbb 7797
c6b750e1 7798 test -n "$LEX" && break
be01d343
PB
7799done
7800test -n "$LEX" || LEX="$MISSING flex"
7801
7802case " $build_configdirs " in
7803 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7804 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7805esac
7806
7807for ac_prog in flex
7808do
c6b750e1 7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7810set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
7813if test "${ac_cv_prog_FLEX+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
be01d343
PB
7815else
7816 if test -n "$FLEX"; then
7817 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7818else
c6b750e1
DJ
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7826 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7828 break 2
7829 fi
7830done
81ecdfbb
RW
7831 done
7832IFS=$as_save_IFS
c6b750e1 7833
be01d343
PB
7834fi
7835fi
c6b750e1 7836FLEX=$ac_cv_prog_FLEX
be01d343 7837if test -n "$FLEX"; then
81ecdfbb
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7839$as_echo "$FLEX" >&6; }
be01d343 7840else
81ecdfbb
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
be01d343
PB
7843fi
7844
81ecdfbb 7845
c6b750e1 7846 test -n "$FLEX" && break
be01d343
PB
7847done
7848test -n "$FLEX" || FLEX="$MISSING flex"
7849
7850case " $build_configdirs " in
7851 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7852esac
7853
7854for ac_prog in makeinfo
7855do
c6b750e1 7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7857set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
7860if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
be01d343
PB
7862else
7863 if test -n "$MAKEINFO"; then
7864 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7865else
c6b750e1
DJ
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7873 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7875 break 2
7876 fi
7877done
81ecdfbb
RW
7878 done
7879IFS=$as_save_IFS
c6b750e1 7880
be01d343
PB
7881fi
7882fi
c6b750e1 7883MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7884if test -n "$MAKEINFO"; then
81ecdfbb
RW
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7886$as_echo "$MAKEINFO" >&6; }
be01d343 7887else
81ecdfbb
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
be01d343
PB
7890fi
7891
81ecdfbb 7892
c6b750e1 7893 test -n "$MAKEINFO" && break
be01d343
PB
7894done
7895test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7896
7897case " $build_configdirs " in
7898 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7899 *)
7900
10ad8ef3 7901 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7902 # higher, else we use the "missing" dummy.
7903 if ${MAKEINFO} --version \
10ad8ef3 7904 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7905 :
7906 else
7907 MAKEINFO="$MISSING makeinfo"
7908 fi
7909 ;;
7910
7911esac
a0da8069 7912
be01d343 7913# FIXME: expect and dejagnu may become build tools?
a0da8069 7914
be01d343
PB
7915for ac_prog in expect
7916do
c6b750e1 7917 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7918set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920$as_echo_n "checking for $ac_word... " >&6; }
7921if test "${ac_cv_prog_EXPECT+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
be01d343
PB
7923else
7924 if test -n "$EXPECT"; then
7925 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7926else
c6b750e1
DJ
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7934 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7936 break 2
7937 fi
7938done
81ecdfbb
RW
7939 done
7940IFS=$as_save_IFS
c6b750e1 7941
be01d343
PB
7942fi
7943fi
c6b750e1 7944EXPECT=$ac_cv_prog_EXPECT
be01d343 7945if test -n "$EXPECT"; then
81ecdfbb
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7947$as_echo "$EXPECT" >&6; }
be01d343 7948else
81ecdfbb
RW
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
be01d343 7951fi
a0da8069 7952
81ecdfbb 7953
c6b750e1 7954 test -n "$EXPECT" && break
be01d343
PB
7955done
7956test -n "$EXPECT" || EXPECT="expect"
a0da8069 7957
be01d343
PB
7958case " $configdirs " in
7959 *" expect "*)
7960 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7961 ;;
7962esac
a0da8069 7963
be01d343
PB
7964for ac_prog in runtest
7965do
c6b750e1 7966 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7967set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
7970if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
be01d343
PB
7972else
7973 if test -n "$RUNTEST"; then
7974 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7975else
c6b750e1
DJ
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7983 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7985 break 2
7986 fi
7987done
81ecdfbb
RW
7988 done
7989IFS=$as_save_IFS
c6b750e1 7990
be01d343
PB
7991fi
7992fi
c6b750e1 7993RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7994if test -n "$RUNTEST"; then
81ecdfbb
RW
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7996$as_echo "$RUNTEST" >&6; }
be01d343 7997else
81ecdfbb
RW
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999$as_echo "no" >&6; }
be01d343 8000fi
a0da8069 8001
81ecdfbb 8002
c6b750e1 8003 test -n "$RUNTEST" && break
be01d343
PB
8004done
8005test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8006
be01d343
PB
8007case " $configdirs " in
8008 *" dejagnu "*)
6b89cc21 8009 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8010 ;;
8011esac
a0da8069
NN
8012
8013
a0da8069 8014# Host tools.
859789af
AC
8015ncn_tool_prefix=
8016test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8017ncn_target_tool_prefix=
8018test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8019
9a819804
AO
8020
8021
8022if test -n "$AR"; then
8023 ac_cv_prog_AR=$AR
8024elif test -n "$ac_cv_prog_AR"; then
8025 AR=$ac_cv_prog_AR
8026fi
8027
8028if test -n "$ac_cv_prog_AR"; then
8029 for ncn_progname in ar; do
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
9a819804
AO
8036else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8047 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8049 break 2
8050 fi
8051done
81ecdfbb
RW
8052 done
8053IFS=$as_save_IFS
9a819804
AO
8054
8055fi
8056fi
8057AR=$ac_cv_prog_AR
8058if test -n "$AR"; then
81ecdfbb
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060$as_echo "$AR" >&6; }
9a819804 8061else
81ecdfbb
RW
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
9a819804
AO
8064fi
8065
81ecdfbb 8066
9a819804
AO
8067 done
8068fi
8069
8070for ncn_progname in ar; do
05cbd757
PB
8071 if test -n "$ncn_tool_prefix"; then
8072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if test "${ac_cv_prog_AR+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
859789af
AC
8078else
8079 if test -n "$AR"; then
8080 ac_cv_prog_AR="$AR" # Let the user override the test.
8081else
c6b750e1
DJ
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8091 break 2
8092 fi
8093done
81ecdfbb
RW
8094 done
8095IFS=$as_save_IFS
c6b750e1 8096
859789af
AC
8097fi
8098fi
c6b750e1 8099AR=$ac_cv_prog_AR
859789af 8100if test -n "$AR"; then
81ecdfbb
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8102$as_echo "$AR" >&6; }
859789af 8103else
81ecdfbb
RW
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
859789af
AC
8106fi
8107
81ecdfbb 8108
05cbd757
PB
8109 fi
8110 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if test "${ac_cv_prog_AR+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
859789af 8117else
05cbd757
PB
8118 if test -n "$AR"; then
8119 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8120else
c6b750e1
DJ
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8128 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8130 break 2
8131 fi
8132done
81ecdfbb
RW
8133 done
8134IFS=$as_save_IFS
c6b750e1 8135
859789af
AC
8136fi
8137fi
c6b750e1 8138AR=$ac_cv_prog_AR
05cbd757 8139if test -n "$AR"; then
81ecdfbb
RW
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141$as_echo "$AR" >&6; }
859789af 8142else
81ecdfbb
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
859789af 8145fi
c6b750e1 8146
81ecdfbb 8147
05cbd757
PB
8148 fi
8149 test -n "$ac_cv_prog_AR" && break
8150done
8151
8152if test -z "$ac_cv_prog_AR" ; then
8153 set dummy ar
8154 if test $build = $host ; then
8155 AR="$2"
859789af 8156 else
05cbd757 8157 AR="${ncn_tool_prefix}$2"
859789af 8158 fi
859789af
AC
8159fi
8160
9a819804
AO
8161
8162
8163if test -n "$AS"; then
8164 ac_cv_prog_AS=$AS
8165elif test -n "$ac_cv_prog_AS"; then
8166 AS=$ac_cv_prog_AS
8167fi
8168
8169if test -n "$ac_cv_prog_AS"; then
8170 for ncn_progname in as; do
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
9a819804
AO
8177else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8188 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8190 break 2
8191 fi
8192done
81ecdfbb
RW
8193 done
8194IFS=$as_save_IFS
9a819804
AO
8195
8196fi
8197fi
8198AS=$ac_cv_prog_AS
8199if test -n "$AS"; then
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201$as_echo "$AS" >&6; }
9a819804 8202else
81ecdfbb
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
9a819804
AO
8205fi
8206
81ecdfbb 8207
9a819804
AO
8208 done
8209fi
8210
8211for ncn_progname in as; do
05cbd757
PB
8212 if test -n "$ncn_tool_prefix"; then
8213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8214set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8217if test "${ac_cv_prog_AS+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
859789af
AC
8219else
8220 if test -n "$AS"; then
8221 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8230 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8232 break 2
8233 fi
8234done
81ecdfbb
RW
8235 done
8236IFS=$as_save_IFS
c6b750e1 8237
859789af
AC
8238fi
8239fi
c6b750e1 8240AS=$ac_cv_prog_AS
859789af 8241if test -n "$AS"; then
81ecdfbb
RW
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8243$as_echo "$AS" >&6; }
859789af 8244else
81ecdfbb
RW
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
859789af
AC
8247fi
8248
81ecdfbb 8249
05cbd757
PB
8250 fi
8251 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_AS+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
859789af 8258else
05cbd757
PB
8259 if test -n "$AS"; then
8260 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8261else
c6b750e1
DJ
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8269 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8271 break 2
8272 fi
8273done
81ecdfbb
RW
8274 done
8275IFS=$as_save_IFS
c6b750e1 8276
859789af
AC
8277fi
8278fi
c6b750e1 8279AS=$ac_cv_prog_AS
05cbd757 8280if test -n "$AS"; then
81ecdfbb
RW
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8282$as_echo "$AS" >&6; }
859789af 8283else
81ecdfbb
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
859789af 8286fi
c6b750e1 8287
81ecdfbb 8288
05cbd757
PB
8289 fi
8290 test -n "$ac_cv_prog_AS" && break
8291done
8292
8293if test -z "$ac_cv_prog_AS" ; then
8294 set dummy as
8295 if test $build = $host ; then
8296 AS="$2"
859789af 8297 else
05cbd757 8298 AS="${ncn_tool_prefix}$2"
859789af 8299 fi
859789af
AC
8300fi
8301
9a819804
AO
8302
8303
8304if test -n "$DLLTOOL"; then
8305 ac_cv_prog_DLLTOOL=$DLLTOOL
8306elif test -n "$ac_cv_prog_DLLTOOL"; then
8307 DLLTOOL=$ac_cv_prog_DLLTOOL
8308fi
8309
8310if test -n "$ac_cv_prog_DLLTOOL"; then
8311 for ncn_progname in dlltool; do
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
9a819804
AO
8318else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8329 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8331 break 2
8332 fi
8333done
81ecdfbb
RW
8334 done
8335IFS=$as_save_IFS
9a819804
AO
8336
8337fi
8338fi
8339DLLTOOL=$ac_cv_prog_DLLTOOL
8340if test -n "$DLLTOOL"; then
81ecdfbb
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342$as_echo "$DLLTOOL" >&6; }
9a819804 8343else
81ecdfbb
RW
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
9a819804
AO
8346fi
8347
81ecdfbb 8348
9a819804
AO
8349 done
8350fi
8351
8352for ncn_progname in dlltool; do
05cbd757
PB
8353 if test -n "$ncn_tool_prefix"; then
8354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8355set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
8358if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
859789af
AC
8360else
8361 if test -n "$DLLTOOL"; then
8362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8363else
c6b750e1
DJ
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8371 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8373 break 2
8374 fi
8375done
81ecdfbb
RW
8376 done
8377IFS=$as_save_IFS
c6b750e1 8378
859789af
AC
8379fi
8380fi
c6b750e1 8381DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8382if test -n "$DLLTOOL"; then
81ecdfbb
RW
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8384$as_echo "$DLLTOOL" >&6; }
859789af 8385else
81ecdfbb
RW
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387$as_echo "no" >&6; }
859789af
AC
8388fi
8389
81ecdfbb 8390
05cbd757
PB
8391 fi
8392 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396$as_echo_n "checking for $ac_word... " >&6; }
8397if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
859789af 8399else
05cbd757
PB
8400 if test -n "$DLLTOOL"; then
8401 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8402else
c6b750e1
DJ
8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8410 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8412 break 2
8413 fi
8414done
81ecdfbb
RW
8415 done
8416IFS=$as_save_IFS
c6b750e1 8417
859789af
AC
8418fi
8419fi
c6b750e1 8420DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8421if test -n "$DLLTOOL"; then
81ecdfbb
RW
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8423$as_echo "$DLLTOOL" >&6; }
859789af 8424else
81ecdfbb
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
859789af 8427fi
c6b750e1 8428
81ecdfbb 8429
05cbd757
PB
8430 fi
8431 test -n "$ac_cv_prog_DLLTOOL" && break
8432done
8433
8434if test -z "$ac_cv_prog_DLLTOOL" ; then
8435 set dummy dlltool
8436 if test $build = $host ; then
8437 DLLTOOL="$2"
859789af 8438 else
05cbd757 8439 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8440 fi
859789af
AC
8441fi
8442
9a819804
AO
8443
8444
8445if test -n "$LD"; then
8446 ac_cv_prog_LD=$LD
8447elif test -n "$ac_cv_prog_LD"; then
8448 LD=$ac_cv_prog_LD
8449fi
8450
8451if test -n "$ac_cv_prog_LD"; then
8452 for ncn_progname in ld; do
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
9a819804
AO
8459else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462else
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8470 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8472 break 2
8473 fi
8474done
81ecdfbb
RW
8475 done
8476IFS=$as_save_IFS
9a819804
AO
8477
8478fi
8479fi
8480LD=$ac_cv_prog_LD
8481if test -n "$LD"; then
81ecdfbb
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483$as_echo "$LD" >&6; }
9a819804 8484else
81ecdfbb
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
9a819804
AO
8487fi
8488
81ecdfbb 8489
9a819804
AO
8490 done
8491fi
8492
8493for ncn_progname in ld; do
05cbd757
PB
8494 if test -n "$ncn_tool_prefix"; then
8495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if test "${ac_cv_prog_LD+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
859789af
AC
8501else
8502 if test -n "$LD"; then
8503 ac_cv_prog_LD="$LD" # Let the user override the test.
8504else
c6b750e1
DJ
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8512 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8514 break 2
8515 fi
8516done
81ecdfbb
RW
8517 done
8518IFS=$as_save_IFS
c6b750e1 8519
859789af
AC
8520fi
8521fi
c6b750e1 8522LD=$ac_cv_prog_LD
859789af 8523if test -n "$LD"; then
81ecdfbb
RW
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8525$as_echo "$LD" >&6; }
859789af 8526else
81ecdfbb
RW
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
859789af
AC
8529fi
8530
81ecdfbb 8531
05cbd757
PB
8532 fi
8533 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if test "${ac_cv_prog_LD+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
859789af 8540else
05cbd757
PB
8541 if test -n "$LD"; then
8542 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8543else
c6b750e1
DJ
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8551 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8553 break 2
8554 fi
8555done
81ecdfbb
RW
8556 done
8557IFS=$as_save_IFS
c6b750e1 8558
859789af
AC
8559fi
8560fi
c6b750e1 8561LD=$ac_cv_prog_LD
05cbd757 8562if test -n "$LD"; then
81ecdfbb
RW
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8564$as_echo "$LD" >&6; }
859789af 8565else
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
859789af 8568fi
c6b750e1 8569
81ecdfbb 8570
05cbd757
PB
8571 fi
8572 test -n "$ac_cv_prog_LD" && break
8573done
8574
8575if test -z "$ac_cv_prog_LD" ; then
8576 set dummy ld
8577 if test $build = $host ; then
8578 LD="$2"
859789af 8579 else
05cbd757 8580 LD="${ncn_tool_prefix}$2"
859789af 8581 fi
859789af
AC
8582fi
8583
9a819804
AO
8584
8585
8586if test -n "$LIPO"; then
8587 ac_cv_prog_LIPO=$LIPO
8588elif test -n "$ac_cv_prog_LIPO"; then
8589 LIPO=$ac_cv_prog_LIPO
8590fi
8591
8592if test -n "$ac_cv_prog_LIPO"; then
8593 for ncn_progname in lipo; do
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
9a819804
AO
8600else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603else
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8611 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8613 break 2
8614 fi
8615done
81ecdfbb
RW
8616 done
8617IFS=$as_save_IFS
9a819804
AO
8618
8619fi
8620fi
8621LIPO=$ac_cv_prog_LIPO
8622if test -n "$LIPO"; then
81ecdfbb
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624$as_echo "$LIPO" >&6; }
9a819804 8625else
81ecdfbb
RW
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
9a819804
AO
8628fi
8629
81ecdfbb 8630
9a819804
AO
8631 done
8632fi
8633
8634for ncn_progname in lipo; do
be01d343
PB
8635 if test -n "$ncn_tool_prefix"; then
8636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8637set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if test "${ac_cv_prog_LIPO+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
be01d343
PB
8642else
8643 if test -n "$LIPO"; then
8644 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8645else
c6b750e1
DJ
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8653 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8655 break 2
8656 fi
8657done
81ecdfbb
RW
8658 done
8659IFS=$as_save_IFS
c6b750e1 8660
be01d343
PB
8661fi
8662fi
c6b750e1 8663LIPO=$ac_cv_prog_LIPO
be01d343 8664if test -n "$LIPO"; then
81ecdfbb
RW
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8666$as_echo "$LIPO" >&6; }
be01d343 8667else
81ecdfbb
RW
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
be01d343
PB
8670fi
8671
81ecdfbb 8672
be01d343
PB
8673 fi
8674 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678$as_echo_n "checking for $ac_word... " >&6; }
8679if test "${ac_cv_prog_LIPO+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
be01d343
PB
8681else
8682 if test -n "$LIPO"; then
8683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8684else
c6b750e1
DJ
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8692 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8694 break 2
8695 fi
8696done
81ecdfbb
RW
8697 done
8698IFS=$as_save_IFS
c6b750e1 8699
be01d343
PB
8700fi
8701fi
c6b750e1 8702LIPO=$ac_cv_prog_LIPO
be01d343 8703if test -n "$LIPO"; then
81ecdfbb
RW
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8705$as_echo "$LIPO" >&6; }
be01d343 8706else
81ecdfbb
RW
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
be01d343 8709fi
c6b750e1 8710
81ecdfbb 8711
be01d343
PB
8712 fi
8713 test -n "$ac_cv_prog_LIPO" && break
8714done
8715
8716if test -z "$ac_cv_prog_LIPO" ; then
8717 set dummy lipo
8718 if test $build = $host ; then
8719 LIPO="$2"
8720 else
8721 LIPO="${ncn_tool_prefix}$2"
8722 fi
8723fi
8724
9a819804
AO
8725
8726
8727if test -n "$NM"; then
8728 ac_cv_prog_NM=$NM
8729elif test -n "$ac_cv_prog_NM"; then
8730 NM=$ac_cv_prog_NM
8731fi
8732
8733if test -n "$ac_cv_prog_NM"; then
8734 for ncn_progname in nm; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
859789af
AC
8741else
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8744else
c6b750e1
DJ
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8752 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8754 break 2
8755 fi
8756done
81ecdfbb
RW
8757 done
8758IFS=$as_save_IFS
c6b750e1 8759
859789af
AC
8760fi
8761fi
c6b750e1 8762NM=$ac_cv_prog_NM
859789af 8763if test -n "$NM"; then
81ecdfbb
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765$as_echo "$NM" >&6; }
859789af 8766else
81ecdfbb
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
859789af
AC
8769fi
8770
81ecdfbb 8771
9a819804
AO
8772 done
8773fi
8774
8775for ncn_progname in nm; do
8776 if test -n "$ncn_tool_prefix"; then
8777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8778set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780$as_echo_n "checking for $ac_word... " >&6; }
8781if test "${ac_cv_prog_NM+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
859789af 8783else
05cbd757
PB
8784 if test -n "$NM"; then
8785 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8786else
c6b750e1
DJ
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8794 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8796 break 2
8797 fi
8798done
81ecdfbb
RW
8799 done
8800IFS=$as_save_IFS
c6b750e1 8801
859789af
AC
8802fi
8803fi
c6b750e1 8804NM=$ac_cv_prog_NM
05cbd757 8805if test -n "$NM"; then
81ecdfbb
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8807$as_echo "$NM" >&6; }
859789af 8808else
81ecdfbb
RW
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810$as_echo "no" >&6; }
859789af 8811fi
c6b750e1 8812
81ecdfbb 8813
05cbd757 8814 fi
9a819804
AO
8815 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819$as_echo_n "checking for $ac_word... " >&6; }
8820if test "${ac_cv_prog_NM+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
9a819804
AO
8822else
8823 if test -n "$NM"; then
8824 ac_cv_prog_NM="$NM" # Let the user override the test.
8825else
8826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827for as_dir in $PATH
8828do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8833 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8835 break 2
8836 fi
8837done
81ecdfbb
RW
8838 done
8839IFS=$as_save_IFS
9a819804
AO
8840
8841fi
8842fi
8843NM=$ac_cv_prog_NM
8844if test -n "$NM"; then
81ecdfbb
RW
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8846$as_echo "$NM" >&6; }
9a819804 8847else
81ecdfbb
RW
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849$as_echo "no" >&6; }
9a819804
AO
8850fi
8851
81ecdfbb 8852
9a819804
AO
8853 fi
8854 test -n "$ac_cv_prog_NM" && break
8855done
8856
8857if test -z "$ac_cv_prog_NM" ; then
8858 set dummy nm
8859 if test $build = $host ; then
8860 NM="$2"
8861 else
8862 NM="${ncn_tool_prefix}$2"
8863 fi
8864fi
8865
8866
8867
8868if test -n "$RANLIB"; then
8869 ac_cv_prog_RANLIB=$RANLIB
8870elif test -n "$ac_cv_prog_RANLIB"; then
8871 RANLIB=$ac_cv_prog_RANLIB
8872fi
8873
8874if test -n "$ac_cv_prog_RANLIB"; then
8875 for ncn_progname in ranlib; do
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879$as_echo_n "checking for $ac_word... " >&6; }
8880if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
9a819804
AO
8882else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885else
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8893 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8895 break 2
8896 fi
8897done
81ecdfbb
RW
8898 done
8899IFS=$as_save_IFS
9a819804
AO
8900
8901fi
8902fi
8903RANLIB=$ac_cv_prog_RANLIB
8904if test -n "$RANLIB"; then
81ecdfbb
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906$as_echo "$RANLIB" >&6; }
9a819804 8907else
81ecdfbb
RW
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909$as_echo "no" >&6; }
9a819804
AO
8910fi
8911
81ecdfbb 8912
9a819804
AO
8913 done
8914fi
859789af 8915
9a819804 8916for ncn_progname in ranlib; do
05cbd757
PB
8917 if test -n "$ncn_tool_prefix"; then
8918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8919set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
8922if test "${ac_cv_prog_RANLIB+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
859789af
AC
8924else
8925 if test -n "$RANLIB"; then
8926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8927else
c6b750e1
DJ
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8935 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8937 break 2
8938 fi
8939done
81ecdfbb
RW
8940 done
8941IFS=$as_save_IFS
c6b750e1 8942
859789af
AC
8943fi
8944fi
c6b750e1 8945RANLIB=$ac_cv_prog_RANLIB
859789af 8946if test -n "$RANLIB"; then
81ecdfbb
RW
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8948$as_echo "$RANLIB" >&6; }
859789af 8949else
81ecdfbb
RW
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
859789af
AC
8952fi
8953
81ecdfbb 8954
05cbd757
PB
8955 fi
8956 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8958set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960$as_echo_n "checking for $ac_word... " >&6; }
8961if test "${ac_cv_prog_RANLIB+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
859789af 8963else
05cbd757
PB
8964 if test -n "$RANLIB"; then
8965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8966else
c6b750e1
DJ
8967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968for as_dir in $PATH
8969do
8970 IFS=$as_save_IFS
8971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8974 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8976 break 2
8977 fi
8978done
81ecdfbb
RW
8979 done
8980IFS=$as_save_IFS
c6b750e1 8981
859789af
AC
8982fi
8983fi
c6b750e1 8984RANLIB=$ac_cv_prog_RANLIB
05cbd757 8985if test -n "$RANLIB"; then
81ecdfbb
RW
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8987$as_echo "$RANLIB" >&6; }
859789af 8988else
81ecdfbb
RW
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990$as_echo "no" >&6; }
859789af 8991fi
c6b750e1 8992
81ecdfbb 8993
859789af 8994 fi
05cbd757
PB
8995 test -n "$ac_cv_prog_RANLIB" && break
8996done
8997
8998if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8999 RANLIB="true"
859789af
AC
9000fi
9001
9a819804
AO
9002
9003
9004if test -n "$STRIP"; then
9005 ac_cv_prog_STRIP=$STRIP
9006elif test -n "$ac_cv_prog_STRIP"; then
9007 STRIP=$ac_cv_prog_STRIP
9008fi
9009
9010if test -n "$ac_cv_prog_STRIP"; then
9011 for ncn_progname in strip; do
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
9016if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9a819804
AO
9018else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021else
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
9024do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9029 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9031 break 2
9032 fi
9033done
81ecdfbb
RW
9034 done
9035IFS=$as_save_IFS
9a819804
AO
9036
9037fi
9038fi
9039STRIP=$ac_cv_prog_STRIP
9040if test -n "$STRIP"; then
81ecdfbb
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042$as_echo "$STRIP" >&6; }
9a819804 9043else
81ecdfbb
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
9a819804
AO
9046fi
9047
81ecdfbb 9048
9a819804
AO
9049 done
9050fi
9051
9052for ncn_progname in strip; do
be01d343
PB
9053 if test -n "$ncn_tool_prefix"; then
9054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9055set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057$as_echo_n "checking for $ac_word... " >&6; }
9058if test "${ac_cv_prog_STRIP+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
be01d343
PB
9060else
9061 if test -n "$STRIP"; then
9062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9063else
c6b750e1
DJ
9064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065for as_dir in $PATH
9066do
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9071 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9073 break 2
9074 fi
9075done
81ecdfbb
RW
9076 done
9077IFS=$as_save_IFS
c6b750e1 9078
be01d343
PB
9079fi
9080fi
c6b750e1 9081STRIP=$ac_cv_prog_STRIP
be01d343 9082if test -n "$STRIP"; then
81ecdfbb
RW
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9084$as_echo "$STRIP" >&6; }
be01d343 9085else
81ecdfbb
RW
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087$as_echo "no" >&6; }
be01d343
PB
9088fi
9089
81ecdfbb 9090
be01d343
PB
9091 fi
9092 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9094set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096$as_echo_n "checking for $ac_word... " >&6; }
9097if test "${ac_cv_prog_STRIP+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
be01d343
PB
9099else
9100 if test -n "$STRIP"; then
9101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9102else
c6b750e1
DJ
9103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104for as_dir in $PATH
9105do
9106 IFS=$as_save_IFS
9107 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9110 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9112 break 2
9113 fi
9114done
81ecdfbb
RW
9115 done
9116IFS=$as_save_IFS
c6b750e1 9117
be01d343
PB
9118fi
9119fi
c6b750e1 9120STRIP=$ac_cv_prog_STRIP
be01d343 9121if test -n "$STRIP"; then
81ecdfbb
RW
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9123$as_echo "$STRIP" >&6; }
be01d343 9124else
81ecdfbb
RW
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126$as_echo "no" >&6; }
be01d343 9127fi
c6b750e1 9128
81ecdfbb 9129
be01d343
PB
9130 fi
9131 test -n "$ac_cv_prog_STRIP" && break
9132done
9133
9134if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9135 STRIP="true"
be01d343
PB
9136fi
9137
9a819804
AO
9138
9139
9140if test -n "$WINDRES"; then
9141 ac_cv_prog_WINDRES=$WINDRES
9142elif test -n "$ac_cv_prog_WINDRES"; then
9143 WINDRES=$ac_cv_prog_WINDRES
9144fi
9145
9146if test -n "$ac_cv_prog_WINDRES"; then
9147 for ncn_progname in windres; do
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9a819804
AO
9154else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157else
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9165 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9167 break 2
9168 fi
9169done
81ecdfbb
RW
9170 done
9171IFS=$as_save_IFS
9a819804
AO
9172
9173fi
9174fi
9175WINDRES=$ac_cv_prog_WINDRES
9176if test -n "$WINDRES"; then
81ecdfbb
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178$as_echo "$WINDRES" >&6; }
9a819804 9179else
81ecdfbb
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
9a819804
AO
9182fi
9183
81ecdfbb 9184
9a819804
AO
9185 done
9186fi
9187
9188for ncn_progname in windres; do
05cbd757
PB
9189 if test -n "$ncn_tool_prefix"; then
9190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9191set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193$as_echo_n "checking for $ac_word... " >&6; }
9194if test "${ac_cv_prog_WINDRES+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
859789af
AC
9196else
9197 if test -n "$WINDRES"; then
9198 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9199else
c6b750e1
DJ
9200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9207 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9209 break 2
9210 fi
9211done
81ecdfbb
RW
9212 done
9213IFS=$as_save_IFS
c6b750e1 9214
859789af
AC
9215fi
9216fi
c6b750e1 9217WINDRES=$ac_cv_prog_WINDRES
859789af 9218if test -n "$WINDRES"; then
81ecdfbb
RW
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9220$as_echo "$WINDRES" >&6; }
859789af 9221else
81ecdfbb
RW
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
859789af
AC
9224fi
9225
81ecdfbb 9226
05cbd757
PB
9227 fi
9228 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232$as_echo_n "checking for $ac_word... " >&6; }
9233if test "${ac_cv_prog_WINDRES+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
859789af 9235else
05cbd757
PB
9236 if test -n "$WINDRES"; then
9237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9238else
c6b750e1
DJ
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9246 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9248 break 2
9249 fi
9250done
81ecdfbb
RW
9251 done
9252IFS=$as_save_IFS
c6b750e1 9253
859789af
AC
9254fi
9255fi
c6b750e1 9256WINDRES=$ac_cv_prog_WINDRES
05cbd757 9257if test -n "$WINDRES"; then
81ecdfbb
RW
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9259$as_echo "$WINDRES" >&6; }
859789af 9260else
81ecdfbb
RW
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262$as_echo "no" >&6; }
859789af 9263fi
c6b750e1 9264
81ecdfbb 9265
05cbd757
PB
9266 fi
9267 test -n "$ac_cv_prog_WINDRES" && break
9268done
9269
9270if test -z "$ac_cv_prog_WINDRES" ; then
9271 set dummy windres
9272 if test $build = $host ; then
9273 WINDRES="$2"
859789af 9274 else
05cbd757 9275 WINDRES="${ncn_tool_prefix}$2"
859789af 9276 fi
859789af
AC
9277fi
9278
9a819804
AO
9279
9280
0c24b341
NC
9281if test -n "$WINDMC"; then
9282 ac_cv_prog_WINDMC=$WINDMC
9283elif test -n "$ac_cv_prog_WINDMC"; then
9284 WINDMC=$ac_cv_prog_WINDMC
9285fi
9286
9287if test -n "$ac_cv_prog_WINDMC"; then
9288 for ncn_progname in windmc; do
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292$as_echo_n "checking for $ac_word... " >&6; }
9293if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
0c24b341
NC
9295else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298else
9299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in $PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9306 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9308 break 2
9309 fi
9310done
81ecdfbb
RW
9311 done
9312IFS=$as_save_IFS
0c24b341
NC
9313
9314fi
9315fi
9316WINDMC=$ac_cv_prog_WINDMC
9317if test -n "$WINDMC"; then
81ecdfbb
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319$as_echo "$WINDMC" >&6; }
0c24b341 9320else
81ecdfbb
RW
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
0c24b341
NC
9323fi
9324
81ecdfbb 9325
0c24b341
NC
9326 done
9327fi
9328
9329for ncn_progname in windmc; do
9330 if test -n "$ncn_tool_prefix"; then
9331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334$as_echo_n "checking for $ac_word... " >&6; }
9335if test "${ac_cv_prog_WINDMC+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
0c24b341
NC
9337else
9338 if test -n "$WINDMC"; then
9339 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9340else
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9348 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9350 break 2
9351 fi
9352done
81ecdfbb
RW
9353 done
9354IFS=$as_save_IFS
0c24b341
NC
9355
9356fi
9357fi
9358WINDMC=$ac_cv_prog_WINDMC
9359if test -n "$WINDMC"; then
81ecdfbb
RW
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9361$as_echo "$WINDMC" >&6; }
0c24b341 9362else
81ecdfbb
RW
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364$as_echo "no" >&6; }
0c24b341
NC
9365fi
9366
81ecdfbb 9367
0c24b341
NC
9368 fi
9369 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373$as_echo_n "checking for $ac_word... " >&6; }
9374if test "${ac_cv_prog_WINDMC+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
0c24b341
NC
9376else
9377 if test -n "$WINDMC"; then
9378 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9379else
9380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381for as_dir in $PATH
9382do
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9387 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9389 break 2
9390 fi
9391done
81ecdfbb
RW
9392 done
9393IFS=$as_save_IFS
0c24b341
NC
9394
9395fi
9396fi
9397WINDMC=$ac_cv_prog_WINDMC
9398if test -n "$WINDMC"; then
81ecdfbb
RW
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9400$as_echo "$WINDMC" >&6; }
0c24b341 9401else
81ecdfbb
RW
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
0c24b341
NC
9404fi
9405
81ecdfbb 9406
0c24b341
NC
9407 fi
9408 test -n "$ac_cv_prog_WINDMC" && break
9409done
9410
9411if test -z "$ac_cv_prog_WINDMC" ; then
9412 set dummy windmc
9413 if test $build = $host ; then
9414 WINDMC="$2"
9415 else
9416 WINDMC="${ncn_tool_prefix}$2"
9417 fi
9418fi
9419
9420
9421
9a819804
AO
9422if test -n "$OBJCOPY"; then
9423 ac_cv_prog_OBJCOPY=$OBJCOPY
9424elif test -n "$ac_cv_prog_OBJCOPY"; then
9425 OBJCOPY=$ac_cv_prog_OBJCOPY
9426fi
9427
9428if test -n "$ac_cv_prog_OBJCOPY"; then
9429 for ncn_progname in objcopy; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9a819804
AO
9436else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9447 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9449 break 2
9450 fi
9451done
81ecdfbb
RW
9452 done
9453IFS=$as_save_IFS
9a819804
AO
9454
9455fi
9456fi
9457OBJCOPY=$ac_cv_prog_OBJCOPY
9458if test -n "$OBJCOPY"; then
81ecdfbb
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460$as_echo "$OBJCOPY" >&6; }
9a819804 9461else
81ecdfbb
RW
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
9a819804
AO
9464fi
9465
81ecdfbb 9466
9a819804
AO
9467 done
9468fi
9469
9470for ncn_progname in objcopy; do
05cbd757
PB
9471 if test -n "$ncn_tool_prefix"; then
9472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9473set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475$as_echo_n "checking for $ac_word... " >&6; }
9476if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
859789af
AC
9478else
9479 if test -n "$OBJCOPY"; then
9480 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9481else
c6b750e1
DJ
9482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483for as_dir in $PATH
9484do
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9489 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9491 break 2
9492 fi
9493done
81ecdfbb
RW
9494 done
9495IFS=$as_save_IFS
c6b750e1 9496
859789af
AC
9497fi
9498fi
c6b750e1 9499OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9500if test -n "$OBJCOPY"; then
81ecdfbb
RW
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9502$as_echo "$OBJCOPY" >&6; }
859789af 9503else
81ecdfbb
RW
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505$as_echo "no" >&6; }
859789af
AC
9506fi
9507
81ecdfbb 9508
05cbd757
PB
9509 fi
9510 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514$as_echo_n "checking for $ac_word... " >&6; }
9515if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
859789af 9517else
05cbd757
PB
9518 if test -n "$OBJCOPY"; then
9519 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9520else
c6b750e1
DJ
9521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522for as_dir in $PATH
9523do
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9528 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9530 break 2
9531 fi
9532done
81ecdfbb
RW
9533 done
9534IFS=$as_save_IFS
c6b750e1 9535
859789af
AC
9536fi
9537fi
c6b750e1 9538OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9539if test -n "$OBJCOPY"; then
81ecdfbb
RW
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9541$as_echo "$OBJCOPY" >&6; }
859789af 9542else
81ecdfbb
RW
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544$as_echo "no" >&6; }
859789af 9545fi
c6b750e1 9546
81ecdfbb 9547
05cbd757
PB
9548 fi
9549 test -n "$ac_cv_prog_OBJCOPY" && break
9550done
9551
9552if test -z "$ac_cv_prog_OBJCOPY" ; then
9553 set dummy objcopy
9554 if test $build = $host ; then
9555 OBJCOPY="$2"
859789af 9556 else
05cbd757 9557 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9558 fi
859789af
AC
9559fi
9560
9a819804
AO
9561
9562
9563if test -n "$OBJDUMP"; then
9564 ac_cv_prog_OBJDUMP=$OBJDUMP
9565elif test -n "$ac_cv_prog_OBJDUMP"; then
9566 OBJDUMP=$ac_cv_prog_OBJDUMP
9567fi
9568
9569if test -n "$ac_cv_prog_OBJDUMP"; then
9570 for ncn_progname in objdump; do
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574$as_echo_n "checking for $ac_word... " >&6; }
9575if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9a819804
AO
9577else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580else
9581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9588 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9590 break 2
9591 fi
9592done
81ecdfbb
RW
9593 done
9594IFS=$as_save_IFS
9a819804
AO
9595
9596fi
9597fi
9598OBJDUMP=$ac_cv_prog_OBJDUMP
9599if test -n "$OBJDUMP"; then
81ecdfbb
RW
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601$as_echo "$OBJDUMP" >&6; }
9a819804 9602else
81ecdfbb
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
9a819804
AO
9605fi
9606
81ecdfbb 9607
9a819804
AO
9608 done
9609fi
9610
9611for ncn_progname in objdump; do
05cbd757
PB
9612 if test -n "$ncn_tool_prefix"; then
9613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9614set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616$as_echo_n "checking for $ac_word... " >&6; }
9617if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
859789af
AC
9619else
9620 if test -n "$OBJDUMP"; then
9621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9622else
c6b750e1
DJ
9623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624for as_dir in $PATH
9625do
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9630 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9632 break 2
9633 fi
9634done
81ecdfbb
RW
9635 done
9636IFS=$as_save_IFS
c6b750e1 9637
859789af
AC
9638fi
9639fi
c6b750e1 9640OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9641if test -n "$OBJDUMP"; then
81ecdfbb
RW
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9643$as_echo "$OBJDUMP" >&6; }
859789af 9644else
81ecdfbb
RW
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
859789af
AC
9647fi
9648
81ecdfbb 9649
05cbd757
PB
9650 fi
9651 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
859789af 9658else
05cbd757
PB
9659 if test -n "$OBJDUMP"; then
9660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9661else
c6b750e1
DJ
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9669 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9671 break 2
9672 fi
9673done
81ecdfbb
RW
9674 done
9675IFS=$as_save_IFS
c6b750e1 9676
859789af
AC
9677fi
9678fi
c6b750e1 9679OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9680if test -n "$OBJDUMP"; then
81ecdfbb
RW
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9682$as_echo "$OBJDUMP" >&6; }
859789af 9683else
81ecdfbb
RW
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
859789af 9686fi
c6b750e1 9687
81ecdfbb 9688
05cbd757
PB
9689 fi
9690 test -n "$ac_cv_prog_OBJDUMP" && break
9691done
9692
9693if test -z "$ac_cv_prog_OBJDUMP" ; then
9694 set dummy objdump
9695 if test $build = $host ; then
9696 OBJDUMP="$2"
859789af 9697 else
05cbd757 9698 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9699 fi
859789af
AC
9700fi
9701
a0da8069
NN
9702
9703
b121d7d4
DD
9704if test -n "$READELF"; then
9705 ac_cv_prog_READELF=$READELF
9706elif test -n "$ac_cv_prog_READELF"; then
9707 READELF=$ac_cv_prog_READELF
9708fi
9709
9710if test -n "$ac_cv_prog_READELF"; then
9711 for ncn_progname in readelf; do
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713set dummy ${ncn_progname}; ac_word=$2
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715$as_echo_n "checking for $ac_word... " >&6; }
9716if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721else
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733done
9734 done
9735IFS=$as_save_IFS
9736
9737fi
9738fi
9739READELF=$ac_cv_prog_READELF
9740if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742$as_echo "$READELF" >&6; }
9743else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745$as_echo "no" >&6; }
9746fi
9747
9748
9749 done
9750fi
9751
9752for ncn_progname in readelf; do
9753 if test -n "$ncn_tool_prefix"; then
9754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757$as_echo_n "checking for $ac_word... " >&6; }
9758if test "${ac_cv_prog_READELF+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760else
9761 if test -n "$READELF"; then
9762 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9763else
9764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765for as_dir in $PATH
9766do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775done
9776 done
9777IFS=$as_save_IFS
9778
9779fi
9780fi
9781READELF=$ac_cv_prog_READELF
9782if test -n "$READELF"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9784$as_echo "$READELF" >&6; }
9785else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787$as_echo "no" >&6; }
9788fi
9789
9790
9791 fi
9792 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9794set dummy ${ncn_progname}; ac_word=$2
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796$as_echo_n "checking for $ac_word... " >&6; }
9797if test "${ac_cv_prog_READELF+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799else
9800 if test -n "$READELF"; then
9801 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_READELF="${ncn_progname}"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814done
9815 done
9816IFS=$as_save_IFS
9817
9818fi
9819fi
9820READELF=$ac_cv_prog_READELF
9821if test -n "$READELF"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9823$as_echo "$READELF" >&6; }
9824else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826$as_echo "no" >&6; }
9827fi
9828
9829
9830 fi
9831 test -n "$ac_cv_prog_READELF" && break
9832done
9833
9834if test -z "$ac_cv_prog_READELF" ; then
9835 set dummy readelf
9836 if test $build = $host ; then
9837 READELF="$2"
9838 else
9839 READELF="${ncn_tool_prefix}$2"
9840 fi
9841fi
9842
9843
9844
a0da8069
NN
9845
9846
9847
be01d343 9848# Target tools.
c6b750e1 9849
81ecdfbb
RW
9850# Check whether --with-build-time-tools was given.
9851if test "${with_build_time_tools+set}" = set; then :
9852 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9853 x/*) ;;
9854 *)
9855 with_build_time_tools=
81ecdfbb
RW
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9857$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9858 ;;
9859 esac
859789af 9860else
2429c060 9861 with_build_time_tools=
81ecdfbb
RW
9862fi
9863
859789af 9864
9a819804
AO
9865
9866
9867if test -n "$CC_FOR_TARGET"; then
9868 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9869elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9870 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9871fi
9872
9873if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9874 for ncn_progname in cc gcc; do
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878$as_echo_n "checking for $ac_word... " >&6; }
9879if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9a819804
AO
9881else
9882 if test -n "$CC_FOR_TARGET"; then
9883 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9884else
9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9892 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9894 break 2
9895 fi
9896done
81ecdfbb
RW
9897 done
9898IFS=$as_save_IFS
9a819804
AO
9899
9900fi
9901fi
9902CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9903if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9905$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9906else
81ecdfbb
RW
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908$as_echo "no" >&6; }
9a819804
AO
9909fi
9910
81ecdfbb 9911
9a819804
AO
9912 done
9913fi
9914
9915if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9916 for ncn_progname in cc gcc; do
81ecdfbb
RW
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9918$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9919 if test -x $with_build_time_tools/${ncn_progname}; then
9920 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9922$as_echo "yes" >&6; }
cac3d6c4 9923 break
2429c060 9924 else
81ecdfbb
RW
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
cac3d6c4
CM
9927 fi
9928 done
55db4b87
PB
9929fi
9930
2429c060
PB
9931if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9932 for ncn_progname in cc gcc; do
9933 if test -n "$ncn_target_tool_prefix"; then
9934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9935set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937$as_echo_n "checking for $ac_word... " >&6; }
9938if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
55db4b87
PB
9940else
9941 if test -n "$CC_FOR_TARGET"; then
9942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9943else
c6b750e1
DJ
9944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945for as_dir in $PATH
9946do
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9951 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9953 break 2
9954 fi
9955done
81ecdfbb
RW
9956 done
9957IFS=$as_save_IFS
c6b750e1 9958
55db4b87
PB
9959fi
9960fi
c6b750e1 9961CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9962if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9964$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9965else
81ecdfbb
RW
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967$as_echo "no" >&6; }
55db4b87
PB
9968fi
9969
81ecdfbb 9970
2429c060
PB
9971 fi
9972 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9974set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976$as_echo_n "checking for $ac_word... " >&6; }
9977if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
55db4b87 9979else
05cbd757
PB
9980 if test -n "$CC_FOR_TARGET"; then
9981 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9982else
c6b750e1
DJ
9983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in $PATH
9985do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9990 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9992 break 2
9993 fi
9994done
81ecdfbb
RW
9995 done
9996IFS=$as_save_IFS
c6b750e1 9997
55db4b87
PB
9998fi
9999fi
c6b750e1 10000CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10001if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10003$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10004else
81ecdfbb
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006$as_echo "no" >&6; }
55db4b87 10007fi
c6b750e1 10008
81ecdfbb 10009
2429c060
PB
10010 fi
10011 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10012 done
10013fi
c6b750e1 10014
05cbd757
PB
10015if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10016 set dummy cc gcc
10017 if test $build = $target ; then
10018 CC_FOR_TARGET="$2"
55db4b87 10019 else
05cbd757 10020 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10021 fi
d3f5afc4
MS
10022else
10023 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10024fi
10025
9a819804
AO
10026
10027
10028if test -n "$CXX_FOR_TARGET"; then
10029 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10030elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10031 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10032fi
10033
10034if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10035 for ncn_progname in c++ g++ cxx gxx; do
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039$as_echo_n "checking for $ac_word... " >&6; }
10040if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
9a819804
AO
10042else
10043 if test -n "$CXX_FOR_TARGET"; then
10044 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10045else
10046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10053 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10055 break 2
10056 fi
10057done
81ecdfbb
RW
10058 done
10059IFS=$as_save_IFS
9a819804
AO
10060
10061fi
10062fi
10063CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10064if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10066$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10067else
81ecdfbb
RW
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069$as_echo "no" >&6; }
9a819804
AO
10070fi
10071
81ecdfbb 10072
9a819804
AO
10073 done
10074fi
10075
10076if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10077 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10079$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10080 if test -x $with_build_time_tools/${ncn_progname}; then
10081 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10083$as_echo "yes" >&6; }
2429c060
PB
10084 break
10085 else
81ecdfbb
RW
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087$as_echo "no" >&6; }
2429c060
PB
10088 fi
10089 done
10090fi
10091
10092if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10093 for ncn_progname in c++ g++ cxx gxx; do
10094 if test -n "$ncn_target_tool_prefix"; then
10095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098$as_echo_n "checking for $ac_word... " >&6; }
10099if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
55db4b87
PB
10101else
10102 if test -n "$CXX_FOR_TARGET"; then
10103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10104else
c6b750e1
DJ
10105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106for as_dir in $PATH
10107do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10112 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10114 break 2
10115 fi
10116done
81ecdfbb
RW
10117 done
10118IFS=$as_save_IFS
c6b750e1 10119
55db4b87
PB
10120fi
10121fi
c6b750e1 10122CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10123if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10125$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10126else
81ecdfbb
RW
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128$as_echo "no" >&6; }
55db4b87
PB
10129fi
10130
81ecdfbb 10131
2429c060
PB
10132 fi
10133 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10135set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137$as_echo_n "checking for $ac_word... " >&6; }
10138if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
55db4b87 10140else
05cbd757
PB
10141 if test -n "$CXX_FOR_TARGET"; then
10142 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10143else
c6b750e1
DJ
10144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145for as_dir in $PATH
10146do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10151 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10153 break 2
10154 fi
10155done
81ecdfbb
RW
10156 done
10157IFS=$as_save_IFS
c6b750e1 10158
55db4b87
PB
10159fi
10160fi
c6b750e1 10161CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10162if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10164$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10165else
81ecdfbb
RW
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167$as_echo "no" >&6; }
55db4b87 10168fi
c6b750e1 10169
81ecdfbb 10170
2429c060
PB
10171 fi
10172 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10173 done
10174fi
c6b750e1 10175
05cbd757
PB
10176if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10177 set dummy c++ g++ cxx gxx
10178 if test $build = $target ; then
10179 CXX_FOR_TARGET="$2"
55db4b87 10180 else
05cbd757 10181 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10182 fi
d3f5afc4
MS
10183else
10184 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10185fi
10186
9a819804
AO
10187
10188
10189if test -n "$GCC_FOR_TARGET"; then
10190 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10191elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10192 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10193fi
10194
10195if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10196 for ncn_progname in gcc; do
10197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10198set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200$as_echo_n "checking for $ac_word... " >&6; }
10201if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
9a819804
AO
10203else
10204 if test -n "$GCC_FOR_TARGET"; then
10205 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10206else
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10214 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10216 break 2
10217 fi
10218done
81ecdfbb
RW
10219 done
10220IFS=$as_save_IFS
9a819804
AO
10221
10222fi
10223fi
10224GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10225if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10227$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10228else
81ecdfbb
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
9a819804
AO
10231fi
10232
81ecdfbb 10233
9a819804
AO
10234 done
10235fi
10236
10237if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10238 for ncn_progname in gcc; do
81ecdfbb
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10240$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10241 if test -x $with_build_time_tools/${ncn_progname}; then
10242 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10244$as_echo "yes" >&6; }
2429c060
PB
10245 break
10246 else
81ecdfbb
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
2429c060
PB
10249 fi
10250 done
10251fi
10252
10253if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10254 for ncn_progname in gcc; do
10255 if test -n "$ncn_target_tool_prefix"; then
10256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10257set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259$as_echo_n "checking for $ac_word... " >&6; }
10260if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
859789af 10262else
2429c060
PB
10263 if test -n "$GCC_FOR_TARGET"; then
10264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10265else
c6b750e1
DJ
10266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $PATH
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10273 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10275 break 2
10276 fi
10277done
81ecdfbb
RW
10278 done
10279IFS=$as_save_IFS
c6b750e1 10280
55db4b87
PB
10281fi
10282fi
c6b750e1 10283GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10284if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10286$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10287else
81ecdfbb
RW
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289$as_echo "no" >&6; }
55db4b87
PB
10290fi
10291
81ecdfbb 10292
2429c060
PB
10293 fi
10294 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10296set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298$as_echo_n "checking for $ac_word... " >&6; }
10299if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
55db4b87 10301else
05cbd757
PB
10302 if test -n "$GCC_FOR_TARGET"; then
10303 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10304else
c6b750e1
DJ
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10312 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10314 break 2
10315 fi
10316done
81ecdfbb
RW
10317 done
10318IFS=$as_save_IFS
c6b750e1 10319
55db4b87
PB
10320fi
10321fi
c6b750e1 10322GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10323if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10325$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10326else
81ecdfbb
RW
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }
55db4b87 10329fi
c6b750e1 10330
81ecdfbb 10331
2429c060
PB
10332 fi
10333 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10334 done
10335fi
c6b750e1 10336
05cbd757
PB
10337if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10338 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10339else
10340 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10341fi
10342
9a819804
AO
10343
10344
9a819804
AO
10345if test -n "$GFORTRAN_FOR_TARGET"; then
10346 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10347elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10349fi
10350
9a819804
AO
10351if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10352 for ncn_progname in gfortran; do
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356$as_echo_n "checking for $ac_word... " >&6; }
10357if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
55db4b87 10359else
9a819804
AO
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10362else
c6b750e1
DJ
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10370 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10372 break 2
10373 fi
10374done
81ecdfbb
RW
10375 done
10376IFS=$as_save_IFS
c6b750e1 10377
55db4b87
PB
10378fi
10379fi
9a819804
AO
10380GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10381if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10383$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10384else
81ecdfbb
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386$as_echo "no" >&6; }
55db4b87 10387fi
c6b750e1 10388
81ecdfbb 10389
2429c060
PB
10390 done
10391fi
c6b750e1 10392
9a819804 10393if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10394 for ncn_progname in gfortran; do
81ecdfbb
RW
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10396$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10397 if test -x $with_build_time_tools/${ncn_progname}; then
10398 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10400$as_echo "yes" >&6; }
2429c060
PB
10401 break
10402 else
81ecdfbb
RW
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404$as_echo "no" >&6; }
2429c060
PB
10405 fi
10406 done
10407fi
10408
10409if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10410 for ncn_progname in gfortran; do
10411 if test -n "$ncn_target_tool_prefix"; then
10412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10413set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415$as_echo_n "checking for $ac_word... " >&6; }
10416if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
55db4b87
PB
10418else
10419 if test -n "$GFORTRAN_FOR_TARGET"; then
10420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10421else
c6b750e1
DJ
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10431 break 2
10432 fi
10433done
81ecdfbb
RW
10434 done
10435IFS=$as_save_IFS
c6b750e1 10436
55db4b87
PB
10437fi
10438fi
c6b750e1 10439GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10440if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10442$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10443else
81ecdfbb
RW
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445$as_echo "no" >&6; }
55db4b87
PB
10446fi
10447
81ecdfbb 10448
2429c060
PB
10449 fi
10450 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10452set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454$as_echo_n "checking for $ac_word... " >&6; }
10455if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
55db4b87 10457else
05cbd757 10458 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10459 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10460else
10461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462for as_dir in $PATH
10463do
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10468 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10470 break 2
10471 fi
10472done
81ecdfbb
RW
10473 done
10474IFS=$as_save_IFS
c6b750e1 10475
55db4b87
PB
10476fi
10477fi
c6b750e1 10478GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10479if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10481$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10482else
81ecdfbb
RW
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484$as_echo "no" >&6; }
55db4b87 10485fi
c6b750e1 10486
81ecdfbb 10487
2429c060
PB
10488 fi
10489 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10490 done
10491fi
c6b750e1 10492
05cbd757
PB
10493if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10494 set dummy gfortran
10495 if test $build = $target ; then
10496 GFORTRAN_FOR_TARGET="$2"
55db4b87 10497 else
05cbd757 10498 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10499 fi
d3f5afc4
MS
10500else
10501 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10502fi
10503
2429c060
PB
10504
10505
e552509b
ILT
10506if test -n "$GOC_FOR_TARGET"; then
10507 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10508elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10509 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10510fi
10511
10512if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10513 for ncn_progname in gccgo; do
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515set dummy ${ncn_progname}; ac_word=$2
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517$as_echo_n "checking for $ac_word... " >&6; }
10518if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520else
10521 if test -n "$GOC_FOR_TARGET"; then
10522 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535done
10536 done
10537IFS=$as_save_IFS
10538
10539fi
10540fi
10541GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10542if test -n "$GOC_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10544$as_echo "$GOC_FOR_TARGET" >&6; }
10545else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548fi
10549
10550
10551 done
10552fi
10553
10554if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10555 for ncn_progname in gccgo; do
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10557$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10558 if test -x $with_build_time_tools/${ncn_progname}; then
10559 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561$as_echo "yes" >&6; }
10562 break
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565$as_echo "no" >&6; }
10566 fi
10567 done
10568fi
10569
10570if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10571 for ncn_progname in gccgo; do
10572 if test -n "$ncn_target_tool_prefix"; then
10573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10574set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576$as_echo_n "checking for $ac_word... " >&6; }
10577if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10579else
10580 if test -n "$GOC_FOR_TARGET"; then
10581 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10582else
10583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584for as_dir in $PATH
10585do
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10590 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10593 fi
10594done
10595 done
10596IFS=$as_save_IFS
10597
10598fi
10599fi
10600GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10601if test -n "$GOC_FOR_TARGET"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10603$as_echo "$GOC_FOR_TARGET" >&6; }
10604else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606$as_echo "no" >&6; }
10607fi
10608
10609
10610 fi
10611 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10613set dummy ${ncn_progname}; ac_word=$2
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615$as_echo_n "checking for $ac_word... " >&6; }
10616if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618else
10619 if test -n "$GOC_FOR_TARGET"; then
10620 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10621else
10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633done
10634 done
10635IFS=$as_save_IFS
10636
10637fi
10638fi
10639GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10640if test -n "$GOC_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10642$as_echo "$GOC_FOR_TARGET" >&6; }
10643else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
10646fi
10647
10648
10649 fi
10650 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10651 done
10652fi
10653
10654if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10655 set dummy gccgo
10656 if test $build = $target ; then
10657 GOC_FOR_TARGET="$2"
10658 else
10659 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10660 fi
10661else
10662 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10663fi
10664
10665
10666
2429c060
PB
10667cat > conftest.c << \EOF
10668#ifdef __GNUC__
10669 gcc_yay;
10670#endif
10671EOF
10672if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10673 have_gcc_for_target=yes
859789af 10674else
2429c060
PB
10675 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10676 have_gcc_for_target=no
859789af 10677fi
2429c060
PB
10678rm conftest.c
10679
10680
10681
859789af 10682
2429c060
PB
10683if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10684 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10686$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10687 if test -x $with_build_time_tools/ar; then
10688 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10689 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10691$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10692 else
81ecdfbb
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
3a35eeb3 10695 fi
2429c060
PB
10696 elif test $build != $host && test $have_gcc_for_target = yes; then
10697 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10698 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10699 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10700 fi
2429c060 10701fi
c6b750e1 10702if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10703 # Extract the first word of "ar", so it can be a program name with args.
10704set dummy ar; ac_word=$2
81ecdfbb
RW
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706$as_echo_n "checking for $ac_word... " >&6; }
10707if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
859789af 10709else
c6b750e1
DJ
10710 case $AR_FOR_TARGET in
10711 [\\/]* | ?:[\\/]*)
2429c060
PB
10712 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10713 ;;
2429c060 10714 *)
c6b750e1
DJ
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $gcc_cv_tool_dirs
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10722 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10724 break 2
10725 fi
10726done
81ecdfbb
RW
10727 done
10728IFS=$as_save_IFS
c6b750e1 10729
2429c060
PB
10730 ;;
10731esac
859789af 10732fi
c6b750e1 10733AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10734if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10736$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10737else
81ecdfbb
RW
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739$as_echo "no" >&6; }
859789af 10740fi
05cbd757 10741
81ecdfbb 10742
2429c060
PB
10743fi
10744if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10745
10746
10747if test -n "$AR_FOR_TARGET"; then
10748 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10749elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10750 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10751fi
10752
10753if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10754 for ncn_progname in ar; do
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758$as_echo_n "checking for $ac_word... " >&6; }
10759if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
9a819804
AO
10761else
10762 if test -n "$AR_FOR_TARGET"; then
10763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10774 break 2
10775 fi
10776done
81ecdfbb
RW
10777 done
10778IFS=$as_save_IFS
9a819804
AO
10779
10780fi
10781fi
10782AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10783if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10785$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10786else
81ecdfbb
RW
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788$as_echo "no" >&6; }
9a819804
AO
10789fi
10790
81ecdfbb 10791
9a819804
AO
10792 done
10793fi
10794
10795if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10796 for ncn_progname in ar; do
81ecdfbb
RW
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10798$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10799 if test -x $with_build_time_tools/${ncn_progname}; then
10800 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10802$as_echo "yes" >&6; }
2429c060
PB
10803 break
10804 else
81ecdfbb
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
2429c060
PB
10807 fi
10808 done
859789af
AC
10809fi
10810
2429c060
PB
10811if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10812 for ncn_progname in ar; do
10813 if test -n "$ncn_target_tool_prefix"; then
10814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10815set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
7e0f7140 10820else
2429c060
PB
10821 if test -n "$AR_FOR_TARGET"; then
10822 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10823else
c6b750e1
DJ
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10831 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10833 break 2
10834 fi
10835done
81ecdfbb
RW
10836 done
10837IFS=$as_save_IFS
c6b750e1 10838
7e0f7140
GK
10839fi
10840fi
c6b750e1 10841AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10842if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10844$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10845else
81ecdfbb
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
7e0f7140
GK
10848fi
10849
81ecdfbb 10850
2429c060
PB
10851 fi
10852 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10854set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
7e0f7140 10859else
2429c060
PB
10860 if test -n "$AR_FOR_TARGET"; then
10861 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10862else
c6b750e1
DJ
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10870 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10872 break 2
10873 fi
10874done
81ecdfbb
RW
10875 done
10876IFS=$as_save_IFS
c6b750e1 10877
7e0f7140
GK
10878fi
10879fi
c6b750e1 10880AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10881if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10884else
81ecdfbb
RW
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
7e0f7140 10887fi
c6b750e1 10888
81ecdfbb 10889
2429c060
PB
10890 fi
10891 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10892 done
10893fi
c6b750e1 10894
2429c060
PB
10895if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10896 set dummy ar
7e0f7140 10897 if test $build = $target ; then
2429c060 10898 AR_FOR_TARGET="$2"
7e0f7140 10899 else
2429c060 10900 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10901 fi
d3f5afc4
MS
10902else
10903 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10904fi
10905
3a35eeb3
PB
10906else
10907 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10908fi
10909
10910
10911
10912
10913if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10916$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10917 if test -x $with_build_time_tools/as; then
10918 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10919 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10921$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10922 else
81ecdfbb
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
3a35eeb3 10925 fi
2429c060
PB
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10928 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10929 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10930 fi
10931fi
c6b750e1 10932if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10933 # Extract the first word of "as", so it can be a program name with args.
10934set dummy as; ac_word=$2
81ecdfbb
RW
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936$as_echo_n "checking for $ac_word... " >&6; }
10937if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
2429c060 10939else
c6b750e1
DJ
10940 case $AS_FOR_TARGET in
10941 [\\/]* | ?:[\\/]*)
2429c060
PB
10942 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10943 ;;
2429c060 10944 *)
c6b750e1
DJ
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $gcc_cv_tool_dirs
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10952 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10954 break 2
10955 fi
10956done
81ecdfbb
RW
10957 done
10958IFS=$as_save_IFS
c6b750e1 10959
2429c060
PB
10960 ;;
10961esac
10962fi
c6b750e1 10963AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10964if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10966$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10967else
81ecdfbb
RW
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969$as_echo "no" >&6; }
2429c060
PB
10970fi
10971
81ecdfbb 10972
2429c060
PB
10973fi
10974if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10975
10976
10977if test -n "$AS_FOR_TARGET"; then
10978 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10979elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10980 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10981fi
10982
10983if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10984 for ncn_progname in as; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988$as_echo_n "checking for $ac_word... " >&6; }
10989if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
9a819804
AO
10991else
10992 if test -n "$AS_FOR_TARGET"; then
10993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10994else
10995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996for as_dir in $PATH
10997do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11004 break 2
11005 fi
11006done
81ecdfbb
RW
11007 done
11008IFS=$as_save_IFS
9a819804
AO
11009
11010fi
11011fi
11012AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11013if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11015$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11016else
81ecdfbb
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
9a819804
AO
11019fi
11020
81ecdfbb 11021
9a819804
AO
11022 done
11023fi
11024
11025if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11026 for ncn_progname in as; do
81ecdfbb
RW
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11029 if test -x $with_build_time_tools/${ncn_progname}; then
11030 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032$as_echo "yes" >&6; }
2429c060
PB
11033 break
11034 else
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036$as_echo "no" >&6; }
2429c060
PB
11037 fi
11038 done
11039fi
11040
11041if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11042 for ncn_progname in as; do
11043 if test -n "$ncn_target_tool_prefix"; then
11044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11045set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047$as_echo_n "checking for $ac_word... " >&6; }
11048if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
2429c060
PB
11050else
11051 if test -n "$AS_FOR_TARGET"; then
11052 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11053else
c6b750e1
DJ
11054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11061 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11063 break 2
11064 fi
11065done
81ecdfbb
RW
11066 done
11067IFS=$as_save_IFS
c6b750e1 11068
2429c060
PB
11069fi
11070fi
c6b750e1 11071AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11072if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11074$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11075else
81ecdfbb
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
2429c060
PB
11078fi
11079
81ecdfbb 11080
2429c060
PB
11081 fi
11082 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11084set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086$as_echo_n "checking for $ac_word... " >&6; }
11087if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
2429c060
PB
11089else
11090 if test -n "$AS_FOR_TARGET"; then
11091 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11092else
c6b750e1
DJ
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11100 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11102 break 2
11103 fi
11104done
81ecdfbb
RW
11105 done
11106IFS=$as_save_IFS
c6b750e1 11107
2429c060
PB
11108fi
11109fi
c6b750e1 11110AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11111if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11114else
81ecdfbb
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
2429c060 11117fi
c6b750e1 11118
81ecdfbb 11119
2429c060
PB
11120 fi
11121 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11122 done
11123fi
c6b750e1 11124
2429c060
PB
11125if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11126 set dummy as
11127 if test $build = $target ; then
11128 AS_FOR_TARGET="$2"
11129 else
11130 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11131 fi
d3f5afc4
MS
11132else
11133 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11134fi
11135
3a35eeb3
PB
11136else
11137 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11138fi
11139
11140
11141
11142
11143if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11144 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11146$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11147 if test -x $with_build_time_tools/dlltool; then
11148 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11149 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11151$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11152 else
81ecdfbb
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
3a35eeb3 11155 fi
2429c060
PB
11156 elif test $build != $host && test $have_gcc_for_target = yes; then
11157 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11158 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11159 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11160 fi
11161fi
c6b750e1 11162if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11163 # Extract the first word of "dlltool", so it can be a program name with args.
11164set dummy dlltool; ac_word=$2
81ecdfbb
RW
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
11167if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
2429c060 11169else
c6b750e1
DJ
11170 case $DLLTOOL_FOR_TARGET in
11171 [\\/]* | ?:[\\/]*)
2429c060
PB
11172 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11173 ;;
2429c060 11174 *)
c6b750e1
DJ
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $gcc_cv_tool_dirs
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11182 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11184 break 2
11185 fi
11186done
81ecdfbb
RW
11187 done
11188IFS=$as_save_IFS
c6b750e1 11189
2429c060
PB
11190 ;;
11191esac
11192fi
c6b750e1 11193DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11194if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11196$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11197else
81ecdfbb
RW
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199$as_echo "no" >&6; }
2429c060
PB
11200fi
11201
81ecdfbb 11202
2429c060
PB
11203fi
11204if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11205
11206
11207if test -n "$DLLTOOL_FOR_TARGET"; then
11208 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11209elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11210 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11211fi
11212
11213if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11214 for ncn_progname in dlltool; do
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218$as_echo_n "checking for $ac_word... " >&6; }
11219if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
9a819804
AO
11221else
11222 if test -n "$DLLTOOL_FOR_TARGET"; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11224else
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11234 break 2
11235 fi
11236done
81ecdfbb
RW
11237 done
11238IFS=$as_save_IFS
9a819804
AO
11239
11240fi
11241fi
11242DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11243if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11245$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11246else
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248$as_echo "no" >&6; }
9a819804
AO
11249fi
11250
81ecdfbb 11251
9a819804
AO
11252 done
11253fi
11254
11255if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11256 for ncn_progname in dlltool; do
81ecdfbb
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11258$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11259 if test -x $with_build_time_tools/${ncn_progname}; then
11260 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262$as_echo "yes" >&6; }
2429c060
PB
11263 break
11264 else
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266$as_echo "no" >&6; }
2429c060
PB
11267 fi
11268 done
11269fi
11270
11271if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11272 for ncn_progname in dlltool; do
11273 if test -n "$ncn_target_tool_prefix"; then
11274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11275set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277$as_echo_n "checking for $ac_word... " >&6; }
11278if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
2429c060
PB
11280else
11281 if test -n "$DLLTOOL_FOR_TARGET"; then
11282 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11283else
c6b750e1
DJ
11284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11291 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11293 break 2
11294 fi
11295done
81ecdfbb
RW
11296 done
11297IFS=$as_save_IFS
c6b750e1 11298
2429c060
PB
11299fi
11300fi
c6b750e1 11301DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11302if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11304$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11305else
81ecdfbb
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
2429c060
PB
11308fi
11309
81ecdfbb 11310
2429c060
PB
11311 fi
11312 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316$as_echo_n "checking for $ac_word... " >&6; }
11317if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
2429c060
PB
11319else
11320 if test -n "$DLLTOOL_FOR_TARGET"; then
11321 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11322else
c6b750e1
DJ
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11330 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11332 break 2
11333 fi
11334done
81ecdfbb
RW
11335 done
11336IFS=$as_save_IFS
c6b750e1 11337
2429c060
PB
11338fi
11339fi
c6b750e1 11340DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11341if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11344else
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
2429c060 11347fi
c6b750e1 11348
81ecdfbb 11349
2429c060
PB
11350 fi
11351 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11352 done
11353fi
c6b750e1 11354
2429c060
PB
11355if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11356 set dummy dlltool
11357 if test $build = $target ; then
11358 DLLTOOL_FOR_TARGET="$2"
11359 else
11360 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11361 fi
d3f5afc4
MS
11362else
11363 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11364fi
11365
3a35eeb3
PB
11366else
11367 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11368fi
11369
11370
11371
11372
11373if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11374 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11376$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11377 if test -x $with_build_time_tools/ld; then
11378 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11379 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11381$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11382 else
81ecdfbb
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
3a35eeb3 11385 fi
2429c060
PB
11386 elif test $build != $host && test $have_gcc_for_target = yes; then
11387 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11388 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11389 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11390 fi
11391fi
c6b750e1 11392if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11393 # Extract the first word of "ld", so it can be a program name with args.
11394set dummy ld; ac_word=$2
81ecdfbb
RW
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396$as_echo_n "checking for $ac_word... " >&6; }
11397if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
2429c060 11399else
c6b750e1
DJ
11400 case $LD_FOR_TARGET in
11401 [\\/]* | ?:[\\/]*)
2429c060
PB
11402 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11403 ;;
2429c060 11404 *)
c6b750e1
DJ
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $gcc_cv_tool_dirs
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11412 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11414 break 2
11415 fi
11416done
81ecdfbb
RW
11417 done
11418IFS=$as_save_IFS
c6b750e1 11419
2429c060
PB
11420 ;;
11421esac
11422fi
c6b750e1 11423LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11424if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11426$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11427else
81ecdfbb
RW
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429$as_echo "no" >&6; }
2429c060
PB
11430fi
11431
81ecdfbb 11432
2429c060
PB
11433fi
11434if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11435
11436
11437if test -n "$LD_FOR_TARGET"; then
11438 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11439elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11440 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11441fi
11442
11443if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11444 for ncn_progname in ld; do
11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11446set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448$as_echo_n "checking for $ac_word... " >&6; }
11449if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
9a819804
AO
11451else
11452 if test -n "$LD_FOR_TARGET"; then
11453 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11454else
11455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $PATH
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11462 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11464 break 2
11465 fi
11466done
81ecdfbb
RW
11467 done
11468IFS=$as_save_IFS
9a819804
AO
11469
11470fi
11471fi
11472LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11473if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11475$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11476else
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478$as_echo "no" >&6; }
9a819804
AO
11479fi
11480
81ecdfbb 11481
9a819804
AO
11482 done
11483fi
11484
11485if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11486 for ncn_progname in ld; do
81ecdfbb
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11488$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11489 if test -x $with_build_time_tools/${ncn_progname}; then
11490 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492$as_echo "yes" >&6; }
2429c060
PB
11493 break
11494 else
81ecdfbb
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496$as_echo "no" >&6; }
2429c060
PB
11497 fi
11498 done
11499fi
11500
11501if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11502 for ncn_progname in ld; do
11503 if test -n "$ncn_target_tool_prefix"; then
11504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
11508if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
2429c060
PB
11510else
11511 if test -n "$LD_FOR_TARGET"; then
11512 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11513else
c6b750e1
DJ
11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11521 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11523 break 2
11524 fi
11525done
81ecdfbb
RW
11526 done
11527IFS=$as_save_IFS
c6b750e1 11528
2429c060
PB
11529fi
11530fi
c6b750e1 11531LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11532if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11534$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11535else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
2429c060
PB
11538fi
11539
81ecdfbb 11540
2429c060
PB
11541 fi
11542 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11544set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
2429c060
PB
11549else
11550 if test -n "$LD_FOR_TARGET"; then
11551 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11552else
c6b750e1
DJ
11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11560 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11562 break 2
11563 fi
11564done
81ecdfbb
RW
11565 done
11566IFS=$as_save_IFS
c6b750e1 11567
2429c060
PB
11568fi
11569fi
c6b750e1 11570LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11571if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11574else
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
2429c060 11577fi
c6b750e1 11578
81ecdfbb 11579
2429c060
PB
11580 fi
11581 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11582 done
11583fi
c6b750e1 11584
2429c060
PB
11585if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11586 set dummy ld
11587 if test $build = $target ; then
11588 LD_FOR_TARGET="$2"
11589 else
11590 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11591 fi
d3f5afc4
MS
11592else
11593 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11594fi
11595
3a35eeb3
PB
11596else
11597 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11598fi
11599
11600
11601
11602
11603if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11604 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11606$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11607 if test -x $with_build_time_tools/lipo; then
11608 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11609 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11611$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11612 else
81ecdfbb
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
3a35eeb3 11615 fi
2429c060
PB
11616 elif test $build != $host && test $have_gcc_for_target = yes; then
11617 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11618 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11619 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11620 fi
11621fi
9a819804
AO
11622if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11623 # Extract the first word of "lipo", so it can be a program name with args.
11624set dummy lipo; ac_word=$2
81ecdfbb
RW
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626$as_echo_n "checking for $ac_word... " >&6; }
11627if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
9a819804
AO
11629else
11630 case $LIPO_FOR_TARGET in
11631 [\\/]* | ?:[\\/]*)
11632 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11633 ;;
11634 *)
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $gcc_cv_tool_dirs
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11642 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11644 break 2
11645 fi
11646done
81ecdfbb
RW
11647 done
11648IFS=$as_save_IFS
9a819804
AO
11649
11650 ;;
11651esac
11652fi
11653LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11654if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11656$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11657else
81ecdfbb
RW
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
9a819804
AO
11660fi
11661
81ecdfbb 11662
9a819804
AO
11663fi
11664if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11665
11666
11667if test -n "$LIPO_FOR_TARGET"; then
11668 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11669elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11670 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11671fi
11672
11673if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11674 for ncn_progname in lipo; do
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
11679if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
2429c060 11681else
9a819804
AO
11682 if test -n "$LIPO_FOR_TARGET"; then
11683 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
c6b750e1
DJ
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11692 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11694 break 2
11695 fi
11696done
81ecdfbb
RW
11697 done
11698IFS=$as_save_IFS
c6b750e1 11699
2429c060 11700fi
9a819804
AO
11701fi
11702LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11703if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11705$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11706else
81ecdfbb
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
2429c060
PB
11709fi
11710
81ecdfbb 11711
9a819804 11712 done
2429c060 11713fi
9a819804
AO
11714
11715if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11716 for ncn_progname in lipo; do
81ecdfbb
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11718$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11719 if test -x $with_build_time_tools/${ncn_progname}; then
11720 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722$as_echo "yes" >&6; }
2429c060
PB
11723 break
11724 else
81ecdfbb
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726$as_echo "no" >&6; }
2429c060
PB
11727 fi
11728 done
11729fi
11730
11731if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11732 for ncn_progname in lipo; do
11733 if test -n "$ncn_target_tool_prefix"; then
11734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11735set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
11738if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
2429c060
PB
11740else
11741 if test -n "$LIPO_FOR_TARGET"; then
11742 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11743else
c6b750e1
DJ
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11751 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11753 break 2
11754 fi
11755done
81ecdfbb
RW
11756 done
11757IFS=$as_save_IFS
c6b750e1 11758
2429c060
PB
11759fi
11760fi
c6b750e1 11761LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11762if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11764$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11765else
81ecdfbb
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
2429c060
PB
11768fi
11769
81ecdfbb 11770
2429c060
PB
11771 fi
11772 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11774set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776$as_echo_n "checking for $ac_word... " >&6; }
11777if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
2429c060
PB
11779else
11780 if test -n "$LIPO_FOR_TARGET"; then
11781 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11782else
c6b750e1
DJ
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11790 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11792 break 2
11793 fi
11794done
81ecdfbb
RW
11795 done
11796IFS=$as_save_IFS
c6b750e1 11797
2429c060
PB
11798fi
11799fi
c6b750e1 11800LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11801if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11804else
81ecdfbb
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
2429c060 11807fi
c6b750e1 11808
81ecdfbb 11809
2429c060
PB
11810 fi
11811 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11812 done
11813fi
c6b750e1 11814
2429c060
PB
11815if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11816 set dummy lipo
11817 if test $build = $target ; then
11818 LIPO_FOR_TARGET="$2"
11819 else
11820 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11821 fi
d3f5afc4
MS
11822else
11823 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11824fi
11825
3a35eeb3
PB
11826else
11827 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11828fi
11829
11830
11831
11832
11833if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11834 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11836$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11837 if test -x $with_build_time_tools/nm; then
11838 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11839 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11841$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11842 else
81ecdfbb
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
3a35eeb3 11845 fi
2429c060
PB
11846 elif test $build != $host && test $have_gcc_for_target = yes; then
11847 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11848 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11849 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11850 fi
11851fi
c6b750e1 11852if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11853 # Extract the first word of "nm", so it can be a program name with args.
11854set dummy nm; ac_word=$2
81ecdfbb
RW
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856$as_echo_n "checking for $ac_word... " >&6; }
11857if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
2429c060 11859else
c6b750e1
DJ
11860 case $NM_FOR_TARGET in
11861 [\\/]* | ?:[\\/]*)
2429c060
PB
11862 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11863 ;;
2429c060 11864 *)
c6b750e1
DJ
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $gcc_cv_tool_dirs
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11872 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11874 break 2
11875 fi
11876done
81ecdfbb
RW
11877 done
11878IFS=$as_save_IFS
c6b750e1 11879
2429c060
PB
11880 ;;
11881esac
11882fi
c6b750e1 11883NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11884if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11886$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11887else
81ecdfbb
RW
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
2429c060
PB
11890fi
11891
81ecdfbb 11892
2429c060
PB
11893fi
11894if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11895
11896
11897if test -n "$NM_FOR_TARGET"; then
11898 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11899elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11900 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11901fi
11902
11903if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11904 for ncn_progname in nm; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908$as_echo_n "checking for $ac_word... " >&6; }
11909if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
9a819804
AO
11911else
11912 if test -n "$NM_FOR_TARGET"; then
11913 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11914else
11915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11922 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11924 break 2
11925 fi
11926done
81ecdfbb
RW
11927 done
11928IFS=$as_save_IFS
9a819804
AO
11929
11930fi
11931fi
11932NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11933if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11935$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11936else
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
9a819804
AO
11939fi
11940
81ecdfbb 11941
9a819804
AO
11942 done
11943fi
11944
11945if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11946 for ncn_progname in nm; do
81ecdfbb
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11948$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11949 if test -x $with_build_time_tools/${ncn_progname}; then
11950 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952$as_echo "yes" >&6; }
2429c060
PB
11953 break
11954 else
81ecdfbb
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956$as_echo "no" >&6; }
2429c060
PB
11957 fi
11958 done
11959fi
11960
11961if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11962 for ncn_progname in nm; do
11963 if test -n "$ncn_target_tool_prefix"; then
11964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11965set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967$as_echo_n "checking for $ac_word... " >&6; }
11968if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
859789af 11970else
55db4b87
PB
11971 if test -n "$NM_FOR_TARGET"; then
11972 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11973else
c6b750e1
DJ
11974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975for as_dir in $PATH
11976do
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11981 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11983 break 2
11984 fi
11985done
81ecdfbb
RW
11986 done
11987IFS=$as_save_IFS
c6b750e1 11988
859789af
AC
11989fi
11990fi
c6b750e1 11991NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11992if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11994$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11995else
81ecdfbb
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
859789af
AC
11998fi
11999
81ecdfbb 12000
2429c060
PB
12001 fi
12002 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12004set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006$as_echo_n "checking for $ac_word... " >&6; }
12007if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
859789af 12009else
05cbd757
PB
12010 if test -n "$NM_FOR_TARGET"; then
12011 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12012else
c6b750e1
DJ
12013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014for as_dir in $PATH
12015do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12020 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12022 break 2
12023 fi
12024done
81ecdfbb
RW
12025 done
12026IFS=$as_save_IFS
c6b750e1 12027
859789af
AC
12028fi
12029fi
c6b750e1 12030NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12031if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12034else
81ecdfbb
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
859789af 12037fi
c6b750e1 12038
81ecdfbb 12039
2429c060
PB
12040 fi
12041 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12042 done
12043fi
c6b750e1 12044
05cbd757
PB
12045if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12046 set dummy nm
12047 if test $build = $target ; then
12048 NM_FOR_TARGET="$2"
859789af 12049 else
05cbd757 12050 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12051 fi
d3f5afc4
MS
12052else
12053 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12054fi
12055
3a35eeb3
PB
12056else
12057 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12058fi
12059
12060
12061
12062
6b91c541
AP
12063if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12064 if test -n "$with_build_time_tools"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12066$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12067 if test -x $with_build_time_tools/objcopy; then
12068 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12069 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12071$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075 fi
12076 elif test $build != $host && test $have_gcc_for_target = yes; then
12077 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12078 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12079 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12080 fi
12081fi
12082if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12083 # Extract the first word of "objcopy", so it can be a program name with args.
12084set dummy objcopy; ac_word=$2
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086$as_echo_n "checking for $ac_word... " >&6; }
12087if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089else
12090 case $OBJCOPY_FOR_TARGET in
12091 [\\/]* | ?:[\\/]*)
12092 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12093 ;;
12094 *)
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $gcc_cv_tool_dirs
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
12109
12110 ;;
12111esac
12112fi
12113OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12114if test -n "$OBJCOPY_FOR_TARGET"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12116$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12117else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119$as_echo "no" >&6; }
12120fi
12121
12122
12123fi
12124if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12125
12126
12127if test -n "$OBJCOPY_FOR_TARGET"; then
12128 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12129elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12130 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12131fi
12132
12133if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12134 for ncn_progname in objcopy; do
12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12136set dummy ${ncn_progname}; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 if test -n "$OBJCOPY_FOR_TARGET"; then
12143 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157 done
12158IFS=$as_save_IFS
12159
12160fi
12161fi
12162OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12163if test -n "$OBJCOPY_FOR_TARGET"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12165$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12166else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171
12172 done
12173fi
12174
12175if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12176 for ncn_progname in objcopy; do
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12178$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12179 if test -x $with_build_time_tools/${ncn_progname}; then
12180 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182$as_echo "yes" >&6; }
12183 break
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186$as_echo "no" >&6; }
12187 fi
12188 done
12189fi
12190
12191if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12192 for ncn_progname in objcopy; do
12193 if test -n "$ncn_target_tool_prefix"; then
12194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197$as_echo_n "checking for $ac_word... " >&6; }
12198if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12200else
12201 if test -n "$OBJCOPY_FOR_TARGET"; then
12202 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12203else
12204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205for as_dir in $PATH
12206do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215done
12216 done
12217IFS=$as_save_IFS
12218
12219fi
12220fi
12221OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12222if test -n "$OBJCOPY_FOR_TARGET"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12224$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12225else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234set dummy ${ncn_progname}; ac_word=$2
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236$as_echo_n "checking for $ac_word... " >&6; }
12237if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12239else
12240 if test -n "$OBJCOPY_FOR_TARGET"; then
12241 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12242else
12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244for as_dir in $PATH
12245do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254done
12255 done
12256IFS=$as_save_IFS
12257
12258fi
12259fi
12260OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12261if test -n "$OBJCOPY_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12263$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12264else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267fi
12268
12269
12270 fi
12271 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12272 done
12273fi
12274
12275if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12276 set dummy objcopy
12277 if test $build = $target ; then
12278 OBJCOPY_FOR_TARGET="$2"
12279 else
12280 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12281 fi
12282else
12283 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12284fi
12285
12286else
12287 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12288fi
12289
12290
12291
12292
2429c060
PB
12293if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12294 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12296$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12297 if test -x $with_build_time_tools/objdump; then
12298 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12299 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12301$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12302 else
81ecdfbb
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
3a35eeb3 12305 fi
2429c060
PB
12306 elif test $build != $host && test $have_gcc_for_target = yes; then
12307 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12308 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12309 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12310 fi
12311fi
c6b750e1 12312if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12313 # Extract the first word of "objdump", so it can be a program name with args.
12314set dummy objdump; ac_word=$2
81ecdfbb
RW
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316$as_echo_n "checking for $ac_word... " >&6; }
12317if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
2429c060 12319else
c6b750e1
DJ
12320 case $OBJDUMP_FOR_TARGET in
12321 [\\/]* | ?:[\\/]*)
2429c060
PB
12322 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12323 ;;
2429c060 12324 *)
c6b750e1
DJ
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $gcc_cv_tool_dirs
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12332 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12334 break 2
12335 fi
12336done
81ecdfbb
RW
12337 done
12338IFS=$as_save_IFS
c6b750e1 12339
2429c060
PB
12340 ;;
12341esac
12342fi
c6b750e1 12343OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12344if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12346$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12347else
81ecdfbb
RW
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
2429c060
PB
12350fi
12351
81ecdfbb 12352
2429c060
PB
12353fi
12354if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12355
12356
12357if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12359elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12360 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12361fi
12362
12363if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12364 for ncn_progname in objdump; do
12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12366set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368$as_echo_n "checking for $ac_word... " >&6; }
12369if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
9a819804
AO
12371else
12372 if test -n "$OBJDUMP_FOR_TARGET"; then
12373 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12374else
12375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376for as_dir in $PATH
12377do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12382 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12384 break 2
12385 fi
12386done
81ecdfbb
RW
12387 done
12388IFS=$as_save_IFS
9a819804
AO
12389
12390fi
12391fi
12392OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12393if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12395$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12396else
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398$as_echo "no" >&6; }
9a819804
AO
12399fi
12400
81ecdfbb 12401
9a819804
AO
12402 done
12403fi
12404
12405if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12406 for ncn_progname in objdump; do
81ecdfbb
RW
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12408$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12409 if test -x $with_build_time_tools/${ncn_progname}; then
12410 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412$as_echo "yes" >&6; }
2429c060
PB
12413 break
12414 else
81ecdfbb
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416$as_echo "no" >&6; }
2429c060
PB
12417 fi
12418 done
12419fi
12420
12421if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12422 for ncn_progname in objdump; do
12423 if test -n "$ncn_target_tool_prefix"; then
12424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12425set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427$as_echo_n "checking for $ac_word... " >&6; }
12428if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
5ae72758
DJ
12430else
12431 if test -n "$OBJDUMP_FOR_TARGET"; then
12432 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12433else
c6b750e1
DJ
12434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435for as_dir in $PATH
12436do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12441 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12443 break 2
12444 fi
12445done
81ecdfbb
RW
12446 done
12447IFS=$as_save_IFS
c6b750e1 12448
5ae72758
DJ
12449fi
12450fi
c6b750e1 12451OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12452if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12454$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12455else
81ecdfbb
RW
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457$as_echo "no" >&6; }
5ae72758
DJ
12458fi
12459
81ecdfbb 12460
2429c060
PB
12461 fi
12462 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12464set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466$as_echo_n "checking for $ac_word... " >&6; }
12467if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
5ae72758
DJ
12469else
12470 if test -n "$OBJDUMP_FOR_TARGET"; then
12471 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12472else
c6b750e1
DJ
12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474for as_dir in $PATH
12475do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12480 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12482 break 2
12483 fi
12484done
81ecdfbb
RW
12485 done
12486IFS=$as_save_IFS
c6b750e1 12487
5ae72758
DJ
12488fi
12489fi
c6b750e1 12490OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12491if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12493$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12494else
81ecdfbb
RW
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
5ae72758 12497fi
c6b750e1 12498
81ecdfbb 12499
2429c060
PB
12500 fi
12501 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12502 done
12503fi
c6b750e1 12504
5ae72758
DJ
12505if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12506 set dummy objdump
12507 if test $build = $target ; then
12508 OBJDUMP_FOR_TARGET="$2"
12509 else
12510 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12511 fi
d3f5afc4
MS
12512else
12513 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12514fi
12515
3a35eeb3
PB
12516else
12517 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12518fi
12519
12520
12521
12522
12523if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12524 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12526$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12527 if test -x $with_build_time_tools/ranlib; then
12528 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12529 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12531$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12532 else
81ecdfbb
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
3a35eeb3 12535 fi
2429c060
PB
12536 elif test $build != $host && test $have_gcc_for_target = yes; then
12537 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12538 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12539 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12540 fi
12541fi
c6b750e1 12542if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12543 # Extract the first word of "ranlib", so it can be a program name with args.
12544set dummy ranlib; ac_word=$2
81ecdfbb
RW
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
12547if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
2429c060 12549else
c6b750e1
DJ
12550 case $RANLIB_FOR_TARGET in
12551 [\\/]* | ?:[\\/]*)
2429c060
PB
12552 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12553 ;;
2429c060 12554 *)
c6b750e1
DJ
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $gcc_cv_tool_dirs
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12562 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12564 break 2
12565 fi
12566done
81ecdfbb
RW
12567 done
12568IFS=$as_save_IFS
c6b750e1 12569
2429c060
PB
12570 ;;
12571esac
12572fi
c6b750e1 12573RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12574if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12576$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12577else
81ecdfbb
RW
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
2429c060
PB
12580fi
12581
81ecdfbb 12582
2429c060
PB
12583fi
12584if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12585
12586
12587if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12589elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12590 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12591fi
12592
12593if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12594 for ncn_progname in ranlib; do
12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12596set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598$as_echo_n "checking for $ac_word... " >&6; }
12599if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
9a819804
AO
12601else
12602 if test -n "$RANLIB_FOR_TARGET"; then
12603 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12604else
12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606for as_dir in $PATH
12607do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12612 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12614 break 2
12615 fi
12616done
81ecdfbb
RW
12617 done
12618IFS=$as_save_IFS
9a819804
AO
12619
12620fi
12621fi
12622RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12623if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12625$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12626else
81ecdfbb
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
9a819804
AO
12629fi
12630
81ecdfbb 12631
9a819804
AO
12632 done
12633fi
12634
12635if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12636 for ncn_progname in ranlib; do
81ecdfbb
RW
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12638$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12639 if test -x $with_build_time_tools/${ncn_progname}; then
12640 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642$as_echo "yes" >&6; }
2429c060
PB
12643 break
12644 else
81ecdfbb
RW
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646$as_echo "no" >&6; }
2429c060
PB
12647 fi
12648 done
12649fi
12650
12651if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12652 for ncn_progname in ranlib; do
12653 if test -n "$ncn_target_tool_prefix"; then
12654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12655set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657$as_echo_n "checking for $ac_word... " >&6; }
12658if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
859789af 12660else
55db4b87
PB
12661 if test -n "$RANLIB_FOR_TARGET"; then
12662 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12663else
c6b750e1
DJ
12664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665for as_dir in $PATH
12666do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12671 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12673 break 2
12674 fi
12675done
81ecdfbb
RW
12676 done
12677IFS=$as_save_IFS
c6b750e1 12678
859789af
AC
12679fi
12680fi
c6b750e1 12681RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12682if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12684$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12685else
81ecdfbb
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
859789af
AC
12688fi
12689
81ecdfbb 12690
2429c060
PB
12691 fi
12692 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12694set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696$as_echo_n "checking for $ac_word... " >&6; }
12697if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
859789af 12699else
05cbd757
PB
12700 if test -n "$RANLIB_FOR_TARGET"; then
12701 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12702else
c6b750e1
DJ
12703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704for as_dir in $PATH
12705do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12710 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12712 break 2
12713 fi
12714done
81ecdfbb
RW
12715 done
12716IFS=$as_save_IFS
c6b750e1 12717
859789af
AC
12718fi
12719fi
c6b750e1 12720RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12721if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12723$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12724else
81ecdfbb
RW
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726$as_echo "no" >&6; }
859789af 12727fi
c6b750e1 12728
81ecdfbb 12729
2429c060
PB
12730 fi
12731 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12732 done
12733fi
c6b750e1 12734
2429c060
PB
12735if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12736 set dummy ranlib
12737 if test $build = $target ; then
12738 RANLIB_FOR_TARGET="$2"
12739 else
12740 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12741 fi
d3f5afc4
MS
12742else
12743 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12744fi
05cbd757 12745
3a35eeb3
PB
12746else
12747 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12748fi
12749
2429c060
PB
12750
12751
12752
b121d7d4
DD
12753if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12754 if test -n "$with_build_time_tools"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12756$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12757 if test -x $with_build_time_tools/readelf; then
12758 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12759 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12761$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765 fi
12766 elif test $build != $host && test $have_gcc_for_target = yes; then
12767 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12768 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12769 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12770 fi
12771fi
12772if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12773 # Extract the first word of "readelf", so it can be a program name with args.
12774set dummy readelf; ac_word=$2
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776$as_echo_n "checking for $ac_word... " >&6; }
12777if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779else
12780 case $READELF_FOR_TARGET in
12781 [\\/]* | ?:[\\/]*)
12782 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12783 ;;
12784 *)
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $gcc_cv_tool_dirs
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796done
12797 done
12798IFS=$as_save_IFS
12799
12800 ;;
12801esac
12802fi
12803READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12804if test -n "$READELF_FOR_TARGET"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12806$as_echo "$READELF_FOR_TARGET" >&6; }
12807else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809$as_echo "no" >&6; }
12810fi
12811
12812
12813fi
12814if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12815
12816
12817if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12819elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12820 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12821fi
12822
12823if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12824 for ncn_progname in readelf; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826set dummy ${ncn_progname}; ac_word=$2
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828$as_echo_n "checking for $ac_word... " >&6; }
12829if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831else
12832 if test -n "$READELF_FOR_TARGET"; then
12833 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12834else
12835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846done
12847 done
12848IFS=$as_save_IFS
12849
12850fi
12851fi
12852READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12853if test -n "$READELF_FOR_TARGET"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12855$as_echo "$READELF_FOR_TARGET" >&6; }
12856else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858$as_echo "no" >&6; }
12859fi
12860
12861
12862 done
12863fi
12864
12865if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12866 for ncn_progname in readelf; do
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12868$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12869 if test -x $with_build_time_tools/${ncn_progname}; then
12870 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872$as_echo "yes" >&6; }
12873 break
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876$as_echo "no" >&6; }
12877 fi
12878 done
12879fi
12880
12881if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12882 for ncn_progname in readelf; do
12883 if test -n "$ncn_target_tool_prefix"; then
12884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12885set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887$as_echo_n "checking for $ac_word... " >&6; }
12888if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890else
12891 if test -n "$READELF_FOR_TARGET"; then
12892 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12893else
12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905done
12906 done
12907IFS=$as_save_IFS
12908
12909fi
12910fi
12911READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12912if test -n "$READELF_FOR_TARGET"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12914$as_echo "$READELF_FOR_TARGET" >&6; }
12915else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917$as_echo "no" >&6; }
12918fi
12919
12920
12921 fi
12922 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12924set dummy ${ncn_progname}; ac_word=$2
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926$as_echo_n "checking for $ac_word... " >&6; }
12927if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929else
12930 if test -n "$READELF_FOR_TARGET"; then
12931 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12932else
12933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934for as_dir in $PATH
12935do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944done
12945 done
12946IFS=$as_save_IFS
12947
12948fi
12949fi
12950READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12951if test -n "$READELF_FOR_TARGET"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12953$as_echo "$READELF_FOR_TARGET" >&6; }
12954else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956$as_echo "no" >&6; }
12957fi
12958
12959
12960 fi
12961 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12962 done
12963fi
12964
12965if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12966 set dummy readelf
12967 if test $build = $target ; then
12968 READELF_FOR_TARGET="$2"
12969 else
12970 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12971 fi
12972else
12973 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12974fi
12975
12976else
12977 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12978fi
12979
12980
12981
12982
2429c060
PB
12983if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12984 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12986$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12987 if test -x $with_build_time_tools/strip; then
12988 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12989 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12991$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12992 else
81ecdfbb
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
3a35eeb3 12995 fi
2429c060
PB
12996 elif test $build != $host && test $have_gcc_for_target = yes; then
12997 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12998 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12999 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13000 fi
13001fi
c6b750e1 13002if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13003 # Extract the first word of "strip", so it can be a program name with args.
13004set dummy strip; ac_word=$2
81ecdfbb
RW
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006$as_echo_n "checking for $ac_word... " >&6; }
13007if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
2429c060 13009else
c6b750e1
DJ
13010 case $STRIP_FOR_TARGET in
13011 [\\/]* | ?:[\\/]*)
2429c060
PB
13012 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13013 ;;
2429c060 13014 *)
c6b750e1
DJ
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $gcc_cv_tool_dirs
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13022 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13024 break 2
13025 fi
13026done
81ecdfbb
RW
13027 done
13028IFS=$as_save_IFS
c6b750e1 13029
2429c060
PB
13030 ;;
13031esac
13032fi
c6b750e1 13033STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13034if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13036$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13037else
81ecdfbb
RW
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
2429c060
PB
13040fi
13041
81ecdfbb 13042
2429c060
PB
13043fi
13044if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13045
13046
13047if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13049elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13050 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13051fi
13052
13053if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13054 for ncn_progname in strip; do
13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13056set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058$as_echo_n "checking for $ac_word... " >&6; }
13059if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
9a819804
AO
13061else
13062 if test -n "$STRIP_FOR_TARGET"; then
13063 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13064else
13065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066for as_dir in $PATH
13067do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13072 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13074 break 2
13075 fi
13076done
81ecdfbb
RW
13077 done
13078IFS=$as_save_IFS
9a819804
AO
13079
13080fi
13081fi
13082STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13083if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13085$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13086else
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088$as_echo "no" >&6; }
9a819804
AO
13089fi
13090
81ecdfbb 13091
9a819804
AO
13092 done
13093fi
13094
13095if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13096 for ncn_progname in strip; do
81ecdfbb
RW
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13098$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13099 if test -x $with_build_time_tools/${ncn_progname}; then
13100 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102$as_echo "yes" >&6; }
2429c060
PB
13103 break
13104 else
81ecdfbb
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106$as_echo "no" >&6; }
2429c060
PB
13107 fi
13108 done
13109fi
13110
13111if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13112 for ncn_progname in strip; do
13113 if test -n "$ncn_target_tool_prefix"; then
13114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13115set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117$as_echo_n "checking for $ac_word... " >&6; }
13118if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
7e0f7140
GK
13120else
13121 if test -n "$STRIP_FOR_TARGET"; then
13122 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13123else
13124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125for as_dir in $PATH
13126do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13131 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13133 break 2
13134 fi
13135done
81ecdfbb
RW
13136 done
13137IFS=$as_save_IFS
c6b750e1 13138
7e0f7140
GK
13139fi
13140fi
c6b750e1 13141STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13142if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13144$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13145else
81ecdfbb
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
7e0f7140
GK
13148fi
13149
81ecdfbb 13150
2429c060
PB
13151 fi
13152 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13154set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156$as_echo_n "checking for $ac_word... " >&6; }
13157if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
7e0f7140
GK
13159else
13160 if test -n "$STRIP_FOR_TARGET"; then
13161 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13162else
c6b750e1
DJ
13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164for as_dir in $PATH
13165do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13170 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13172 break 2
13173 fi
13174done
81ecdfbb
RW
13175 done
13176IFS=$as_save_IFS
c6b750e1 13177
7e0f7140
GK
13178fi
13179fi
c6b750e1 13180STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13181if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13183$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13184else
81ecdfbb
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
7e0f7140 13187fi
c6b750e1 13188
81ecdfbb 13189
2429c060
PB
13190 fi
13191 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13192 done
13193fi
c6b750e1 13194
7e0f7140
GK
13195if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13196 set dummy strip
13197 if test $build = $target ; then
13198 STRIP_FOR_TARGET="$2"
13199 else
13200 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13201 fi
d3f5afc4
MS
13202else
13203 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13204fi
13205
3a35eeb3
PB
13206else
13207 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13208fi
13209
13210
13211
13212
13213if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13214 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13216$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13217 if test -x $with_build_time_tools/windres; then
13218 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13219 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13221$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13222 else
81ecdfbb
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
3a35eeb3 13225 fi
2429c060
PB
13226 elif test $build != $host && test $have_gcc_for_target = yes; then
13227 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13228 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13229 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13230 fi
13231fi
c6b750e1 13232if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13233 # Extract the first word of "windres", so it can be a program name with args.
13234set dummy windres; ac_word=$2
81ecdfbb
RW
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236$as_echo_n "checking for $ac_word... " >&6; }
13237if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
2429c060 13239else
c6b750e1
DJ
13240 case $WINDRES_FOR_TARGET in
13241 [\\/]* | ?:[\\/]*)
2429c060
PB
13242 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13243 ;;
2429c060 13244 *)
c6b750e1
DJ
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $gcc_cv_tool_dirs
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13252 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13254 break 2
13255 fi
13256done
81ecdfbb
RW
13257 done
13258IFS=$as_save_IFS
c6b750e1 13259
2429c060
PB
13260 ;;
13261esac
13262fi
c6b750e1 13263WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13264if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13266$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13267else
81ecdfbb
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269$as_echo "no" >&6; }
2429c060
PB
13270fi
13271
81ecdfbb 13272
2429c060
PB
13273fi
13274if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13275
13276
13277if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13279elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13280 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13281fi
13282
13283if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13284 for ncn_progname in windres; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288$as_echo_n "checking for $ac_word... " >&6; }
13289if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
9a819804
AO
13291else
13292 if test -n "$WINDRES_FOR_TARGET"; then
13293 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13294else
13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13302 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13304 break 2
13305 fi
13306done
81ecdfbb
RW
13307 done
13308IFS=$as_save_IFS
9a819804
AO
13309
13310fi
13311fi
13312WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13313if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13315$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13316else
81ecdfbb
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318$as_echo "no" >&6; }
9a819804
AO
13319fi
13320
81ecdfbb 13321
9a819804
AO
13322 done
13323fi
13324
13325if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13326 for ncn_progname in windres; do
81ecdfbb
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13328$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332$as_echo "yes" >&6; }
2429c060
PB
13333 break
13334 else
81ecdfbb
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
2429c060
PB
13337 fi
13338 done
13339fi
13340
13341if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13342 for ncn_progname in windres; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347$as_echo_n "checking for $ac_word... " >&6; }
13348if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
859789af 13350else
55db4b87
PB
13351 if test -n "$WINDRES_FOR_TARGET"; then
13352 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13353else
c6b750e1
DJ
13354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355for as_dir in $PATH
13356do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13361 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13363 break 2
13364 fi
13365done
81ecdfbb
RW
13366 done
13367IFS=$as_save_IFS
c6b750e1 13368
859789af
AC
13369fi
13370fi
c6b750e1 13371WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13372if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13374$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13375else
81ecdfbb
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
859789af
AC
13378fi
13379
81ecdfbb 13380
2429c060
PB
13381 fi
13382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13384set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386$as_echo_n "checking for $ac_word... " >&6; }
13387if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
859789af 13389else
05cbd757
PB
13390 if test -n "$WINDRES_FOR_TARGET"; then
13391 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13392else
c6b750e1
DJ
13393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394for as_dir in $PATH
13395do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13400 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13402 break 2
13403 fi
13404done
81ecdfbb
RW
13405 done
13406IFS=$as_save_IFS
c6b750e1 13407
859789af
AC
13408fi
13409fi
c6b750e1 13410WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13411if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13413$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13414else
81ecdfbb
RW
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416$as_echo "no" >&6; }
859789af 13417fi
c6b750e1 13418
81ecdfbb 13419
2429c060
PB
13420 fi
13421 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13422 done
13423fi
c6b750e1 13424
05cbd757
PB
13425if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13426 set dummy windres
13427 if test $build = $target ; then
13428 WINDRES_FOR_TARGET="$2"
859789af 13429 else
05cbd757 13430 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13431 fi
d3f5afc4
MS
13432else
13433 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13434fi
13435
3a35eeb3
PB
13436else
13437 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13438fi
13439
852e5f18 13440
0c24b341
NC
13441
13442
13443if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13444 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13446$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13447 if test -x $with_build_time_tools/windmc; then
13448 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13449 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13451$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13452 else
81ecdfbb
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
0c24b341
NC
13455 fi
13456 elif test $build != $host && test $have_gcc_for_target = yes; then
13457 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13458 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13459 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13460 fi
13461fi
13462if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13463 # Extract the first word of "windmc", so it can be a program name with args.
13464set dummy windmc; ac_word=$2
81ecdfbb
RW
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
0c24b341
NC
13469else
13470 case $WINDMC_FOR_TARGET in
13471 [\\/]* | ?:[\\/]*)
13472 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13473 ;;
13474 *)
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476for as_dir in $gcc_cv_tool_dirs
13477do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13482 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13484 break 2
13485 fi
13486done
81ecdfbb
RW
13487 done
13488IFS=$as_save_IFS
0c24b341
NC
13489
13490 ;;
13491esac
13492fi
13493WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13494if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13496$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13497else
81ecdfbb
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499$as_echo "no" >&6; }
0c24b341
NC
13500fi
13501
81ecdfbb 13502
0c24b341
NC
13503fi
13504if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13505
13506
13507if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13509elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13511fi
13512
13513if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13514 for ncn_progname in windmc; do
13515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13516set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
13519if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
0c24b341
NC
13521else
13522 if test -n "$WINDMC_FOR_TARGET"; then
13523 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13532 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13534 break 2
13535 fi
13536done
81ecdfbb
RW
13537 done
13538IFS=$as_save_IFS
0c24b341
NC
13539
13540fi
13541fi
13542WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13543if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13545$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13546else
81ecdfbb
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
0c24b341
NC
13549fi
13550
81ecdfbb 13551
0c24b341
NC
13552 done
13553fi
13554
13555if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13556 for ncn_progname in windmc; do
81ecdfbb
RW
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13559 if test -x $with_build_time_tools/${ncn_progname}; then
13560 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13562$as_echo "yes" >&6; }
0c24b341
NC
13563 break
13564 else
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
0c24b341
NC
13567 fi
13568 done
13569fi
13570
13571if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13572 for ncn_progname in windmc; do
13573 if test -n "$ncn_target_tool_prefix"; then
13574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577$as_echo_n "checking for $ac_word... " >&6; }
13578if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
0c24b341
NC
13580else
13581 if test -n "$WINDMC_FOR_TARGET"; then
13582 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13583else
13584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585for as_dir in $PATH
13586do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13591 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13593 break 2
13594 fi
13595done
81ecdfbb
RW
13596 done
13597IFS=$as_save_IFS
0c24b341
NC
13598
13599fi
13600fi
13601WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13602if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13604$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13605else
81ecdfbb
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607$as_echo "no" >&6; }
0c24b341
NC
13608fi
13609
81ecdfbb 13610
0c24b341
NC
13611 fi
13612 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13614set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13616$as_echo_n "checking for $ac_word... " >&6; }
13617if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
0c24b341
NC
13619else
13620 if test -n "$WINDMC_FOR_TARGET"; then
13621 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13622else
13623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624for as_dir in $PATH
13625do
13626 IFS=$as_save_IFS
13627 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13630 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13632 break 2
13633 fi
13634done
81ecdfbb
RW
13635 done
13636IFS=$as_save_IFS
0c24b341
NC
13637
13638fi
13639fi
13640WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13641if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13643$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13644else
81ecdfbb
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646$as_echo "no" >&6; }
0c24b341
NC
13647fi
13648
81ecdfbb 13649
0c24b341
NC
13650 fi
13651 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13652 done
13653fi
13654
13655if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13656 set dummy windmc
13657 if test $build = $target ; then
13658 WINDMC_FOR_TARGET="$2"
13659 else
13660 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13661 fi
13662else
13663 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13664fi
13665
13666else
13667 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13668fi
13669
13670
be01d343
PB
13671RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13672
81ecdfbb
RW
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13674$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13675if test "x${build}" != "x${host}" ; then
2429c060
PB
13676 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13677 # We already found the complete path
b8025f34 13678 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13680$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13681 else
13682 # Canadian cross, just use what we found
81ecdfbb
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684$as_echo "pre-installed" >&6; }
2429c060 13685 fi
be01d343
PB
13686else
13687 ok=yes
13688 case " ${configdirs} " in
13689 *" binutils "*) ;;
13690 *) ok=no ;;
13691 esac
c6b750e1 13692
be01d343
PB
13693 if test $ok = yes; then
13694 # An in-tree tool is available and we can use it
13695 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13697$as_echo "just compiled" >&6; }
2429c060
PB
13698 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13699 # We already found the complete path
b8025f34 13700 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13702$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13703 elif test "x$target" = "x$host"; then
13704 # We can use an host tool
13705 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13707$as_echo "host tool" >&6; }
be01d343
PB
13708 else
13709 # We need a cross tool
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13711$as_echo "pre-installed" >&6; }
be01d343
PB
13712 fi
13713fi
4b900473 13714
81ecdfbb
RW
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13716$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13717if test "x${build}" != "x${host}" ; then
2429c060
PB
13718 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13719 # We already found the complete path
b8025f34 13720 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13723 else
13724 # Canadian cross, just use what we found
81ecdfbb
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726$as_echo "pre-installed" >&6; }
2429c060 13727 fi
be01d343
PB
13728else
13729 ok=yes
13730 case " ${configdirs} " in
13731 *" gas "*) ;;
13732 *) ok=no ;;
13733 esac
c6b750e1 13734
be01d343
PB
13735 if test $ok = yes; then
13736 # An in-tree tool is available and we can use it
13737 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13739$as_echo "just compiled" >&6; }
2429c060
PB
13740 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13741 # We already found the complete path
b8025f34 13742 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13744$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13745 elif test "x$target" = "x$host"; then
13746 # We can use an host tool
13747 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13749$as_echo "host tool" >&6; }
be01d343
PB
13750 else
13751 # We need a cross tool
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13753$as_echo "pre-installed" >&6; }
be01d343
PB
13754 fi
13755fi
4b900473 13756
81ecdfbb
RW
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13758$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13759if test "x${build}" != "x${host}" ; then
2429c060
PB
13760 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13761 # We already found the complete path
b8025f34 13762 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13764$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13765 else
13766 # Canadian cross, just use what we found
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768$as_echo "pre-installed" >&6; }
2429c060 13769 fi
be01d343
PB
13770else
13771 ok=yes
13772 case " ${configdirs} " in
13773 *" gcc "*) ;;
13774 *) ok=no ;;
13775 esac
c6b750e1 13776
be01d343
PB
13777 if test $ok = yes; then
13778 # An in-tree tool is available and we can use it
13779 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13781$as_echo "just compiled" >&6; }
2429c060
PB
13782 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
b8025f34 13784 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13787 elif test "x$target" = "x$host"; then
13788 # We can use an host tool
13789 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13791$as_echo "host tool" >&6; }
be01d343
PB
13792 else
13793 # We need a cross tool
81ecdfbb
RW
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13795$as_echo "pre-installed" >&6; }
be01d343
PB
13796 fi
13797fi
4b900473 13798
81ecdfbb
RW
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13800$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13801if test "x${build}" != "x${host}" ; then
2429c060
PB
13802 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13803 # We already found the complete path
b8025f34 13804 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13806$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13807 else
13808 # Canadian cross, just use what we found
81ecdfbb
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810$as_echo "pre-installed" >&6; }
2429c060 13811 fi
be01d343
PB
13812else
13813 ok=yes
13814 case " ${configdirs} " in
13815 *" gcc "*) ;;
13816 *) ok=no ;;
13817 esac
13818 case ,${enable_languages}, in
13819 *,c++,*) ;;
13820 *) ok=no ;;
13821 esac
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
95e43135 13824 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826$as_echo "just compiled" >&6; }
2429c060
PB
13827 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
b8025f34 13829 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836$as_echo "host tool" >&6; }
be01d343
PB
13837 else
13838 # We need a cross tool
81ecdfbb
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840$as_echo "pre-installed" >&6; }
be01d343
PB
13841 fi
13842fi
4b900473 13843
81ecdfbb
RW
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13845$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13846if test "x${build}" != "x${host}" ; then
2429c060
PB
13847 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
b8025f34 13849 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13852 else
13853 # Canadian cross, just use what we found
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855$as_echo "pre-installed" >&6; }
2429c060 13856 fi
be01d343
PB
13857else
13858 ok=yes
13859 case " ${configdirs} " in
13860 *" gcc "*) ;;
13861 *) ok=no ;;
13862 esac
13863 case ,${enable_languages}, in
13864 *,c++,*) ;;
13865 *) ok=no ;;
13866 esac
13867 if test $ok = yes; then
13868 # An in-tree tool is available and we can use it
95e43135 13869 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871$as_echo "just compiled" >&6; }
2429c060
PB
13872 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
b8025f34 13874 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881$as_echo "host tool" >&6; }
be01d343
PB
13882 else
13883 # We need a cross tool
81ecdfbb
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885$as_echo "pre-installed" >&6; }
be01d343
PB
13886 fi
13887fi
4b900473 13888
81ecdfbb
RW
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13890$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13891if test "x${build}" != "x${host}" ; then
2429c060
PB
13892 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
b8025f34 13894 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13897 else
13898 # Canadian cross, just use what we found
81ecdfbb
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900$as_echo "pre-installed" >&6; }
2429c060 13901 fi
be01d343
PB
13902else
13903 ok=yes
13904 case " ${configdirs} " in
13905 *" binutils "*) ;;
13906 *) ok=no ;;
13907 esac
c6b750e1 13908
be01d343
PB
13909 if test $ok = yes; then
13910 # An in-tree tool is available and we can use it
13911 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13913$as_echo "just compiled" >&6; }
2429c060
PB
13914 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13915 # We already found the complete path
b8025f34 13916 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13918$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13919 elif test "x$target" = "x$host"; then
13920 # We can use an host tool
13921 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13923$as_echo "host tool" >&6; }
be01d343
PB
13924 else
13925 # We need a cross tool
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927$as_echo "pre-installed" >&6; }
be01d343
PB
13928 fi
13929fi
4b900473 13930
81ecdfbb
RW
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13932$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13933if test "x${build}" != "x${host}" ; then
2429c060
PB
13934 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13935 # We already found the complete path
b8025f34 13936 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13938$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13939 else
13940 # Canadian cross, just use what we found
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942$as_echo "pre-installed" >&6; }
2429c060 13943 fi
be01d343
PB
13944else
13945 ok=yes
13946 case " ${configdirs} " in
13947 *" gcc "*) ;;
13948 *) ok=no ;;
13949 esac
c6b750e1 13950
be01d343
PB
13951 if test $ok = yes; then
13952 # An in-tree tool is available and we can use it
13953 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13955$as_echo "just compiled" >&6; }
2429c060
PB
13956 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
b8025f34 13958 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13961 elif test "x$target" = "x$host"; then
13962 # We can use an host tool
13963 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13965$as_echo "host tool" >&6; }
be01d343
PB
13966 else
13967 # We need a cross tool
81ecdfbb
RW
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969$as_echo "pre-installed" >&6; }
be01d343
PB
13970 fi
13971fi
4b900473 13972
81ecdfbb
RW
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13974$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13975if test "x${build}" != "x${host}" ; then
2429c060
PB
13976 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
b8025f34 13978 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13980$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13981 else
13982 # Canadian cross, just use what we found
81ecdfbb
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984$as_echo "pre-installed" >&6; }
2429c060 13985 fi
be01d343
PB
13986else
13987 ok=yes
13988 case " ${configdirs} " in
13989 *" gcc "*) ;;
13990 *) ok=no ;;
13991 esac
13992 case ,${enable_languages}, in
13993 *,fortran,*) ;;
13994 *) ok=no ;;
13995 esac
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000$as_echo "just compiled" >&6; }
2429c060
PB
14001 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
b8025f34 14003 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010$as_echo "host tool" >&6; }
be01d343
PB
14011 else
14012 # We need a cross tool
81ecdfbb
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014$as_echo "pre-installed" >&6; }
be01d343
PB
14015 fi
14016fi
4b900473 14017
e552509b
ILT
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14019$as_echo_n "checking where to find the target gccgo... " >&6; }
14020if test "x${build}" != "x${host}" ; then
14021 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $GOC_FOR_TARGET`
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
14026 else
14027 # Canadian cross, just use what we found
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029$as_echo "pre-installed" >&6; }
14030 fi
14031else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
14037 case ,${enable_languages}, in
14038 *,go,*) ;;
14039 *) ok=no ;;
14040 esac
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045$as_echo "just compiled" >&6; }
14046 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GOC_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050$as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 GOC_FOR_TARGET='$(GOC)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055$as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059$as_echo "pre-installed" >&6; }
14060 fi
14061fi
14062
81ecdfbb
RW
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14064$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14065if test "x${build}" != "x${host}" ; then
2429c060
PB
14066 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
b8025f34 14068 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14071 else
14072 # Canadian cross, just use what we found
81ecdfbb
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074$as_echo "pre-installed" >&6; }
2429c060 14075 fi
be01d343
PB
14076else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" ld "*) ;;
14080 *) ok=no ;;
14081 esac
c6b750e1 14082
be01d343
PB
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087$as_echo "just compiled" >&6; }
2429c060
PB
14088 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
b8025f34 14090 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
be01d343
PB
14098 else
14099 # We need a cross tool
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
be01d343
PB
14102 fi
14103fi
4b900473 14104
81ecdfbb
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14106$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14107if test "x${build}" != "x${host}" ; then
2429c060
PB
14108 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
b8025f34 14110 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14113 else
14114 # Canadian cross, just use what we found
81ecdfbb
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
2429c060 14117 fi
be01d343 14118else
2429c060
PB
14119 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
b8025f34 14121 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14124 elif test "x$target" = "x$host"; then
be01d343
PB
14125 # We can use an host tool
14126 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128$as_echo "host tool" >&6; }
be01d343
PB
14129 else
14130 # We need a cross tool
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132$as_echo "pre-installed" >&6; }
be01d343
PB
14133 fi
14134fi
4b900473 14135
81ecdfbb
RW
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14137$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14138if test "x${build}" != "x${host}" ; then
2429c060
PB
14139 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
b8025f34 14141 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14144 else
14145 # Canadian cross, just use what we found
81ecdfbb
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147$as_echo "pre-installed" >&6; }
2429c060 14148 fi
be01d343
PB
14149else
14150 ok=yes
14151 case " ${configdirs} " in
14152 *" binutils "*) ;;
14153 *) ok=no ;;
14154 esac
c6b750e1 14155
be01d343
PB
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160$as_echo "just compiled" >&6; }
2429c060
PB
14161 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
b8025f34 14163 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170$as_echo "host tool" >&6; }
be01d343
PB
14171 else
14172 # We need a cross tool
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
be01d343
PB
14175 fi
14176fi
4b900473 14177
6b91c541
AP
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14179$as_echo_n "checking where to find the target objcopy... " >&6; }
14180if test "x${build}" != "x${host}" ; then
14181 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
14186 else
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
14190 fi
14191else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" binutils "*) ;;
14195 *) ok=no ;;
14196 esac
14197
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202$as_echo "just compiled" >&6; }
14203 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207$as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
1b6c0831 14210 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212$as_echo "host tool" >&6; }
14213 else
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216$as_echo "pre-installed" >&6; }
14217 fi
14218fi
14219
81ecdfbb
RW
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14221$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14222if test "x${build}" != "x${host}" ; then
2429c060
PB
14223 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
b8025f34 14225 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14228 else
14229 # Canadian cross, just use what we found
81ecdfbb
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
2429c060 14232 fi
be01d343
PB
14233else
14234 ok=yes
14235 case " ${configdirs} " in
14236 *" binutils "*) ;;
14237 *) ok=no ;;
14238 esac
c6b750e1 14239
be01d343
PB
14240 if test $ok = yes; then
14241 # An in-tree tool is available and we can use it
14242 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244$as_echo "just compiled" >&6; }
2429c060
PB
14245 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
b8025f34 14247 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14250 elif test "x$target" = "x$host"; then
14251 # We can use an host tool
14252 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254$as_echo "host tool" >&6; }
be01d343
PB
14255 else
14256 # We need a cross tool
81ecdfbb
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258$as_echo "pre-installed" >&6; }
be01d343
PB
14259 fi
14260fi
4b900473 14261
81ecdfbb
RW
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14263$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14264if test "x${build}" != "x${host}" ; then
2429c060
PB
14265 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
b8025f34 14267 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14270 else
14271 # Canadian cross, just use what we found
81ecdfbb
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273$as_echo "pre-installed" >&6; }
2429c060 14274 fi
be01d343
PB
14275else
14276 ok=yes
14277 case " ${configdirs} " in
14278 *" binutils "*) ;;
14279 *) ok=no ;;
14280 esac
c6b750e1 14281
be01d343
PB
14282 if test $ok = yes; then
14283 # An in-tree tool is available and we can use it
14284 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286$as_echo "just compiled" >&6; }
2429c060
PB
14287 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
b8025f34 14289 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14292 elif test "x$target" = "x$host"; then
14293 # We can use an host tool
14294 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296$as_echo "host tool" >&6; }
be01d343
PB
14297 else
14298 # We need a cross tool
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
be01d343
PB
14301 fi
14302fi
4b900473 14303
b121d7d4
DD
14304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14305$as_echo_n "checking where to find the target readelf... " >&6; }
14306if test "x${build}" != "x${host}" ; then
14307 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $READELF_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311$as_echo "pre-installed in $ac_dir" >&6; }
14312 else
14313 # Canadian cross, just use what we found
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315$as_echo "pre-installed" >&6; }
14316 fi
14317else
14318 ok=yes
14319 case " ${configdirs} " in
14320 *" binutils "*) ;;
14321 *) ok=no ;;
14322 esac
14323
14324 if test $ok = yes; then
14325 # An in-tree tool is available and we can use it
14326 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328$as_echo "just compiled" >&6; }
14329 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
14331 ac_dir=`dirname $READELF_FOR_TARGET`
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333$as_echo "pre-installed in $ac_dir" >&6; }
14334 elif test "x$target" = "x$host"; then
14335 # We can use an host tool
14336 READELF_FOR_TARGET='$(READELF)'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338$as_echo "host tool" >&6; }
14339 else
14340 # We need a cross tool
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342$as_echo "pre-installed" >&6; }
14343 fi
14344fi
14345
81ecdfbb
RW
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14347$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14348if test "x${build}" != "x${host}" ; then
2429c060
PB
14349 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14350 # We already found the complete path
b8025f34 14351 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14353$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14354 else
14355 # Canadian cross, just use what we found
81ecdfbb
RW
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357$as_echo "pre-installed" >&6; }
2429c060 14358 fi
be01d343
PB
14359else
14360 ok=yes
14361 case " ${configdirs} " in
14362 *" binutils "*) ;;
14363 *) ok=no ;;
14364 esac
c6b750e1 14365
be01d343
PB
14366 if test $ok = yes; then
14367 # An in-tree tool is available and we can use it
9b980aa1 14368 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14370$as_echo "just compiled" >&6; }
2429c060
PB
14371 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
b8025f34 14373 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14376 elif test "x$target" = "x$host"; then
14377 # We can use an host tool
14378 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14380$as_echo "host tool" >&6; }
be01d343
PB
14381 else
14382 # We need a cross tool
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384$as_echo "pre-installed" >&6; }
be01d343
PB
14385 fi
14386fi
4b900473 14387
81ecdfbb
RW
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14389$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14390if test "x${build}" != "x${host}" ; then
2429c060
PB
14391 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14392 # We already found the complete path
b8025f34 14393 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14395$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14396 else
14397 # Canadian cross, just use what we found
81ecdfbb
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399$as_echo "pre-installed" >&6; }
2429c060 14400 fi
be01d343
PB
14401else
14402 ok=yes
14403 case " ${configdirs} " in
14404 *" binutils "*) ;;
14405 *) ok=no ;;
14406 esac
c6b750e1 14407
be01d343
PB
14408 if test $ok = yes; then
14409 # An in-tree tool is available and we can use it
14410 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14412$as_echo "just compiled" >&6; }
2429c060
PB
14413 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
b8025f34 14415 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14418 elif test "x$target" = "x$host"; then
14419 # We can use an host tool
14420 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14422$as_echo "host tool" >&6; }
be01d343
PB
14423 else
14424 # We need a cross tool
81ecdfbb
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426$as_echo "pre-installed" >&6; }
be01d343 14427 fi
a0da8069 14428fi
54752a6b 14429
81ecdfbb
RW
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14431$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14432if test "x${build}" != "x${host}" ; then
14433 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14434 # We already found the complete path
14435 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14437$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14438 else
14439 # Canadian cross, just use what we found
81ecdfbb
RW
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441$as_echo "pre-installed" >&6; }
0c24b341
NC
14442 fi
14443else
14444 ok=yes
14445 case " ${configdirs} " in
14446 *" binutils "*) ;;
14447 *) ok=no ;;
14448 esac
14449
14450 if test $ok = yes; then
14451 # An in-tree tool is available and we can use it
14452 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14454$as_echo "just compiled" >&6; }
0c24b341
NC
14455 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14456 # We already found the complete path
14457 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14459$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14460 elif test "x$target" = "x$host"; then
14461 # We can use an host tool
14462 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14464$as_echo "host tool" >&6; }
0c24b341
NC
14465 else
14466 # We need a cross tool
81ecdfbb
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468$as_echo "pre-installed" >&6; }
0c24b341
NC
14469 fi
14470fi
14471
54752a6b
NN
14472
14473
be01d343 14474
4b900473 14475
a0da8069
NN
14476# Certain tools may need extra flags.
14477AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14478RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14479NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14480
be01d343
PB
14481# When building target libraries, except in a Canadian cross, we use
14482# the same toolchain as the compiler we just built.
14483COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14484COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14485COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14486if test $host = $build; then
14487 case " $configdirs " in
14488 *" gcc "*)
14489 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14490 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14491 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14492 ;;
14493 esac
14494fi
14495
14496
14497
14498
14499
81ecdfbb
RW
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14501$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14502# Check whether --enable-maintainer-mode was given.
14503if test "${enable_maintainer_mode+set}" = set; then :
14504 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14505else
14506 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14507fi
14508
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14510$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14511
14512
14513if test "$USE_MAINTAINER_MODE" = yes; then
14514 MAINTAINER_MODE_TRUE=
14515 MAINTAINER_MODE_FALSE='#'
14516else
14517 MAINTAINER_MODE_TRUE='#'
14518 MAINTAINER_MODE_FALSE=
c6b750e1 14519fi
3d5e36ae
AO
14520MAINT=$MAINTAINER_MODE_TRUE
14521
1d39f329
NN
14522# ---------------------
14523# GCC bootstrap support
14524# ---------------------
14525
14526# Stage specific cflags for build.
14527stage1_cflags="-g"
14528case $build in
14529 vax-*-*)
14530 case ${GCC} in
14531 yes) stage1_cflags="-g -Wa,-J" ;;
14532 *) stage1_cflags="-g -J" ;;
14533 esac ;;
1d39f329
NN
14534esac
14535
1d89b610 14536
1d39f329 14537
8a0d8a5c 14538# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14539# Check whether --enable-stage1-checking was given.
14540if test "${enable_stage1_checking+set}" = set; then :
14541 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14542else
5566c1fa 14543 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14544 # For --disable-checking or implicit --enable-checking=release, avoid
14545 # setting --enable-checking=gc in the default stage1 checking for LTO
14546 # bootstraps. See PR62077.
ce6c656d
L
14547 case $BUILD_CONFIG in
14548 *lto*)
05a13254
NC
14549 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14550 *)
14551 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14552 esac
05a13254
NC
14553 if test "x$enable_checking" = x && \
14554 test -d ${srcdir}/gcc && \
14555 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14556 stage1_checking=--enable-checking=yes,types,extra
14557 fi
8a0d8a5c 14558else
5566c1fa 14559 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14560fi
81ecdfbb 14561fi
8a0d8a5c
PB
14562
14563
c6b750e1 14564
81ecdfbb
RW
14565# Enable -Werror in bootstrap stage2 and later.
14566# Check whether --enable-werror was given.
14567if test "${enable_werror+set}" = set; then :
14568 enableval=$enable_werror;
1d39f329 14569else
a0323144 14570 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14571 enable_werror=yes
79fcd0ec
PB
14572else
14573 enable_werror=no
14574fi
81ecdfbb
RW
14575fi
14576
1a6f2dc7
NN
14577case ${enable_werror} in
14578 yes) stage2_werror_flag="--enable-werror-always" ;;
14579 *) stage2_werror_flag="" ;;
1d39f329
NN
14580esac
14581
14582
82033c9b
JBG
14583# Enable --enable-host-shared.
14584# Check whether --enable-host-shared was given.
14585if test "${enable_host_shared+set}" = set; then :
14586 enableval=$enable_host_shared; host_shared=$enableval
14587else
14588 host_shared=no
14589fi
14590
14591
14592
1b6c0831
L
14593# PR jit/64780: Require the user to explicitly specify
14594# --enable-host-shared if the jit is enabled, hinting
14595# that they might want to do a separate configure/build of
14596# the jit, to avoid users from slowing down the rest of the
14597# compiler by enabling the jit.
14598if test ${host_shared} = "no" ; then
14599 case "${enable_languages}" in
14600 *jit*)
14601 as_fn_error "
14602Enabling language \"jit\" requires --enable-host-shared.
14603
14604--enable-host-shared typically slows the rest of the compiler down by
14605a few %, so you must explicitly enable it.
14606
14607If you want to build both the jit and the regular compiler, it is often
14608best to do this via two separate configure/builds, in separate
14609directories, to avoid imposing the performance cost of
14610--enable-host-shared on the regular compiler." "$LINENO" 5
14611 ;;
14612 *)
14613 ;;
14614 esac
14615fi
14616
e8a5fa9c
RW
14617# Specify what files to not compare during bootstrap.
14618
14619compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14620case "$target" in
14621 hppa*64*-*-hpux*) ;;
14622 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14623 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14624esac
14625
14626
81ecdfbb
RW
14627ac_config_files="$ac_config_files Makefile"
14628
c6b750e1 14629cat >confcache <<\_ACEOF
a0da8069
NN
14630# This file is a shell script that caches the results of configure
14631# tests run on this system so they can be shared between configure
c6b750e1
DJ
14632# scripts and configure runs, see configure's option --config-cache.
14633# It is not useful on other systems. If it contains results you don't
14634# want to keep, you may remove or edit it.
a0da8069 14635#
c6b750e1
DJ
14636# config.status only pays attention to the cache file if you give it
14637# the --recheck option to rerun configure.
a0da8069 14638#
c6b750e1
DJ
14639# `ac_cv_env_foo' variables (set or unset) will be overridden when
14640# loading this file, other *unset* `ac_cv_foo' will be assigned the
14641# following values.
14642
14643_ACEOF
14644
a0da8069
NN
14645# The following way of writing the cache mishandles newlines in values,
14646# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14647# So, we kill variables containing newlines.
a0da8069
NN
14648# Ultrix sh set writes to stderr and can't be redirected directly,
14649# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14650(
14651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14652 eval ac_val=\$$ac_var
14653 case $ac_val in #(
14654 *${as_nl}*)
14655 case $ac_var in #(
14656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14657$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14658 esac
14659 case $ac_var in #(
14660 _ | IFS | as_nl) ;; #(
14661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14662 *) { eval $ac_var=; unset $ac_var;} ;;
14663 esac ;;
14664 esac
14665 done
14666
c6b750e1 14667 (set) 2>&1 |
81ecdfbb
RW
14668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14669 *${as_nl}ac_space=\ *)
14670 # `set' does not quote correctly, so add quotes: double-quote
14671 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14672 sed -n \
14673 "s/'/'\\\\''/g;
14674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14675 ;; #(
c6b750e1
DJ
14676 *)
14677 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14679 ;;
81ecdfbb
RW
14680 esac |
14681 sort
14682) |
c6b750e1 14683 sed '
81ecdfbb 14684 /^ac_cv_env_/b end
c6b750e1 14685 t clear
81ecdfbb 14686 :clear
c6b750e1
DJ
14687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14688 t end
81ecdfbb
RW
14689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14690 :end' >>confcache
14691if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14692 if test -w "$cache_file"; then
14693 test "x$cache_file" != "x/dev/null" &&
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14695$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14696 cat confcache >$cache_file
a0da8069 14697 else
81ecdfbb
RW
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14699$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14700 fi
852e5f18 14701fi
a0da8069 14702rm -f confcache
852e5f18 14703
a0da8069
NN
14704test "x$prefix" = xNONE && prefix=$ac_default_prefix
14705# Let make expand exec_prefix.
14706test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14707
a0da8069
NN
14708# Transform confdefs.h into DEFS.
14709# Protect against shell expansion while executing Makefile rules.
14710# Protect against Makefile macro expansion.
c6b750e1
DJ
14711#
14712# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14713# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14714# look for a macro that doesn't take arguments.
81ecdfbb
RW
14715ac_script='
14716:mline
14717/\\$/{
14718 N
14719 s,\\\n,,
14720 b mline
14721}
c6b750e1 14722t clear
81ecdfbb
RW
14723:clear
14724s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14725t quote
81ecdfbb 14726s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14727t quote
81ecdfbb
RW
14728b any
14729:quote
14730s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14731s/\[/\\&/g
14732s/\]/\\&/g
14733s/\$/$$/g
14734H
14735:any
14736${
14737 g
14738 s/^\n//
14739 s/\n/ /g
14740 p
14741}
14742'
14743DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14744
14745
14746ac_libobjs=
14747ac_ltlibobjs=
14748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14749 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14753 # will be set to the directory where LIBOBJS objects are built.
14754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14756done
14757LIBOBJS=$ac_libobjs
852e5f18 14758
c6b750e1 14759LTLIBOBJS=$ac_ltlibobjs
376a0e54 14760
cac3d6c4 14761
c6b750e1
DJ
14762
14763: ${CONFIG_STATUS=./config.status}
81ecdfbb 14764ac_write_fail=0
c6b750e1
DJ
14765ac_clean_files_save=$ac_clean_files
14766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14769as_write_fail=0
14770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14771#! $SHELL
14772# Generated by $as_me.
a0da8069 14773# Run this file to recreate the current configuration.
a0da8069 14774# Compiler output produced by configure, useful for debugging
c6b750e1 14775# configure, is in config.log if it exists.
376a0e54 14776
c6b750e1
DJ
14777debug=false
14778ac_cs_recheck=false
14779ac_cs_silent=false
c6b750e1 14780
81ecdfbb
RW
14781SHELL=\${CONFIG_SHELL-$SHELL}
14782export SHELL
14783_ASEOF
14784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14785## -------------------- ##
14786## M4sh Initialization. ##
14787## -------------------- ##
14788
14789# Be more Bourne compatible
14790DUALCASE=1; export DUALCASE # for MKS sh
14791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14792 emulate sh
14793 NULLCMD=:
81ecdfbb 14794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14795 # is contrary to our usage. Disable this feature.
14796 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14797 setopt NO_GLOB_SUBST
14798else
14799 case `(set -o) 2>/dev/null` in #(
14800 *posix*) :
14801 set -o posix ;; #(
14802 *) :
14803 ;;
14804esac
c6b750e1 14805fi
c6b750e1 14806
81ecdfbb
RW
14807
14808as_nl='
14809'
14810export as_nl
14811# Printing a long string crashes Solaris 7 /usr/bin/printf.
14812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14815# Prefer a ksh shell builtin over an external printf program on Solaris,
14816# but without wasting forks for bash or zsh.
14817if test -z "$BASH_VERSION$ZSH_VERSION" \
14818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14819 as_echo='print -r --'
14820 as_echo_n='print -rn --'
14821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14822 as_echo='printf %s\n'
14823 as_echo_n='printf %s'
14824else
14825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14827 as_echo_n='/usr/ucb/echo -n'
14828 else
14829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14830 as_echo_n_body='eval
14831 arg=$1;
14832 case $arg in #(
14833 *"$as_nl"*)
14834 expr "X$arg" : "X\\(.*\\)$as_nl";
14835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14836 esac;
14837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14838 '
14839 export as_echo_n_body
14840 as_echo_n='sh -c $as_echo_n_body as_echo'
14841 fi
14842 export as_echo_body
14843 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14844fi
14845
81ecdfbb
RW
14846# The user is always right.
14847if test "${PATH_SEPARATOR+set}" != set; then
14848 PATH_SEPARATOR=:
14849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14851 PATH_SEPARATOR=';'
14852 }
14853fi
14854
14855
14856# IFS
14857# We need space, tab and new line, in precisely that order. Quoting is
14858# there to prevent editors from complaining about space-tab.
14859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14860# splitting by setting IFS to empty value.)
14861IFS=" "" $as_nl"
14862
14863# Find who we are. Look in the path if we contain no directory separator.
14864case $0 in #((
14865 *[\\/]* ) as_myself=$0 ;;
14866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867for as_dir in $PATH
14868do
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14872 done
14873IFS=$as_save_IFS
14874
14875 ;;
14876esac
14877# We did not find ourselves, most probably we were run as `sh COMMAND'
14878# in which case we are not to be found in the path.
14879if test "x$as_myself" = x; then
14880 as_myself=$0
14881fi
14882if test ! -f "$as_myself"; then
14883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14884 exit 1
14885fi
c6b750e1 14886
81ecdfbb
RW
14887# Unset variables that we do not need and which cause bugs (e.g. in
14888# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14889# suppresses any "Segmentation fault" message there. '((' could
14890# trigger a bug in pdksh 5.2.14.
14891for as_var in BASH_ENV ENV MAIL MAILPATH
14892do eval test x\${$as_var+set} = xset \
14893 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14894done
c6b750e1
DJ
14895PS1='$ '
14896PS2='> '
14897PS4='+ '
14898
14899# NLS nuisances.
81ecdfbb
RW
14900LC_ALL=C
14901export LC_ALL
14902LANGUAGE=C
14903export LANGUAGE
14904
14905# CDPATH.
14906(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14907
14908
14909# as_fn_error ERROR [LINENO LOG_FD]
14910# ---------------------------------
14911# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14912# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14913# script with status $?, using 1 if that was 0.
14914as_fn_error ()
14915{
14916 as_status=$?; test $as_status -eq 0 && as_status=1
14917 if test "$3"; then
14918 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14920 fi
81ecdfbb
RW
14921 $as_echo "$as_me: error: $1" >&2
14922 as_fn_exit $as_status
14923} # as_fn_error
14924
14925
14926# as_fn_set_status STATUS
14927# -----------------------
14928# Set $? to STATUS, without forking.
14929as_fn_set_status ()
14930{
14931 return $1
14932} # as_fn_set_status
14933
14934# as_fn_exit STATUS
14935# -----------------
14936# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14937as_fn_exit ()
14938{
14939 set +e
14940 as_fn_set_status $1
14941 exit $1
14942} # as_fn_exit
14943
14944# as_fn_unset VAR
14945# ---------------
14946# Portably unset VAR.
14947as_fn_unset ()
14948{
14949 { eval $1=; unset $1;}
14950}
14951as_unset=as_fn_unset
14952# as_fn_append VAR VALUE
14953# ----------------------
14954# Append the text in VALUE to the end of the definition contained in VAR. Take
14955# advantage of any shell optimizations that allow amortized linear growth over
14956# repeated appends, instead of the typical quadratic growth present in naive
14957# implementations.
14958if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14959 eval 'as_fn_append ()
14960 {
14961 eval $1+=\$2
14962 }'
14963else
14964 as_fn_append ()
14965 {
14966 eval $1=\$$1\$2
14967 }
14968fi # as_fn_append
14969
14970# as_fn_arith ARG...
14971# ------------------
14972# Perform arithmetic evaluation on the ARGs, and store the result in the
14973# global $as_val. Take advantage of shells that can avoid forks. The arguments
14974# must be portable across $(()) and expr.
14975if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14976 eval 'as_fn_arith ()
14977 {
14978 as_val=$(( $* ))
14979 }'
14980else
14981 as_fn_arith ()
14982 {
14983 as_val=`expr "$@" || test $? -eq 1`
14984 }
14985fi # as_fn_arith
14986
c6b750e1 14987
81ecdfbb
RW
14988if expr a : '\(a\)' >/dev/null 2>&1 &&
14989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14990 as_expr=expr
14991else
14992 as_expr=false
14993fi
14994
81ecdfbb 14995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14996 as_basename=basename
14997else
14998 as_basename=false
14999fi
15000
81ecdfbb
RW
15001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15002 as_dirname=dirname
15003else
15004 as_dirname=false
15005fi
c6b750e1 15006
81ecdfbb 15007as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15009 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15011$as_echo X/"$0" |
15012 sed '/^.*\/\([^/][^/]*\)\/*$/{
15013 s//\1/
15014 q
15015 }
15016 /^X\/\(\/\/\)$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\/\(\/\).*/{
15021 s//\1/
15022 q
15023 }
15024 s/.*/./; q'`
c6b750e1 15025
c6b750e1
DJ
15026# Avoid depending upon Character Ranges.
15027as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15028as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15029as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15030as_cr_digits='0123456789'
15031as_cr_alnum=$as_cr_Letters$as_cr_digits
15032
81ecdfbb
RW
15033ECHO_C= ECHO_N= ECHO_T=
15034case `echo -n x` in #(((((
15035-n*)
15036 case `echo 'xy\c'` in
15037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15038 xy) ECHO_C='\c';;
15039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15040 ECHO_T=' ';;
15041 esac;;
15042*)
15043 ECHO_N='-n';;
c6b750e1
DJ
15044esac
15045
81ecdfbb
RW
15046rm -f conf$$ conf$$.exe conf$$.file
15047if test -d conf$$.dir; then
15048 rm -f conf$$.dir/conf$$.file
c6b750e1 15049else
81ecdfbb
RW
15050 rm -f conf$$.dir
15051 mkdir conf$$.dir 2>/dev/null
c6b750e1 15052fi
81ecdfbb
RW
15053if (echo >conf$$.file) 2>/dev/null; then
15054 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15055 as_ln_s='ln -s'
81ecdfbb
RW
15056 # ... but there are two gotchas:
15057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15059 # In both cases, we have to default to `cp -p'.
15060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15061 as_ln_s='cp -p'
15062 elif ln conf$$.file conf$$ 2>/dev/null; then
15063 as_ln_s=ln
15064 else
15065 as_ln_s='cp -p'
c6b750e1 15066 fi
c6b750e1
DJ
15067else
15068 as_ln_s='cp -p'
15069fi
81ecdfbb
RW
15070rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15071rmdir conf$$.dir 2>/dev/null
15072
15073
15074# as_fn_mkdir_p
15075# -------------
15076# Create "$as_dir" as a directory, including parents if necessary.
15077as_fn_mkdir_p ()
15078{
15079
15080 case $as_dir in #(
15081 -*) as_dir=./$as_dir;;
15082 esac
15083 test -d "$as_dir" || eval $as_mkdir_p || {
15084 as_dirs=
15085 while :; do
15086 case $as_dir in #(
15087 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15088 *) as_qdir=$as_dir;;
15089 esac
15090 as_dirs="'$as_qdir' $as_dirs"
15091 as_dir=`$as_dirname -- "$as_dir" ||
15092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15093 X"$as_dir" : 'X\(//\)[^/]' \| \
15094 X"$as_dir" : 'X\(//\)$' \| \
15095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15096$as_echo X"$as_dir" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15098 s//\1/
15099 q
15100 }
15101 /^X\(\/\/\)[^/].*/{
15102 s//\1/
15103 q
15104 }
15105 /^X\(\/\/\)$/{
15106 s//\1/
15107 q
15108 }
15109 /^X\(\/\).*/{
15110 s//\1/
15111 q
15112 }
15113 s/.*/./; q'`
15114 test -d "$as_dir" && break
15115 done
15116 test -z "$as_dirs" || eval "mkdir $as_dirs"
15117 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15118
c6b750e1 15119
81ecdfbb 15120} # as_fn_mkdir_p
c6b750e1 15121if mkdir -p . 2>/dev/null; then
81ecdfbb 15122 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15123else
15124 test -d ./-p && rmdir ./-p
15125 as_mkdir_p=false
15126fi
15127
81ecdfbb
RW
15128if test -x / >/dev/null 2>&1; then
15129 as_test_x='test -x'
15130else
15131 if ls -dL / >/dev/null 2>&1; then
15132 as_ls_L_option=L
15133 else
15134 as_ls_L_option=
15135 fi
15136 as_test_x='
15137 eval sh -c '\''
15138 if test -d "$1"; then
15139 test -d "$1/.";
15140 else
15141 case $1 in #(
15142 -*)set "./$1";;
15143 esac;
15144 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15145 ???[sx]*):;;*)false;;esac;fi
15146 '\'' sh
15147 '
15148fi
15149as_executable_p=$as_test_x
c6b750e1
DJ
15150
15151# Sed expression to map a string onto a valid CPP name.
15152as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15153
15154# Sed expression to map a string onto a valid variable name.
15155as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15156
15157
c6b750e1 15158exec 6>&1
81ecdfbb
RW
15159## ----------------------------------- ##
15160## Main body of $CONFIG_STATUS script. ##
15161## ----------------------------------- ##
15162_ASEOF
15163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15164
15165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15167# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15168# values after options handling.
15169ac_log="
c6b750e1 15170This file was extended by $as_me, which was
81ecdfbb 15171generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15172
15173 CONFIG_FILES = $CONFIG_FILES
15174 CONFIG_HEADERS = $CONFIG_HEADERS
15175 CONFIG_LINKS = $CONFIG_LINKS
15176 CONFIG_COMMANDS = $CONFIG_COMMANDS
15177 $ $0 $@
15178
81ecdfbb
RW
15179on `(hostname || uname -n) 2>/dev/null | sed 1q`
15180"
15181
c6b750e1
DJ
15182_ACEOF
15183
81ecdfbb
RW
15184case $ac_config_files in *"
15185"*) set x $ac_config_files; shift; ac_config_files=$*;;
15186esac
c6b750e1 15187
c6b750e1 15188
c6b750e1 15189
81ecdfbb
RW
15190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191# Files that config.status was made for.
15192config_files="$ac_config_files"
c6b750e1 15193
81ecdfbb 15194_ACEOF
c6b750e1 15195
81ecdfbb 15196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15197ac_cs_usage="\
81ecdfbb
RW
15198\`$as_me' instantiates files and other configuration actions
15199from templates according to the current configuration. Unless the files
15200and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15201
81ecdfbb 15202Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15203
15204 -h, --help print this help, then exit
81ecdfbb
RW
15205 -V, --version print version number and configuration settings, then exit
15206 -q, --quiet, --silent
15207 do not print progress messages
c6b750e1
DJ
15208 -d, --debug don't remove temporary files
15209 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15210 --file=FILE[:TEMPLATE]
15211 instantiate the configuration file FILE
c6b750e1
DJ
15212
15213Configuration files:
15214$config_files
15215
81ecdfbb 15216Report bugs to the package provider."
c6b750e1 15217
81ecdfbb
RW
15218_ACEOF
15219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15220ac_cs_version="\\
15221config.status
81ecdfbb
RW
15222configured by $0, generated by GNU Autoconf 2.64,
15223 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15224
81ecdfbb 15225Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15226This config.status script is free software; the Free Software Foundation
15227gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15228
15229ac_pwd='$ac_pwd'
15230srcdir='$srcdir'
15231INSTALL='$INSTALL'
8e957354 15232AWK='$AWK'
81ecdfbb 15233test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15234_ACEOF
15235
81ecdfbb
RW
15236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15238ac_need_defaults=:
15239while test $# != 0
a0da8069 15240do
c6b750e1
DJ
15241 case $1 in
15242 --*=*)
81ecdfbb
RW
15243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15245 ac_shift=:
15246 ;;
81ecdfbb 15247 *)
c6b750e1
DJ
15248 ac_option=$1
15249 ac_optarg=$2
15250 ac_shift=shift
15251 ;;
c6b750e1
DJ
15252 esac
15253
15254 case $ac_option in
15255 # Handling of the options.
a0da8069 15256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15257 ac_cs_recheck=: ;;
81ecdfbb
RW
15258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15259 $as_echo "$ac_cs_version"; exit ;;
15260 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15261 debug=: ;;
15262 --file | --fil | --fi | --f )
15263 $ac_shift
81ecdfbb
RW
15264 case $ac_optarg in
15265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15266 esac
15267 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15268 ac_need_defaults=false;;
81ecdfbb
RW
15269 --he | --h | --help | --hel | -h )
15270 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15273 ac_cs_silent=: ;;
15274
15275 # This is an error.
81ecdfbb
RW
15276 -*) as_fn_error "unrecognized option: \`$1'
15277Try \`$0 --help' for more information." ;;
c6b750e1 15278
81ecdfbb
RW
15279 *) as_fn_append ac_config_targets " $1"
15280 ac_need_defaults=false ;;
c6b750e1 15281
376a0e54 15282 esac
c6b750e1 15283 shift
376a0e54
CM
15284done
15285
c6b750e1 15286ac_configure_extra_args=
376a0e54 15287
c6b750e1
DJ
15288if $ac_cs_silent; then
15289 exec 6>/dev/null
15290 ac_configure_extra_args="$ac_configure_extra_args --silent"
15291fi
376a0e54 15292
c6b750e1 15293_ACEOF
81ecdfbb 15294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15295if \$ac_cs_recheck; then
81ecdfbb
RW
15296 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15297 shift
15298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15299 CONFIG_SHELL='$SHELL'
15300 export CONFIG_SHELL
15301 exec "\$@"
c6b750e1
DJ
15302fi
15303
15304_ACEOF
81ecdfbb
RW
15305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15306exec 5>>config.log
15307{
15308 echo
15309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15310## Running $as_me. ##
15311_ASBOX
15312 $as_echo "$ac_log"
15313} >&5
c6b750e1 15314
81ecdfbb
RW
15315_ACEOF
15316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15317#
15318# INIT-COMMANDS
15319#
15320extrasub_build="$extrasub_build"
15321 extrasub_host="$extrasub_host"
15322 extrasub_target="$extrasub_target"
15323
81ecdfbb 15324_ACEOF
c6b750e1 15325
81ecdfbb 15326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15327
81ecdfbb 15328# Handling of arguments.
c6b750e1
DJ
15329for ac_config_target in $ac_config_targets
15330do
81ecdfbb
RW
15331 case $ac_config_target in
15332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15333
15334 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15335 esac
15336done
15337
81ecdfbb 15338
c6b750e1
DJ
15339# If the user did not use the arguments to specify the items to instantiate,
15340# then the envvar interface is used. Set only those that are not.
15341# We use the long form for the default assignment because of an extremely
15342# bizarre bug on SunOS 4.1.3.
15343if $ac_need_defaults; then
15344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15345fi
15346
15347# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15348# simply because there is no reason against having it here, and in addition,
c6b750e1 15349# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15350# Hook for its removal unless debugging.
15351# Note that there is a small window in which the directory will not be cleaned:
15352# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15353$debug ||
15354{
81ecdfbb
RW
15355 tmp=
15356 trap 'exit_status=$?
15357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15358' 0
15359 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15360}
c6b750e1
DJ
15361# Create a (secure) tmp directory for tmp files.
15362
15363{
81ecdfbb 15364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15365 test -n "$tmp" && test -d "$tmp"
15366} ||
15367{
81ecdfbb
RW
15368 tmp=./conf$$-$RANDOM
15369 (umask 077 && mkdir "$tmp")
15370} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15371
15372# Set up the scripts for CONFIG_FILES section.
15373# No need to generate them if there are no CONFIG_FILES.
15374# This happens for instance with `./config.status config.h'.
15375if test -n "$CONFIG_FILES"; then
15376
15377if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15378 ac_cs_awk_getline=:
15379 ac_cs_awk_pipe_init=
15380 ac_cs_awk_read_file='
15381 while ((getline aline < (F[key])) > 0)
15382 print(aline)
15383 close(F[key])'
15384 ac_cs_awk_pipe_fini=
15385else
15386 ac_cs_awk_getline=false
15387 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15388 ac_cs_awk_read_file='
15389 print "|#_!!_#|"
15390 print "cat " F[key] " &&"
15391 '$ac_cs_awk_pipe_init
15392 # The final `:' finishes the AND list.
15393 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15394fi
15395ac_cr=`echo X | tr X '\015'`
15396# On cygwin, bash can eat \r inside `` if the user requested igncr.
15397# But we know of no other shell where ac_cr would be empty at this
15398# point, so we can use a bashism as a fallback.
15399if test "x$ac_cr" = x; then
15400 eval ac_cr=\$\'\\r\'
15401fi
15402ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15403if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15404 ac_cs_awk_cr='\r'
15405else
15406 ac_cs_awk_cr=$ac_cr
15407fi
15408
15409echo 'BEGIN {' >"$tmp/subs1.awk" &&
15410_ACEOF
15411
15412# Create commands to substitute file output variables.
c6b750e1 15413{
81ecdfbb
RW
15414 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15415 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15416 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15417 echo "_ACAWK" &&
15418 echo "_ACEOF"
15419} >conf$$files.sh &&
15420. ./conf$$files.sh ||
15421 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15422rm -f conf$$files.sh
c6b750e1 15423
81ecdfbb
RW
15424{
15425 echo "cat >conf$$subs.awk <<_ACEOF" &&
15426 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15427 echo "_ACEOF"
15428} >conf$$subs.sh ||
15429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15430ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15431ac_delim='%!_!# '
15432for ac_last_try in false false false false false :; do
15433 . ./conf$$subs.sh ||
15434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15435
15436 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15437 if test $ac_delim_n = $ac_delim_num; then
15438 break
15439 elif $ac_last_try; then
15440 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15441 else
15442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15443 fi
15444done
15445rm -f conf$$subs.sh
15446
15447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15449_ACEOF
81ecdfbb
RW
15450sed -n '
15451h
15452s/^/S["/; s/!.*/"]=/
15453p
15454g
15455s/^[^!]*!//
15456:repl
15457t repl
15458s/'"$ac_delim"'$//
15459t delim
15460:nl
15461h
15462s/\(.\{148\}\).*/\1/
15463t more1
15464s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15465p
15466n
15467b repl
15468:more1
15469s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15470p
15471g
15472s/.\{148\}//
15473t nl
15474:delim
15475h
15476s/\(.\{148\}\).*/\1/
15477t more2
15478s/["\\]/\\&/g; s/^/"/; s/$/"/
15479p
15480b
15481:more2
15482s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15483p
15484g
15485s/.\{148\}//
15486t delim
15487' <conf$$subs.awk | sed '
15488/^[^""]/{
15489 N
15490 s/\n//
15491}
15492' >>$CONFIG_STATUS || ac_write_fail=1
15493rm -f conf$$subs.awk
15494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495_ACAWK
15496cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15497 for (key in S) S_is_set[key] = 1
15498 FS = "\a"
15499 \$ac_cs_awk_pipe_init
15500}
15501{
15502 line = $ 0
15503 nfields = split(line, field, "@")
15504 substed = 0
15505 len = length(field[1])
15506 for (i = 2; i < nfields; i++) {
15507 key = field[i]
15508 keylen = length(key)
15509 if (S_is_set[key]) {
15510 value = S[key]
15511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15512 len += length(value) + length(field[++i])
15513 substed = 1
15514 } else
15515 len += 1 + keylen
15516 }
15517 if (nfields == 3 && !substed) {
15518 key = field[2]
15519 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15520 \$ac_cs_awk_read_file
15521 next
15522 }
15523 }
15524 print line
15525}
15526\$ac_cs_awk_pipe_fini
15527_ACAWK
15528_ACEOF
15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15532else
15533 cat
15534fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15535 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15536_ACEOF
15537
15538# VPATH may cause trouble with some makes, so we remove $(srcdir),
15539# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15540# trailing colons and then remove the whole line if VPATH becomes empty
15541# (actually we leave an empty line to preserve line numbers).
15542if test "x$srcdir" = x.; then
15543 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15544s/:*\$(srcdir):*/:/
15545s/:*\${srcdir}:*/:/
15546s/:*@srcdir@:*/:/
15547s/^\([^=]*=[ ]*\):*/\1/
15548s/:*$//
15549s/^[^=]*=[ ]*$//
15550}'
15551fi
c6b750e1 15552
81ecdfbb
RW
15553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554fi # test -n "$CONFIG_FILES"
c6b750e1 15555
c6b750e1 15556
81ecdfbb
RW
15557eval set X " :F $CONFIG_FILES "
15558shift
15559for ac_tag
15560do
15561 case $ac_tag in
15562 :[FHLC]) ac_mode=$ac_tag; continue;;
15563 esac
15564 case $ac_mode$ac_tag in
15565 :[FHL]*:*);;
15566 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15567 :[FH]-) ac_tag=-:-;;
15568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15569 esac
15570 ac_save_IFS=$IFS
15571 IFS=:
15572 set x $ac_tag
15573 IFS=$ac_save_IFS
15574 shift
15575 ac_file=$1
15576 shift
252b5132 15577
81ecdfbb
RW
15578 case $ac_mode in
15579 :L) ac_source=$1;;
15580 :[FH])
15581 ac_file_inputs=
15582 for ac_f
15583 do
15584 case $ac_f in
15585 -) ac_f="$tmp/stdin";;
15586 *) # Look for the file first in the build tree, then in the source tree
15587 # (if the path is not absolute). The absolute path cannot be DOS-style,
15588 # because $ac_f cannot contain `:'.
15589 test -f "$ac_f" ||
15590 case $ac_f in
15591 [\\/$]*) false;;
15592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15593 esac ||
15594 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15595 esac
15596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15597 as_fn_append ac_file_inputs " '$ac_f'"
15598 done
c6b750e1 15599
81ecdfbb
RW
15600 # Let's still pretend it is `configure' which instantiates (i.e., don't
15601 # use $as_me), people would be surprised to read:
15602 # /* config.h. Generated by config.status. */
15603 configure_input='Generated from '`
15604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15605 `' by configure.'
15606 if test x"$ac_file" != x-; then
15607 configure_input="$ac_file. $configure_input"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15609$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15610 fi
81ecdfbb
RW
15611 # Neutralize special characters interpreted by sed in replacement strings.
15612 case $configure_input in #(
15613 *\&* | *\|* | *\\* )
15614 ac_sed_conf_input=`$as_echo "$configure_input" |
15615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15616 *) ac_sed_conf_input=$configure_input;;
15617 esac
cac3d6c4 15618
81ecdfbb
RW
15619 case $ac_tag in
15620 *:-:* | *:-) cat >"$tmp/stdin" \
15621 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15622 esac
15623 ;;
a0da8069 15624 esac
252b5132 15625
81ecdfbb 15626 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$ac_file" : 'X\(//\)[^/]' \| \
15629 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15631$as_echo X"$ac_file" |
15632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15633 s//\1/
15634 q
15635 }
15636 /^X\(\/\/\)[^/].*/{
15637 s//\1/
15638 q
15639 }
15640 /^X\(\/\/\)$/{
15641 s//\1/
15642 q
15643 }
15644 /^X\(\/\).*/{
15645 s//\1/
15646 q
15647 }
15648 s/.*/./; q'`
15649 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15650 ac_builddir=.
252b5132 15651
81ecdfbb
RW
15652case "$ac_dir" in
15653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15654*)
15655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15656 # A ".." for each directory in $ac_dir_suffix.
15657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15658 case $ac_top_builddir_sub in
15659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15661 esac ;;
15662esac
15663ac_abs_top_builddir=$ac_pwd
15664ac_abs_builddir=$ac_pwd$ac_dir_suffix
15665# for backward compatibility:
15666ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15667
15668case $srcdir in
81ecdfbb 15669 .) # We are building in place.
c6b750e1 15670 ac_srcdir=.
81ecdfbb
RW
15671 ac_top_srcdir=$ac_top_builddir_sub
15672 ac_abs_top_srcdir=$ac_pwd ;;
15673 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15674 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15675 ac_top_srcdir=$srcdir
15676 ac_abs_top_srcdir=$srcdir ;;
15677 *) # Relative name.
15678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_build_prefix$srcdir
15680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15681esac
81ecdfbb 15682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15683
252b5132 15684
81ecdfbb
RW
15685 case $ac_mode in
15686 :F)
15687 #
15688 # CONFIG_FILE
15689 #
c6b750e1
DJ
15690
15691 case $INSTALL in
15692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15694 esac
81ecdfbb 15695_ACEOF
252b5132 15696
81ecdfbb
RW
15697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698# If the template does not know about datarootdir, expand it.
15699# FIXME: This hack should be removed a few years after 2.60.
15700ac_datarootdir_hack=; ac_datarootdir_seen=
15701ac_sed_dataroot='
15702/datarootdir/ {
15703 p
15704 q
15705}
15706/@datadir@/p
15707/@docdir@/p
15708/@infodir@/p
15709/@localedir@/p
15710/@mandir@/p'
15711case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15712*datarootdir*) ac_datarootdir_seen=yes;;
15713*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15715$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15716_ACEOF
81ecdfbb
RW
15717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15718 ac_datarootdir_hack='
15719 s&@datadir@&$datadir&g
15720 s&@docdir@&$docdir&g
15721 s&@infodir@&$infodir&g
15722 s&@localedir@&$localedir&g
15723 s&@mandir@&$mandir&g
15724 s&\\\${datarootdir}&$datarootdir&g' ;;
15725esac
15726_ACEOF
15727
15728# Neutralize VPATH when `$srcdir' = `.'.
15729# Shell code in configure.ac might set extrasub.
15730# FIXME: do we really want to maintain this feature?
15731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15733$extrasub
15734_ACEOF
81ecdfbb 15735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15736:t
15737/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15738s|@configure_input@|$ac_sed_conf_input|;t t
15739s&@top_builddir@&$ac_top_builddir_sub&;t t
15740s&@top_build_prefix@&$ac_top_build_prefix&;t t
15741s&@srcdir@&$ac_srcdir&;t t
15742s&@abs_srcdir@&$ac_abs_srcdir&;t t
15743s&@top_srcdir@&$ac_top_srcdir&;t t
15744s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15745s&@builddir@&$ac_builddir&;t t
15746s&@abs_builddir@&$ac_abs_builddir&;t t
15747s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15748s&@INSTALL@&$ac_INSTALL&;t t
15749$ac_datarootdir_hack
15750"
15751eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15752if $ac_cs_awk_getline; then
15753 $AWK -f "$tmp/subs.awk"
15754else
15755 $AWK -f "$tmp/subs.awk" | $SHELL
15756fi >$tmp/out \
15757 || as_fn_error "could not create $ac_file" "$LINENO" 5
15758
15759test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15760 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15763which seems to be undefined. Please make sure it is defined." >&5
15764$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765which seems to be undefined. Please make sure it is defined." >&2;}
15766
15767 rm -f "$tmp/stdin"
15768 case $ac_file in
15769 -) cat "$tmp/out" && rm -f "$tmp/out";;
15770 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15771 esac \
15772 || as_fn_error "could not create $ac_file" "$LINENO" 5
15773 ;;
c148b4cb 15774
c148b4cb 15775
c148b4cb 15776
81ecdfbb
RW
15777 esac
15778
06a51eac
RW
15779
15780 case $ac_file$ac_mode in
15781 "Makefile":F) sed "$extrasub_build" Makefile |
15782 sed "$extrasub_host" |
15783 sed "$extrasub_target" > mf$$
15784 mv -f mf$$ Makefile ;;
15785
15786 esac
81ecdfbb
RW
15787done # for ac_tag
15788
15789
15790as_fn_exit 0
c6b750e1 15791_ACEOF
c6b750e1
DJ
15792ac_clean_files=$ac_clean_files_save
15793
81ecdfbb
RW
15794test $ac_write_fail = 0 ||
15795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15796
c6b750e1
DJ
15797
15798# configure is writing to config.log, and then calls config.status.
15799# config.status does its own redirection, appending to config.log.
15800# Unfortunately, on DOS this fails, as config.log is still kept open
15801# by configure, so config.status won't be able to write to it; its
15802# output is simply discarded. So we exec the FD to /dev/null,
15803# effectively closing config.log, so it can be properly (re)opened and
15804# appended to by config.status. When coming back to configure, we
15805# need to make the FD available again.
15806if test "$no_create" != yes; then
15807 ac_cs_success=:
15808 ac_config_status_args=
15809 test "$silent" = yes &&
15810 ac_config_status_args="$ac_config_status_args --quiet"
15811 exec 5>/dev/null
15812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15813 exec 5>>config.log
15814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15815 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15816 $ac_cs_success || as_fn_exit $?
15817fi
15818if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15820$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15821fi
c148b4cb 15822