]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Sync toplevel files binutils-gdb
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
9bccfdf5 577OBJCOPY_FOR_TARGET
5213506e
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
632e2a07 584GOC_FOR_TARGET
5213506e
RW
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
e7a82751 590READELF
5213506e
RW
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
5213506e
RW
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
632e2a07 617GOC_FOR_BUILD
5213506e
RW
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
aae29963 627target_configdirs
5213506e 628configdirs
5213506e 629build_configdirs
5213506e
RW
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
ffedf511
RW
637target_configargs
638host_configargs
639build_configargs
e12c4094 640BUILD_CONFIG
6f57bdf6 641LDFLAGS_FOR_TARGET
5213506e
RW
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
1c01ebf6 646extra_host_zlib_configure_flags
d7f09764 647extra_host_libiberty_configure_flags
fca38047 648stage1_languages
45b3824d
TS
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
33ad93b9 651islinc
eae1a5d4 652isllibs
5213506e 653poststage1_ldflags
ed2eaa9f 654poststage1_libs
5213506e 655stage1_ldflags
0b21f5d3 656stage1_libs
0ff2d841 657extra_isl_gmp_configure_flags
5213506e
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
a4a2c37d 676EXTRA_CONFIGARGS_LIBJAVA
5f520819 677extra_liboffloadmic_configure_flags
5213506e
RW
678target_subdir
679host_subdir
680build_subdir
681build_libsubdir
87264276
PB
682AWK
683SED
5213506e
RW
684LN_S
685LN
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697target_noncanonical
698host_noncanonical
699build_noncanonical
700build_os
701build_vendor
702build_cpu
703build
704TOPLEVEL_CONFIGURE_ARGUMENTS
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
735PACKAGE_URL
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files='serialization_dependencies
744host_makefile_frag
745target_makefile_frag
746alphaieee_frag
747ospace_frag'
748ac_user_opts='
749enable_option_checking
750with_build_libsubdir
85c64bbe
BS
751enable_as_accelerator_for
752enable_offload_targets
5213506e 753enable_gold
21539e2e 754enable_ld
87e6d9dc
TB
755enable_libquadmath
756enable_libquadmath_support
5213506e
RW
757enable_libada
758enable_libssp
1873ec0c 759enable_libstdcxx
5f520819 760enable_liboffloadmic
a4a2c37d 761enable_static_libjava
ff3ac0f4 762enable_bootstrap
5213506e
RW
763with_mpc
764with_mpc_include
765with_mpc_lib
766with_mpfr_dir
767with_mpfr
768with_mpfr_include
769with_mpfr_lib
770with_gmp_dir
771with_gmp
772with_gmp_include
773with_gmp_lib
774with_host_libstdcxx
5213506e 775with_stage1_libs
0b21f5d3 776with_stage1_ldflags
5213506e 777with_boot_libs
ed2eaa9f 778with_boot_ldflags
33ad93b9
RG
779with_isl
780with_isl_include
781with_isl_lib
782enable_isl_version_check
d7f09764 783enable_lto
45b3824d
TS
784enable_linker_plugin_configure_flags
785enable_linker_plugin_flags
5213506e
RW
786enable_stage1_languages
787enable_objc_gc
788with_build_sysroot
789with_debug_prefix_map
5646b7b9 790with_build_config
beeda1d9 791enable_vtable_verify
5213506e
RW
792enable_serial_configure
793with_build_time_tools
794enable_maintainer_mode
795enable_stage1_checking
796enable_werror
459260ec 797enable_host_shared
5213506e
RW
798'
799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805LIBS
806CPPFLAGS
807CXX
808CXXFLAGS
809CCC
ffedf511
RW
810build_configargs
811host_configargs
812target_configargs
5213506e
RW
813AR
814AS
815DLLTOOL
816LD
817LIPO
818NM
819RANLIB
820STRIP
821WINDRES
822WINDMC
823OBJCOPY
824OBJDUMP
e7a82751 825READELF
5213506e
RW
826CC_FOR_TARGET
827CXX_FOR_TARGET
828GCC_FOR_TARGET
829GCJ_FOR_TARGET
830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
9bccfdf5 838OBJCOPY_FOR_TARGET
5213506e
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
e7a82751 841READELF_FOR_TARGET
5213506e
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
671aa708
NN
846
847# Initialize some variables set by options.
1c710c3c
DJ
848ac_init_help=
849ac_init_version=false
5213506e
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
671aa708
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
1c710c3c 854cache_file=/dev/null
671aa708 855exec_prefix=NONE
671aa708 856no_create=
671aa708
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
671aa708
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
1c710c3c
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.
5213506e 874# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
5213506e
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
671aa708
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
671aa708
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
5213506e
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'
79c06341 894
671aa708 895ac_prev=
5213506e 896ac_dashdash=
671aa708
NN
897for ac_option
898do
671aa708
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
5213506e 901 eval $ac_prev=\$ac_option
671aa708
NN
902 ac_prev=
903 continue
904 fi
79c06341 905
5213506e
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
671aa708
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
5213506e
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
671aa708
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 920 bindir=$ac_optarg ;;
671aa708
NN
921
922 -build | --build | --buil | --bui | --bu)
1c710c3c 923 ac_prev=build_alias ;;
671aa708 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 925 build_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
671aa708 936
5213506e 937 -datadir | --datadir | --datadi | --datad)
671aa708 938 ac_prev=datadir ;;
5213506e 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 940 datadir=$ac_optarg ;;
671aa708 941
5213506e
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
671aa708 949 -disable-* | --disable-*)
5213506e 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 951 # Reject names that are not valid shell variable names.
5213506e
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 ;;
671aa708
NN
974
975 -enable-* | --enable-*)
5213506e 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 977 # Reject names that are not valid shell variable names.
5213506e
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=', ';;
2aeb72e9 988 esac
5213506e 989 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
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=*)
1c710c3c 998 exec_prefix=$ac_optarg ;;
671aa708
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1c710c3c
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 ;;
671aa708
NN
1010
1011 -host | --host | --hos | --ho)
1c710c3c 1012 ac_prev=host_alias ;;
671aa708 1013 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1014 host_alias=$ac_optarg ;;
671aa708 1015
5213506e
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
671aa708
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=*)
1c710c3c 1027 includedir=$ac_optarg ;;
671aa708
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1032 infodir=$ac_optarg ;;
671aa708
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1037 libdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1044 libexecdir=$ac_optarg ;;
671aa708 1045
5213506e
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
671aa708 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1052 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1056 localstatedir=$ac_optarg ;;
671aa708
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1061 mandir=$ac_optarg ;;
671aa708
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 \
1c710c3c 1068 | --no-cr | --no-c | -n)
671aa708
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=*)
1c710c3c 1082 oldincludedir=$ac_optarg ;;
671aa708
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1087 prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1094 program_prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1101 program_suffix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1118 program_transform_name=$ac_optarg ;;
671aa708 1119
5213506e
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
671aa708
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=*)
1c710c3c 1138 sbindir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1149 sharedstatedir=$ac_optarg ;;
671aa708
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1c710c3c 1154 site=$ac_optarg ;;
671aa708
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1159 srcdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1166 sysconfdir=$ac_optarg ;;
671aa708
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1169 ac_prev=target_alias ;;
671aa708 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1171 target_alias=$ac_optarg ;;
671aa708
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1c710c3c
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
671aa708
NN
1178
1179 -with-* | --with-*)
5213506e 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1181 # Reject names that are not valid shell variable names.
5213506e
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=', ';;
2aeb72e9 1192 esac
5213506e 1193 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1194
1195 -without-* | --without-*)
5213506e 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1197 # Reject names that are not valid shell variable names.
5213506e
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 ;;
671aa708
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=*)
1c710c3c 1220 x_includes=$ac_optarg ;;
671aa708
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=*)
1c710c3c 1227 x_libraries=$ac_optarg ;;
671aa708 1228
5213506e
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
671aa708
NN
1231 ;;
1232
1c710c3c
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
5213506e
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
1c710c3c
DJ
1241 export $ac_envvar ;;
1242
671aa708 1243 *)
1c710c3c 1244 # FIXME: should be removed in autoconf 3.0.
5213506e 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
1c710c3c 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1256 as_fn_error "missing argument to $ac_option"
af71363e 1257fi
af71363e 1258
5213506e
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 ;;
2aeb72e9 1264 esac
5213506e 1265fi
2aeb72e9 1266
5213506e
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
2aeb72e9 1272do
5213506e
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.
2aeb72e9 1281 case $ac_val in
5213506e
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1284 esac
5213506e 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1286done
1287
1c710c3c
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
0b0dc272 1294
1c710c3c
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
5213506e 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
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
671aa708 1310
671aa708 1311
5213506e
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
671aa708
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
5213506e
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'`
671aa708 1347 srcdir=$ac_confdir
5213506e 1348 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
5213506e
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
87841584
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
ac9e6043
RW
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
5213506e
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
1c710c3c
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
1c710c3c
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1415 [$ac_default_prefix]
1c710c3c 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1417 [PREFIX]
1c710c3c
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:
5213506e
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]
1c710c3c
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
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
5213506e 1467 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
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
21539e2e 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1479 --disable-libquadmath do not build libquadmath directory
1480 --disable-libquadmath-support
1481 disable libquadmath support for Fortran
30b74385
RW
1482 --enable-libada build libada directory
1483 --enable-libssp build libssp directory
1873ec0c 1484 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1485 --enable-liboffloadmic=ARG
1486 build liboffloadmic [ARG={no,host,target}]
a4a2c37d
MK
1487 --enable-static-libjava[=ARG]
1488 build static libjava [default=no]
ff3ac0f4 1489 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1490 --disable-isl-version-check
1491 disable check for ISL version
d7f09764 1492 --enable-lto enable link time optimization support
45b3824d
TS
1493 --enable-linker-plugin-configure-flags=FLAGS
1494 additional flags for configuring linker plugins
1495 [none]
1496 --enable-linker-plugin-flags=FLAGS
1497 additional flags for configuring and building linker
1498 plugins [none]
33e39b66
AS
1499 --enable-stage1-languages[=all]
1500 choose additional languages to build during stage1.
1501 Mostly useful for compiler development
1502 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1503 Objective-C runtime
318a4e6d 1504 --enable-vtable-verify Enable vtable verification feature
30b74385 1505 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1506 force sequential configuration of sub-packages for
1507 the host, target or build machine, or all
1508 sub-packages
1509 --enable-maintainer-mode
1510 enable make rules and dependencies not useful (and
1511 sometimes confusing) to the casual installer
1512 --enable-stage1-checking[=all]
1513 choose additional checking for stage1 of the
1514 compiler
1c710c3c 1515 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1516 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1517
1518Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1522 --with-mpc=PATH specify prefix directory for installed MPC package.
1523 Equivalent to --with-mpc-include=PATH/include plus
1524 --with-mpc-lib=PATH/lib
1525 --with-mpc-include=PATH specify directory for installed MPC include files
1526 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1527 --with-mpfr-dir=PATH this option has been REMOVED
1528 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1529 Equivalent to --with-mpfr-include=PATH/include plus
1530 --with-mpfr-lib=PATH/lib
1c710c3c 1531 --with-mpfr-include=PATH
30b74385
RW
1532 specify directory for installed MPFR include files
1533 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1534 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1535 --with-gmp=PATH specify prefix directory for the installed GMP
1536 package. Equivalent to
1537 --with-gmp-include=PATH/include plus
1538 --with-gmp-lib=PATH/lib
30b74385
RW
1539 --with-gmp-include=PATH specify directory for installed GMP include files
1540 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1541 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1542 linking with PPL
0b21f5d3 1543 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
33e39b66
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
33ad93b9 1549 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1550 package. Equivalent to
33ad93b9
RG
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
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
30b74385 1555 --with-build-sysroot=SYSROOT
1c710c3c 1556 use sysroot as the system root during the build
c8aea42c 1557 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
30b74385 1561 --with-build-time-tools=PATH
1c710c3c 1562 use given path to find target tools during the build
1c710c3c
DJ
1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
5213506e
RW
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
ffedf511
RW
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
278a7a38
AO
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
901119ae 1589 WINDMC WINDMC for the host
278a7a38
AO
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
e7a82751 1592 READELF READELF for the host
278a7a38
AO
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
632e2a07
ILT
1603 GOC_FOR_TARGET
1604 GOC for the target
278a7a38
AO
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
9bccfdf5
AP
1617 OBJCOPY_FOR_TARGET
1618 OBJCOPY for the target
278a7a38
AO
1619 OBJDUMP_FOR_TARGET
1620 OBJDUMP for the target
1621 RANLIB_FOR_TARGET
1622 RANLIB for the target
e7a82751
RM
1623 READELF_FOR_TARGET
1624 READELF for the target
278a7a38
AO
1625 STRIP_FOR_TARGET
1626 STRIP for the target
1627 WINDRES_FOR_TARGET
1628 WINDRES for the target
901119ae
KT
1629 WINDMC_FOR_TARGET
1630 WINDMC for the target
1c710c3c
DJ
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
5213506e 1635Report bugs to the package provider.
1c710c3c 1636_ACEOF
5213506e 1637ac_status=$?
1c710c3c
DJ
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1c710c3c 1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1c710c3c
DJ
1646 ac_builddir=.
1647
5213506e
RW
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1663
1664case $srcdir in
5213506e 1665 .) # We are building in place.
1c710c3c 1666 ac_srcdir=.
5213506e
RW
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1670 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1677esac
5213506e
RW
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1688 else
5213506e
RW
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1692 done
1693fi
1694
5213506e 1695test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1696if $ac_init_version; then
1697 cat <<\_ACEOF
5213506e
RW
1698configure
1699generated by GNU Autoconf 2.64
1c710c3c 1700
5213506e 1701Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
1704_ACEOF
5213506e 1705 exit
0b0dc272 1706fi
5213506e
RW
1707
1708## ------------------------ ##
1709## Autoconf initialization. ##
1710## ------------------------ ##
1711
1712# ac_fn_c_try_compile LINENO
1713# --------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_compile ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_cxx_try_compile LINENO
1751# ----------------------------
1752# Try to compile conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_cxx_try_compile ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782fi
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1785
1786} # ac_fn_cxx_try_compile
1787
0b21f5d3
EB
1788# ac_fn_cxx_try_link LINENO
1789# -------------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_cxx_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1831
1832} # ac_fn_cxx_try_link
1833
5213506e
RW
1834# ac_fn_c_try_link LINENO
1835# -----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_c_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1877
1878} # ac_fn_c_try_link
1879cat >config.log <<_ACEOF
1c710c3c
DJ
1880This file contains any messages produced by compilers while
1881running configure, to aid debugging if configure makes a mistake.
1882
1883It was created by $as_me, which was
5213506e 1884generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1885
1886 $ $0 $@
1887
1888_ACEOF
5213506e 1889exec 5>>config.log
1c710c3c
DJ
1890{
1891cat <<_ASUNAME
1892## --------- ##
1893## Platform. ##
1894## --------- ##
1895
1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1908/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1909/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913_ASUNAME
1914
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
5213506e
RW
1920 $as_echo "PATH: $as_dir"
1921 done
1922IFS=$as_save_IFS
1c710c3c
DJ
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1c710c3c
DJ
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
5213506e
RW
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1956 esac
1957 case $ac_pass in
5213506e 1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1959 2)
5213506e 1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
5213506e 1976 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1977 ;;
1978 esac
1979 done
1980done
5213506e
RW
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log. We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
5213506e
RW
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1989trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 cat <<\_ASBOX
1995## ---------------- ##
1996## Cache variables. ##
1997## ---------------- ##
1998_ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2001(
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
1c710c3c 2017 (set) 2>&1 |
5213506e
RW
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
1c710c3c 2020 sed -n \
5213506e
RW
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
1c710c3c 2024 *)
5213506e 2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2026 ;;
5213506e
RW
2027 esac |
2028 sort
2029)
1c710c3c
DJ
2030 echo
2031
2032 cat <<\_ASBOX
2033## ----------------- ##
2034## Output variables. ##
2035## ----------------- ##
2036_ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
5213506e
RW
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
5213506e
RW
2050## ------------------- ##
2051## File substitutions. ##
2052## ------------------- ##
1c710c3c
DJ
2053_ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
5213506e
RW
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068## ----------- ##
2069## confdefs.h. ##
2070## ----------- ##
2071_ASBOX
2072 echo
5213506e 2073 cat confdefs.h
1c710c3c
DJ
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
5213506e
RW
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
1c710c3c 2079 } >&5
5213506e
RW
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2082 exit $exit_status
5213506e 2083' 0
1c710c3c 2084for ac_signal in 1 2 13 15; do
5213506e 2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2086done
2087ac_signal=0
2088
2089# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2090rm -f -r conftest* confdefs.h
2091
2092$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2093
2094# Predefined preprocessor variables.
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_NAME "$PACKAGE_NAME"
2098_ACEOF
2099
1c710c3c
DJ
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102_ACEOF
2103
1c710c3c
DJ
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_VERSION "$PACKAGE_VERSION"
2106_ACEOF
0b0dc272 2107
1c710c3c
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_STRING "$PACKAGE_STRING"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114_ACEOF
2115
5213506e
RW
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_URL "$PACKAGE_URL"
2118_ACEOF
2119
1c710c3c
DJ
2120
2121# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2122# Prefer an explicitly selected file to automatically selected ones.
2123ac_site_file1=NONE
2124ac_site_file2=NONE
2125if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2133fi
5213506e
RW
2134for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135do
2136 test "x$ac_site_file" = xNONE && continue
671aa708 2137 if test -r "$ac_site_file"; then
5213506e
RW
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2140 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2141 . "$ac_site_file"
2142 fi
2143done
2144
2145if test -r "$cache_file"; then
1c710c3c
DJ
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
5213506e
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2151 case $cache_file in
5213506e
RW
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
1c710c3c
DJ
2154 esac
2155 fi
671aa708 2156else
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2159 >$cache_file
2160fi
2161
2162# Check that the precious variables saved in the cache have kept the same
2163# value.
2164ac_cache_corrupted=false
5213506e 2165for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2170 case $ac_old_set,$ac_new_set in
2171 set,)
5213506e
RW
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2174 ac_cache_corrupted=: ;;
2175 ,set)
5213506e
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
5213506e 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2209 esac
2210 fi
2211done
2212if $ac_cache_corrupted; then
5213506e
RW
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2218fi
5213506e
RW
2219## -------------------- ##
2220## Main body of script. ##
2221## -------------------- ##
671aa708 2222
2aeb72e9
DD
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
1c710c3c
DJ
2229
2230
2231
1c710c3c
DJ
2232
2233
0115d4a3 2234
1c710c3c 2235
ad33ff57
RW
2236
2237progname=$0
2238# if PWD already has a value, it is probably wrong.
2239if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2240
2241# Export original configure arguments for use by sub-configures.
2242# Quote arguments with shell meta charatcers.
2243TOPLEVEL_CONFIGURE_ARGUMENTS=
2244set -- "$progname" "$@"
2245for ac_arg
2246do
2247 case "$ac_arg" in
2248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2250 # if the argument is of the form -foo=baz, quote the baz part only
2251 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2252 *) ;;
2253 esac
2254 # Add the quoted argument to the list.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2256done
2257if test "$silent" = yes; then
2258 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2259fi
2260# Remove the initial space we just introduced and, as these will be
2261# expanded by make, quote '$'.
2262TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2263
1c710c3c
DJ
2264
2265# Find the build, host, and target systems.
671aa708 2266ac_aux_dir=
5213506e
RW
2267for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268 for ac_t in install-sh install.sh shtool; do
2269 if test -f "$ac_dir/$ac_t"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/$ac_t -c"
2272 break 2
2273 fi
2274 done
671aa708
NN
2275done
2276if test -z "$ac_aux_dir"; then
5213506e 2277 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2278fi
5213506e
RW
2279
2280# These three variables are undocumented and unsupported,
2281# and are intended to be withdrawn in a future Autoconf release.
2282# They can cause serious problems if a builder's source tree is in a directory
2283# whose full name contains unusual characters.
2284ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287
671aa708 2288
1c710c3c 2289# Make sure we can run config.sub.
5213506e
RW
2290$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2291 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2292
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2294$as_echo_n "checking build system type... " >&6; }
2295if test "${ac_cv_build+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2297else
2298 ac_build_alias=$build_alias
2299test "x$ac_build_alias" = x &&
2300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2301test "x$ac_build_alias" = x &&
2302 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2303ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2304 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2305
2306fi
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2308$as_echo "$ac_cv_build" >&6; }
2309case $ac_cv_build in
2310*-*-*) ;;
2311*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2312esac
1c710c3c 2313build=$ac_cv_build
5213506e
RW
2314ac_save_IFS=$IFS; IFS='-'
2315set x $ac_cv_build
2316shift
2317build_cpu=$1
2318build_vendor=$2
2319shift; shift
2320# Remember, the first character of IFS is used to create $*,
2321# except with old shells:
2322build_os=$*
2323IFS=$ac_save_IFS
2324case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2325
671aa708 2326
1c710c3c
DJ
2327 case ${build_alias} in
2328 "") build_noncanonical=${build} ;;
2329 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2330esac
2331
2332
af71363e 2333
1c710c3c
DJ
2334 case ${host_alias} in
2335 "") host_noncanonical=${build_noncanonical} ;;
2336 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2337esac
2338
af71363e 2339
1c710c3c
DJ
2340
2341 case ${target_alias} in
2342 "") target_noncanonical=${host_noncanonical} ;;
2343 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2344esac
2345
af71363e 2346
1c710c3c
DJ
2347
2348
2349test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2350 test "$program_prefix$program_suffix$program_transform_name" = \
2351 NONENONEs,x,x, &&
1c710c3c 2352 program_transform_name=s,y,y,
af71363e 2353
5213506e
RW
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2355$as_echo_n "checking host system type... " >&6; }
2356if test "${ac_cv_host+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
af71363e 2358else
5213506e
RW
2359 if test "x$host_alias" = x; then
2360 ac_cv_host=$ac_cv_build
2361else
2362 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2364fi
1c710c3c 2365
af71363e 2366fi
5213506e
RW
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2368$as_echo "$ac_cv_host" >&6; }
2369case $ac_cv_host in
2370*-*-*) ;;
2371*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2372esac
1c710c3c 2373host=$ac_cv_host
5213506e
RW
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_host
2376shift
2377host_cpu=$1
2378host_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382host_os=$*
2383IFS=$ac_save_IFS
2384case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2385
2386
5213506e
RW
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2388$as_echo_n "checking target system type... " >&6; }
2389if test "${ac_cv_target+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
1c710c3c 2391else
5213506e
RW
2392 if test "x$target_alias" = x; then
2393 ac_cv_target=$ac_cv_host
2394else
2395 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2397fi
1c710c3c
DJ
2398
2399fi
5213506e
RW
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2401$as_echo "$ac_cv_target" >&6; }
2402case $ac_cv_target in
2403*-*-*) ;;
2404*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2405esac
1c710c3c 2406target=$ac_cv_target
5213506e
RW
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_target
2409shift
2410target_cpu=$1
2411target_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415target_os=$*
2416IFS=$ac_save_IFS
2417case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2418
2419
2420# The aliases save the names the user supplied, while $host etc.
2421# will get canonicalized.
2422test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
5213506e 2426
671aa708 2427test "$program_prefix" != NONE &&
5213506e 2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2429# Use a double $ so make ignores it.
2430test "$program_suffix" != NONE &&
5213506e
RW
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432# Double any \ or $.
1c710c3c 2433# By default was `s,x,x', remove it if useless.
5213506e
RW
2434ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2436
671aa708
NN
2437
2438
775956d0
NN
2439# Get 'install' or 'install-sh' and its variants.
2440# Find a good install program. We prefer a C program (faster),
2441# so one script is as good as another. But avoid the broken or
2442# incompatible versions:
2443# SysV /etc/install, /usr/sbin/install
2444# SunOS /usr/etc/install
2445# IRIX /sbin/install
2446# AIX /bin/install
1c710c3c 2447# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2451# OS/2's system install, which has a completely different semantic
775956d0 2452# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2453# Reject install programs that cannot install multiple files.
5213506e
RW
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2456if test -z "$INSTALL"; then
5213506e
RW
2457if test "${ac_cv_path_install+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2459else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
5213506e
RW
2465 # Account for people who put trailing slashes in PATH elements.
2466case $as_dir/ in #((
2467 ./ | .// | /[cC]/* | \
1c710c3c 2468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2469 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2470 /usr/ucb/* ) ;;
2471 *)
2472 # OSF1 and SCO ODT 3.0 have their own names for install.
2473 # Don't use installbsd from OSF since it installs stuff as root
2474 # by default.
2475 for ac_prog in ginstall scoinst install; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2478 if test $ac_prog = install &&
1c710c3c 2479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2480 # AIX install. It has an incompatible calling convention.
2481 :
1c710c3c
DJ
2482 elif test $ac_prog = install &&
2483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # program-specific install script used by HP pwplus--don't use.
2485 :
775956d0 2486 else
38d24731
RW
2487 rm -rf conftest.one conftest.two conftest.dir
2488 echo one > conftest.one
2489 echo two > conftest.two
2490 mkdir conftest.dir
2491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492 test -s conftest.one && test -s conftest.two &&
2493 test -s conftest.dir/conftest.one &&
2494 test -s conftest.dir/conftest.two
2495 then
2496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497 break 3
2498 fi
775956d0
NN
2499 fi
2500 fi
2501 done
1c710c3c
DJ
2502 done
2503 ;;
2504esac
5213506e
RW
2505
2506 done
2507IFS=$as_save_IFS
1c710c3c 2508
38d24731 2509rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2510
2511fi
2512 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2513 INSTALL=$ac_cv_path_install
775956d0 2514 else
38d24731
RW
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for INSTALL within a source directory, because that will
775956d0 2517 # break other packages using the cache if that directory is
38d24731 2518 # removed, or if the value is a relative name.
1c710c3c 2519 INSTALL=$ac_install_sh
775956d0
NN
2520 fi
2521fi
5213506e
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523$as_echo "$INSTALL" >&6; }
775956d0
NN
2524
2525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526# It thinks the first close brace ends the variable substitution.
2527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
1c710c3c 2529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2530
2531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
5213506e
RW
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2534$as_echo_n "checking whether ln works... " >&6; }
2535if test "${acx_cv_prog_LN+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
ad6717df
PB
2537else
2538 rm -f conftestdata_t
2539echo >conftestdata_f
2540if ln conftestdata_f conftestdata_t 2>/dev/null
2541then
2542 acx_cv_prog_LN=ln
2543else
2544 acx_cv_prog_LN=no
2545fi
2546rm -f conftestdata_f conftestdata_t
2547
2548fi
2549if test $acx_cv_prog_LN = no; then
2550 LN="cp"
5213506e
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2552$as_echo "no, using $LN" >&6; }
ad6717df
PB
2553else
2554 LN="$acx_cv_prog_LN"
5213506e
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556$as_echo "yes" >&6; }
ad6717df
PB
2557fi
2558
5213506e
RW
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2560$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2561LN_S=$as_ln_s
2562if test "$LN_S" = "ln -s"; then
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
fb0103e5 2565else
5213506e
RW
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2567$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2568fi
2569
87264276
PB
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2571$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2572if test "${ac_cv_path_SED+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2576 for ac_i in 1 2 3 4 5 6 7; do
2577 ac_script="$ac_script$as_nl$ac_script"
2578 done
2579 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2580 { ac_script=; unset ac_script;}
2581 if test -z "$SED"; then
2582 ac_path_SED_found=false
2583 # Loop through the user's path and test for each of PROGNAME-LIST
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_prog in sed gsed; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2592 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2593# Check for GNU ac_path_SED and select it if it is found.
2594 # Check for GNU $ac_path_SED
2595case `"$ac_path_SED" --version 2>&1` in
2596*GNU*)
2597 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2598*)
2599 ac_count=0
2600 $as_echo_n 0123456789 >"conftest.in"
2601 while :
2602 do
2603 cat "conftest.in" "conftest.in" >"conftest.tmp"
2604 mv "conftest.tmp" "conftest.in"
2605 cp "conftest.in" "conftest.nl"
2606 $as_echo '' >> "conftest.nl"
2607 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2609 as_fn_arith $ac_count + 1 && ac_count=$as_val
2610 if test $ac_count -gt ${ac_path_SED_max-0}; then
2611 # Best one so far, save it but keep looking for a better one
2612 ac_cv_path_SED="$ac_path_SED"
2613 ac_path_SED_max=$ac_count
2614 fi
2615 # 10*(2^10) chars as input seems more than enough
2616 test $ac_count -gt 10 && break
2617 done
2618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2619esac
2620
2621 $ac_path_SED_found && break 3
2622 done
2623 done
2624 done
2625IFS=$as_save_IFS
2626 if test -z "$ac_cv_path_SED"; then
2627 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2628 fi
2629else
2630 ac_cv_path_SED=$SED
2631fi
2632
2633fi
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2635$as_echo "$ac_cv_path_SED" >&6; }
2636 SED="$ac_cv_path_SED"
2637 rm -f conftest.sed
2638
2639for ac_prog in gawk mawk nawk awk
2640do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642set dummy $ac_prog; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if test "${ac_cv_prog_AWK+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 if test -n "$AWK"; then
2649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_AWK="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
2663 done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668AWK=$ac_cv_prog_AWK
2669if test -n "$AWK"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671$as_echo "$AWK" >&6; }
2672else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
2676
2677
2678 test -n "$AWK" && break
2679done
2680
775956d0 2681
ee6a22df
L
2682srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2683
2684# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2685# a relative path.
2686if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2687 INSTALL="${srcpwd}/install-sh -c"
2688fi
2689
671aa708
NN
2690# Set srcdir to "." if that's what it is.
2691# This is important for multilib support.
2692pwd=`${PWDCMD-pwd}`
671aa708
NN
2693if test "${pwd}" = "${srcpwd}" ; then
2694 srcdir=.
79c06341
JL
2695fi
2696
671aa708 2697topsrcdir=$srcpwd
5d4a5ee6 2698
671aa708 2699extra_host_args=
afabd8e6 2700
671aa708
NN
2701### To add a new directory to the tree, first choose whether it is a target
2702### or a host dependent tool. Then put it into the appropriate list
2703### (library or tools, host or target), doing a dependency sort.
79c06341 2704
1c710c3c 2705# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2706# configdirs, or target_configdirs; see the serialization section below.
79c06341 2707
1c710c3c
DJ
2708# Dependency sorting is only needed when *configuration* must be done in
2709# a particular order. In all cases a dependency should be specified in
671aa708 2710# the Makefile, whether or not it's implicitly specified here.
79c06341 2711
671aa708
NN
2712# Double entries in build_configdirs, configdirs, or target_configdirs may
2713# cause circular dependencies and break everything horribly.
79c06341 2714
23f6b2f9
PB
2715# these library is used by various programs built for the build
2716# environment
2717#
929315a9 2718build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2719
2720# these tools are built for the build environment
85bfb75e 2721build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2722
671aa708 2723# these libraries are used by various programs built for the host environment
eae1a5d4 2724#f
4a9bb2aa 2725host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2726
671aa708
NN
2727# these tools are built for the host environment
2728# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2729# know that we are building the simulator.
2730# binutils, gas and ld appear in that order because it makes sense to run
2731# "make check" in that particular order.
38e3d868 2732# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2733host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708
NN
2734
2735# libgcj represents the runtime libraries only used by gcj.
2736libgcj="target-libffi \
671aa708 2737 target-zlib \
671aa708
NN
2738 target-libjava"
2739
2740# these libraries are built for the target environment, and are built after
2741# the host libraries and the host tools (which may be a cross compiler)
8499116a 2742# Note that libiberty is not a target library.
291f172e 2743target_libraries="target-libgcc \
eff02e4f 2744 target-libbacktrace \
671aa708
NN
2745 target-libgloss \
2746 target-newlib \
6d3b5aea 2747 target-libgomp \
3038054c 2748 target-libcilkrts \
5f520819 2749 target-liboffloadmic \
48310492 2750 target-libatomic \
0a35513e 2751 target-libitm \
cb543528 2752 target-libstdc++-v3 \
f35db108 2753 target-libsanitizer \
2077db1b 2754 target-libvtv \
5373cd33 2755 target-libmpx \
77008252 2756 target-libssp \
1ec601bf 2757 target-libquadmath \
6de9cd9a 2758 target-libgfortran \
7cd0cf9c 2759 target-boehm-gc \
77d187bc 2760 ${libgcj} \
d9cdb878 2761 target-libobjc \
632e2a07
ILT
2762 target-libada \
2763 target-libgo"
671aa708 2764
4dbda6f0
NN
2765# these tools are built using the target libraries, and are intended to
2766# run only in the target environment
671aa708 2767#
4dbda6f0 2768# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2769# list belongs in this list.
671aa708 2770#
85bfb75e 2771target_tools="target-rda"
79c06341 2772
671aa708 2773################################################################################
79c06341 2774
671aa708
NN
2775## All tools belong in one of the four categories, and are assigned above
2776## We assign ${configdirs} this way to remove all embedded newlines. This
2777## is important because configure will choke if they ever get through.
2778## ${configdirs} is directories we build using the host tools.
2779## ${target_configdirs} is directories we build using the target tools.
671aa708 2780configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2781target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2782build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2783
ac9e6043
RW
2784
2785
671aa708 2786################################################################################
79c06341 2787
671aa708 2788srcname="gnu development package"
79c06341 2789
671aa708
NN
2790# This gets set non-empty for some net releases of packages.
2791appdirs=""
79c06341 2792
671aa708
NN
2793# Define is_cross_compiler to save on calls to 'test'.
2794is_cross_compiler=
2795if test x"${host}" = x"${target}" ; then
2796 is_cross_compiler=no
79c06341 2797else
671aa708 2798 is_cross_compiler=yes
1c710c3c 2799fi
79c06341 2800
b4acb5ef 2801# Find the build and target subdir names.
8b87bb96 2802
2e9e6f68
DJ
2803# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2804# have matching libraries, they should use host libraries: Makefile.tpl
2805# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2806# However, they still use the build modules, because the corresponding
2807# host modules (e.g. bison) are only built for the host when bootstrap
2808# finishes. So:
2809# - build_subdir is where we find build modules, and never changes.
2810# - build_libsubdir is where we find build libraries, and can be overridden.
2811
2812# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2813build_subdir="build-${build_noncanonical}"
1c710c3c 2814
5213506e
RW
2815# Check whether --with-build-libsubdir was given.
2816if test "${with_build_libsubdir+set}" = set; then :
2817 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2818else
2819 build_libsubdir="$build_subdir"
5213506e
RW
2820fi
2821
215c351a
PB
2822# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2823if ( test $srcdir = . && test -d gcc ) \
2824 || test -d $srcdir/../host-${host_noncanonical}; then
2825 host_subdir="host-${host_noncanonical}"
2826else
2827 host_subdir=.
2828fi
8b87bb96
NN
2829# No prefix.
2830target_subdir=${target_noncanonical}
1c710c3c 2831
0db770bd
RW
2832# Be sure to cover against remnants of an in-tree build.
2833if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2834 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2835Use a pristine source tree when building in a separate tree" "$LINENO" 5
2836fi
79c06341 2837
671aa708
NN
2838# Skipdirs are removed silently.
2839skipdirs=
2840# Noconfigdirs are removed loudly.
2841noconfigdirs=""
79c06341 2842
671aa708
NN
2843use_gnu_ld=
2844# Make sure we don't let GNU ld be added if we didn't want it.
2845if test x$with_gnu_ld = xno ; then
2846 use_gnu_ld=no
5afab7ad 2847 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2848fi
2849
671aa708
NN
2850use_gnu_as=
2851# Make sure we don't let GNU as be added if we didn't want it.
2852if test x$with_gnu_as = xno ; then
2853 use_gnu_as=no
2854 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2855fi
2856
d7f09764
DN
2857use_included_zlib=
2858# Make sure we don't let ZLIB be added if we didn't want it.
2859if test x$with_system_zlib = xyes ; then
2860 use_included_zlib=no
2861 noconfigdirs="$noconfigdirs zlib"
2862fi
2863
1c710c3c 2864# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2865# it's not even worth trying to configure, much less build, that tool.
79c06341 2866
671aa708
NN
2867case ${with_x} in
2868 yes | "") ;; # the default value for this tree is that X11 is available
2869 no)
b4f96efe 2870 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2871 # We won't be able to build gdbtk without X.
1c710c3c 2872 enable_gdbtk=no
671aa708
NN
2873 ;;
2874 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2875esac
79c06341 2876
1bcce263 2877# Some are only suitable for cross toolchains.
671aa708
NN
2878# Remove these if host=target.
2879cross_only="target-libgloss target-newlib target-opcodes"
2880
2881case $is_cross_compiler in
2882 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2883esac
79c06341 2884
671aa708
NN
2885# If both --with-headers and --with-libs are specified, default to
2886# --without-newlib.
ee6a22df
L
2887if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2888 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2889 if test x"${with_newlib}" = x ; then
2890 with_newlib=no
2891 fi
79c06341
JL
2892fi
2893
671aa708
NN
2894# Recognize --with-newlib/--without-newlib.
2895case ${with_newlib} in
2896 no) skipdirs="${skipdirs} target-newlib" ;;
2897 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2898esac
79c06341 2899
85c64bbe
BS
2900# Check whether --enable-as-accelerator-for was given.
2901if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2902 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2903fi
2904
2905
2906# Check whether --enable-offload-targets was given.
2907if test "${enable_offload_targets+set}" = set; then :
2908 enableval=$enable_offload_targets;
2909 if test x"$enable_offload_targets" = x; then
2910 as_fn_error "no offload targets specified" "$LINENO" 5
2911 fi
2912
2913else
2914 enable_offload_targets=
2915fi
2916
2917
21539e2e
MK
2918# Handle --enable-gold, --enable-ld.
2919# --disable-gold [--enable-ld]
2920# Build only ld. Default option.
9580395f
L
2921# --enable-gold [--enable-ld]
2922# Build both gold and ld. Install gold as "ld.gold", install ld
2923# as "ld.bfd" and "ld".
2924# --enable-gold=default [--enable-ld]
21539e2e
MK
2925# Build both gold and ld. Install gold as "ld.gold" and "ld",
2926# install ld as "ld.bfd".
2927# --enable-gold[=default] --disable-ld
2928# Build only gold, which is then installed as both "ld.gold" and "ld".
2929# --enable-gold --enable-ld=default
9580395f
L
2930# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2931# and ld.bfd).
21539e2e
MK
2932# In other words, ld is default
2933# --enable-gold=default --enable-ld=default
2934# Error.
2935
2936default_ld=
5213506e
RW
2937# Check whether --enable-gold was given.
2938if test "${enable_gold+set}" = set; then :
2939 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2940else
2941 ENABLE_GOLD=no
5213506e
RW
2942fi
2943
21539e2e
MK
2944case "${ENABLE_GOLD}" in
2945 yes|default)
38e3d868
RM
2946 # Check for ELF target.
2947 is_elf=no
2948 case "${target}" in
2949 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2950 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2951 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2952 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2953 case "${target}" in
2954 *-*-linux*aout* | *-*-linux*oldld*)
2955 ;;
2956 *)
2957 is_elf=yes
2958 ;;
2959 esac
2960 esac
2961
2962 if test "$is_elf" = "yes"; then
2963 # Check for target supported by gold.
5afab7ad 2964 case "${target}" in
7705dfd1
JY
2965 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2966 | aarch64*-*-* | tilegx*-*-*)
21539e2e
MK
2967 configdirs="$configdirs gold"
2968 if test x${ENABLE_GOLD} = xdefault; then
2969 default_ld=gold
2970 fi
38e3d868 2971 ENABLE_GOLD=yes
5afab7ad
ILT
2972 ;;
2973 esac
38e3d868
RM
2974 fi
2975 ;;
2976 no)
2977 ;;
2978 *)
2979 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2980 ;;
21539e2e
MK
2981esac
2982
2983# Check whether --enable-ld was given.
2984if test "${enable_ld+set}" = set; then :
2985 enableval=$enable_ld; ENABLE_LD=$enableval
2986else
2987 ENABLE_LD=yes
2988fi
2989
2990
2991case "${ENABLE_LD}" in
2992 default)
9580395f 2993 if test x${default_ld} != x; then
21539e2e
MK
2994 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2995 fi
2996 ;;
2997 yes)
2998 ;;
2999 no)
3000 if test x${ENABLE_GOLD} != xyes; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3002$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3003 fi
3004 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3005 ;;
3006 *)
3007 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3008 ;;
3009esac
5afab7ad 3010
671aa708 3011# Configure extra directories which are host specific
79c06341 3012
671aa708
NN
3013case "${host}" in
3014 *-cygwin*)
3015 configdirs="$configdirs libtermcap" ;;
3016esac
79c06341 3017
4fab7234
HPN
3018# A target can indicate whether a language isn't supported for some reason.
3019# Only spaces may be used in this macro; not newlines or tabs.
3020unsupported_languages=
3021
1c710c3c 3022# Remove more programs from consideration, based on the host or
671aa708
NN
3023# target this usually means that a port of the program doesn't
3024# exist yet.
ec8d6ddc 3025
671aa708 3026case "${host}" in
111eeb6e 3027 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3028 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3029 ;;
671aa708 3030esac
ec8d6ddc 3031
6de9cd9a 3032
87e6d9dc
TB
3033# Check whether --enable-libquadmath was given.
3034if test "${enable_libquadmath+set}" = set; then :
3035 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3036else
3037 ENABLE_LIBQUADMATH=yes
3038fi
3039
3040if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3041 noconfigdirs="$noconfigdirs target-libquadmath"
3042fi
3043
3044
3045# Check whether --enable-libquadmath-support was given.
3046if test "${enable_libquadmath_support+set}" = set; then :
3047 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3048else
3049 ENABLE_LIBQUADMATH_SUPPORT=yes
3050fi
3051
3052enable_libquadmath_support=
3053if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3054 enable_libquadmath_support=no
3055fi
3056
3057
5213506e
RW
3058# Check whether --enable-libada was given.
3059if test "${enable_libada+set}" = set; then :
3060 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3061else
3062 ENABLE_LIBADA=yes
5213506e
RW
3063fi
3064
d9cdb878 3065if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3066 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3067fi
3068
5213506e
RW
3069# Check whether --enable-libssp was given.
3070if test "${enable_libssp+set}" = set; then :
3071 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3072else
3073 ENABLE_LIBSSP=yes
5213506e
RW
3074fi
3075
ef0087a7 3076
1873ec0c
L
3077# Check whether --enable-libstdcxx was given.
3078if test "${enable_libstdcxx+set}" = set; then :
3079 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3080else
3081 ENABLE_LIBSTDCXX=default
3082fi
3083
3084if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3085 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3086fi
3087
5f520819
KY
3088# If this is accelerator compiler and its target is intelmic we enable
3089# target liboffloadmic by default. If this is compiler with offloading
3090# for intelmic we enable host liboffloadmic by default. Otherwise
3091# liboffloadmic is disabled by default.
3092# Check whether --enable-liboffloadmic was given.
3093if test "${enable_liboffloadmic+set}" = set; then :
3094 enableval=$enable_liboffloadmic; case "$enableval" in
3095 no | host | target)
3096 enable_liboffloadmic=$enableval ;;
3097 *)
3098 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3099esac
3100else
4b4f2e35 3101 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3102 case "${target}" in
3103 *-intelmic-* | *-intelmicemul-*)
3104 enable_liboffloadmic=target
3105 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3106 ;;
3107 *)
3108 enable_liboffloadmic=no
3109 ;;
3110 esac
3111else
3112 case "${enable_offload_targets}" in
3113 *-intelmic-* | *-intelmicemul-*)
3114 enable_liboffloadmic=host
3115 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3116 ;;
3117 *)
3118 enable_liboffloadmic=no
3119 ;;
3120 esac
3121fi
3122fi
3123
3124
3125
671aa708
NN
3126# Save it here so that, even in case of --enable-libgcj, if the Java
3127# front-end isn't enabled, we still get libgcj disabled.
3128libgcj_saved=$libgcj
3129case $enable_libgcj in
3130yes)
3131 # If we reset it here, it won't get added to noconfigdirs in the
3132 # target-specific build rules, so it will be forcibly enabled
3133 # (unless the Java language itself isn't enabled).
3134 libgcj=
3135 ;;
3136no)
3137 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3138 # Don't disable libffi, though, other languages use it.
3139 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3140 # Clear libgcj_saved so that even if java is enabled libffi won't be
3141 # built.
3142 libgcj_saved=
671aa708
NN
3143 ;;
3144esac
ec8d6ddc 3145
a4a2c37d
MK
3146# Check whether --enable-static-libjava was given.
3147if test "${enable_static_libjava+set}" = set; then :
3148 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3149else
3150 ENABLE_STATIC_LIBJAVA=no
3151fi
3152
3153enable_static_libjava=
3154if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3155 enable_static_libjava=yes
3156fi
3157
3158if test x$enable_static_libjava != xyes ; then
3159 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3160fi
3161
6de9cd9a 3162
27079765
AH
3163# Disable libgomp on non POSIX hosted systems.
3164if test x$enable_libgomp = x ; then
953ff289
DN
3165 # Enable libgomp by default on hosted POSIX systems.
3166 case "${target}" in
416ac4d4 3167 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3168 ;;
8c6d158a 3169 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3170 ;;
b24513a1 3171 *-*-solaris2* | *-*-hpux11*)
953ff289 3172 ;;
cac90078 3173 *-*-darwin* | *-*-aix*)
953ff289
DN
3174 ;;
3175 *)
3176 noconfigdirs="$noconfigdirs target-libgomp"
3177 ;;
3178 esac
27079765 3179fi
953ff289 3180
48310492
RH
3181# Disable libatomic on unsupported systems.
3182if test -d ${srcdir}/libatomic; then
3183 if test x$enable_libatomic = x; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3185$as_echo_n "checking for libatomic support... " >&6; }
3186 if (srcdir=${srcdir}/libatomic; \
3187 . ${srcdir}/configure.tgt; \
3188 test -n "$UNSUPPORTED")
3189 then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192 noconfigdirs="$noconfigdirs target-libatomic"
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195$as_echo "yes" >&6; }
3196 fi
3197 fi
3198fi
3199
3038054c
BI
3200# Disable libcilkrts on unsupported systems.
3201if test -d ${srcdir}/libcilkrts; then
3202 if test x$enable_libcilkrts = x; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3204$as_echo_n "checking for libcilkrts support... " >&6; }
3205 if (srcdir=${srcdir}/libcilkrts; \
3206 . ${srcdir}/configure.tgt; \
3207 test -n "$UNSUPPORTED")
3208 then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211 noconfigdirs="$noconfigdirs target-libcilkrts"
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215 fi
3216 fi
3217fi
3218
5f520819
KY
3219# Disable liboffloadmic on unsupported systems.
3220if test -d ${srcdir}/liboffloadmic; then
3221 if test x$enable_liboffloadmic != xno; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3223$as_echo_n "checking for liboffloadmic support... " >&6; }
3224 if (srcdir=${srcdir}/liboffloadmic; \
3225 . ${srcdir}/configure.tgt; \
3226 test -n "$UNSUPPORTED")
3227 then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230 noconfigdirs="$noconfigdirs target-liboffloadmic"
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234 fi
3235 fi
3236fi
3237
e948157d
RH
3238# Disable libitm on unsupported systems.
3239if test -d ${srcdir}/libitm; then
3240 if test x$enable_libitm = x; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3242$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3243 if (srcdir=${srcdir}/libitm; \
3244 . ${srcdir}/configure.tgt; \
3245 test -n "$UNSUPPORTED")
3246 then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3248$as_echo "no" >&6; }
e948157d
RH
3249 noconfigdirs="$noconfigdirs target-libitm"
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3252$as_echo "yes" >&6; }
e948157d
RH
3253 fi
3254 fi
0a35513e
AH
3255fi
3256
93bf5390
RH
3257# Disable libsanitizer on unsupported systems.
3258if test -d ${srcdir}/libsanitizer; then
3259 if test x$enable_libsanitizer = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3261$as_echo_n "checking for libsanitizer support... " >&6; }
3262 if (srcdir=${srcdir}/libsanitizer; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267$as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libsanitizer"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271$as_echo "yes" >&6; }
3272 fi
3273 fi
3274fi
3275
2077db1b
CT
3276# Disable libvtv on unsupported systems.
3277if test -d ${srcdir}/libvtv; then
3278 if test x$enable_libvtv = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3280$as_echo_n "checking for libvtv support... " >&6; }
3281 if (srcdir=${srcdir}/libvtv; \
3282 . ${srcdir}/configure.tgt; \
1e74b850 3283 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libvtv"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
3291 fi
3292 fi
3293fi
3294
5373cd33
IE
3295
3296# Enable libmpx on supported systems by request.
3297if test -d ${srcdir}/libmpx; then
3298 if test x$enable_libmpx = xyes; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3300$as_echo_n "checking for libmpx support... " >&6; }
3301 if (srcdir=${srcdir}/libmpx; \
3302 . ${srcdir}/configure.tgt; \
3303 test "$LIBMPX_SUPPORTED" != "yes")
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libmpx"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310$as_echo "yes" >&6; }
3311 fi
3312 else
3313 noconfigdirs="$noconfigdirs target-libmpx"
3314 fi
3315fi
3316
3317
3318
d91491e5
SE
3319# Disable libquadmath for some systems.
3320case "${target}" in
e7fae550
DE
3321 avr-*-*)
3322 noconfigdirs="$noconfigdirs target-libquadmath"
3323 ;;
d91491e5
SE
3324 # libquadmath is unused on AIX and libquadmath build process use of
3325 # LD_LIBRARY_PATH can break AIX bootstrap.
3326 powerpc-*-aix* | rs6000-*-aix*)
3327 noconfigdirs="$noconfigdirs target-libquadmath"
3328 ;;
3329esac
3330
1e9e0e23
JM
3331# Disable libssp for some systems.
3332case "${target}" in
3333 avr-*-*)
b318fb4b 3334 # No hosted I/O support.
1e9e0e23
JM
3335 noconfigdirs="$noconfigdirs target-libssp"
3336 ;;
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3339 ;;
3340 rl78-*-*)
7cb62ef1
EB
3341 # libssp uses a misaligned load to trigger a fault, but the RL78
3342 # doesn't fault for those - instead, it gives a build-time error
3343 # for explicit misaligned loads.
85b8555e 3344 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3345 ;;
0969ec7d
EB
3346 visium-*-*)
3347 # No hosted I/O support.
3348 noconfigdirs="$noconfigdirs target-libssp"
3349 ;;
1e9e0e23
JM
3350esac
3351
1e9e0e23 3352# Disable libstdc++-v3 for some systems.
1873ec0c
L
3353# Allow user to override this if they pass --enable-libstdc++-v3
3354if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3355 case "${target}" in
3356 *-*-vxworks*)
3357 # VxWorks uses the Dinkumware C++ library.
3358 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 ;;
3360 arm*-wince-pe*)
3361 # the C++ libraries don't build on top of CE's C libraries
3362 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 ;;
3364 avr-*-*)
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 ;;
fef939d6
JB
3367 ft32-*-*)
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
1873ec0c
L
3370 esac
3371fi
1e9e0e23
JM
3372
3373# Disable Fortran for some systems.
3374case "${target}" in
3375 mmix-*-*)
3376 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3377 unsupported_languages="$unsupported_languages fortran"
3378 ;;
3379esac
3380
80f81134 3381# Disable Java if libffi is not supported.
2909494b 3382case "${target}" in
eb7062cf
AS
3383 aarch64-*-*)
3384 ;;
80f81134
JM
3385 alpha*-*-*)
3386 ;;
3387 arm*-*-*)
3388 ;;
3389 cris-*-*)
3390 ;;
3391 frv-*-*)
3392 ;;
3393 hppa*-*-linux*)
3394 ;;
3395 hppa*-*-hpux*)
3396 ;;
3397 i?86-*-*)
3398 ;;
3399 ia64*-*-*)
3400 ;;
3401 m32r*-*-*)
3402 ;;
3403 m68k-*-*)
3404 ;;
b24513a1 3405 mips*-*-rtems*)
80f81134
JM
3406 ;;
3407 mips*-*-linux*)
3408 ;;
3409 powerpc*-*-linux*)
3410 ;;
3411 powerpc-*-darwin*)
3412 ;;
3413 powerpc-*-aix* | rs6000-*-aix*)
3414 ;;
3415 powerpc-*-freebsd*)
3416 ;;
3417 powerpc64-*-freebsd*)
3418 ;;
3419 powerpc*-*-rtems*)
2909494b 3420 ;;
80f81134
JM
3421 s390-*-* | s390x-*-*)
3422 ;;
3423 sh-*-* | sh[34]*-*-*)
3424 ;;
3425 sh64-*-* | sh5*-*-*)
3426 ;;
3427 sparc*-*-*)
3428 ;;
3429 x86_64-*-*)
3430 ;;
3431 *-*-*)
3432 unsupported_languages="$unsupported_languages java"
3433 ;;
3434esac
3435
3436# Disable Java, libgcj or related libraries for some systems.
3437case "${target}" in
2909494b
JM
3438 powerpc-*-darwin*)
3439 ;;
3440 i[3456789]86-*-darwin*)
3441 ;;
3442 x86_64-*-darwin[912]*)
3443 ;;
3444 *-*-darwin*)
3445 noconfigdirs="$noconfigdirs ${libgcj}"
3446 ;;
2909494b
JM
3447 *-*-netware*)
3448 noconfigdirs="$noconfigdirs ${libgcj}"
3449 ;;
3450 *-*-rtems*)
3451 noconfigdirs="$noconfigdirs ${libgcj}"
3452 ;;
3453 *-*-tpf*)
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3455 ;;
3456 *-*-uclinux*)
3457 noconfigdirs="$noconfigdirs ${libgcj}"
3458 ;;
3459 *-*-vxworks*)
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 ;;
2909494b
JM
3462 alpha*-*-*vms*)
3463 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ;;
82a19768
AT
3465 arm*-*-freebsd*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3467 ;;
80f81134 3468 arm-wince-pe)
2909494b
JM
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
2909494b
JM
3471 arm*-*-symbianelf*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
2909494b 3474 bfin-*-*)
2909494b
JM
3475 noconfigdirs="$noconfigdirs target-boehm-gc"
3476 ;;
2909494b
JM
3477 cris-*-* | crisv32-*-*)
3478 unsupported_languages="$unsupported_languages java"
3479 case "${target}" in
3480 *-*-linux*)
3481 ;;
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3484 esac
3485 ;;
2909494b
JM
3486 hppa*64*-*-linux*)
3487 # In this case, it's because the hppa64-linux target is for
3488 # the kernel only at this point and has no libc, and thus no
3489 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3490 unsupported_languages="$unsupported_languages java"
2909494b 3491 ;;
fddf9ee7 3492 hppa*64*-*-hpux*)
2909494b
JM
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 ;;
3495 hppa*-hp-hpux11*)
3496 ;;
fddf9ee7 3497 hppa*-*-hpux*)
2909494b
JM
3498 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3499 # build on HP-UX 10.20.
3500 noconfigdirs="$noconfigdirs ${libgcj}"
3501 ;;
2909494b
JM
3502 ia64*-*-*vms*)
3503 noconfigdirs="$noconfigdirs ${libgcj}"
3504 ;;
2909494b
JM
3505 i[3456789]86-w64-mingw*)
3506 noconfigdirs="$noconfigdirs ${libgcj}"
3507 ;;
3508 i[3456789]86-*-mingw*)
3509 noconfigdirs="$noconfigdirs ${libgcj}"
3510 ;;
3511 x86_64-*-mingw*)
3512 noconfigdirs="$noconfigdirs ${libgcj}"
3513 ;;
2909494b
JM
3514 mmix-*-*)
3515 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3516 ;;
3517 powerpc-*-aix*)
3518 # copied from rs6000-*-* entry
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3520 ;;
2909494b
JM
3521 rs6000-*-aix*)
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ;;
2909494b
JM
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
2909494b
JM
3527esac
3528
1335a8ca
JBG
3529# Disable the go frontend on systems where it is known to not work. Please keep
3530# this in sync with contrib/config-list.mk.
74cc5471
ILT
3531case "${target}" in
3532*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3533 unsupported_languages="$unsupported_languages go"
3534 ;;
3535esac
3536
cdbc9e92
ILT
3537# Disable libgo for some systems where it is known to not work.
3538# For testing, you can easily override this with --enable-libgo.
3539if test x$enable_libgo = x; then
3540 case "${target}" in
3541 *-*-darwin*)
3542 # PR 46986
3543 noconfigdirs="$noconfigdirs target-libgo"
3544 ;;
3545 *-*-cygwin* | *-*-mingw*)
3546 noconfigdirs="$noconfigdirs target-libgo"
3547 ;;
3548 *-*-aix*)
3549 noconfigdirs="$noconfigdirs target-libgo"
3550 ;;
3551 esac
3552fi
3553
c03353e2
RIL
3554# Default libgloss CPU subdirectory.
3555libgloss_dir="$target_cpu"
6de9cd9a 3556
fbcf0dca
JM
3557case "${target}" in
3558 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3559 libgloss_dir=wince
3560 ;;
4dddfc74
YZ
3561 aarch64*-*-* )
3562 libgloss_dir=aarch64
3563 ;;
fbcf0dca
JM
3564 arm*-*-*)
3565 libgloss_dir=arm
3566 ;;
3567 cris-*-* | crisv32-*-*)
3568 libgloss_dir=cris
3569 ;;
3570 hppa*-*-*)
3571 libgloss_dir=pa
3572 ;;
3573 i[3456789]86-*-*)
3574 libgloss_dir=i386
3575 ;;
3576 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3577 libgloss_dir=m68hc11
3578 ;;
3579 m68*-*-* | fido-*-*)
3580 libgloss_dir=m68k
3581 ;;
3582 mips*-*-*)
3583 libgloss_dir=mips
3584 ;;
3585 powerpc*-*-*)
3586 libgloss_dir=rs6000
3587 ;;
3588 sparc*-*-*)
3589 libgloss_dir=sparc
3590 ;;
3591esac
3592
6a789d5e 3593# Disable newlib and libgloss for various target OSes.
671aa708 3594case "${target}" in
6a789d5e
JM
3595 alpha*-dec-osf*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 ;;
3598 i[3456789]86-*-linux*)
3599 # This section makes it possible to build newlib natively on linux.
3600 # If we are using a cross compiler then don't configure newlib.
3601 if test x${is_cross_compiler} != xno ; then
3602 noconfigdirs="$noconfigdirs target-newlib"
3603 fi
3604 noconfigdirs="$noconfigdirs target-libgloss"
3605 # If we are not using a cross compiler, do configure newlib.
3606 # Note however, that newlib will only be configured in this situation
3607 # if the --with-newlib option has been given, because otherwise
3608 # 'target-newlib' will appear in skipdirs.
3609 ;;
3610 i[3456789]86-*-rdos*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 ;;
3613 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 ;;
3616 sparc-*-sunos4*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 *-*-aix*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 ;;
3622 *-*-beos*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
671aa708 3625 *-*-chorusos)
0036370f 3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3627 ;;
6a789d5e
JM
3628 *-*-dragonfly*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 *-*-freebsd*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 ;;
3634 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-lynxos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-mingw*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-netbsd*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-netware*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-tpf*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
3652 *-*-uclinux*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
3655 *-*-vxworks*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658esac
3659
3660case "${target}" in
3661 *-*-chorusos)
3662 ;;
75eeae1a 3663 powerpc-*-darwin*)
e1514c3f 3664 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3665 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3666 ;;
354ebf88
RW
3667 i[3456789]86-*-darwin*)
3668 noconfigdirs="$noconfigdirs ld gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3670 ;;
3671 x86_64-*-darwin[912]*)
0db3a858
TG
3672 noconfigdirs="$noconfigdirs ld gas gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3674 ;;
42c1cd8a
AT
3675 *-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3678 ;;
8c6d158a 3679 *-*-dragonfly*)
8c6d158a 3680 ;;
c3f84f61 3681 *-*-freebsd*)
6de9cd9a
DN
3682 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3683 && test -f /usr/local/include/gmp.h; then
3684 with_gmp=/usr/local
3685 fi
6de9cd9a 3686 ;;
ef4e7569
US
3687 *-*-kaos*)
3688 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3689 noconfigdirs="$noconfigdirs target-libgloss"
3690 ;;
671aa708 3691 *-*-netbsd*)
671aa708 3692 ;;
61fec9ff 3693 *-*-netware*)
671aa708
NN
3694 ;;
3695 *-*-rtems*)
2909494b 3696 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3697 # this is not caught below because this stanza matches earlier
3698 case $target in
3699 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3700 esac
671aa708 3701 ;;
a8ba31f2
EC
3702 # The tpf target doesn't support gdb yet.
3703 *-*-tpf*)
6a789d5e 3704 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3705 ;;
5785c0ed 3706 *-*-uclinux*)
6a789d5e 3707 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3708 ;;
671aa708 3709 *-*-vxworks*)
671aa708
NN
3710 ;;
3711 alpha*-dec-osf*)
3712 # ld works, but does not support shared libraries.
671aa708 3713 # gas doesn't generate exception information.
6a789d5e 3714 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3715 ;;
3716 alpha*-*-*vms*)
2909494b 3717 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3718 ;;
671aa708
NN
3719 alpha*-*-*)
3720 # newlib is not 64 bit ready
2909494b 3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3722 ;;
671aa708 3723 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3724 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3725 ;;
53426f6c 3726 arc-*-*|arceb-*-*)
ebb9f8b0 3727 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3728 ;;
671aa708 3729 arm-*-pe*)
2909494b 3730 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3731 ;;
671aa708 3732 arm-*-riscix*)
0036370f 3733 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3734 ;;
b588ae30
GJL
3735 avr-*-rtems*)
3736 ;;
3737 avr-*-*)
3738 if test x${with_avrlibc} != xno; then
3739 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 fi
3741 ;;
671aa708 3742 c4x-*-* | tic4x-*-*)
0036370f 3743 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3744 ;;
0036370f
JM
3745 tic54x-*-*)
3746 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3747 ;;
671aa708 3748 d10v-*-*)
0036370f 3749 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3750 ;;
3751 d30v-*-*)
0036370f 3752 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3753 ;;
3754 fr30-*-elf*)
2909494b 3755 noconfigdirs="$noconfigdirs gdb"
671aa708 3756 ;;
55f2d967 3757 moxie-*-*)
55f2d967
AG
3758 noconfigdirs="$noconfigdirs gprof"
3759 ;;
671aa708 3760 h8300*-*-*)
2909494b 3761 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3762 ;;
3763 h8500-*-*)
0036370f 3764 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3765 ;;
ee6a22df 3766 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3767 ;;
4569f85e 3768 hppa*64*-*-linux*)
671aa708 3769 ;;
56f8587a 3770 hppa*-*-linux*)
3e732ba0 3771 ;;
671aa708 3772 hppa*-*-*elf* | \
671aa708
NN
3773 hppa*-*-lites* | \
3774 hppa*-*-openbsd* | \
3775 hppa*64*-*-*)
671aa708 3776 ;;
2a332582 3777 hppa*-hp-hpux11*)
1bcce263 3778 noconfigdirs="$noconfigdirs ld"
2a332582 3779 ;;
c03353e2 3780 hppa*-*-pro*)
c03353e2 3781 ;;
671aa708 3782 hppa*-*-*)
2909494b 3783 noconfigdirs="$noconfigdirs ld"
671aa708 3784 ;;
fb87ad5d 3785 i960-*-*)
0036370f 3786 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3787 ;;
671aa708
NN
3788 ia64*-*-elf*)
3789 # No gdb support yet.
1bcce263 3790 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3791 ;;
3792 ia64*-**-hpux*)
5a2931d1 3793 # No ld support yet.
2909494b 3794 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3795 ;;
52535a64 3796 ia64*-*-*vms*)
091fe9ca
TG
3797 # No ld support yet.
3798 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3799 ;;
ef4c4300 3800 i[3456789]86-w64-mingw*)
ef4c4300
KT
3801 ;;
3802 i[3456789]86-*-mingw*)
b91f0a41 3803 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3804 ;;
671aa708
NN
3805 *-*-cygwin*)
3806 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3807 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3808 # always build newlib if winsup directory is present.
b91f0a41 3809 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3810 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3811 elif test -d "$srcdir/newlib"; then
b91f0a41 3812 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3813 fi
1c710c3c 3814 ;;
f2a0e225 3815 i[3456789]86-*-pe)
ebb9f8b0 3816 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3817 ;;
f2a0e225 3818 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3819 # The linker does not yet know about weak symbols in COFF,
3820 # and is not configured to handle mixed ELF and COFF.
0036370f 3821 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3822 ;;
f2a0e225 3823 i[3456789]86-*-sco*)
0036370f 3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3825 ;;
fbdd5d87 3826 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3827 noconfigdirs="$noconfigdirs target-libgloss"
3828 ;;
f2a0e225 3829 i[3456789]86-*-sysv4*)
0036370f 3830 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3831 ;;
f2a0e225 3832 i[3456789]86-*-beos*)
6a789d5e 3833 noconfigdirs="$noconfigdirs gdb"
3aa83176 3834 ;;
d1f8db0c 3835 i[3456789]86-*-rdos*)
6a789d5e 3836 noconfigdirs="$noconfigdirs gdb"
c03353e2 3837 ;;
671aa708 3838 mmix-*-*)
2909494b 3839 noconfigdirs="$noconfigdirs gdb"
671aa708 3840 ;;
ab34901f 3841 mt-*-*)
79dd769c
AH
3842 noconfigdirs="$noconfigdirs sim"
3843 ;;
671aa708
NN
3844 powerpc-*-aix*)
3845 # copied from rs6000-*-* entry
6a789d5e 3846 noconfigdirs="$noconfigdirs gprof"
671aa708 3847 ;;
4569f85e 3848 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3849 target_configdirs="$target_configdirs target-winsup"
0036370f 3850 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3851 # always build newlib.
3852 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3853 ;;
3854 # This is temporary until we can link against shared libraries
3855 powerpcle-*-solaris*)
0036370f 3856 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3857 ;;
3858 powerpc-*-beos*)
6a789d5e 3859 noconfigdirs="$noconfigdirs gdb"
671aa708 3860 ;;
671aa708 3861 rs6000-*-lynxos*)
6a789d5e 3862 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3863 ;;
3864 rs6000-*-aix*)
6a789d5e 3865 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3866 ;;
3867 rs6000-*-*)
2909494b 3868 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3869 ;;
3870 m68k-apollo-*)
0036370f 3871 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3872 ;;
ca9fe997 3873 microblaze*)
2909494b 3874 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3875 ;;
d896cc4d 3876 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3877 if test x$with_newlib = xyes; then
3878 noconfigdirs="$noconfigdirs gprof"
3879 fi
d9dced13 3880 ;;
671aa708 3881 mips*-*-irix5*)
0036370f 3882 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3883 ;;
3884 mips*-*-irix6*)
2909494b 3885 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3886 ;;
671aa708 3887 mips*-*-bsd*)
bc98bcc4 3888 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3889 ;;
671aa708 3890 mips*-*-linux*)
671aa708 3891 ;;
bc98bcc4
JBG
3892 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3893 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3894 noconfigdirs="$noconfigdirs ld gas gprof"
3895 ;;
671aa708 3896 mips*-*-*)
2909494b 3897 noconfigdirs="$noconfigdirs gprof"
671aa708 3898 ;;
d896cc4d
JBG
3899 nds32*-*-*)
3900 noconfigdirs="$noconfigdirs gdb"
3901 ;;
738f2522
BS
3902 nvptx*-*-*)
3903 # nvptx is just a compiler
3904 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3905 ;;
d896cc4d
JBG
3906 or1k*-*-*)
3907 noconfigdirs="$noconfigdirs gdb"
3908 ;;
669f01d8 3909 sh-*-* | sh64-*-*)
ea2002ba
CB
3910 case "${target}" in
3911 sh*-*-elf)
2909494b 3912 ;;
ea2002ba 3913 *)
2909494b 3914 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3915 esac
671aa708 3916 ;;
671aa708 3917 sparc-*-sunos4*)
6a789d5e 3918 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3919 use_gnu_ld=no
3920 fi
3921 ;;
b42f0d7e 3922 tic6x-*-*)
0d557ff8 3923 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3924 ;;
341c653c 3925 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3926 noconfigdirs="$noconfigdirs sim"
3927 ;;
671aa708 3928 v810-*-*)
0036370f 3929 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3930 ;;
3931 vax-*-*)
2909494b 3932 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3933 ;;
671aa708 3934esac
79c06341 3935
671aa708
NN
3936# If we aren't building newlib, then don't build libgloss, since libgloss
3937# depends upon some newlib header files.
3938case "${noconfigdirs}" in
3939 *target-libgloss*) ;;
3940 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3941esac
3942
671aa708 3943# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3944host_makefile_frag=/dev/null
3945if test -d ${srcdir}/config ; then
3946case "${host}" in
f2a0e225 3947 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3948 host_makefile_frag="config/mh-djgpp"
3949 ;;
3950 *-cygwin*)
2a79c47f 3951
5213506e
RW
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3953$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3954echo a >cygwin-cat-check
e25a8c82 3955if test `cat cygwin-cat-check` = a ; then
2a79c47f 3956 rm cygwin-cat-check
5213506e
RW
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958$as_echo "yes" >&6; }
2a79c47f
NC
3959else
3960 rm cygwin-cat-check
5213506e
RW
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3964 Please either mount the build directory in binary mode or run the following
3965 commands before running any configure script:
3966set -o igncr
3967export SHELLOPTS
5213506e 3968 " "$LINENO" 5
2a79c47f
NC
3969fi
3970
671aa708
NN
3971 host_makefile_frag="config/mh-cygwin"
3972 ;;
c53a18d3 3973 *-mingw*)
1f5a6b84 3974 host_makefile_frag="config/mh-mingw"
95af8923 3975 ;;
cabb9d59 3976 alpha*-linux*)
13be44ed
UB
3977 host_makefile_frag="config/mh-alpha-linux"
3978 ;;
efd41714 3979 hppa*-hp-hpux10*)
efd41714 3980 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3981 ;;
111eeb6e 3982 hppa*-hp-hpux*)
efd41714
PB
3983 host_makefile_frag="config/mh-pa"
3984 ;;
3985 hppa*-*)
3986 host_makefile_frag="config/mh-pa"
3987 ;;
d8ed14ce
IS
3988 *-*-darwin*)
3989 host_makefile_frag="config/mh-darwin"
be8fff81 3990 ;;
d19bca38
PB
3991 powerpc-*-aix*)
3992 host_makefile_frag="config/mh-ppc-aix"
3993 ;;
3994 rs6000-*-aix*)
3995 host_makefile_frag="config/mh-ppc-aix"
3996 ;;
671aa708
NN
3997esac
3998fi
3999
55ffb5ed 4000if test "${build}" != "${host}" ; then
0999159b
PB
4001 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4002 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4003 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
4004 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4005 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4006 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4007 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
4008 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4009 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4010 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4011 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4012 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4013 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4014else
4015 AR_FOR_BUILD="\$(AR)"
4016 AS_FOR_BUILD="\$(AS)"
fb0103e5 4017 CC_FOR_BUILD="\$(CC)"
0999159b
PB
4018 CXX_FOR_BUILD="\$(CXX)"
4019 GCJ_FOR_BUILD="\$(GCJ)"
4020 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4021 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
4022 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4023 LD_FOR_BUILD="\$(LD)"
4024 NM_FOR_BUILD="\$(NM)"
4025 RANLIB_FOR_BUILD="\$(RANLIB)"
4026 WINDRES_FOR_BUILD="\$(WINDRES)"
4027 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4028fi
4029
4030ac_ext=c
1c710c3c
DJ
4031ac_cpp='$CPP $CPPFLAGS'
4032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if test "${ac_cv_prog_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4042else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
5213506e
RW
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4055 break 2
4056 fi
4057done
5213506e
RW
4058 done
4059IFS=$as_save_IFS
1c710c3c
DJ
4060
4061fi
4062fi
4063CC=$ac_cv_prog_CC
4064if test -n "$CC"; then
5213506e
RW
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066$as_echo "$CC" >&6; }
1c710c3c 4067else
5213506e
RW
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
1c710c3c
DJ
4070fi
4071
5213506e 4072
1c710c3c
DJ
4073fi
4074if test -z "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
fb0103e5
RG
4076 # Extract the first word of "gcc", so it can be a program name with args.
4077set dummy gcc; ac_word=$2
5213506e
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4082else
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
5213506e
RW
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4093 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4095 break 2
4096 fi
4097done
5213506e
RW
4098 done
4099IFS=$as_save_IFS
1c710c3c
DJ
4100
4101fi
4102fi
4103ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104if test -n "$ac_ct_CC"; then
5213506e
RW
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4107else
5213506e
RW
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
1c710c3c
DJ
4110fi
4111
5213506e
RW
4112 if test "x$ac_ct_CC" = x; then
4113 CC=""
4114 else
4115 case $cross_compiling:$ac_tool_warned in
4116yes:)
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119ac_tool_warned=yes ;;
4120esac
4121 CC=$ac_ct_CC
4122 fi
1c710c3c
DJ
4123else
4124 CC="$ac_cv_prog_CC"
4125fi
4126
4127if test -z "$CC"; then
5213506e
RW
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4130set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if test "${ac_cv_prog_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4135else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138else
1c710c3c
DJ
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
5213506e
RW
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4146 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4148 break 2
4149 fi
4150done
5213506e
RW
4151 done
4152IFS=$as_save_IFS
1c710c3c 4153
0b0dc272 4154fi
0b0dc272 4155fi
1c710c3c 4156CC=$ac_cv_prog_CC
af71363e 4157if test -n "$CC"; then
5213506e
RW
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159$as_echo "$CC" >&6; }
2aeb72e9 4160else
5213506e
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
2aeb72e9
DD
4163fi
4164
2aeb72e9 4165
5213506e 4166 fi
1c710c3c 4167fi
55ffb5ed
NN
4168if test -z "$CC"; then
4169 # Extract the first word of "cc", so it can be a program name with args.
4170set dummy cc; ac_word=$2
5213506e
RW
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4175else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
0b0dc272 4179 ac_prog_rejected=no
1c710c3c
DJ
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
5213506e
RW
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188 ac_prog_rejected=yes
4189 continue
4190 fi
4191 ac_cv_prog_CC="cc"
5213506e 4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4193 break 2
4194 fi
4195done
5213506e
RW
4196 done
4197IFS=$as_save_IFS
1c710c3c 4198
55ffb5ed
NN
4199if test $ac_prog_rejected = yes; then
4200 # We found a bogon in the path, so make sure we never use it.
4201 set dummy $ac_cv_prog_CC
4202 shift
1c710c3c 4203 if test $# != 0; then
55ffb5ed
NN
4204 # We chose a different compiler from the bogus one.
4205 # However, it has the same basename, so the bogon will be chosen
4206 # first if we set CC to just the basename; use the full file name.
4207 shift
1c710c3c 4208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4209 fi
4210fi
4211fi
4212fi
1c710c3c 4213CC=$ac_cv_prog_CC
55ffb5ed 4214if test -n "$CC"; then
5213506e
RW
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216$as_echo "$CC" >&6; }
55ffb5ed 4217else
5213506e
RW
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219$as_echo "no" >&6; }
55ffb5ed
NN
4220fi
4221
5213506e 4222
1c710c3c
DJ
4223fi
4224if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
5213506e 4226 for ac_prog in cl.exe
1c710c3c
DJ
4227 do
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
4232if test "${ac_cv_prog_CC+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4234else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237else
1c710c3c
DJ
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
5213506e
RW
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4247 break 2
4248 fi
4249done
5213506e
RW
4250 done
4251IFS=$as_save_IFS
1c710c3c 4252
55ffb5ed
NN
4253fi
4254fi
1c710c3c 4255CC=$ac_cv_prog_CC
55ffb5ed 4256if test -n "$CC"; then
5213506e
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258$as_echo "$CC" >&6; }
a4b9e93e 4259else
5213506e
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261$as_echo "no" >&6; }
fb0103e5 4262fi
af71363e 4263
5213506e 4264
1c710c3c
DJ
4265 test -n "$CC" && break
4266 done
af71363e 4267fi
1c710c3c
DJ
4268if test -z "$CC"; then
4269 ac_ct_CC=$CC
5213506e 4270 for ac_prog in cl.exe
1c710c3c
DJ
4271do
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273set dummy $ac_prog; ac_word=$2
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
4276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
0b0dc272 4278else
1c710c3c
DJ
4279 if test -n "$ac_ct_CC"; then
4280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4281else
1c710c3c
DJ
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
5213506e
RW
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4289 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4291 break 2
4292 fi
4293done
5213506e
RW
4294 done
4295IFS=$as_save_IFS
1c710c3c 4296
af71363e
AS
4297fi
4298fi
1c710c3c
DJ
4299ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300if test -n "$ac_ct_CC"; then
5213506e
RW
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4302$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4303else
5213506e
RW
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305$as_echo "no" >&6; }
af71363e 4306fi
0b0dc272 4307
5213506e 4308
1c710c3c
DJ
4309 test -n "$ac_ct_CC" && break
4310done
4311
5213506e
RW
4312 if test "x$ac_ct_CC" = x; then
4313 CC=""
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316yes:)
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319ac_tool_warned=yes ;;
4320esac
4321 CC=$ac_ct_CC
4322 fi
1c710c3c
DJ
4323fi
4324
4325fi
4326
4327
5213506e
RW
4328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error "no acceptable C compiler found in \$PATH
4331See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4332
4333# Provide some information about the compiler.
5213506e
RW
4334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4335set X $ac_compile
4336ac_compiler=$2
4337for ac_option in --version -v -V -qversion; do
4338 { { ac_try="$ac_compiler $ac_option >&5"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344$as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4346 ac_status=$?
5213506e
RW
4347 if test -s conftest.err; then
4348 sed '10a\
4349... rest of stderr output deleted ...
4350 10q' conftest.err >conftest.er1
4351 cat conftest.er1 >&5
4352 rm -f conftest.er1 conftest.err
4353 fi
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356done
1c710c3c 4357
5213506e 4358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4359/* end confdefs.h. */
4360
4361int
4362main ()
4363{
4364
4365 ;
4366 return 0;
4367}
4368_ACEOF
4369ac_clean_files_save=$ac_clean_files
5213506e 4370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4371# Try to create an executable without -o first, disregard a.out.
4372# It will help us diagnose broken compilers, and finding out an intuition
4373# of exeext.
5213506e
RW
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4375$as_echo_n "checking for C compiler default output file name... " >&6; }
4376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4377
4378# The possible output files:
4379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4380
4381ac_rmfiles=
4382for ac_file in $ac_files
4383do
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4386 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4387 esac
4388done
4389rm -f $ac_rmfiles
4390
4391if { { ac_try="$ac_link_default"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397$as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_link_default") 2>&5
1c710c3c 4399 ac_status=$?
5213506e
RW
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; then :
4402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4404# in a Makefile. We should not override ac_cv_exeext if it was cached,
4405# so that the user can short-circuit this test for compilers unknown to
4406# Autoconf.
4407for ac_file in $ac_files ''
1c710c3c
DJ
4408do
4409 test -f "$ac_file" || continue
4410 case $ac_file in
5213506e 4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4412 ;;
4413 [ab].out )
4414 # We found the default executable, but exeext='' is most
4415 # certainly right.
4416 break;;
4417 *.* )
5213506e
RW
4418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4419 then :; else
4420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4421 fi
4422 # We set ac_cv_exeext here because the later test for it is not
4423 # safe: cross compilers may not add the suffix if given an `-o'
4424 # argument, so we may need to know it at that point already.
4425 # Even if this section looks crufty: it has the advantage of
4426 # actually working.
1c710c3c
DJ
4427 break;;
4428 * )
4429 break;;
4430 esac
4431done
5213506e
RW
4432test "$ac_cv_exeext" = no && ac_cv_exeext=
4433
1c710c3c 4434else
5213506e
RW
4435 ac_file=''
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4438$as_echo "$ac_file" >&6; }
4439if test -z "$ac_file"; then :
4440 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4441sed 's/^/| /' conftest.$ac_ext >&5
4442
5213506e
RW
4443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445{ as_fn_set_status 77
4446as_fn_error "C compiler cannot create executables
4447See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4448fi
1c710c3c 4449ac_exeext=$ac_cv_exeext
1c710c3c 4450
5213506e 4451# Check that the compiler produces executables we can run. If not, either
1c710c3c 4452# the compiler is broken, or we cross compile.
5213506e
RW
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4454$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4455# If not cross compiling, check that we can run a simple program.
4456if test "$cross_compiling" != yes; then
4457 if { ac_try='./$ac_file'
5213506e
RW
4458 { { case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_try") 2>&5
1c710c3c 4465 ac_status=$?
5213506e
RW
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; }; then
1c710c3c
DJ
4468 cross_compiling=no
4469 else
4470 if test "$cross_compiling" = maybe; then
4471 cross_compiling=yes
4472 else
5213506e
RW
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475as_fn_error "cannot run C compiled programs.
1c710c3c 4476If you meant to cross compile, use \`--host'.
5213506e 4477See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4478 fi
4479 fi
4480fi
5213506e
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482$as_echo "yes" >&6; }
1c710c3c 4483
5213506e 4484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4485ac_clean_files=$ac_clean_files_save
5213506e 4486# Check that the compiler produces executables we can run. If not, either
1c710c3c 4487# the compiler is broken, or we cross compile.
5213506e
RW
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4489$as_echo_n "checking whether we are cross compiling... " >&6; }
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4491$as_echo "$cross_compiling" >&6; }
4492
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4494$as_echo_n "checking for suffix of executables... " >&6; }
4495if { { ac_try="$ac_link"
4496case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501$as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link") 2>&5
1c710c3c 4503 ac_status=$?
5213506e
RW
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
1c710c3c
DJ
4506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4508# work properly (i.e., refer to `conftest.exe'), while it won't with
4509# `rm'.
4510for ac_file in conftest.exe conftest conftest.*; do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
5213506e 4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4515 break;;
4516 * ) break;;
4517 esac
4518done
af71363e 4519else
5213506e
RW
4520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522as_fn_error "cannot compute suffix of executables: cannot compile and link
4523See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4524fi
1c710c3c 4525rm -f conftest$ac_cv_exeext
5213506e
RW
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4527$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4528
4529rm -f conftest.$ac_ext
4530EXEEXT=$ac_cv_exeext
4531ac_exeext=$EXEEXT
5213506e
RW
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533$as_echo_n "checking for suffix of object files... " >&6; }
4534if test "${ac_cv_objext+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
1c710c3c 4536else
5213506e 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4538/* end confdefs.h. */
4539
4540int
4541main ()
4542{
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548rm -f conftest.o conftest.obj
5213506e
RW
4549if { { ac_try="$ac_compile"
4550case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553esac
4554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555$as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_compile") 2>&5
1c710c3c 4557 ac_status=$?
5213506e
RW
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 for ac_file in conftest.o conftest.obj conftest.*; do
4561 test -f "$ac_file" || continue;
1c710c3c 4562 case $ac_file in
5213506e 4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4565 break;;
4566 esac
4567done
4568else
5213506e 4569 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
5213506e
RW
4572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574as_fn_error "cannot compute suffix of object files: cannot compile
4575See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4576fi
1c710c3c
DJ
4577rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578fi
5213506e
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4580$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4581OBJEXT=$ac_cv_objext
4582ac_objext=$OBJEXT
5213506e
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4585if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
1c710c3c 4587else
5213506e 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4589/* end confdefs.h. */
4590
4591int
4592main ()
4593{
4594#ifndef __GNUC__
4595 choke me
4596#endif
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
5213506e 4602if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4603 ac_compiler_gnu=yes
4604else
5213506e 4605 ac_compiler_gnu=no
1c710c3c 4606fi
5213506e 4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4608ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609
4610fi
5213506e
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4612$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4613if test $ac_compiler_gnu = yes; then
4614 GCC=yes
4615else
4616 GCC=
4617fi
1c710c3c
DJ
4618ac_test_CFLAGS=${CFLAGS+set}
4619ac_save_CFLAGS=$CFLAGS
5213506e
RW
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4621$as_echo_n "checking whether $CC accepts -g... " >&6; }
4622if test "${ac_cv_prog_cc_g+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624else
4625 ac_save_c_werror_flag=$ac_c_werror_flag
4626 ac_c_werror_flag=yes
4627 ac_cv_prog_cc_g=no
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4630/* end confdefs.h. */
4631
4632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
5213506e 4640if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4641 ac_cv_prog_cc_g=yes
4642else
5213506e
RW
4643 CFLAGS=""
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
4646
4647int
4648main ()
4649{
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655if ac_fn_c_try_compile "$LINENO"; then :
4656
4657else
4658 ac_c_werror_flag=$ac_save_c_werror_flag
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h. */
af71363e 4662
5213506e
RW
4663int
4664main ()
4665{
4666
4667 ;
4668 return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_g=yes
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4675fi
5213506e 4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4677fi
5213506e
RW
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4682$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4683if test "$ac_test_CFLAGS" = set; then
1c710c3c 4684 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4685elif test $ac_cv_prog_cc_g = yes; then
4686 if test "$GCC" = yes; then
4687 CFLAGS="-g -O2"
4688 else
4689 CFLAGS="-g"
4690 fi
4691else
4692 if test "$GCC" = yes; then
4693 CFLAGS="-O2"
4694 else
4695 CFLAGS=
4696 fi
4697fi
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4700if test "${ac_cv_prog_cc_c89+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
1c710c3c 4702else
5213506e 4703 ac_cv_prog_cc_c89=no
1c710c3c 4704ac_save_CC=$CC
5213506e 4705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4706/* end confdefs.h. */
4707#include <stdarg.h>
4708#include <stdio.h>
4709#include <sys/types.h>
4710#include <sys/stat.h>
4711/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4712struct buf { int x; };
4713FILE * (*rcsopen) (struct buf *, struct stat *, int);
4714static char *e (p, i)
4715 char **p;
4716 int i;
4717{
4718 return p[i];
4719}
4720static char *f (char * (*g) (char **, int), char **p, ...)
4721{
4722 char *s;
4723 va_list v;
4724 va_start (v,p);
4725 s = g (p, va_arg (v,int));
4726 va_end (v);
4727 return s;
4728}
4729
4730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4731 function prototypes and stuff, but not '\xHH' hex character constants.
4732 These don't provoke an error unfortunately, instead are silently treated
5213506e 4733 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4735 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4736 that's true only with -std. */
1c710c3c
DJ
4737int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4738
5213506e
RW
4739/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4740 inside strings and character constants. */
4741#define FOO(x) 'x'
4742int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4743
1c710c3c
DJ
4744int test (int i, double x);
4745struct s1 {int (*f) (int a);};
4746struct s2 {int (*f) (double a);};
4747int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4748int argc;
4749char **argv;
4750int
4751main ()
4752{
4753return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4754 ;
4755 return 0;
4756}
4757_ACEOF
5213506e
RW
4758for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4760do
4761 CC="$ac_save_CC $ac_arg"
5213506e
RW
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4764fi
5213506e
RW
4765rm -f core conftest.err conftest.$ac_objext
4766 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4767done
5213506e 4768rm -f conftest.$ac_ext
1c710c3c
DJ
4769CC=$ac_save_CC
4770
4771fi
5213506e
RW
4772# AC_CACHE_VAL
4773case "x$ac_cv_prog_cc_c89" in
4774 x)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4776$as_echo "none needed" >&6; } ;;
4777 xno)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4779$as_echo "unsupported" >&6; } ;;
1c710c3c 4780 *)
5213506e
RW
4781 CC="$CC $ac_cv_prog_cc_c89"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4783$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4784esac
5213506e 4785if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4786
2aeb72e9
DD
4787fi
4788
2aeb72e9
DD
4789ac_ext=c
4790ac_cpp='$CPP $CPPFLAGS'
4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
5213506e 4795ac_ext=cpp
2aeb72e9
DD
4796ac_cpp='$CXXCPP $CPPFLAGS'
4797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4800if test -z "$CXX"; then
4801 if test -n "$CCC"; then
4802 CXX=$CCC
4803 else
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4806 do
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810$as_echo_n "checking for $ac_word... " >&6; }
4811if test "${ac_cv_prog_CXX+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4813else
4814 if test -n "$CXX"; then
4815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
5213506e
RW
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4826 break 2
4827 fi
4828done
5213506e
RW
4829 done
4830IFS=$as_save_IFS
55ffb5ed 4831
c3a86da9
DJ
4832fi
4833fi
4834CXX=$ac_cv_prog_CXX
4835if test -n "$CXX"; then
5213506e
RW
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4837$as_echo "$CXX" >&6; }
c3a86da9 4838else
5213506e
RW
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840$as_echo "no" >&6; }
c3a86da9
DJ
4841fi
4842
5213506e 4843
c3a86da9
DJ
4844 test -n "$CXX" && break
4845 done
4846fi
4847if test -z "$CXX"; then
4848 ac_ct_CXX=$CXX
5213506e 4849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4850do
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852set dummy $ac_prog; ac_word=$2
5213506e
RW
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4857else
4858 if test -n "$ac_ct_CXX"; then
4859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
5213506e
RW
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4868 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4870 break 2
4871 fi
4872done
5213506e
RW
4873 done
4874IFS=$as_save_IFS
c3a86da9
DJ
4875
4876fi
4877fi
4878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4879if test -n "$ac_ct_CXX"; then
5213506e
RW
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4881$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4882else
5213506e
RW
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
c3a86da9
DJ
4885fi
4886
5213506e 4887
c3a86da9
DJ
4888 test -n "$ac_ct_CXX" && break
4889done
c3a86da9 4890
5213506e
RW
4891 if test "x$ac_ct_CXX" = x; then
4892 CXX="g++"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895yes:)
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898ac_tool_warned=yes ;;
4899esac
4900 CXX=$ac_ct_CXX
4901 fi
c3a86da9
DJ
4902fi
4903
5213506e
RW
4904 fi
4905fi
c3a86da9 4906# Provide some information about the compiler.
5213506e
RW
4907$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4908set X $ac_compile
4909ac_compiler=$2
4910for ac_option in --version -v -V -qversion; do
4911 { { ac_try="$ac_compiler $ac_option >&5"
4912case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915esac
4916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4917$as_echo "$ac_try_echo"; } >&5
4918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4919 ac_status=$?
5213506e
RW
4920 if test -s conftest.err; then
4921 sed '10a\
4922... rest of stderr output deleted ...
4923 10q' conftest.err >conftest.er1
4924 cat conftest.er1 >&5
4925 rm -f conftest.er1 conftest.err
4926 fi
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }
4929done
c3a86da9 4930
5213506e
RW
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4932$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4933if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
c3a86da9 4935else
5213506e 4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4937/* end confdefs.h. */
4938
4939int
4940main ()
4941{
4942#ifndef __GNUC__
4943 choke me
4944#endif
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
5213506e 4950if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4951 ac_compiler_gnu=yes
4952else
5213506e 4953 ac_compiler_gnu=no
c3a86da9 4954fi
5213506e 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4956ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4957
4958fi
5213506e
RW
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4960$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4961if test $ac_compiler_gnu = yes; then
4962 GXX=yes
4963else
4964 GXX=
4965fi
c3a86da9
DJ
4966ac_test_CXXFLAGS=${CXXFLAGS+set}
4967ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4969$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4970if test "${ac_cv_prog_cxx_g+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972else
4973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4974 ac_cxx_werror_flag=yes
4975 ac_cv_prog_cxx_g=no
4976 CXXFLAGS="-g"
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4978/* end confdefs.h. */
4979
4980int
4981main ()
4982{
4983
4984 ;
4985 return 0;
4986}
4987_ACEOF
5213506e 4988if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4989 ac_cv_prog_cxx_g=yes
4990else
5213506e
RW
4991 CXXFLAGS=""
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4993/* end confdefs.h. */
5213506e 4994
c3a86da9
DJ
4995int
4996main ()
4997{
5213506e 4998
c3a86da9
DJ
4999 ;
5000 return 0;
5001}
5002_ACEOF
5213506e 5003if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5004
5213506e
RW
5005else
5006 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5007 CXXFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5009/* end confdefs.h. */
5213506e 5010
c3a86da9
DJ
5011int
5012main ()
5013{
5213506e 5014
c3a86da9
DJ
5015 ;
5016 return 0;
5017}
5018_ACEOF
5213506e
RW
5019if ac_fn_cxx_try_compile "$LINENO"; then :
5020 ac_cv_prog_cxx_g=yes
11a67599 5021fi
5213506e
RW
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5030$as_echo "$ac_cv_prog_cxx_g" >&6; }
5031if test "$ac_test_CXXFLAGS" = set; then
5032 CXXFLAGS=$ac_save_CXXFLAGS
5033elif test $ac_cv_prog_cxx_g = yes; then
5034 if test "$GXX" = yes; then
5035 CXXFLAGS="-g -O2"
5036 else
5037 CXXFLAGS="-g"
5038 fi
5039else
5040 if test "$GXX" = yes; then
5041 CXXFLAGS="-O2"
5042 else
5043 CXXFLAGS=
5044 fi
c3a86da9 5045fi
c3a86da9
DJ
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052
5053# We must set the default linker to the linker used by gcc for the correct
5054# operation of libtool. If LD is not defined and we are using gcc, try to
5055# set the LD default to the ld used by gcc.
5056if test -z "$LD"; then
5057 if test "$GCC" = yes; then
5058 case $build in
5059 *-*-mingw*)
5060 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5061 *)
5062 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5063 esac
5064 case $gcc_prog_ld in
5065 # Accept absolute paths.
5066 [\\/]* | [A-Za-z]:[\\/]*)
5067 LD="$gcc_prog_ld" ;;
5068 esac
5069 fi
23f6b2f9
PB
5070fi
5071
0b21f5d3
EB
5072# Check whether -static-libstdc++ -static-libgcc is supported.
5073have_static_libs=no
5074if test "$GCC" = yes; then
5075 saved_LDFLAGS="$LDFLAGS"
5076
5077 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5079$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5080 ac_ext=cpp
5081ac_cpp='$CXXCPP $CPPFLAGS'
5082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5085
5086
5087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
0d6414b2
EB
5089
5090#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5091#error -static-libstdc++ not implemented
5092#endif
0b21f5d3
EB
5093int main() {}
5094_ACEOF
5095if ac_fn_cxx_try_link "$LINENO"; then :
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097$as_echo "yes" >&6; }; have_static_libs=yes
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 ac_ext=c
5105ac_cpp='$CPP $CPPFLAGS'
5106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110
5111 LDFLAGS="$saved_LDFLAGS"
5112fi
5113
23f6b2f9
PB
5114
5115
55ffb5ed 5116
1c710c3c
DJ
5117if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5119set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121$as_echo_n "checking for $ac_word... " >&6; }
5122if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5124else
5125 if test -n "$GNATBIND"; then
5126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5127else
1c710c3c
DJ
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5213506e
RW
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5135 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5137 break 2
5138 fi
5139done
5213506e
RW
5140 done
5141IFS=$as_save_IFS
1c710c3c 5142
55ffb5ed
NN
5143fi
5144fi
1c710c3c 5145GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5146if test -n "$GNATBIND"; then
5213506e
RW
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5148$as_echo "$GNATBIND" >&6; }
55ffb5ed 5149else
5213506e
RW
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
55ffb5ed
NN
5152fi
5153
5213506e 5154
1c710c3c 5155fi
55ffb5ed 5156if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5157 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5158 # Extract the first word of "gnatbind", so it can be a program name with args.
5159set dummy gnatbind; ac_word=$2
5213506e
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
55ffb5ed 5164else
1c710c3c
DJ
5165 if test -n "$ac_ct_GNATBIND"; then
5166 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5167else
1c710c3c
DJ
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5213506e
RW
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5175 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5177 break 2
5178 fi
5179done
5213506e
RW
5180 done
5181IFS=$as_save_IFS
1c710c3c 5182
55ffb5ed
NN
5183fi
5184fi
1c710c3c
DJ
5185ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5186if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5188$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5189else
5213506e
RW
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
55ffb5ed
NN
5192fi
5193
5213506e
RW
5194 if test "x$ac_ct_GNATBIND" = x; then
5195 GNATBIND="no"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203 GNATBIND=$ac_ct_GNATBIND
5204 fi
55ffb5ed 5205else
1c710c3c 5206 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5207fi
5208
1c710c3c
DJ
5209if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5211set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
5214if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5305be7e
RG
5216else
5217 if test -n "$GNATMAKE"; then
5218 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5219else
1c710c3c
DJ
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5213506e
RW
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5227 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5229 break 2
5230 fi
5231done
5213506e
RW
5232 done
5233IFS=$as_save_IFS
1c710c3c 5234
5305be7e
RG
5235fi
5236fi
1c710c3c 5237GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5238if test -n "$GNATMAKE"; then
5213506e
RW
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5240$as_echo "$GNATMAKE" >&6; }
5305be7e 5241else
5213506e
RW
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5305be7e
RG
5244fi
5245
5213506e 5246
1c710c3c 5247fi
5305be7e 5248if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5249 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5250 # Extract the first word of "gnatmake", so it can be a program name with args.
5251set dummy gnatmake; ac_word=$2
5213506e
RW
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5305be7e 5256else
1c710c3c
DJ
5257 if test -n "$ac_ct_GNATMAKE"; then
5258 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5259else
1c710c3c
DJ
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5213506e
RW
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5267 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5269 break 2
5270 fi
5271done
5213506e
RW
5272 done
5273IFS=$as_save_IFS
1c710c3c 5274
5305be7e
RG
5275fi
5276fi
1c710c3c
DJ
5277ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5278if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5280$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5281else
5213506e
RW
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5305be7e
RG
5284fi
5285
5213506e
RW
5286 if test "x$ac_ct_GNATMAKE" = x; then
5287 GNATMAKE="no"
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290yes:)
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293ac_tool_warned=yes ;;
5294esac
5295 GNATMAKE=$ac_ct_GNATMAKE
5296 fi
5305be7e 5297else
1c710c3c 5298 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5299fi
5300
5213506e
RW
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5302$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5303if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5305else
5306 cat >conftest.adb <<EOF
5307procedure conftest is begin null; end conftest;
5308EOF
5309acx_cv_cc_gcc_supports_ada=no
5310# There is a bug in old released versions of GCC which causes the
5311# driver to exit successfully when the appropriate language module
5312# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5313# Therefore we must check for the error message as well as an
5314# unsuccessful exit.
1db673ca
RO
5315# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5316# given a .adb file, but produce no object file. So we must check
5317# if an object file was really produced to guard against this.
55ffb5ed 5318errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5319if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5320 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5321fi
5322rm -f conftest.*
5323fi
5213506e
RW
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5325$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5326
7cb62ef1 5327if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5328 have_gnat=yes
5329else
5330 have_gnat=no
5331fi
5332
5213506e
RW
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5334$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5335if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
a76494aa
PB
5337else
5338 echo abfoo >t1
5339 echo cdfoo >t2
5340 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5341 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5342 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5343 :
5344 else
5345 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5346 fi
5347 fi
a76494aa
PB
5348 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5349 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5350 :
a76494aa
PB
5351 else
5352 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5353 fi
5354 fi
5355 rm t1 t2
5356
5357fi
5213506e
RW
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5359$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5360do_compare="$gcc_cv_prog_cmp_skip"
5361
5362
55ffb5ed 5363
ff3ac0f4
ILT
5364# Check whether --enable-bootstrap was given.
5365if test "${enable_bootstrap+set}" = set; then :
5366 enableval=$enable_bootstrap;
5367else
5368 enable_bootstrap=default
5369fi
5370
5371
5372# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5373if test -r $srcdir/gcc/configure; then
5374 have_compiler=yes
5375else
5376 have_compiler=no
5377fi
ff3ac0f4
ILT
5378
5379case "$have_compiler:$host:$target:$enable_bootstrap" in
5380 *:*:*:no) ;;
5381
5382 # Default behavior. Enable bootstrap if we have a compiler
5383 # and we are in a native configuration.
5384 yes:$build:$build:default)
5385 enable_bootstrap=yes ;;
5386
5387 *:*:*:default)
5388 enable_bootstrap=no ;;
5389
5390 # We have a compiler and we are in a native configuration, bootstrap is ok
5391 yes:$build:$build:yes)
5392 ;;
5393
5394 # Other configurations, but we have a compiler. Assume the user knows
5395 # what he's doing.
5396 yes:*:*:yes)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5398$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5399 ;;
5400
5401 # No compiler: if they passed --enable-bootstrap explicitly, fail
5402 no:*:*:yes)
5403 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5404
5405 # Fail if wrong command line
5406 *)
5407 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5408 ;;
5409esac
5410
46070488
JM
5411# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5412# C++98 compiler can still start the bootstrap.
5413if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5414 CXX="$CXX -std=gnu++98"
46070488
JM
5415fi
5416
592c90ff
KG
5417# Used for setting $lt_cv_objdir
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5419$as_echo_n "checking for objdir... " >&6; }
5420if test "${lt_cv_objdir+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422else
5423 rm -f .libs 2>/dev/null
5424mkdir .libs 2>/dev/null
5425if test -d .libs; then
5426 lt_cv_objdir=.libs
5427else
5428 # MS-DOS does not allow filenames that begin with a dot.
5429 lt_cv_objdir=_libs
5430fi
5431rmdir .libs 2>/dev/null
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5434$as_echo "$lt_cv_objdir" >&6; }
5435objdir=$lt_cv_objdir
5436
5437
5438
5439
5440
5441cat >>confdefs.h <<_ACEOF
5442#define LT_OBJDIR "$lt_cv_objdir/"
5443_ACEOF
5444
5445
5446
acd26225 5447# Check for GMP, MPFR and MPC
3a5729ea 5448gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5449gmpinc=
e69bf64b 5450have_gmp=no
acd26225
KG
5451
5452# Specify a location for mpc
5453# check for this first so it ends up on the link line before mpfr.
5454
5213506e
RW
5455# Check whether --with-mpc was given.
5456if test "${with_mpc+set}" = set; then :
5457 withval=$with_mpc;
5458fi
acd26225 5459
acd26225 5460
9965e3cd 5461# Check whether --with-mpc-include was given.
5213506e
RW
5462if test "${with_mpc_include+set}" = set; then :
5463 withval=$with_mpc_include;
5464fi
acd26225 5465
acd26225 5466
9965e3cd 5467# Check whether --with-mpc-lib was given.
5213506e
RW
5468if test "${with_mpc_lib+set}" = set; then :
5469 withval=$with_mpc_lib;
5470fi
acd26225 5471
acd26225
KG
5472
5473if test "x$with_mpc" != x; then
3a5729ea
KG
5474 gmplibs="-L$with_mpc/lib $gmplibs"
5475 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5476fi
5477if test "x$with_mpc_include" != x; then
3a5729ea 5478 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5479fi
5480if test "x$with_mpc_lib" != x; then
3a5729ea 5481 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5482fi
5483if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5484 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5485 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5486 # Do not test the mpc version. Assume that it is sufficient, since
5487 # it is in the source tree, and the library has not been built yet
5488 # but it would be included on the link line in the version check below
5489 # hence making the test fail.
3a5729ea 5490 have_gmp=yes
acd26225 5491fi
e69bf64b 5492
bebf829d
PB
5493# Specify a location for mpfr
5494# check for this first so it ends up on the link line before gmp.
1c710c3c 5495
5213506e
RW
5496# Check whether --with-mpfr-dir was given.
5497if test "${with_mpfr_dir+set}" = set; then :
5498 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5499Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5500fi
5501
bebf829d
PB
5502
5503
5213506e
RW
5504# Check whether --with-mpfr was given.
5505if test "${with_mpfr+set}" = set; then :
5506 withval=$with_mpfr;
5507fi
1c710c3c 5508
bebf829d 5509
9965e3cd 5510# Check whether --with-mpfr-include was given.
5213506e
RW
5511if test "${with_mpfr_include+set}" = set; then :
5512 withval=$with_mpfr_include;
5513fi
1c710c3c 5514
8a877c9c 5515
9965e3cd 5516# Check whether --with-mpfr-lib was given.
5213506e
RW
5517if test "${with_mpfr_lib+set}" = set; then :
5518 withval=$with_mpfr_lib;
5519fi
8a877c9c 5520
bebf829d
PB
5521
5522if test "x$with_mpfr" != x; then
5523 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5524 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5525fi
8a877c9c 5526if test "x$with_mpfr_include" != x; then
3a5729ea 5527 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5528fi
5529if test "x$with_mpfr_lib" != x; then
5530 gmplibs="-L$with_mpfr_lib $gmplibs"
5531fi
e69bf64b 5532if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5533 # MPFR v3.1.0 moved the sources into a src sub-directory.
5534 if test -d ${srcdir}/mpfr/src; then
5535 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5536 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5537 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5538 else
5539 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5540 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5541 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5542 fi
e69bf64b
PB
5543 # Do not test the mpfr version. Assume that it is sufficient, since
5544 # it is in the source tree, and the library has not been built yet
5545 # but it would be included on the link line in the version check below
5546 # hence making the test fail.
5547 have_gmp=yes
5548fi
bebf829d 5549
6de9cd9a 5550# Specify a location for gmp
1c710c3c 5551
5213506e
RW
5552# Check whether --with-gmp-dir was given.
5553if test "${with_gmp_dir+set}" = set; then :
5554 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5555Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5556fi
5557
6de9cd9a 5558
6de9cd9a 5559
5213506e
RW
5560# Check whether --with-gmp was given.
5561if test "${with_gmp+set}" = set; then :
5562 withval=$with_gmp;
5563fi
1c710c3c 5564
6de9cd9a 5565
9965e3cd 5566# Check whether --with-gmp-include was given.
5213506e
RW
5567if test "${with_gmp_include+set}" = set; then :
5568 withval=$with_gmp_include;
5569fi
1c710c3c 5570
8a877c9c 5571
9965e3cd 5572# Check whether --with-gmp-lib was given.
5213506e
RW
5573if test "${with_gmp_lib+set}" = set; then :
5574 withval=$with_gmp_lib;
5575fi
8a877c9c
KG
5576
5577
6de9cd9a 5578
bebf829d
PB
5579if test "x$with_gmp" != x; then
5580 gmplibs="-L$with_gmp/lib $gmplibs"
5581 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5582fi
8a877c9c
KG
5583if test "x$with_gmp_include" != x; then
5584 gmpinc="-I$with_gmp_include $gmpinc"
5585fi
5586if test "x$with_gmp_lib" != x; then
5587 gmplibs="-L$with_gmp_lib $gmplibs"
5588fi
e69bf64b 5589if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5590 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5591 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5592 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5593 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5594 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5595 # Do not test the gmp version. Assume that it is sufficient, since
5596 # it is in the source tree, and the library has not been built yet
5597 # but it would be included on the link line in the version check below
5598 # hence making the test fail.
5599 have_gmp=yes
5600fi
6de9cd9a 5601
d943d7c4 5602if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5603 have_gmp=yes
5604 saved_CFLAGS="$CFLAGS"
5605 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5606 # Check for the recommended and required versions of GMP.
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5608$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5609
5610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5611/* end confdefs.h. */
5612#include "gmp.h"
5613int
5614main ()
5615{
5616
5617 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5618 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5619 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5620 choke me
5621 #endif
5622
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5629/* end confdefs.h. */
362c6d2f 5630#include <gmp.h>
1c710c3c
DJ
5631int
5632main ()
5633{
6de9cd9a 5634
362c6d2f
KG
5635 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5636 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5637 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5638 choke me
5639 #endif
1c710c3c
DJ
5640
5641 ;
5642 return 0;
5643}
5644_ACEOF
5213506e
RW
5645if ac_fn_c_try_compile "$LINENO"; then :
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647$as_echo "yes" >&6; }
362c6d2f
KG
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5650$as_echo "buggy but acceptable" >&6; }
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5653else
5213506e
RW
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5656fi
5213506e 5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5658
acd26225 5659 # If we have GMP, check the MPFR version.
e69bf64b 5660 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5661 # Check for the recommended and required versions of MPFR.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5663$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5665/* end confdefs.h. */
70ec446f 5666#include <gmp.h>
e69bf64b 5667 #include <mpfr.h>
1c710c3c
DJ
5668int
5669main ()
5670{
e48d66a9 5671
f7d6bc01 5672 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5673 choke me
5674 #endif
1c710c3c
DJ
5675
5676 ;
5677 return 0;
5678}
5679_ACEOF
5213506e
RW
5680if ac_fn_c_try_compile "$LINENO"; then :
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5682/* end confdefs.h. */
a3993f33 5683#include <gmp.h>
e69bf64b 5684 #include <mpfr.h>
1c710c3c
DJ
5685int
5686main ()
5687{
a3993f33 5688
362c6d2f 5689 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5690 choke me
5691 #endif
acd26225
KG
5692
5693 ;
5694 return 0;
5695}
5696_ACEOF
5213506e
RW
5697if ac_fn_c_try_compile "$LINENO"; then :
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699$as_echo "yes" >&6; }
acd26225 5700else
5213506e
RW
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5702$as_echo "buggy but acceptable" >&6; }
acd26225 5703fi
5213506e 5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5705else
5213506e
RW
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }; have_gmp=no
acd26225 5708fi
5213506e 5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5710 fi
5711
5712 # Check for the MPC header version.
3a5729ea 5713 if test x"$have_gmp" = xyes ; then
362c6d2f 5714 # Check for the recommended and required versions of MPC.
5213506e
RW
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5716$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5718/* end confdefs.h. */
5719#include <mpc.h>
5720int
5721main ()
5722{
5723
362c6d2f
KG
5724 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5725 choke me
5726 #endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_compile "$LINENO"; then :
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735#include <mpc.h>
5736int
5737main ()
5738{
5739
5740 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5741 choke me
5742 #endif
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5213506e
RW
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5750$as_echo "yes" >&6; }
362c6d2f
KG
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5753$as_echo "buggy but acceptable" >&6; }
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5756else
5213506e 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5758$as_echo "no" >&6; }; have_gmp=no
acd26225 5759fi
5213506e 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5761 fi
5762
5763 # Now check the MPFR library.
5764 if test x"$have_gmp" = xyes; then
5765 saved_LIBS="$LIBS"
5766 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5768$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5770/* end confdefs.h. */
3a5729ea 5771#include <mpc.h>
acd26225
KG
5772int
5773main ()
5774{
5775
5776 mpfr_t n;
5777 mpfr_t x;
3a5729ea 5778 mpc_t c;
acd26225
KG
5779 int t;
5780 mpfr_init (n);
5781 mpfr_init (x);
5782 mpfr_atan2 (n, n, x, GMP_RNDN);
5783 mpfr_erfc (n, x, GMP_RNDN);
5784 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5785 mpfr_clear(n);
5786 mpfr_clear(x);
5787 mpc_init2 (c, 53);
5788 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5789 mpc_cosh (c, c, MPC_RNDNN);
5790 mpc_pow (c, c, c, MPC_RNDNN);
5791 mpc_acosh (c, c, MPC_RNDNN);
5792 mpc_clear (c);
1c710c3c
DJ
5793
5794 ;
5795 return 0;
5796}
5797_ACEOF
5213506e
RW
5798if ac_fn_c_try_link "$LINENO"; then :
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800$as_echo "yes" >&6; }
1c710c3c 5801else
5213506e
RW
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5804fi
5213506e
RW
5805rm -f core conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5807 LIBS="$saved_LIBS"
5808 fi
5809
e69bf64b 5810 CFLAGS="$saved_CFLAGS"
6de9cd9a 5811
362c6d2f
KG
5812# The library versions listed in the error message below should match
5813# the HARD-minimums enforced above.
e69bf64b 5814 if test x$have_gmp != xyes; then
f7d6bc01 5815 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5816Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5817their locations. Source code for these libraries can be found at
5818their respective hosting sites as well as at
5819ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5820http://gcc.gnu.org/install/prerequisites.html for additional info. If
5821you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5822make sure that you have installed both the libraries and the header
5823files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5824 fi
70ec446f
KG
5825fi
5826
acd26225
KG
5827# Flags needed for both GMP, MPFR and/or MPC.
5828
5829
6de9cd9a
DN
5830
5831
5832
9e3eba15 5833
0ff2d841 5834
f38095f3
JM
5835# Allow host libstdc++ to be specified for static linking with PPL.
5836
5213506e
RW
5837# Check whether --with-host-libstdcxx was given.
5838if test "${with_host_libstdcxx+set}" = set; then :
5839 withval=$with_host_libstdcxx;
5840fi
f38095f3 5841
f38095f3
JM
5842
5843case $with_host_libstdcxx in
5844 no|yes)
5213506e 5845 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5846 ;;
5847esac
f8bf9252 5848
0b21f5d3 5849# Libraries to use for stage1 or when not bootstrapping.
00020c16 5850
0b21f5d3
EB
5851# Check whether --with-stage1-libs was given.
5852if test "${with_stage1_libs+set}" = set; then :
5853 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5854 stage1_libs=
00020c16 5855 else
0b21f5d3 5856 stage1_libs=$withval
00020c16
ILT
5857 fi
5858else
0b21f5d3 5859 stage1_libs=$with_host_libstdcxx
5213506e
RW
5860fi
5861
00020c16
ILT
5862
5863
0b21f5d3 5864# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5865
0b21f5d3
EB
5866# Check whether --with-stage1-ldflags was given.
5867if test "${with_stage1_ldflags+set}" = set; then :
5868 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5869 stage1_ldflags=
00020c16 5870 else
0b21f5d3 5871 stage1_ldflags=$withval
00020c16
ILT
5872 fi
5873else
0b21f5d3
EB
5874 stage1_ldflags=
5875 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5876 # if supported. But if the user explicitly specified the libraries to use,
5877 # trust that they are doing what they want.
5878 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5879 stage1_ldflags="-static-libstdc++ -static-libgcc"
5880 fi
5213506e
RW
5881fi
5882
00020c16
ILT
5883
5884
00020c16
ILT
5885# Libraries to use for stage2 and later builds. This defaults to the
5886# argument passed to --with-host-libstdcxx.
5887
5213506e
RW
5888# Check whether --with-boot-libs was given.
5889if test "${with_boot_libs+set}" = set; then :
5890 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5891 poststage1_libs=
5892 else
5893 poststage1_libs=$withval
5894 fi
5895else
00020c16 5896 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5897fi
5898
00020c16
ILT
5899
5900
ed2eaa9f
ILT
5901# Linker flags to use for stage2 and later builds.
5902
5903# Check whether --with-boot-ldflags was given.
5904if test "${with_boot_ldflags+set}" = set; then :
5905 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5906 poststage1_ldflags=
5907 else
5908 poststage1_ldflags=$withval
5909 fi
5910else
5911 poststage1_ldflags=
bec93d73
ILT
5912 # In stages 2 and 3, default to linking libstdc++ and libgcc
5913 # statically. But if the user explicitly specified the libraries to
5914 # use, trust that they are doing what they want.
5915 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5916 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5917 fi
5918fi
5919
5920
5921
4a9bb2aa
TB
5922# GCC GRAPHITE dependency ISL.
5923# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5924
5925
33ad93b9
RG
5926# Check whether --with-isl was given.
5927if test "${with_isl+set}" = set; then :
5928 withval=$with_isl;
5213506e 5929fi
f8bf9252 5930
f8bf9252 5931
eae1a5d4 5932# Treat --without-isl as a request to disable
625afa23 5933# GRAPHITE support and skip all following checks.
eae1a5d4 5934if test "x$with_isl" != "xno"; then
625afa23
RG
5935 # Check for ISL
5936
5937
33ad93b9
RG
5938# Check whether --with-isl-include was given.
5939if test "${with_isl_include+set}" = set; then :
5940 withval=$with_isl_include;
5213506e
RW
5941fi
5942
f8bf9252 5943
33ad93b9
RG
5944# Check whether --with-isl-lib was given.
5945if test "${with_isl_lib+set}" = set; then :
5946 withval=$with_isl_lib;
5213506e 5947fi
f8bf9252 5948
f8bf9252 5949
33ad93b9
RG
5950 # Check whether --enable-isl-version-check was given.
5951if test "${enable_isl_version_check+set}" = set; then :
5952 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5953else
5954 ENABLE_ISL_CHECK=yes
7d32a440
SP
5955fi
5956
5957
33ad93b9
RG
5958 # Initialize isllibs and islinc.
5959 case $with_isl in
5960 no)
5961 isllibs=
5962 islinc=
5963 ;;
5964 "" | yes)
5965 ;;
5966 *)
5967 isllibs="-L$with_isl/lib"
5968 islinc="-I$with_isl/include"
5969 ;;
5970 esac
5971 if test "x${with_isl_include}" != x ; then
5972 islinc="-I$with_isl_include"
5973 fi
5974 if test "x${with_isl_lib}" != x; then
5975 isllibs="-L$with_isl_lib"
5976 fi
5977 if test "x${islinc}" = x && test "x${isllibs}" = x \
5978 && test -d ${srcdir}/isl; then
5979 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5980 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5981 ENABLE_ISL_CHECK=no
2869f0ff
RB
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5983$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5984 fi
7d32a440 5985
eae1a5d4
RG
5986 isllibs="${isllibs} -lisl"
5987
7d32a440 5988
7d32a440 5989
9847828b
RB
5990 if test "${ENABLE_ISL_CHECK}" = yes ; then
5991 _isl_saved_CFLAGS=$CFLAGS
5992 _isl_saved_LDFLAGS=$LDFLAGS
5993 _isl_saved_LIBS=$LIBS
5994
5995 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5996 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5997 LIBS="${_isl_saved_LIBS} -lisl"
5998
e0c0c325
SP
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6000$as_echo_n "checking for compatible ISL... " >&6; }
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6002/* end confdefs.h. */
e0c0c325 6003#include <isl/val.h>
622dbadf
BC
6004int
6005main ()
6006{
e0c0c325 6007;
622dbadf
BC
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_link "$LINENO"; then :
9847828b 6013 gcc_cv_isl=yes
622dbadf
BC
6014else
6015 gcc_cv_isl=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext \
6018 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6020$as_echo "$gcc_cv_isl" >&6; }
6021
6022 CFLAGS=$_isl_saved_CFLAGS
6023 LDFLAGS=$_isl_saved_LDFLAGS
6024 LIBS=$_isl_saved_LIBS
6025 fi
6026
6027
f8bf9252 6028
f8bf9252 6029
33ad93b9
RG
6030
6031
33ad93b9
RG
6032 if test "x${with_isl}" = xno; then
6033 graphite_requested=no
6034 elif test "x${with_isl}" != x \
6035 || test "x${with_isl_include}" != x \
6036 || test "x${with_isl_lib}" != x ; then
6037 graphite_requested=yes
6038 else
6039 graphite_requested=no
7d32a440 6040 fi
d789184e 6041
d789184e
SP
6042
6043
33ad93b9
RG
6044 if test "${gcc_cv_isl}" = no ; then
6045 isllibs=
6046 islinc=
6047 fi
6048
6049 if test "${graphite_requested}" = yes \
6050 && test "x${isllibs}" = x \
6051 && test "x${islinc}" = x ; then
f8bf9252 6052
33ad93b9
RG
6053 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6054 fi
f8bf9252 6055
d32ef397 6056
d32ef397
AS
6057fi
6058
4a9bb2aa 6059# If the ISL check failed, disable builds of in-tree variant of ISL
625afa23 6060if test "x$with_isl" = xno ||
625afa23 6061 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6062 noconfigdirs="$noconfigdirs isl"
625afa23 6063 islinc=
32d024bf
RG
6064fi
6065
625afa23
RG
6066
6067
6068
d7f09764
DN
6069# Check for LTO support.
6070# Check whether --enable-lto was given.
6071if test "${enable_lto+set}" = set; then :
6072 enableval=$enable_lto; enable_lto=$enableval
6073else
6074 enable_lto=yes; default_enable_lto=yes
6075fi
6076
6077
7413962d 6078
9a02962b
DK
6079
6080
6081target_elf=no
6082case $target in
6083 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6084 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8ae12d71
TS
6085 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6086 nvptx-*-none)
9a02962b
DK
6087 target_elf=no
6088 ;;
6089 *)
6090 target_elf=yes
6091 ;;
6092esac
6093
6094if test $target_elf = yes; then :
48215350
DK
6095 # ELF platforms build the lto-plugin always.
6096 build_lto_plugin=yes
9a02962b 6097
9a02962b
DK
6098else
6099 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6100 case $target in
2cd815e7 6101 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6102 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6103 *) enable_lto=no ;;
6104 esac
9a02962b 6105 else
db50fe7d
IS
6106 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6107 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6108 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6109 # warn during gcc/ subconfigure; unless you're bootstrapping with
6110 # -flto it won't be needed until after installation anyway.
6111 case $target in
1cd0b716 6112 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6113 *) if test x"$enable_lto" = x"yes"; then
6114 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6115 fi
6116 ;;
6117 esac
6118 fi
1cd0b716 6119 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6120 # Build it unless LTO was explicitly disabled.
1cd0b716 6121 case $target in
48215350 6122 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6123 *) ;;
6124 esac
48215350 6125
9a02962b
DK
6126fi
6127
d7f09764 6128
45b3824d
TS
6129# Check whether --enable-linker-plugin-configure-flags was given.
6130if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6131 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6132else
6133 extra_linker_plugin_configure_flags=
6134fi
6135
6136
6137# Check whether --enable-linker-plugin-flags was given.
6138if test "${enable_linker_plugin_flags+set}" = set; then :
6139 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6140else
6141 extra_linker_plugin_flags=
6142fi
6143
6144
6145
f8bf9252 6146
0823efed 6147# By default, C and C++ are the only stage 1 languages.
e1888513 6148stage1_languages=,c,
2805b53a 6149
00020c16 6150# Target libraries that we bootstrap.
ad1e5170 6151bootstrap_target_libs=,target-libgcc,
00020c16 6152
55ffb5ed
NN
6153# Figure out what language subdirectories are present.
6154# Look if the user specified --enable-languages="..."; if not, use
6155# the environment variable $LANGUAGES if defined. $LANGUAGES might
6156# go away some day.
6157# NB: embedded tabs in this IF block -- do not untabify
6158if test -d ${srcdir}/gcc; then
6159 if test x"${enable_languages+set}" != xset; then
6160 if test x"${LANGUAGES+set}" = xset; then
6161 enable_languages="${LANGUAGES}"
6162 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6163 else
6164 enable_languages=all
6165 fi
6166 else
6167 if test x"${enable_languages}" = x ||
6168 test x"${enable_languages}" = xyes;
6169 then
6170 echo configure.in: --enable-languages needs at least one language argument 1>&2
6171 exit 1
6172 fi
6173 fi
6174 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6175
7f26dfa3
FXC
6176 # 'f95' is the old name for the 'fortran' language. We issue a warning
6177 # and make the substitution.
6178 case ,${enable_languages}, in
6179 *,f95,*)
6180 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6181 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6182 ;;
6183 esac
6184
0823efed
DN
6185 # If bootstrapping, C++ must be enabled.
6186 case ",$enable_languages,:$enable_bootstrap" in
6187 *,c++,*:*) ;;
6188 *:yes)
ff3ac0f4
ILT
6189 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6190 enable_languages="${enable_languages},c++"
6191 else
0823efed 6192 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6193 fi
6194 ;;
6195 esac
6196
55ffb5ed
NN
6197 # First scan to see if an enabled language requires some other language.
6198 # We assume that a given config-lang.in will list all the language
6199 # front ends it requires, even if some are required indirectly.
6200 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6201 case ${lang_frag} in
6202 ..) ;;
6203 # The odd quoting in the next line works around
6204 # an apparent bug in bash 1.12 on linux.
6205 ${srcdir}/gcc/[*]/config-lang.in) ;;
6206 *)
69ecd18f
ILT
6207 # From the config-lang.in, get $language, $lang_requires, and
6208 # $lang_requires_boot_languages.
55ffb5ed
NN
6209 language=
6210 lang_requires=
69ecd18f 6211 lang_requires_boot_languages=
55ffb5ed 6212 . ${lang_frag}
69ecd18f 6213 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6214 case ,${enable_languages}, in
6215 *,$other,*) ;;
6216 *,all,*) ;;
6217 *,$language,*)
6218 echo " \`$other' language required by \`$language'; enabling" 1>&2
6219 enable_languages="${enable_languages},${other}"
6220 ;;
6221 esac
6222 done
69ecd18f
ILT
6223 for other in ${lang_requires_boot_languages} ; do
6224 if test "$other" != "c"; then
6225 case ,${enable_stage1_languages}, in
6226 *,$other,*) ;;
6227 *,all,*) ;;
6228 *)
6229 case ,${enable_languages}, in
6230 *,$language,*)
6231 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6232 enable_stage1_languages="$enable_stage1_languages,${other}"
6233 ;;
6234 esac
6235 ;;
6236 esac
6237 fi
6238 done
55ffb5ed
NN
6239 ;;
6240 esac
6241 done
6242
e1888513 6243 new_enable_languages=,c,
d7f09764
DN
6244
6245 # If LTO is enabled, add the LTO front end.
d7f09764 6246 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6247 case ,${enable_languages}, in
6248 *,lto,*) ;;
6249 *) enable_languages="${enable_languages},lto" ;;
6250 esac
1cd0b716 6251 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6252 configdirs="$configdirs lto-plugin"
d7f09764
DN
6253 fi
6254 fi
6255
426c1eb0
TS
6256 # If we're building an offloading compiler, add the LTO front end.
6257 if test x"$enable_as_accelerator_for" != x ; then
6258 case ,${enable_languages}, in
6259 *,lto,*) ;;
6260 *) enable_languages="${enable_languages},lto" ;;
6261 esac
6262 fi
6263
55ffb5ed 6264 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6265 potential_languages=,c,
55ffb5ed 6266
4da3b0f8
ILT
6267 enabled_target_libs=
6268 disabled_target_libs=
6269
55ffb5ed
NN
6270 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6271 case ${lang_frag} in
6272 ..) ;;
6273 # The odd quoting in the next line works around
6274 # an apparent bug in bash 1.12 on linux.
6275 ${srcdir}/gcc/[*]/config-lang.in) ;;
6276 *)
1c710c3c 6277 # From the config-lang.in, get $language, $target_libs,
2805b53a 6278 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6279 language=
6280 target_libs=
6281 lang_dirs=
1546bb64 6282 subdir_requires=
e1888513
PB
6283 boot_language=no
6284 build_by_default=yes
55ffb5ed 6285 . ${lang_frag}
e1888513
PB
6286 if test x${language} = x; then
6287 echo "${lang_frag} doesn't set \$language." 1>&2
6288 exit 1
6289 fi
6290
78767fd9 6291 if test "$language" = "c++"; then
0823efed 6292 boot_language=yes
00020c16
ILT
6293 fi
6294
178f875a 6295 add_this_lang=no
e1888513
PB
6296 case ,${enable_languages}, in
6297 *,${language},*)
d4a10d0a
SB
6298 # Language was explicitly selected; include it
6299 # unless it is C, which is enabled by default.
6300 if test "$language" != "c"; then
6301 add_this_lang=yes
6302 fi
55ffb5ed 6303 ;;
e1888513
PB
6304 *,all,*)
6305 # 'all' was selected, select it if it is a default language
178f875a
JM
6306 if test "$language" != "c"; then
6307 add_this_lang=${build_by_default}
6308 fi
55ffb5ed
NN
6309 ;;
6310 esac
6de9cd9a 6311
1546bb64 6312 # Disable languages that need other directories if these aren't available.
95695ad3 6313 for i in $subdir_requires; do
b6348cb3 6314 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6315 case ,${enable_languages}, in
6316 *,${language},*)
6317 # Specifically requested language; tell them.
5213506e 6318 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6319 ;;
6320 *)
6321 # Silently disable.
e1888513 6322 add_this_lang=unsupported
1546bb64
PB
6323 ;;
6324 esac
6325 done
6326
e1888513
PB
6327 # Disable Ada if no preexisting GNAT is available.
6328 case ,${enable_languages},:${language}:${have_gnat} in
6329 *,${language},*:ada:no)
6330 # Specifically requested language; tell them.
5213506e 6331 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6332 ;;
6333 *:ada:no)
6334 # Silently disable.
6335 add_this_lang=unsupported
6336 ;;
6337 esac
6338
4fab7234
HPN
6339 # Disable a language that is unsupported by the target.
6340 case " $unsupported_languages " in
6341 *" $language "*)
e1888513 6342 add_this_lang=unsupported
4fab7234
HPN
6343 ;;
6344 esac
6345
6de9cd9a 6346 case $add_this_lang in
e1888513 6347 unsupported)
55ffb5ed 6348 # Remove language-dependent dirs.
4da3b0f8
ILT
6349 disabled_target_libs="$disabled_target_libs $target_libs"
6350 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6351 ;;
e1888513
PB
6352 no)
6353 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6354 disabled_target_libs="$disabled_target_libs $target_libs"
6355 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6356 potential_languages="${potential_languages}${language},"
6357 ;;
6358 yes)
6359 new_enable_languages="${new_enable_languages}${language},"
6360 potential_languages="${potential_languages}${language},"
2805b53a 6361 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6362 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6363 case "${boot_language}:,$enable_stage1_languages," in
6364 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6365 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6366 case ",$stage1_languages," in
6367 *,$language,* | ,yes, | ,all,) ;;
6368 *) stage1_languages="${stage1_languages}${language}," ;;
6369 esac
00020c16
ILT
6370 # We need to bootstrap any supporting libraries.
6371 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6372 ;;
6373 esac
6374 ;;
55ffb5ed
NN
6375 esac
6376 ;;
6377 esac
6378 done
6379
4da3b0f8
ILT
6380 # Add target libraries which are only needed for disabled languages
6381 # to noconfigdirs.
6382 if test -n "$disabled_target_libs"; then
6383 for dir in $disabled_target_libs; do
6384 case " $enabled_target_libs " in
6385 *" ${dir} "*) ;;
6386 *) noconfigdirs="$noconfigdirs $dir" ;;
6387 esac
6388 done
6389 fi
6390
5213506e
RW
6391 # Check whether --enable-stage1-languages was given.
6392if test "${enable_stage1_languages+set}" = set; then :
6393 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6394 ,no,|,,)
6395 # Set it to something that will have no effect in the loop below
6396 enable_stage1_languages=c ;;
6397 ,yes,)
6398 enable_stage1_languages=`echo $new_enable_languages | \
6399 sed -e "s/^,//" -e "s/,$//" ` ;;
6400 *,all,*)
6401 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6402 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6403 esac
6404
6405 # Add "good" languages from enable_stage1_languages to stage1_languages,
6406 # while "bad" languages go in missing_languages. Leave no duplicates.
6407 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6408 case $potential_languages in
6409 *,$i,*)
6410 case $stage1_languages in
6411 *,$i,*) ;;
6412 *) stage1_languages="$stage1_languages$i," ;;
6413 esac ;;
6414 *)
6415 case $missing_languages in
6416 *,$i,*) ;;
6417 *) missing_languages="$missing_languages$i," ;;
6418 esac ;;
6419 esac
6420 done
5213506e
RW
6421fi
6422
e1888513
PB
6423
6424 # Remove leading/trailing commas that were added for simplicity
6425 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6426 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6427 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6428 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6429
55ffb5ed 6430 if test "x$missing_languages" != x; then
5213506e 6431 as_fn_error "
0cf085e4 6432The following requested languages could not be built: ${missing_languages}
5213506e 6433Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6434 fi
55ffb5ed
NN
6435 if test "x$new_enable_languages" != "x$enable_languages"; then
6436 echo The following languages will be built: ${new_enable_languages}
e1888513 6437 enable_languages="$new_enable_languages"
55ffb5ed 6438 fi
e1888513 6439
1c710c3c 6440
b2eaac4a 6441 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6442fi
6443
27079765
AH
6444# Handle --disable-<component> generically.
6445for dir in $configdirs $build_configdirs $target_configdirs ; do
6446 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6447 varname=`echo $dirname | sed -e s/+/_/g`
6448 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6449 noconfigdirs="$noconfigdirs $dir"
6450 fi
6451done
6452
7cd0cf9c 6453# Check for Boehm's garbage collector
5213506e
RW
6454# Check whether --enable-objc-gc was given.
6455if test "${enable_objc_gc+set}" = set; then :
6456 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6457 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6458 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6459 ;;
6460esac
5213506e
RW
6461fi
6462
7cd0cf9c
DA
6463
6464# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6465case ,${enable_languages},:${enable_objc_gc} in
6466 *,objc,*:yes)
7cd0cf9c
DA
6467 # Keep target-boehm-gc if requested for Objective-C.
6468 ;;
7cd0cf9c 6469 *)
2a79fd67
DA
6470 # Otherwise remove target-boehm-gc depending on target-libjava.
6471 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6472 noconfigdirs="$noconfigdirs target-boehm-gc"
6473 fi
7cd0cf9c
DA
6474 ;;
6475esac
6476
5f520819 6477# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6478case ,${enable_languages}, in
1007a55c
JW
6479 *,c++,*)
6480 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6481 case "${noconfigdirs}" in
6482 *target-libstdc++-v3*)
6483 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6484 ;;
6485 *) ;;
6486 esac
6487 ;;
99776ebd 6488 *)
5f520819 6489 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6490 ;;
6491esac
6492
ee6a22df
L
6493# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6494# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6495# If we have the source for $noconfigdirs entries, add them to $notsupp.
6496
6497notsupp=""
6498for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6499 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6500 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6501 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6502 if test -r $srcdir/$dirname/configure ; then
6503 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6504 true
6505 else
6506 notsupp="$notsupp $dir"
6507 fi
6508 fi
6509 fi
ee6a22df
L
6510 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6511 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6512 if test -r $srcdir/$dirname/configure ; then
6513 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6514 true
6515 else
6516 notsupp="$notsupp $dir"
6517 fi
6518 fi
6519 fi
55ffb5ed
NN
6520 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6521 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6522 if test -r $srcdir/$dirname/configure ; then
6523 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 true
6525 else
6526 notsupp="$notsupp $dir"
6527 fi
6528 fi
6529 fi
6530done
6531
55ffb5ed
NN
6532# Quietly strip out all directories which aren't configurable in this tree.
6533# This relies on all configurable subdirectories being autoconfiscated, which
6534# is now the case.
23f6b2f9
PB
6535build_configdirs_all="$build_configdirs"
6536build_configdirs=
6537for i in ${build_configdirs_all} ; do
1c710c3c 6538 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6539 if test -f ${srcdir}/$j/configure ; then
6540 build_configdirs="${build_configdirs} $i"
6541 fi
6542done
6543
55ffb5ed
NN
6544configdirs_all="$configdirs"
6545configdirs=
6546for i in ${configdirs_all} ; do
6547 if test -f ${srcdir}/$i/configure ; then
6548 configdirs="${configdirs} $i"
6549 fi
6550done
23f6b2f9 6551
55ffb5ed
NN
6552target_configdirs_all="$target_configdirs"
6553target_configdirs=
6554for i in ${target_configdirs_all} ; do
1c710c3c 6555 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6556 if test -f ${srcdir}/$j/configure ; then
6557 target_configdirs="${target_configdirs} $i"
6558 fi
6559done
6560
45b3824d
TS
6561# libiberty-linker-plugin is special: it doesn't have its own source directory,
6562# so we have to add it after the preceding checks.
6563if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6564then
6565 case " $configdirs " in
6566 *" libiberty "*)
6567 # If we can build libiberty, we can also build libiberty-linker-plugin.
6568 configdirs="$configdirs libiberty-linker-plugin"
6569 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6570 --with-libiberty=../libiberty-linker-plugin";;
6571 *)
6572 as_fn_error "libiberty missing" "$LINENO" 5;;
6573 esac
6574fi
6575
fca38047
TS
6576# Sometimes we have special requirements for the host libiberty.
6577extra_host_libiberty_configure_flags=
1c01ebf6 6578extra_host_zlib_configure_flags=
fca38047
TS
6579case " $configdirs " in
6580 *" lto-plugin "* | *" libcc1 "*)
6581 # When these are to be built as shared libraries, the same applies to
6582 # libiberty.
6583 extra_host_libiberty_configure_flags=--enable-shared
6584 ;;
1c01ebf6
L
6585 *" bfd "*)
6586 # When bfd is to be built as a shared library, the same applies to
6587 # zlib.
6588 if test "$enable_shared" = "yes"; then
6589 extra_host_zlib_configure_flags=--enable-host-shared
6590 fi
6591 ;;
fca38047
TS
6592esac
6593
6594
1c01ebf6 6595
55ffb5ed
NN
6596# Produce a warning message for the subdirs we can't configure.
6597# This isn't especially interesting in the Cygnus tree, but in the individual
6598# FSF releases, it's important to let people know when their machine isn't
6599# supported by the one or two programs in a package.
6600
6601if test -n "${notsupp}" && test -z "${norecursion}" ; then
6602 # If $appdirs is non-empty, at least one of those directories must still
6603 # be configured, or we error out. (E.g., if the gas release supports a
6604 # specified target in some subdirs but not the gas subdir, we shouldn't
6605 # pretend that all is well.)
6606 if test -n "$appdirs" ; then
6607 for dir in $appdirs ; do
6608 if test -r $dir/Makefile.in ; then
6609 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6610 appdirs=""
6611 break
6612 fi
23f6b2f9 6613 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6614 appdirs=""
6615 break
6616 fi
6617 fi
6618 done
6619 if test -n "$appdirs" ; then
6620 echo "*** This configuration is not supported by this package." 1>&2
6621 exit 1
6622 fi
6623 fi
6624 # Okay, some application will build, or we don't care to check. Still
6625 # notify of subdirs not getting built.
6626 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6627 echo " ${notsupp}" 1>&2
6628 echo " (Any other directories should still work fine.)" 1>&2
6629fi
6630
6631case "$host" in
6632 *msdosdjgpp*)
6633 enable_gdbtk=no ;;
6634esac
6635
c3a86da9
DJ
6636# To find our prefix, in gcc_cv_tool_prefix.
6637
6638# The user is always right.
6639if test "${PATH_SEPARATOR+set}" != set; then
6640 echo "#! /bin/sh" >conf$$.sh
6641 echo "exit 0" >>conf$$.sh
6642 chmod +x conf$$.sh
6643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6644 PATH_SEPARATOR=';'
6645 else
6646 PATH_SEPARATOR=:
6647 fi
6648 rm -f conf$$.sh
6649fi
6650
6651
6652
6653if test "x$exec_prefix" = xNONE; then
6654 if test "x$prefix" = xNONE; then
6655 gcc_cv_tool_prefix=$ac_default_prefix
6656 else
6657 gcc_cv_tool_prefix=$prefix
6658 fi
6659else
6660 gcc_cv_tool_prefix=$exec_prefix
6661fi
6662
6663# If there is no compiler in the tree, use the PATH only. In any
6664# case, if there is no compiler in the tree nobody should use
6665# AS_FOR_TARGET and LD_FOR_TARGET.
6666if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6667 gcc_version=`cat $srcdir/gcc/BASE-VER`
6668 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6672 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6673 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6674else
6675 gcc_cv_tool_dirs=
6676fi
6677
6678if test x$build = x$target && test -n "$md_exec_prefix"; then
6679 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6680fi
6681
6682
6683
55ffb5ed
NN
6684copy_dirs=
6685
1c710c3c 6686
5213506e
RW
6687# Check whether --with-build-sysroot was given.
6688if test "${with_build_sysroot+set}" = set; then :
6689 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6690 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6691 fi
6692else
6693 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6694fi
526635cb
MM
6695
6696
c8aea42c 6697
5213506e
RW
6698
6699# Check whether --with-debug-prefix-map was given.
6700if test "${with_debug_prefix_map+set}" = set; then :
6701 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6702 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6703 for debug_map in $withval; do
6704 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6705 done
6706 fi
6707else
6708 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6709fi
6710
c8aea42c
PB
6711
6712
1c8bd6a3
PB
6713# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6714# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6715# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6716# We want to ensure that TARGET libraries (which we know are built with
6717# gcc) are built with "-O2 -g", so include those options when setting
6718# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6719if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6720 if test "x${is_cross_compiler}" = xyes; then
6721 CFLAGS_FOR_TARGET="-g -O2"
6722 else
6723 CFLAGS_FOR_TARGET=$CFLAGS
6724 case " $CFLAGS " in
6725 *" -O2 "*) ;;
6726 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6727 esac
6728 case " $CFLAGS " in
6729 *" -g "* | *" -g3 "*) ;;
6730 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6731 esac
6732 fi
1c8bd6a3
PB
6733fi
6734
6735
6736if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6737 if test "x${is_cross_compiler}" = xyes; then
6738 CXXFLAGS_FOR_TARGET="-g -O2"
6739 else
6740 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6741 case " $CXXFLAGS " in
6742 *" -O2 "*) ;;
6743 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6744 esac
6745 case " $CXXFLAGS " in
6746 *" -g "* | *" -g3 "*) ;;
6747 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6748 esac
6749 fi
1c8bd6a3
PB
6750fi
6751
6752
6f57bdf6
DK
6753
6754
55ffb5ed
NN
6755# Handle --with-headers=XXX. If the value is not "yes", the contents of
6756# the named directory are copied to $(tooldir)/sys-include.
6757if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6758 if test x${is_cross_compiler} = xno ; then
6759 echo 1>&2 '***' --with-headers is only supported when cross compiling
6760 exit 1
6761 fi
6762 if test x"${with_headers}" != xyes ; then
c3a86da9 6763 x=${gcc_cv_tool_prefix}
1c710c3c 6764 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6765 fi
6766fi
6767
6768# Handle --with-libs=XXX. If the value is not "yes", the contents of
6769# the name directories are copied to $(tooldir)/lib. Multiple directories
6770# are permitted.
6771if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6772 if test x${is_cross_compiler} = xno ; then
6773 echo 1>&2 '***' --with-libs is only supported when cross compiling
6774 exit 1
6775 fi
6776 if test x"${with_libs}" != xyes ; then
6777 # Copy the libraries in reverse order, so that files in the first named
6778 # library override files in subsequent libraries.
c3a86da9 6779 x=${gcc_cv_tool_prefix}
55ffb5ed 6780 for l in ${with_libs}; do
1c710c3c 6781 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6782 done
6783 fi
6784fi
6785
d7f09764 6786# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6787#
6788# This is done by determining whether or not the appropriate directory
6789# is available, and by checking whether or not specific configurations
6790# have requested that this magic not happen.
1c710c3c
DJ
6791#
6792# The command line options always override the explicit settings in
e8b05380
PB
6793# configure.in, and the settings in configure.in override this magic.
6794#
1c710c3c 6795# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6796# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6797# --without-gnu-ld options for the configure script. Similarly, if
6798# the default is to use the included zlib and you don't want to do that,
6799# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6800
6801if test x${use_gnu_as} = x &&
6802 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6803 with_gnu_as=yes
6804 extra_host_args="$extra_host_args --with-gnu-as"
6805fi
6806
6807if test x${use_gnu_ld} = x &&
5afab7ad 6808 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6809 with_gnu_ld=yes
6810 extra_host_args="$extra_host_args --with-gnu-ld"
6811fi
6812
d7f09764
DN
6813if test x${use_included_zlib} = x &&
6814 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6815 :
6816else
6817 with_system_zlib=yes
6818 extra_host_args="$extra_host_args --with-system-zlib"
6819fi
6820
e8b05380
PB
6821# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6822# can detect this case.
6823
6824if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6825 with_newlib=yes
6826 extra_host_args="$extra_host_args --with-newlib"
6827fi
6828
55ffb5ed
NN
6829# Handle ${copy_dirs}
6830set fnord ${copy_dirs}
6831shift
6832while test $# != 0 ; do
6833 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6834 :
6835 else
6836 echo Copying $1 to $2
6837
6838 # Use the install script to create the directory and all required
6839 # parent directories.
6840 if test -d $2 ; then
6841 :
6842 else
6843 echo >config.temp
6844 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6845 fi
6846
6847 # Copy the directory, assuming we have tar.
6848 # FIXME: Should we use B in the second tar? Not all systems support it.
6849 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6850
6851 # It is the responsibility of the user to correctly adjust all
6852 # symlinks. If somebody can figure out how to handle them correctly
6853 # here, feel free to add the code.
6854
6855 echo $1 > $2/COPIED
6856 fi
6857 shift; shift
6858done
6859
e8b05380
PB
6860# Determine a target-dependent exec_prefix that the installed
6861# gcc will search in. Keep this list sorted by triplet, with
6862# the *-*-osname triplets last.
6863md_exec_prefix=
6864case "${target}" in
30b74385 6865 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6866 md_exec_prefix=/dev/env/DJDIR/bin
6867 ;;
e8b05380 6868 *-*-hpux* | \
e8b05380 6869 *-*-nto-qnx* | \
6de66370 6870 *-*-solaris2*)
e8b05380
PB
6871 md_exec_prefix=/usr/ccs/bin
6872 ;;
6873esac
6874
671aa708
NN
6875extra_arflags_for_target=
6876extra_nmflags_for_target=
6877extra_ranlibflags_for_target=
6878target_makefile_frag=/dev/null
6879case "${target}" in
58e24147
AM
6880 spu-*-*)
6881 target_makefile_frag="config/mt-spu"
6882 ;;
d896cc4d 6883 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6884 target_makefile_frag="config/mt-sde"
6885 ;;
1ec3b87b
RS
6886 mipsisa*-*-elfoabi*)
6887 target_makefile_frag="config/mt-mips-elfoabi"
6888 ;;
08d0963a
RS
6889 mips*-*-*linux* | mips*-*-gnu*)
6890 target_makefile_frag="config/mt-mips-gnu"
6891 ;;
707f1839
SL
6892 nios2-*-elf*)
6893 target_makefile_frag="config/mt-nios2-elf"
6894 ;;
416ac4d4 6895 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6896 target_makefile_frag="config/mt-gnu"
671aa708
NN
6897 ;;
6898 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6899 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6900 # commands to handle both 32-bit and 64-bit objects. These flags are
6901 # harmless if we're using GNU nm or ar.
6902 extra_arflags_for_target=" -X32_64"
6903 extra_nmflags_for_target=" -B -X32_64"
6904 ;;
671aa708
NN
6905esac
6906
6907alphaieee_frag=/dev/null
6908case $target in
6909 alpha*-*-*)
6910 # This just makes sure to use the -mieee option to build target libs.
6911 # This should probably be set individually by each library.
6912 alphaieee_frag="config/mt-alphaieee"
6913 ;;
6914esac
6915
6916# If --enable-target-optspace always use -Os instead of -O2 to build
6917# the target libraries, similarly if it is not specified, use -Os
6918# on selected platforms.
6919ospace_frag=/dev/null
6920case "${enable_target_optspace}:${target}" in
6921 yes:*)
6922 ospace_frag="config/mt-ospace"
6923 ;;
6924 :d30v-*)
6925 ospace_frag="config/mt-d30v"
6926 ;;
d9063947 6927 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6928 ospace_frag="config/mt-ospace"
6929 ;;
6930 no:* | :*)
6931 ;;
6932 *)
6933 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6934 ;;
6935esac
6936
671aa708
NN
6937# Some systems (e.g., one of the i386-aix systems the gas testers are
6938# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6939tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6940build_tooldir=${tooldir}
6941
671aa708
NN
6942# Create a .gdbinit file which runs the one in srcdir
6943# and tells GDB to look there for source files.
6944
6945if test -r ${srcdir}/.gdbinit ; then
6946 case ${srcdir} in
6947 .) ;;
6948 *) cat > ./.gdbinit <<EOF
6949# ${NO_EDIT}
6950dir ${srcdir}
6951dir .
6952source ${srcdir}/.gdbinit
6953EOF
6954 ;;
6955 esac
6956fi
6957
671aa708
NN
6958# Make sure that the compiler is able to generate an executable. If it
6959# can't, we are probably in trouble. We don't care whether we can run the
6960# executable--we might be using a cross compiler--we only care whether it
6961# can be created. At this point the main configure script has set CC.
6962we_are_ok=no
6963echo "int main () { return 0; }" > conftest.c
6964${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6965if test $? = 0 ; then
6966 if test -s conftest || test -s conftest.exe ; then
6967 we_are_ok=yes
6968 fi
1c710c3c 6969fi
671aa708
NN
6970case $we_are_ok in
6971 no)
6972 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6973 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6974 rm -f conftest*
6975 exit 1
6976 ;;
6977esac
6978rm -f conftest*
6979
d89f0ad6 6980# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6981case "${host}" in
6982 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6983 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6984 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6985 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6986esac
6987
d89f0ad6
AL
6988# On systems where the dynamic library environment variable is PATH,
6989# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6990# built executables to PATH.
6991if test "$RPATH_ENVVAR" = PATH; then
6992 GCC_SHLIB_SUBDIR=/shlib
6993else
6994 GCC_SHLIB_SUBDIR=
6995fi
6996
beeda1d9
JJ
6997# Adjust the toplevel makefile according to whether bootstrap was selected.
6998case $enable_bootstrap in
6999 yes)
7000 bootstrap_suffix=bootstrap
7001 BUILD_CONFIG=bootstrap-debug
7002 ;;
7003 no)
7004 bootstrap_suffix=no-bootstrap
7005 BUILD_CONFIG=
7006 ;;
7007esac
7008
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7010$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7011
7012
7013# Check whether --with-build-config was given.
7014if test "${with_build_config+set}" = set; then :
7015 withval=$with_build_config; case $with_build_config in
7016 yes) with_build_config= ;;
7017 no) with_build_config= BUILD_CONFIG= ;;
7018 esac
7019fi
7020
7021
7022if test "x${with_build_config}" != x; then
7023 BUILD_CONFIG=$with_build_config
7024else
7025 case $BUILD_CONFIG in
7026 bootstrap-debug)
7027 if echo "int f (void) { return 0; }" > conftest.c &&
7028 ${CC} -c conftest.c &&
7029 mv conftest.o conftest.o.g0 &&
7030 ${CC} -c -g conftest.c &&
7031 mv conftest.o conftest.o.g &&
7032 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7033 :
7034 else
7035 BUILD_CONFIG=
7036 fi
7037 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7038 ;;
7039 esac
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7042$as_echo "$BUILD_CONFIG" >&6; }
7043
7044
7045# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7047$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7048# Check whether --enable-vtable-verify was given.
7049if test "${enable_vtable_verify+set}" = set; then :
7050 enableval=$enable_vtable_verify; case "$enableval" in
7051 yes) enable_vtable_verify=yes ;;
7052 no) enable_vtable_verify=no ;;
7053 *) enable_vtable_verify=no;;
7054 esac
7055else
7056 enable_vtable_verify=no
7057fi
7058
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7060$as_echo "$enable_vtable_verify" >&6; }
7061
671aa708
NN
7062# Record target_configdirs and the configure arguments for target and
7063# build configuration in Makefile.
7064target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7065build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7066bootstrap_fixincludes=no
671aa708 7067
ad1e5170
JR
7068# If we are building libgomp, bootstrap it.
7069if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7070 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7071fi
7072
beeda1d9
JJ
7073# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7074# or bootstrap-ubsan, bootstrap it.
7075if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7076 case "$BUILD_CONFIG" in
7077 *bootstrap-asan* | *bootstrap-ubsan* )
7078 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7079 bootstrap_fixincludes=yes
beeda1d9
JJ
7080 ;;
7081 esac
ac8701fe
L
7082fi
7083
beeda1d9
JJ
7084# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7085if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7086 test "$enable_vtable_verify" != no; then
2077db1b
CT
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7088fi
7089
5373cd33
IE
7090# If we are building libmpx, bootstrap it.
7091if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7093fi
7094
671aa708
NN
7095# Determine whether gdb needs tk/tcl or not.
7096# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7097# and in that case we want gdb to be built without tk. Ugh!
7098# In fact I believe gdb is the *only* package directly dependent on tk,
7099# so we should be able to put the 'maybe's in unconditionally and
7100# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7101# 100% sure that that's safe though.
e914a571 7102
b4f96efe 7103gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7104case "$enable_gdbtk" in
7105 no)
7106 GDB_TK="" ;;
e914a571
AC
7107 yes)
7108 GDB_TK="${gdb_tk}" ;;
671aa708 7109 *)
e914a571
AC
7110 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7111 # distro. Eventually someone will fix this and move Insight, nee
7112 # gdbtk to a separate directory.
7113 if test -d ${srcdir}/gdb/gdbtk ; then
7114 GDB_TK="${gdb_tk}"
7115 else
7116 GDB_TK=""
7117 fi
7118 ;;
671aa708 7119esac
ef9db8d5
DJ
7120CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7121INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7122
60975492 7123# Strip out unwanted targets.
8b87bb96
NN
7124
7125# While at that, we remove Makefiles if we were started for recursive
7126# configuration, so that the top-level Makefile reconfigures them,
7127# like we used to do when configure itself was recursive.
8b87bb96 7128
3e54529c
RW
7129# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7130# but now we're fixing up the Makefile ourselves with the additional
7131# commands passed to AC_CONFIG_FILES. Use separate variables
7132# extrasub-{build,host,target} not because there is any reason to split
7133# the substitutions up that way, but only to remain below the limit of
7134# 99 commands in a script, for HP-UX sed.
7135# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7136
79cd2b23
RW
7137case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7141 ;;
7142esac
7143
3e54529c 7144extrasub_build=
23f6b2f9 7145for module in ${build_configdirs} ; do
5607edfd
PB
7146 if test -z "${no_recursion}" \
7147 && test -f ${build_subdir}/${module}/Makefile; then
7148 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7149 rm -f ${build_subdir}/${module}/Makefile
7150 fi
3e54529c 7151 extrasub_build="$extrasub_build
5607edfd
PB
7152/^@if build-$module\$/d
7153/^@endif build-$module\$/d
7154/^@if build-$module-$bootstrap_suffix\$/d
7155/^@endif build-$module-$bootstrap_suffix\$/d"
7156done
3e54529c 7157extrasub_host=
5607edfd 7158for module in ${configdirs} ; do
a6fbc1e2 7159 if test -z "${no_recursion}"; then
f063a9ed 7160 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7161 if test -f ${file}; then
7162 echo 1>&2 "*** removing ${file} to force reconfigure"
7163 rm -f ${file}
7164 fi
7165 done
5607edfd 7166 fi
9e1c8fc1
JJ
7167 case ${module},${bootstrap_fixincludes} in
7168 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7169 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7170 esac
3e54529c 7171 extrasub_host="$extrasub_host
5607edfd
PB
7172/^@if $module\$/d
7173/^@endif $module\$/d
9e1c8fc1
JJ
7174/^@if $module-$host_bootstrap_suffix\$/d
7175/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7176done
3e54529c 7177extrasub_target=
5607edfd
PB
7178for module in ${target_configdirs} ; do
7179 if test -z "${no_recursion}" \
7180 && test -f ${target_subdir}/${module}/Makefile; then
7181 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7182 rm -f ${target_subdir}/${module}/Makefile
7183 fi
00020c16
ILT
7184
7185 # We only bootstrap target libraries listed in bootstrap_target_libs.
7186 case $bootstrap_target_libs in
7187 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7188 *) target_bootstrap_suffix=no-bootstrap ;;
7189 esac
7190
3e54529c 7191 extrasub_target="$extrasub_target
5607edfd
PB
7192/^@if target-$module\$/d
7193/^@endif target-$module\$/d
00020c16
ILT
7194/^@if target-$module-$target_bootstrap_suffix\$/d
7195/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7196done
7197
3e54529c
RW
7198# Do the final fixup along with target modules.
7199extrasub_target="$extrasub_target
60975492 7200/^@if /,/^@endif /d"
671aa708
NN
7201
7202# Create the serialization dependencies. This uses a temporary file.
7203
5213506e
RW
7204# Check whether --enable-serial-configure was given.
7205if test "${enable_serial_configure+set}" = set; then :
7206 enableval=$enable_serial_configure;
7207fi
ade82b16
AO
7208
7209
bf1d3e81
NN
7210case ${enable_serial_configure} in
7211 yes)
7212 enable_serial_build_configure=yes
7213 enable_serial_host_configure=yes
7214 enable_serial_target_configure=yes
7215 ;;
7216esac
7217
671aa708
NN
7218# These force 'configure's to be done one at a time, to avoid problems
7219# with contention over a shared config.cache.
7220rm -f serdep.tmp
ade82b16 7221echo '# serdep.tmp' > serdep.tmp
671aa708 7222olditem=
bf1d3e81 7223test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7224for item in ${build_configdirs} ; do
7225 case ${olditem} in
7226 "") ;;
ade82b16 7227 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7228 esac
7229 olditem=${item}
7230done
7231olditem=
bf1d3e81 7232test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7233for item in ${configdirs} ; do
7234 case ${olditem} in
7235 "") ;;
ade82b16 7236 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7237 esac
7238 olditem=${item}
7239done
7240olditem=
bf1d3e81 7241test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7242for item in ${target_configdirs} ; do
7243 case ${olditem} in
7244 "") ;;
ade82b16 7245 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7246 esac
7247 olditem=${item}
7248done
7249serialization_dependencies=serdep.tmp
7250
7251
ade82b16 7252# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7253# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7254# might not want to pass down to subconfigures. The exception being
7255# --cache-file=/dev/null, which is used to turn off the use of cache
7256# files altogether, and which should be passed on to subconfigures.
7257# Also strip program-prefix, program-suffix, and program-transform-name,
7258# so that we can pass down a consistent program-transform-name.
1c710c3c 7259baseargs=
29a63921 7260tbaseargs=
1c710c3c
DJ
7261keep_next=no
7262skip_next=no
7263eval "set -- $ac_configure_args"
44bfc3ac
DJ
7264for ac_arg
7265do
1c710c3c
DJ
7266 if test X"$skip_next" = X"yes"; then
7267 skip_next=no
7268 continue
7269 fi
7270 if test X"$keep_next" = X"yes"; then
7271 case $ac_arg in
7272 *\'*)
7273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7274 esac
7275 baseargs="$baseargs '$ac_arg'"
29a63921 7276 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7277 keep_next=no
7278 continue
7279 fi
7280
7281 # Handle separated arguments. Based on the logic generated by
7282 # autoconf 2.59.
7283 case $ac_arg in
7284 *=* | --config-cache | -C | -disable-* | --disable-* \
7285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7287 | -with-* | --with-* | -without-* | --without-* | --x)
7288 separate_arg=no
7289 ;;
7290 -*)
7291 separate_arg=yes
7292 ;;
7293 *)
7294 separate_arg=no
7295 ;;
7296 esac
7297
29a63921
AO
7298 skip_targ=no
7299 case $ac_arg in
7300
7301 --with-* | --without-*)
7302 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7303
7304 case $libopt in
7305 *[-_]include)
7306 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7307 ;;
7308 *[-_]lib)
7309 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7310 ;;
7311 *)
7312 lib=$libopt
7313 ;;
7314 esac
7315
7316
7317 case $lib in
4a9bb2aa 7318 mpc | mpfr | gmp | isl)
29a63921
AO
7319 # If we're processing --with-$lib, --with-$lib-include or
7320 # --with-$lib-lib, for one of the libs above, and target is
7321 # different from host, don't pass the current argument to any
7322 # target library's configure.
7323 if test x$is_cross_compiler = xyes; then
7324 skip_targ=yes
7325 fi
7326 ;;
7327 esac
7328 ;;
7329 esac
7330
1c710c3c 7331 case "$ac_arg" in
f1a036e4
NC
7332 --cache-file=/dev/null | \
7333 -cache-file=/dev/null )
7334 # Handled here to avoid the test to skip args below.
7335 baseargs="$baseargs '$ac_arg'"
29a63921 7336 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7337 # Assert: $separate_arg should always be no.
7338 keep_next=$separate_arg
7339 ;;
1c710c3c
DJ
7340 --no*)
7341 continue
7342 ;;
7343 --c* | \
7344 --sr* | \
7345 --ho* | \
7346 --bu* | \
7347 --t* | \
7348 --program-* | \
7349 -cache_file* | \
7350 -srcdir* | \
7351 -host* | \
7352 -build* | \
7353 -target* | \
7354 -program-prefix* | \
7355 -program-suffix* | \
7356 -program-transform-name* )
7357 skip_next=$separate_arg
7358 continue
7359 ;;
7360 -*)
7361 # An option. Add it.
7362 case $ac_arg in
7363 *\'*)
7364 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7365 esac
7366 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7367 if test X"$skip_targ" = Xno; then
7368 tbaseargs="$tbaseargs '$ac_arg'"
7369 fi
1c710c3c
DJ
7370 keep_next=$separate_arg
7371 ;;
7372 *)
7373 # Either a variable assignment, or a nonopt (triplet). Don't
7374 # pass it down; let the Makefile handle this.
7375 continue
7376 ;;
7377 esac
7378done
7379# Remove the initial space we just introduced and, as these will be
7380# expanded by make, quote '$'.
7381baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7382
43bb47c2
DJ
7383# Add in --program-transform-name, after --program-prefix and
7384# --program-suffix have been applied to it. Autoconf has already
7385# doubled dollar signs and backslashes in program_transform_name; we want
7386# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7387# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7388# Also, because we want to override the logic in subdir configure scripts to
7389# choose program_transform_name, replace any s,x,x, with s,y,y,.
7390sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7391${program_transform_name}
7392EOF_SED
7393gcc_transform_name=`cat conftestsed.out`
7394rm -f conftestsed.out
7395baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7396tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7397if test "$silent" = yes; then
7398 baseargs="$baseargs --silent"
29a63921 7399 tbaseargs="$tbaseargs --silent"
d9acb717 7400fi
0115d4a3 7401baseargs="$baseargs --disable-option-checking"
29a63921 7402tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7403
ffedf511
RW
7404# Record and document user additions to sub configure arguments.
7405
7406
7407
7408
671aa708
NN
7409# For the build-side libraries, we just need to pretend we're native,
7410# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7411# desired. We can't even use the same cache file for all build-side
7412# libraries, as they're compiled differently; some with C, some with
7413# C++ or with different feature-enabling options.
7414build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7415
7416# For host modules, accept cache file option, or specification as blank.
7417case "${cache_file}" in
7418"") # empty
7419 cache_file_option="" ;;
7420/* | [A-Za-z]:[\\/]* ) # absolute path
7421 cache_file_option="--cache-file=${cache_file}" ;;
7422*) # relative path
7423 cache_file_option="--cache-file=../${cache_file}" ;;
7424esac
7425
09438bde
NN
7426# Host dirs don't like to share a cache file either, horribly enough.
7427# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7428host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7429
29a63921 7430target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7431
7432# Passing a --with-cross-host argument lets the target libraries know
7433# whether they are being built with a cross-compiler or being built
7434# native. However, it would be better to use other mechanisms to make the
7435# sorts of decisions they want to make on this basis. Please consider
7436# this option to be deprecated. FIXME.
7437if test x${is_cross_compiler} = xyes ; then
1c710c3c 7438 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7439fi
7440
79e0604d
FXC
7441# Special user-friendly check for native x86_64-linux build, if
7442# multilib is not explicitly enabled.
7443case "$target:$have_compiler:$host:$target:$enable_multilib" in
7444 x86_64-*linux*:yes:$build:$build:)
e640447c 7445 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7446 dev64=no
7447 echo "int main () { return 0; }" > conftest.c
7448 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7449 if test $? = 0 ; then
7450 if test -s conftest || test -s conftest.exe ; then
7451 dev64=yes
7452 fi
7453 fi
7454 rm -f conftest*
7455 if test x${dev64} != xyes ; then
e640447c 7456 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
79e0604d
FXC
7457 fi
7458 ;;
7459esac
7460
dc683a3f
RW
7461# Default to --enable-multilib.
7462if test x${enable_multilib} = x ; then
671aa708 7463 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7464fi
671aa708
NN
7465
7466# Pass --with-newlib if appropriate. Note that target_configdirs has
7467# changed from the earlier setting of with_newlib.
7468if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7469 target_configargs="--with-newlib ${target_configargs}"
7470fi
7471
6b9eb62c
NN
7472# Different target subdirs use different values of certain variables
7473# (notably CXX). Worse, multilibs use *lots* of different values.
7474# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7475# it doesn't automatically accept command-line overrides of them.
7476# This means it's not safe for target subdirs to share a cache file,
7477# which is disgusting, but there you have it. Hopefully this can be
7478# fixed in future. It's still worthwhile to use a cache file for each
7479# directory. I think.
7480
bebcd931
MS
7481# Pass the appropriate --build, --host, --target and --cache-file arguments.
7482# We need to pass --target, as newer autoconf's requires consistency
7483# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7484target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7485
671aa708
NN
7486FLAGS_FOR_TARGET=
7487case " $target_configdirs " in
7488 *" newlib "*)
7489 case " $target_configargs " in
7490 *" --with-newlib "*)
7491 case "$target" in
5d571eaa 7492 *-cygwin*)
443e6238 7493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7494 ;;
671aa708
NN
7495 esac
7496
7497 # If we're not building GCC, don't discard standard headers.
7498 if test -d ${srcdir}/gcc; then
7499 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7500
7501 if test "${build}" != "${host}"; then
7502 # On Canadian crosses, CC_FOR_TARGET will have already been set
7503 # by `configure', so we won't have an opportunity to add -Bgcc/
7504 # to it. This is right: we don't want to search that directory
7505 # for binaries, but we want the header files in there, so add
7506 # them explicitly.
0463992b 7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7508
7509 # Someone might think of using the pre-installed headers on
7510 # Canadian crosses, in case the installed compiler is not fully
7511 # compatible with the compiler being built. In this case, it
7512 # would be better to flag an error than risking having
7513 # incompatible object files being constructed. We can't
7514 # guarantee that an error will be flagged, but let's hope the
7515 # compiler will do it, when presented with incompatible header
7516 # files.
7517 fi
7518 fi
7519
7520 case "${target}-${is_cross_compiler}" in
f2a0e225 7521 i[3456789]86-*-linux*-no)
671aa708
NN
7522 # Here host == target, so we don't need to build gcc,
7523 # so we don't want to discard standard headers.
7524 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7525 ;;
7526 *)
7527 # If we're building newlib, use its generic headers last, but search
7528 # for any libc-related directories first (so make it the last -B
7529 # switch).
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7531
7532 # If we're building libgloss, find the startup file, simulator library
7533 # and linker script.
7534 case " $target_configdirs " in
7535 *" libgloss "*)
7536 # Look for startup file, simulator library and maybe linker script.
7537 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7538 # Look for libnosys.a in case the target needs it.
7539 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7540 # Most targets have the linker script in the source directory.
7541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7542 ;;
7543 esac
671aa708
NN
7544 ;;
7545 esac
7546 ;;
7547 esac
7548 ;;
7549esac
5d571eaa 7550
b91f0a41 7551case "$target" in
5d571eaa
OS
7552 x86_64-*mingw* | *-w64-mingw*)
7553 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7554 # however, use a symlink named 'mingw' in ${prefix} .
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7556 ;;
7557 *-mingw*)
7558 # MinGW can't be handled as Cygwin above since it does not use newlib.
7559 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'
7560 ;;
b91f0a41 7561esac
671aa708 7562
6691a79e
ME
7563# Allow the user to override the flags for
7564# our build compiler if desired.
f019adc1
MF
7565if test x"${build}" = x"${host}" ; then
7566 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7567 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7568 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7569fi
6691a79e 7570
671aa708
NN
7571# On Canadian crosses, we'll be searching the right directories for
7572# the previously-installed cross compiler, so don't bother to add
7573# flags for directories within the install tree of the compiler
7574# being built; programs in there won't even run.
7575if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7576 # Search for pre-installed headers if nothing else fits.
9124bc53 7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7578fi
7579
7580if test "x${use_gnu_ld}" = x &&
7581 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7582 # Arrange for us to find uninstalled linker scripts.
215c351a 7583 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7584fi
7585
e88a2c09
DD
7586# Search for other target-specific linker scripts and such.
7587case "${target}" in
3e19841a
PB
7588 mep*)
7589 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7590 ;;
e88a2c09
DD
7591esac
7592
671aa708 7593# Makefile fragments.
7b61653a
PE
7594for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7595do
7596 eval fragval=\$$frag
7597 if test $fragval != /dev/null; then
7598 eval $frag=${srcdir}/$fragval
7599 fi
7600done
671aa708
NN
7601
7602
7603
7604
7605
7606# Miscellanea: directories, flags, etc.
7607
7608
7609
7610
7611
7612
7613
d89f0ad6 7614
23f6b2f9 7615# Build module lists & subconfigure args.
671aa708
NN
7616
7617
7618
2abefe3d
PB
7619# Host module lists & subconfigure args.
7620
7621
7622
aae29963 7623
2abefe3d
PB
7624# Target module lists & subconfigure args.
7625
7626
7627
7628# Build tools.
7629
7630
7631
0999159b
PB
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
2abefe3d
PB
7646# Generate default definitions for YACC, M4, LEX and other programs that run
7647# on the build machine. These are used if the Makefile can't locate these
7648# programs in objdir.
7649MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7650
7651for ac_prog in 'bison -y' byacc yacc
7652do
1c710c3c 7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7654set dummy $ac_prog; ac_word=$2
5213506e
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_YACC+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
2abefe3d
PB
7659else
7660 if test -n "$YACC"; then
7661 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7662else
1c710c3c
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
5213506e
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7670 ac_cv_prog_YACC="$ac_prog"
5213506e 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7672 break 2
7673 fi
7674done
5213506e
RW
7675 done
7676IFS=$as_save_IFS
1c710c3c 7677
2abefe3d
PB
7678fi
7679fi
1c710c3c 7680YACC=$ac_cv_prog_YACC
2abefe3d 7681if test -n "$YACC"; then
5213506e
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7683$as_echo "$YACC" >&6; }
2abefe3d 7684else
5213506e
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
2abefe3d
PB
7687fi
7688
5213506e 7689
1c710c3c 7690 test -n "$YACC" && break
2abefe3d
PB
7691done
7692test -n "$YACC" || YACC="$MISSING bison -y"
7693
7694case " $build_configdirs " in
7695 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7696esac
7697
7698for ac_prog in bison
7699do
1c710c3c 7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7701set dummy $ac_prog; ac_word=$2
5213506e
RW
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if test "${ac_cv_prog_BISON+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
2abefe3d
PB
7706else
7707 if test -n "$BISON"; then
7708 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7709else
1c710c3c
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
5213506e
RW
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7717 ac_cv_prog_BISON="$ac_prog"
5213506e 7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7719 break 2
7720 fi
7721done
5213506e
RW
7722 done
7723IFS=$as_save_IFS
1c710c3c 7724
2abefe3d
PB
7725fi
7726fi
1c710c3c 7727BISON=$ac_cv_prog_BISON
2abefe3d 7728if test -n "$BISON"; then
5213506e
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7730$as_echo "$BISON" >&6; }
2abefe3d 7731else
5213506e
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
2abefe3d
PB
7734fi
7735
5213506e 7736
1c710c3c 7737 test -n "$BISON" && break
2abefe3d
PB
7738done
7739test -n "$BISON" || BISON="$MISSING bison"
7740
7741case " $build_configdirs " in
7742 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7743esac
7744
7745for ac_prog in gm4 gnum4 m4
7746do
1c710c3c 7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7748set dummy $ac_prog; ac_word=$2
5213506e
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if test "${ac_cv_prog_M4+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
2abefe3d
PB
7753else
7754 if test -n "$M4"; then
7755 ac_cv_prog_M4="$M4" # Let the user override the test.
7756else
1c710c3c
DJ
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
5213506e
RW
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7764 ac_cv_prog_M4="$ac_prog"
5213506e 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7766 break 2
7767 fi
7768done
5213506e
RW
7769 done
7770IFS=$as_save_IFS
1c710c3c 7771
2abefe3d
PB
7772fi
7773fi
1c710c3c 7774M4=$ac_cv_prog_M4
2abefe3d 7775if test -n "$M4"; then
5213506e
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7777$as_echo "$M4" >&6; }
2abefe3d 7778else
5213506e
RW
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
2abefe3d
PB
7781fi
7782
5213506e 7783
1c710c3c 7784 test -n "$M4" && break
2abefe3d
PB
7785done
7786test -n "$M4" || M4="$MISSING m4"
7787
7788case " $build_configdirs " in
7789 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7790esac
7791
7792for ac_prog in flex lex
7793do
1c710c3c 7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7795set dummy $ac_prog; ac_word=$2
5213506e
RW
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797$as_echo_n "checking for $ac_word... " >&6; }
7798if test "${ac_cv_prog_LEX+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
2abefe3d
PB
7800else
7801 if test -n "$LEX"; then
7802 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7803else
1c710c3c
DJ
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
5213506e
RW
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7811 ac_cv_prog_LEX="$ac_prog"
5213506e 7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7813 break 2
7814 fi
7815done
5213506e
RW
7816 done
7817IFS=$as_save_IFS
1c710c3c 7818
2abefe3d
PB
7819fi
7820fi
1c710c3c 7821LEX=$ac_cv_prog_LEX
2abefe3d 7822if test -n "$LEX"; then
5213506e
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7824$as_echo "$LEX" >&6; }
2abefe3d 7825else
5213506e
RW
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
2abefe3d
PB
7828fi
7829
5213506e 7830
1c710c3c 7831 test -n "$LEX" && break
2abefe3d
PB
7832done
7833test -n "$LEX" || LEX="$MISSING flex"
7834
7835case " $build_configdirs " in
7836 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7837 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7838esac
7839
7840for ac_prog in flex
7841do
1c710c3c 7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7843set dummy $ac_prog; ac_word=$2
5213506e
RW
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845$as_echo_n "checking for $ac_word... " >&6; }
7846if test "${ac_cv_prog_FLEX+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
2abefe3d
PB
7848else
7849 if test -n "$FLEX"; then
7850 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7851else
1c710c3c
DJ
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
5213506e
RW
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7859 ac_cv_prog_FLEX="$ac_prog"
5213506e 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7861 break 2
7862 fi
7863done
5213506e
RW
7864 done
7865IFS=$as_save_IFS
1c710c3c 7866
2abefe3d
PB
7867fi
7868fi
1c710c3c 7869FLEX=$ac_cv_prog_FLEX
2abefe3d 7870if test -n "$FLEX"; then
5213506e
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7872$as_echo "$FLEX" >&6; }
2abefe3d 7873else
5213506e
RW
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
2abefe3d
PB
7876fi
7877
5213506e 7878
1c710c3c 7879 test -n "$FLEX" && break
2abefe3d
PB
7880done
7881test -n "$FLEX" || FLEX="$MISSING flex"
7882
7883case " $build_configdirs " in
7884 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7885esac
7886
7887for ac_prog in makeinfo
7888do
1c710c3c 7889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7890set dummy $ac_prog; ac_word=$2
5213506e
RW
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
2abefe3d
PB
7895else
7896 if test -n "$MAKEINFO"; then
7897 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7898else
1c710c3c
DJ
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
5213506e
RW
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7906 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7908 break 2
7909 fi
7910done
5213506e
RW
7911 done
7912IFS=$as_save_IFS
1c710c3c 7913
2abefe3d
PB
7914fi
7915fi
1c710c3c 7916MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7917if test -n "$MAKEINFO"; then
5213506e
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7919$as_echo "$MAKEINFO" >&6; }
2abefe3d 7920else
5213506e
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
2abefe3d
PB
7923fi
7924
5213506e 7925
1c710c3c 7926 test -n "$MAKEINFO" && break
2abefe3d
PB
7927done
7928test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7929
7930case " $build_configdirs " in
7931 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7932 *)
7933
d18ff35a 7934 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7935 # higher, else we use the "missing" dummy.
7936 if ${MAKEINFO} --version \
d18ff35a 7937 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7938 :
7939 else
7940 MAKEINFO="$MISSING makeinfo"
7941 fi
7942 ;;
7943
7944esac
671aa708 7945
2abefe3d 7946# FIXME: expect and dejagnu may become build tools?
671aa708 7947
2abefe3d
PB
7948for ac_prog in expect
7949do
1c710c3c 7950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7951set dummy $ac_prog; ac_word=$2
5213506e
RW
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if test "${ac_cv_prog_EXPECT+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
2abefe3d
PB
7956else
7957 if test -n "$EXPECT"; then
7958 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7959else
1c710c3c
DJ
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
5213506e
RW
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7967 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7969 break 2
7970 fi
7971done
5213506e
RW
7972 done
7973IFS=$as_save_IFS
1c710c3c 7974
2abefe3d
PB
7975fi
7976fi
1c710c3c 7977EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7978if test -n "$EXPECT"; then
5213506e
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7980$as_echo "$EXPECT" >&6; }
2abefe3d 7981else
5213506e
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
2abefe3d 7984fi
671aa708 7985
5213506e 7986
1c710c3c 7987 test -n "$EXPECT" && break
2abefe3d
PB
7988done
7989test -n "$EXPECT" || EXPECT="expect"
671aa708 7990
2abefe3d
PB
7991case " $configdirs " in
7992 *" expect "*)
7993 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7994 ;;
7995esac
671aa708 7996
2abefe3d
PB
7997for ac_prog in runtest
7998do
1c710c3c 7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8000set dummy $ac_prog; ac_word=$2
5213506e
RW
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
2abefe3d
PB
8005else
8006 if test -n "$RUNTEST"; then
8007 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8008else
1c710c3c
DJ
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
5213506e
RW
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8016 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8018 break 2
8019 fi
8020done
5213506e
RW
8021 done
8022IFS=$as_save_IFS
1c710c3c 8023
2abefe3d
PB
8024fi
8025fi
1c710c3c 8026RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8027if test -n "$RUNTEST"; then
5213506e
RW
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8029$as_echo "$RUNTEST" >&6; }
2abefe3d 8030else
5213506e
RW
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
2abefe3d 8033fi
671aa708 8034
5213506e 8035
1c710c3c 8036 test -n "$RUNTEST" && break
2abefe3d
PB
8037done
8038test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8039
2abefe3d
PB
8040case " $configdirs " in
8041 *" dejagnu "*)
c394e891 8042 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8043 ;;
8044esac
671aa708
NN
8045
8046
671aa708 8047# Host tools.
ca9f4b81
AO
8048ncn_tool_prefix=
8049test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8050ncn_target_tool_prefix=
8051test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8052
278a7a38
AO
8053
8054
8055if test -n "$AR"; then
8056 ac_cv_prog_AR=$AR
8057elif test -n "$ac_cv_prog_AR"; then
8058 AR=$ac_cv_prog_AR
8059fi
8060
8061if test -n "$ac_cv_prog_AR"; then
8062 for ncn_progname in ar; do
8063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8064set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066$as_echo_n "checking for $ac_word... " >&6; }
8067if test "${ac_cv_prog_AR+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
278a7a38
AO
8069else
8070 if test -n "$AR"; then
8071 ac_cv_prog_AR="$AR" # Let the user override the test.
8072else
8073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
5213506e
RW
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8080 ac_cv_prog_AR="${ncn_progname}"
5213506e 8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8082 break 2
8083 fi
8084done
5213506e
RW
8085 done
8086IFS=$as_save_IFS
278a7a38
AO
8087
8088fi
8089fi
8090AR=$ac_cv_prog_AR
8091if test -n "$AR"; then
5213506e
RW
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8093$as_echo "$AR" >&6; }
278a7a38 8094else
5213506e
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }
278a7a38
AO
8097fi
8098
5213506e 8099
278a7a38
AO
8100 done
8101fi
8102
8103for ncn_progname in ar; do
2693c0b0
PB
8104 if test -n "$ncn_tool_prefix"; then
8105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8106set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if test "${ac_cv_prog_AR+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8111else
8112 if test -n "$AR"; then
8113 ac_cv_prog_AR="$AR" # Let the user override the test.
8114else
1c710c3c
DJ
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
5213506e
RW
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8122 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8124 break 2
8125 fi
8126done
5213506e
RW
8127 done
8128IFS=$as_save_IFS
1c710c3c 8129
ca9f4b81
AO
8130fi
8131fi
1c710c3c 8132AR=$ac_cv_prog_AR
ca9f4b81 8133if test -n "$AR"; then
5213506e
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8135$as_echo "$AR" >&6; }
ca9f4b81 8136else
5213506e
RW
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
ca9f4b81
AO
8139fi
8140
5213506e 8141
2693c0b0
PB
8142 fi
8143 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147$as_echo_n "checking for $ac_word... " >&6; }
8148if test "${ac_cv_prog_AR+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
ca9f4b81 8150else
2693c0b0 8151 if test -n "$AR"; then
af71363e
AS
8152 ac_cv_prog_AR="$AR" # Let the user override the test.
8153else
1c710c3c
DJ
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
5213506e
RW
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8161 ac_cv_prog_AR="${ncn_progname}"
5213506e 8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8163 break 2
8164 fi
8165done
5213506e
RW
8166 done
8167IFS=$as_save_IFS
1c710c3c 8168
ca9f4b81
AO
8169fi
8170fi
1c710c3c 8171AR=$ac_cv_prog_AR
2693c0b0 8172if test -n "$AR"; then
5213506e
RW
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8174$as_echo "$AR" >&6; }
ca9f4b81 8175else
5213506e
RW
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177$as_echo "no" >&6; }
ca9f4b81 8178fi
1c710c3c 8179
5213506e 8180
2693c0b0
PB
8181 fi
8182 test -n "$ac_cv_prog_AR" && break
8183done
8184
8185if test -z "$ac_cv_prog_AR" ; then
8186 set dummy ar
8187 if test $build = $host ; then
8188 AR="$2"
ca9f4b81 8189 else
2693c0b0 8190 AR="${ncn_tool_prefix}$2"
ca9f4b81 8191 fi
ca9f4b81
AO
8192fi
8193
278a7a38
AO
8194
8195
8196if test -n "$AS"; then
8197 ac_cv_prog_AS=$AS
8198elif test -n "$ac_cv_prog_AS"; then
8199 AS=$ac_cv_prog_AS
8200fi
8201
8202if test -n "$ac_cv_prog_AS"; then
8203 for ncn_progname in as; do
8204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8205set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207$as_echo_n "checking for $ac_word... " >&6; }
8208if test "${ac_cv_prog_AS+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
278a7a38
AO
8210else
8211 if test -n "$AS"; then
8212 ac_cv_prog_AS="$AS" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
5213506e
RW
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8221 ac_cv_prog_AS="${ncn_progname}"
5213506e 8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8223 break 2
8224 fi
8225done
5213506e
RW
8226 done
8227IFS=$as_save_IFS
278a7a38
AO
8228
8229fi
8230fi
8231AS=$ac_cv_prog_AS
8232if test -n "$AS"; then
5213506e
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8234$as_echo "$AS" >&6; }
278a7a38 8235else
5213506e
RW
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
278a7a38
AO
8238fi
8239
5213506e 8240
278a7a38
AO
8241 done
8242fi
8243
8244for ncn_progname in as; do
2693c0b0
PB
8245 if test -n "$ncn_tool_prefix"; then
8246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_AS+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8252else
8253 if test -n "$AS"; then
8254 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8255else
1c710c3c
DJ
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
5213506e
RW
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8263 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8265 break 2
8266 fi
8267done
5213506e
RW
8268 done
8269IFS=$as_save_IFS
1c710c3c 8270
ca9f4b81
AO
8271fi
8272fi
1c710c3c 8273AS=$ac_cv_prog_AS
ca9f4b81 8274if test -n "$AS"; then
5213506e
RW
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8276$as_echo "$AS" >&6; }
ca9f4b81 8277else
5213506e
RW
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
ca9f4b81
AO
8280fi
8281
5213506e 8282
2693c0b0
PB
8283 fi
8284 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8286set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288$as_echo_n "checking for $ac_word... " >&6; }
8289if test "${ac_cv_prog_AS+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
ca9f4b81 8291else
2693c0b0
PB
8292 if test -n "$AS"; then
8293 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8294else
1c710c3c
DJ
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
5213506e
RW
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8302 ac_cv_prog_AS="${ncn_progname}"
5213506e 8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8304 break 2
8305 fi
8306done
5213506e
RW
8307 done
8308IFS=$as_save_IFS
1c710c3c 8309
ca9f4b81
AO
8310fi
8311fi
1c710c3c 8312AS=$ac_cv_prog_AS
2693c0b0 8313if test -n "$AS"; then
5213506e
RW
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8315$as_echo "$AS" >&6; }
ca9f4b81 8316else
5213506e
RW
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318$as_echo "no" >&6; }
ca9f4b81 8319fi
1c710c3c 8320
5213506e 8321
2693c0b0
PB
8322 fi
8323 test -n "$ac_cv_prog_AS" && break
8324done
8325
8326if test -z "$ac_cv_prog_AS" ; then
8327 set dummy as
8328 if test $build = $host ; then
8329 AS="$2"
ca9f4b81 8330 else
2693c0b0 8331 AS="${ncn_tool_prefix}$2"
ca9f4b81 8332 fi
ca9f4b81
AO
8333fi
8334
278a7a38
AO
8335
8336
8337if test -n "$DLLTOOL"; then
8338 ac_cv_prog_DLLTOOL=$DLLTOOL
8339elif test -n "$ac_cv_prog_DLLTOOL"; then
8340 DLLTOOL=$ac_cv_prog_DLLTOOL
8341fi
8342
8343if test -n "$ac_cv_prog_DLLTOOL"; then
8344 for ncn_progname in dlltool; do
8345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8346set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
278a7a38
AO
8351else
8352 if test -n "$DLLTOOL"; then
8353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
5213506e
RW
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8362 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8364 break 2
8365 fi
8366done
5213506e
RW
8367 done
8368IFS=$as_save_IFS
278a7a38
AO
8369
8370fi
8371fi
8372DLLTOOL=$ac_cv_prog_DLLTOOL
8373if test -n "$DLLTOOL"; then
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8375$as_echo "$DLLTOOL" >&6; }
278a7a38 8376else
5213506e
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
278a7a38
AO
8379fi
8380
5213506e 8381
278a7a38
AO
8382 done
8383fi
8384
8385for ncn_progname in dlltool; do
2693c0b0
PB
8386 if test -n "$ncn_tool_prefix"; then
8387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8388set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390$as_echo_n "checking for $ac_word... " >&6; }
8391if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8393else
8394 if test -n "$DLLTOOL"; then
8395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8396else
1c710c3c
DJ
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
5213506e
RW
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8404 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8406 break 2
8407 fi
8408done
5213506e
RW
8409 done
8410IFS=$as_save_IFS
1c710c3c 8411
ca9f4b81
AO
8412fi
8413fi
1c710c3c 8414DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8415if test -n "$DLLTOOL"; then
5213506e
RW
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8417$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8418else
5213506e
RW
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420$as_echo "no" >&6; }
ca9f4b81
AO
8421fi
8422
5213506e 8423
2693c0b0
PB
8424 fi
8425 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8427set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429$as_echo_n "checking for $ac_word... " >&6; }
8430if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
ca9f4b81 8432else
2693c0b0
PB
8433 if test -n "$DLLTOOL"; then
8434 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8435else
1c710c3c
DJ
8436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
5213506e
RW
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8443 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8445 break 2
8446 fi
8447done
5213506e
RW
8448 done
8449IFS=$as_save_IFS
1c710c3c 8450
ca9f4b81
AO
8451fi
8452fi
1c710c3c 8453DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8454if test -n "$DLLTOOL"; then
5213506e
RW
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8456$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8457else
5213506e
RW
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459$as_echo "no" >&6; }
ca9f4b81 8460fi
1c710c3c 8461
5213506e 8462
2693c0b0
PB
8463 fi
8464 test -n "$ac_cv_prog_DLLTOOL" && break
8465done
8466
8467if test -z "$ac_cv_prog_DLLTOOL" ; then
8468 set dummy dlltool
8469 if test $build = $host ; then
8470 DLLTOOL="$2"
ca9f4b81 8471 else
2693c0b0 8472 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8473 fi
ca9f4b81
AO
8474fi
8475
278a7a38
AO
8476
8477
8478if test -n "$LD"; then
8479 ac_cv_prog_LD=$LD
8480elif test -n "$ac_cv_prog_LD"; then
8481 LD=$ac_cv_prog_LD
8482fi
8483
8484if test -n "$ac_cv_prog_LD"; then
8485 for ncn_progname in ld; do
8486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8487set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489$as_echo_n "checking for $ac_word... " >&6; }
8490if test "${ac_cv_prog_LD+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
278a7a38
AO
8492else
8493 if test -n "$LD"; then
8494 ac_cv_prog_LD="$LD" # Let the user override the test.
8495else
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
5213506e
RW
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8503 ac_cv_prog_LD="${ncn_progname}"
5213506e 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8505 break 2
8506 fi
8507done
5213506e
RW
8508 done
8509IFS=$as_save_IFS
278a7a38
AO
8510
8511fi
8512fi
8513LD=$ac_cv_prog_LD
8514if test -n "$LD"; then
5213506e
RW
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8516$as_echo "$LD" >&6; }
278a7a38 8517else
5213506e
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
278a7a38
AO
8520fi
8521
5213506e 8522
278a7a38
AO
8523 done
8524fi
8525
8526for ncn_progname in ld; do
2693c0b0
PB
8527 if test -n "$ncn_tool_prefix"; then
8528 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8529set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531$as_echo_n "checking for $ac_word... " >&6; }
8532if test "${ac_cv_prog_LD+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8534else
8535 if test -n "$LD"; then
8536 ac_cv_prog_LD="$LD" # Let the user override the test.
8537else
1c710c3c
DJ
8538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
5213506e
RW
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8545 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8547 break 2
8548 fi
8549done
5213506e
RW
8550 done
8551IFS=$as_save_IFS
1c710c3c 8552
ca9f4b81
AO
8553fi
8554fi
1c710c3c 8555LD=$ac_cv_prog_LD
ca9f4b81 8556if test -n "$LD"; then
5213506e
RW
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8558$as_echo "$LD" >&6; }
ca9f4b81 8559else
5213506e
RW
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561$as_echo "no" >&6; }
ca9f4b81
AO
8562fi
8563
5213506e 8564
2693c0b0
PB
8565 fi
8566 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8568set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570$as_echo_n "checking for $ac_word... " >&6; }
8571if test "${ac_cv_prog_LD+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
ca9f4b81 8573else
2693c0b0
PB
8574 if test -n "$LD"; then
8575 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8576else
1c710c3c
DJ
8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578for as_dir in $PATH
8579do
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
5213506e
RW
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8584 ac_cv_prog_LD="${ncn_progname}"
5213506e 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8586 break 2
8587 fi
8588done
5213506e
RW
8589 done
8590IFS=$as_save_IFS
1c710c3c 8591
ca9f4b81
AO
8592fi
8593fi
1c710c3c 8594LD=$ac_cv_prog_LD
2693c0b0 8595if test -n "$LD"; then
5213506e
RW
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8597$as_echo "$LD" >&6; }
ca9f4b81 8598else
5213506e
RW
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
ca9f4b81 8601fi
1c710c3c 8602
5213506e 8603
2693c0b0
PB
8604 fi
8605 test -n "$ac_cv_prog_LD" && break
8606done
8607
8608if test -z "$ac_cv_prog_LD" ; then
8609 set dummy ld
8610 if test $build = $host ; then
8611 LD="$2"
ca9f4b81 8612 else
2693c0b0 8613 LD="${ncn_tool_prefix}$2"
ca9f4b81 8614 fi
ca9f4b81
AO
8615fi
8616
278a7a38
AO
8617
8618
8619if test -n "$LIPO"; then
8620 ac_cv_prog_LIPO=$LIPO
8621elif test -n "$ac_cv_prog_LIPO"; then
8622 LIPO=$ac_cv_prog_LIPO
8623fi
8624
8625if test -n "$ac_cv_prog_LIPO"; then
8626 for ncn_progname in lipo; do
8627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8628set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630$as_echo_n "checking for $ac_word... " >&6; }
8631if test "${ac_cv_prog_LIPO+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
278a7a38
AO
8633else
8634 if test -n "$LIPO"; then
8635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8636else
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
5213506e
RW
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8644 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8646 break 2
8647 fi
8648done
5213506e
RW
8649 done
8650IFS=$as_save_IFS
278a7a38
AO
8651
8652fi
8653fi
8654LIPO=$ac_cv_prog_LIPO
8655if test -n "$LIPO"; then
5213506e
RW
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8657$as_echo "$LIPO" >&6; }
278a7a38 8658else
5213506e
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660$as_echo "no" >&6; }
278a7a38
AO
8661fi
8662
5213506e 8663
278a7a38
AO
8664 done
8665fi
8666
8667for ncn_progname in lipo; do
2abefe3d
PB
8668 if test -n "$ncn_tool_prefix"; then
8669 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8670set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
8673if test "${ac_cv_prog_LIPO+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
2abefe3d
PB
8675else
8676 if test -n "$LIPO"; then
8677 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8678else
1c710c3c
DJ
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
5213506e
RW
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8686 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8688 break 2
8689 fi
8690done
5213506e
RW
8691 done
8692IFS=$as_save_IFS
1c710c3c 8693
2abefe3d
PB
8694fi
8695fi
1c710c3c 8696LIPO=$ac_cv_prog_LIPO
2abefe3d 8697if test -n "$LIPO"; then
5213506e
RW
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8699$as_echo "$LIPO" >&6; }
2abefe3d 8700else
5213506e
RW
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
2abefe3d
PB
8703fi
8704
5213506e 8705
2abefe3d
PB
8706 fi
8707 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8709set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711$as_echo_n "checking for $ac_word... " >&6; }
8712if test "${ac_cv_prog_LIPO+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
2abefe3d
PB
8714else
8715 if test -n "$LIPO"; then
8716 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8717else
1c710c3c
DJ
8718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719for as_dir in $PATH
8720do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
5213506e
RW
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8725 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8727 break 2
8728 fi
8729done
5213506e
RW
8730 done
8731IFS=$as_save_IFS
1c710c3c 8732
2abefe3d
PB
8733fi
8734fi
1c710c3c 8735LIPO=$ac_cv_prog_LIPO
2abefe3d 8736if test -n "$LIPO"; then
5213506e
RW
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8738$as_echo "$LIPO" >&6; }
2abefe3d 8739else
5213506e
RW
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741$as_echo "no" >&6; }
2abefe3d 8742fi
1c710c3c 8743
5213506e 8744
2abefe3d
PB
8745 fi
8746 test -n "$ac_cv_prog_LIPO" && break
8747done
8748
8749if test -z "$ac_cv_prog_LIPO" ; then
8750 set dummy lipo
8751 if test $build = $host ; then
8752 LIPO="$2"
8753 else
8754 LIPO="${ncn_tool_prefix}$2"
8755 fi
8756fi
8757
278a7a38
AO
8758
8759
8760if test -n "$NM"; then
8761 ac_cv_prog_NM=$NM
8762elif test -n "$ac_cv_prog_NM"; then
8763 NM=$ac_cv_prog_NM
8764fi
8765
8766if test -n "$ac_cv_prog_NM"; then
8767 for ncn_progname in nm; do
8768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8769set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771$as_echo_n "checking for $ac_word... " >&6; }
8772if test "${ac_cv_prog_NM+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8774else
8775 if test -n "$NM"; then
8776 ac_cv_prog_NM="$NM" # Let the user override the test.
8777else
1c710c3c
DJ
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
5213506e
RW
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8785 ac_cv_prog_NM="${ncn_progname}"
5213506e 8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8787 break 2
8788 fi
8789done
5213506e
RW
8790 done
8791IFS=$as_save_IFS
1c710c3c 8792
ca9f4b81
AO
8793fi
8794fi
1c710c3c 8795NM=$ac_cv_prog_NM
ca9f4b81 8796if test -n "$NM"; then
5213506e
RW
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8798$as_echo "$NM" >&6; }
ca9f4b81 8799else
5213506e
RW
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
ca9f4b81
AO
8802fi
8803
5213506e 8804
278a7a38
AO
8805 done
8806fi
8807
8808for ncn_progname in nm; do
8809 if test -n "$ncn_tool_prefix"; then
8810 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8811set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813$as_echo_n "checking for $ac_word... " >&6; }
8814if test "${ac_cv_prog_NM+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
ca9f4b81 8816else
2693c0b0
PB
8817 if test -n "$NM"; then
8818 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8819else
1c710c3c
DJ
8820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821for as_dir in $PATH
8822do
8823 IFS=$as_save_IFS
8824 test -z "$as_dir" && as_dir=.
5213506e
RW
8825 for ac_exec_ext in '' $ac_executable_extensions; do
8826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8827 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8829 break 2
8830 fi
8831done
5213506e
RW
8832 done
8833IFS=$as_save_IFS
1c710c3c 8834
ca9f4b81
AO
8835fi
8836fi
1c710c3c 8837NM=$ac_cv_prog_NM
2693c0b0 8838if test -n "$NM"; then
5213506e
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8840$as_echo "$NM" >&6; }
ca9f4b81 8841else
5213506e
RW
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843$as_echo "no" >&6; }
ca9f4b81 8844fi
1c710c3c 8845
5213506e 8846
2693c0b0 8847 fi
278a7a38
AO
8848 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8850set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852$as_echo_n "checking for $ac_word... " >&6; }
8853if test "${ac_cv_prog_NM+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
278a7a38
AO
8855else
8856 if test -n "$NM"; then
8857 ac_cv_prog_NM="$NM" # Let the user override the test.
8858else
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
5213506e
RW
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8866 ac_cv_prog_NM="${ncn_progname}"
5213506e 8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8868 break 2
8869 fi
8870done
5213506e
RW
8871 done
8872IFS=$as_save_IFS
278a7a38
AO
8873
8874fi
8875fi
8876NM=$ac_cv_prog_NM
8877if test -n "$NM"; then
5213506e
RW
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8879$as_echo "$NM" >&6; }
278a7a38 8880else
5213506e
RW
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882$as_echo "no" >&6; }
278a7a38
AO
8883fi
8884
5213506e 8885
278a7a38
AO
8886 fi
8887 test -n "$ac_cv_prog_NM" && break
8888done
8889
8890if test -z "$ac_cv_prog_NM" ; then
8891 set dummy nm
8892 if test $build = $host ; then
8893 NM="$2"
8894 else
8895 NM="${ncn_tool_prefix}$2"
8896 fi
8897fi
8898
8899
8900
8901if test -n "$RANLIB"; then
8902 ac_cv_prog_RANLIB=$RANLIB
8903elif test -n "$ac_cv_prog_RANLIB"; then
8904 RANLIB=$ac_cv_prog_RANLIB
8905fi
8906
8907if test -n "$ac_cv_prog_RANLIB"; then
8908 for ncn_progname in ranlib; do
8909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912$as_echo_n "checking for $ac_word... " >&6; }
8913if test "${ac_cv_prog_RANLIB+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
278a7a38
AO
8915else
8916 if test -n "$RANLIB"; then
8917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8918else
8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $PATH
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
5213506e
RW
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8926 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8928 break 2
8929 fi
8930done
5213506e
RW
8931 done
8932IFS=$as_save_IFS
278a7a38
AO
8933
8934fi
8935fi
8936RANLIB=$ac_cv_prog_RANLIB
8937if test -n "$RANLIB"; then
5213506e
RW
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8939$as_echo "$RANLIB" >&6; }
278a7a38 8940else
5213506e
RW
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
278a7a38
AO
8943fi
8944
5213506e 8945
278a7a38
AO
8946 done
8947fi
ca9f4b81 8948
278a7a38 8949for ncn_progname in ranlib; do
2693c0b0
PB
8950 if test -n "$ncn_tool_prefix"; then
8951 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8952set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954$as_echo_n "checking for $ac_word... " >&6; }
8955if test "${ac_cv_prog_RANLIB+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8957else
8958 if test -n "$RANLIB"; then
8959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8960else
1c710c3c
DJ
8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
5213506e
RW
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8968 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8970 break 2
8971 fi
8972done
5213506e
RW
8973 done
8974IFS=$as_save_IFS
1c710c3c 8975
ca9f4b81
AO
8976fi
8977fi
1c710c3c 8978RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8979if test -n "$RANLIB"; then
5213506e
RW
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8981$as_echo "$RANLIB" >&6; }
ca9f4b81 8982else
5213506e
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
ca9f4b81
AO
8985fi
8986
5213506e 8987
2693c0b0
PB
8988 fi
8989 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8991set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993$as_echo_n "checking for $ac_word... " >&6; }
8994if test "${ac_cv_prog_RANLIB+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
ca9f4b81 8996else
2693c0b0
PB
8997 if test -n "$RANLIB"; then
8998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8999else
1c710c3c
DJ
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
5213506e
RW
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9007 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9009 break 2
9010 fi
9011done
5213506e
RW
9012 done
9013IFS=$as_save_IFS
1c710c3c 9014
ca9f4b81
AO
9015fi
9016fi
1c710c3c 9017RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9018if test -n "$RANLIB"; then
5213506e
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9020$as_echo "$RANLIB" >&6; }
ca9f4b81 9021else
5213506e
RW
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023$as_echo "no" >&6; }
ca9f4b81 9024fi
1c710c3c 9025
5213506e 9026
ca9f4b81 9027 fi
2693c0b0
PB
9028 test -n "$ac_cv_prog_RANLIB" && break
9029done
9030
9031if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9032 RANLIB="true"
ca9f4b81
AO
9033fi
9034
278a7a38
AO
9035
9036
9037if test -n "$STRIP"; then
9038 ac_cv_prog_STRIP=$STRIP
9039elif test -n "$ac_cv_prog_STRIP"; then
9040 STRIP=$ac_cv_prog_STRIP
9041fi
9042
9043if test -n "$ac_cv_prog_STRIP"; then
9044 for ncn_progname in strip; do
9045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9046set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048$as_echo_n "checking for $ac_word... " >&6; }
9049if test "${ac_cv_prog_STRIP+set}" = set; then :
9050 $as_echo_n "(cached) " >&6
278a7a38
AO
9051else
9052 if test -n "$STRIP"; then
9053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9054else
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
5213506e
RW
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9062 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9064 break 2
9065 fi
9066done
5213506e
RW
9067 done
9068IFS=$as_save_IFS
278a7a38
AO
9069
9070fi
9071fi
9072STRIP=$ac_cv_prog_STRIP
9073if test -n "$STRIP"; then
5213506e
RW
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9075$as_echo "$STRIP" >&6; }
278a7a38 9076else
5213506e
RW
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078$as_echo "no" >&6; }
278a7a38
AO
9079fi
9080
5213506e 9081
278a7a38
AO
9082 done
9083fi
9084
9085for ncn_progname in strip; do
2abefe3d
PB
9086 if test -n "$ncn_tool_prefix"; then
9087 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9088set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090$as_echo_n "checking for $ac_word... " >&6; }
9091if test "${ac_cv_prog_STRIP+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
2abefe3d
PB
9093else
9094 if test -n "$STRIP"; then
9095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9096else
1c710c3c
DJ
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
5213506e
RW
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9104 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9106 break 2
9107 fi
9108done
5213506e
RW
9109 done
9110IFS=$as_save_IFS
1c710c3c 9111
2abefe3d
PB
9112fi
9113fi
1c710c3c 9114STRIP=$ac_cv_prog_STRIP
2abefe3d 9115if test -n "$STRIP"; then
5213506e
RW
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9117$as_echo "$STRIP" >&6; }
2abefe3d 9118else
5213506e
RW
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120$as_echo "no" >&6; }
2abefe3d
PB
9121fi
9122
5213506e 9123
2abefe3d
PB
9124 fi
9125 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9127set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if test "${ac_cv_prog_STRIP+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
2abefe3d
PB
9132else
9133 if test -n "$STRIP"; then
9134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9135else
1c710c3c
DJ
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
5213506e
RW
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9143 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9145 break 2
9146 fi
9147done
5213506e
RW
9148 done
9149IFS=$as_save_IFS
1c710c3c 9150
2abefe3d
PB
9151fi
9152fi
1c710c3c 9153STRIP=$ac_cv_prog_STRIP
2abefe3d 9154if test -n "$STRIP"; then
5213506e
RW
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9156$as_echo "$STRIP" >&6; }
2abefe3d 9157else
5213506e
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
2abefe3d 9160fi
1c710c3c 9161
5213506e 9162
2abefe3d
PB
9163 fi
9164 test -n "$ac_cv_prog_STRIP" && break
9165done
9166
9167if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9168 STRIP="true"
2abefe3d
PB
9169fi
9170
278a7a38
AO
9171
9172
9173if test -n "$WINDRES"; then
9174 ac_cv_prog_WINDRES=$WINDRES
9175elif test -n "$ac_cv_prog_WINDRES"; then
9176 WINDRES=$ac_cv_prog_WINDRES
9177fi
9178
9179if test -n "$ac_cv_prog_WINDRES"; then
9180 for ncn_progname in windres; do
9181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9182set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184$as_echo_n "checking for $ac_word... " >&6; }
9185if test "${ac_cv_prog_WINDRES+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
278a7a38
AO
9187else
9188 if test -n "$WINDRES"; then
9189 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9190else
9191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192for as_dir in $PATH
9193do
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
5213506e
RW
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9198 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9200 break 2
9201 fi
9202done
5213506e
RW
9203 done
9204IFS=$as_save_IFS
278a7a38
AO
9205
9206fi
9207fi
9208WINDRES=$ac_cv_prog_WINDRES
9209if test -n "$WINDRES"; then
5213506e
RW
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9211$as_echo "$WINDRES" >&6; }
278a7a38 9212else
5213506e
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
278a7a38
AO
9215fi
9216
5213506e 9217
278a7a38
AO
9218 done
9219fi
9220
9221for ncn_progname in windres; do
2693c0b0
PB
9222 if test -n "$ncn_tool_prefix"; then
9223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9224set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if test "${ac_cv_prog_WINDRES+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9229else
9230 if test -n "$WINDRES"; then
9231 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9232else
1c710c3c
DJ
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
5213506e
RW
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9240 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9242 break 2
9243 fi
9244done
5213506e
RW
9245 done
9246IFS=$as_save_IFS
1c710c3c 9247
ca9f4b81
AO
9248fi
9249fi
1c710c3c 9250WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9251if test -n "$WINDRES"; then
5213506e
RW
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9253$as_echo "$WINDRES" >&6; }
ca9f4b81 9254else
5213506e
RW
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
ca9f4b81
AO
9257fi
9258
5213506e 9259
2693c0b0
PB
9260 fi
9261 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9263set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265$as_echo_n "checking for $ac_word... " >&6; }
9266if test "${ac_cv_prog_WINDRES+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
ca9f4b81 9268else
2693c0b0
PB
9269 if test -n "$WINDRES"; then
9270 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9271else
1c710c3c
DJ
9272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273for as_dir in $PATH
9274do
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
5213506e
RW
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9279 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9281 break 2
9282 fi
9283done
5213506e
RW
9284 done
9285IFS=$as_save_IFS
1c710c3c 9286
ca9f4b81
AO
9287fi
9288fi
1c710c3c 9289WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9290if test -n "$WINDRES"; then
5213506e
RW
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9292$as_echo "$WINDRES" >&6; }
ca9f4b81 9293else
5213506e
RW
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
ca9f4b81 9296fi
1c710c3c 9297
5213506e 9298
2693c0b0
PB
9299 fi
9300 test -n "$ac_cv_prog_WINDRES" && break
9301done
9302
9303if test -z "$ac_cv_prog_WINDRES" ; then
9304 set dummy windres
9305 if test $build = $host ; then
9306 WINDRES="$2"
ca9f4b81 9307 else
2693c0b0 9308 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9309 fi
ca9f4b81
AO
9310fi
9311
278a7a38
AO
9312
9313
901119ae
KT
9314if test -n "$WINDMC"; then
9315 ac_cv_prog_WINDMC=$WINDMC
9316elif test -n "$ac_cv_prog_WINDMC"; then
9317 WINDMC=$ac_cv_prog_WINDMC
9318fi
9319
9320if test -n "$ac_cv_prog_WINDMC"; then
9321 for ncn_progname in windmc; do
9322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9323set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325$as_echo_n "checking for $ac_word... " >&6; }
9326if test "${ac_cv_prog_WINDMC+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
901119ae
KT
9328else
9329 if test -n "$WINDMC"; then
9330 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9331else
9332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333for as_dir in $PATH
9334do
9335 IFS=$as_save_IFS
9336 test -z "$as_dir" && as_dir=.
5213506e
RW
9337 for ac_exec_ext in '' $ac_executable_extensions; do
9338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9339 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9341 break 2
9342 fi
9343done
5213506e
RW
9344 done
9345IFS=$as_save_IFS
901119ae
KT
9346
9347fi
9348fi
9349WINDMC=$ac_cv_prog_WINDMC
9350if test -n "$WINDMC"; then
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9352$as_echo "$WINDMC" >&6; }
901119ae 9353else
5213506e
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355$as_echo "no" >&6; }
901119ae
KT
9356fi
9357
5213506e 9358
901119ae
KT
9359 done
9360fi
9361
9362for ncn_progname in windmc; do
9363 if test -n "$ncn_tool_prefix"; then
9364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9365set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367$as_echo_n "checking for $ac_word... " >&6; }
9368if test "${ac_cv_prog_WINDMC+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
901119ae
KT
9370else
9371 if test -n "$WINDMC"; then
9372 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9373else
9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
5213506e
RW
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9381 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9383 break 2
9384 fi
9385done
5213506e
RW
9386 done
9387IFS=$as_save_IFS
901119ae
KT
9388
9389fi
9390fi
9391WINDMC=$ac_cv_prog_WINDMC
9392if test -n "$WINDMC"; then
5213506e
RW
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9394$as_echo "$WINDMC" >&6; }
901119ae 9395else
5213506e
RW
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
901119ae
KT
9398fi
9399
5213506e 9400
901119ae
KT
9401 fi
9402 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9404set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406$as_echo_n "checking for $ac_word... " >&6; }
9407if test "${ac_cv_prog_WINDMC+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
901119ae
KT
9409else
9410 if test -n "$WINDMC"; then
9411 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9412else
9413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
5213506e
RW
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9420 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9422 break 2
9423 fi
9424done
5213506e
RW
9425 done
9426IFS=$as_save_IFS
901119ae
KT
9427
9428fi
9429fi
9430WINDMC=$ac_cv_prog_WINDMC
9431if test -n "$WINDMC"; then
5213506e
RW
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9433$as_echo "$WINDMC" >&6; }
901119ae 9434else
5213506e
RW
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436$as_echo "no" >&6; }
901119ae
KT
9437fi
9438
5213506e 9439
901119ae
KT
9440 fi
9441 test -n "$ac_cv_prog_WINDMC" && break
9442done
9443
9444if test -z "$ac_cv_prog_WINDMC" ; then
9445 set dummy windmc
9446 if test $build = $host ; then
9447 WINDMC="$2"
9448 else
9449 WINDMC="${ncn_tool_prefix}$2"
9450 fi
9451fi
9452
9453
9454
278a7a38
AO
9455if test -n "$OBJCOPY"; then
9456 ac_cv_prog_OBJCOPY=$OBJCOPY
9457elif test -n "$ac_cv_prog_OBJCOPY"; then
9458 OBJCOPY=$ac_cv_prog_OBJCOPY
9459fi
9460
9461if test -n "$ac_cv_prog_OBJCOPY"; then
9462 for ncn_progname in objcopy; do
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466$as_echo_n "checking for $ac_word... " >&6; }
9467if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
278a7a38
AO
9469else
9470 if test -n "$OBJCOPY"; then
9471 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
5213506e
RW
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9480 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9482 break 2
9483 fi
9484done
5213506e
RW
9485 done
9486IFS=$as_save_IFS
278a7a38
AO
9487
9488fi
9489fi
9490OBJCOPY=$ac_cv_prog_OBJCOPY
9491if test -n "$OBJCOPY"; then
5213506e
RW
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9493$as_echo "$OBJCOPY" >&6; }
278a7a38 9494else
5213506e
RW
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496$as_echo "no" >&6; }
278a7a38
AO
9497fi
9498
5213506e 9499
278a7a38
AO
9500 done
9501fi
9502
9503for ncn_progname in objcopy; do
2693c0b0
PB
9504 if test -n "$ncn_tool_prefix"; then
9505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9506set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508$as_echo_n "checking for $ac_word... " >&6; }
9509if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9511else
9512 if test -n "$OBJCOPY"; then
9513 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9514else
1c710c3c
DJ
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
5213506e
RW
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9522 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9524 break 2
9525 fi
9526done
5213506e
RW
9527 done
9528IFS=$as_save_IFS
1c710c3c 9529
ca9f4b81
AO
9530fi
9531fi
1c710c3c 9532OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9533if test -n "$OBJCOPY"; then
5213506e
RW
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9535$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9536else
5213506e
RW
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538$as_echo "no" >&6; }
ca9f4b81
AO
9539fi
9540
5213506e 9541
2693c0b0
PB
9542 fi
9543 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9545set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547$as_echo_n "checking for $ac_word... " >&6; }
9548if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
ca9f4b81 9550else
2693c0b0
PB
9551 if test -n "$OBJCOPY"; then
9552 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9553else
1c710c3c
DJ
9554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555for as_dir in $PATH
9556do
9557 IFS=$as_save_IFS
9558 test -z "$as_dir" && as_dir=.
5213506e
RW
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9561 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9563 break 2
9564 fi
9565done
5213506e
RW
9566 done
9567IFS=$as_save_IFS
1c710c3c 9568
ca9f4b81
AO
9569fi
9570fi
1c710c3c 9571OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9572if test -n "$OBJCOPY"; then
5213506e
RW
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9574$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9575else
5213506e
RW
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577$as_echo "no" >&6; }
ca9f4b81 9578fi
1c710c3c 9579
5213506e 9580
2693c0b0
PB
9581 fi
9582 test -n "$ac_cv_prog_OBJCOPY" && break
9583done
9584
9585if test -z "$ac_cv_prog_OBJCOPY" ; then
9586 set dummy objcopy
9587 if test $build = $host ; then
9588 OBJCOPY="$2"
ca9f4b81 9589 else
2693c0b0 9590 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9591 fi
ca9f4b81
AO
9592fi
9593
278a7a38
AO
9594
9595
9596if test -n "$OBJDUMP"; then
9597 ac_cv_prog_OBJDUMP=$OBJDUMP
9598elif test -n "$ac_cv_prog_OBJDUMP"; then
9599 OBJDUMP=$ac_cv_prog_OBJDUMP
9600fi
9601
9602if test -n "$ac_cv_prog_OBJDUMP"; then
9603 for ncn_progname in objdump; do
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607$as_echo_n "checking for $ac_word... " >&6; }
9608if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
278a7a38
AO
9610else
9611 if test -n "$OBJDUMP"; then
9612 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9613else
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
5213506e
RW
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9621 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9623 break 2
9624 fi
9625done
5213506e
RW
9626 done
9627IFS=$as_save_IFS
278a7a38
AO
9628
9629fi
9630fi
9631OBJDUMP=$ac_cv_prog_OBJDUMP
9632if test -n "$OBJDUMP"; then
5213506e
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9634$as_echo "$OBJDUMP" >&6; }
278a7a38 9635else
5213506e
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
278a7a38
AO
9638fi
9639
5213506e 9640
278a7a38
AO
9641 done
9642fi
9643
9644for ncn_progname in objdump; do
2693c0b0
PB
9645 if test -n "$ncn_tool_prefix"; then
9646 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9647set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649$as_echo_n "checking for $ac_word... " >&6; }
9650if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9652else
9653 if test -n "$OBJDUMP"; then
9654 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9655else
1c710c3c
DJ
9656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657for as_dir in $PATH
9658do
9659 IFS=$as_save_IFS
9660 test -z "$as_dir" && as_dir=.
5213506e
RW
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9663 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9665 break 2
9666 fi
9667done
5213506e
RW
9668 done
9669IFS=$as_save_IFS
1c710c3c 9670
ca9f4b81
AO
9671fi
9672fi
1c710c3c 9673OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9674if test -n "$OBJDUMP"; then
5213506e
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9676$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9677else
5213506e
RW
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679$as_echo "no" >&6; }
ca9f4b81
AO
9680fi
9681
5213506e 9682
2693c0b0
PB
9683 fi
9684 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9686set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688$as_echo_n "checking for $ac_word... " >&6; }
9689if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
ca9f4b81 9691else
2693c0b0
PB
9692 if test -n "$OBJDUMP"; then
9693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9694else
1c710c3c
DJ
9695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696for as_dir in $PATH
9697do
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
5213506e
RW
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9702 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9704 break 2
9705 fi
9706done
5213506e
RW
9707 done
9708IFS=$as_save_IFS
1c710c3c 9709
ca9f4b81
AO
9710fi
9711fi
1c710c3c 9712OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9713if test -n "$OBJDUMP"; then
5213506e
RW
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9715$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9716else
5213506e
RW
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718$as_echo "no" >&6; }
ca9f4b81 9719fi
1c710c3c 9720
5213506e 9721
2693c0b0
PB
9722 fi
9723 test -n "$ac_cv_prog_OBJDUMP" && break
9724done
9725
9726if test -z "$ac_cv_prog_OBJDUMP" ; then
9727 set dummy objdump
9728 if test $build = $host ; then
9729 OBJDUMP="$2"
ca9f4b81 9730 else
2693c0b0 9731 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9732 fi
ca9f4b81
AO
9733fi
9734
671aa708
NN
9735
9736
e7a82751
RM
9737if test -n "$READELF"; then
9738 ac_cv_prog_READELF=$READELF
9739elif test -n "$ac_cv_prog_READELF"; then
9740 READELF=$ac_cv_prog_READELF
9741fi
9742
9743if test -n "$ac_cv_prog_READELF"; then
9744 for ncn_progname in readelf; do
9745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9746set dummy ${ncn_progname}; ac_word=$2
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748$as_echo_n "checking for $ac_word... " >&6; }
9749if test "${ac_cv_prog_READELF+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751else
9752 if test -n "$READELF"; then
9753 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9754else
9755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756for as_dir in $PATH
9757do
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
9760 for ac_exec_ext in '' $ac_executable_extensions; do
9761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9762 ac_cv_prog_READELF="${ncn_progname}"
9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9764 break 2
9765 fi
9766done
9767 done
9768IFS=$as_save_IFS
9769
9770fi
9771fi
9772READELF=$ac_cv_prog_READELF
9773if test -n "$READELF"; then
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9775$as_echo "$READELF" >&6; }
9776else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778$as_echo "no" >&6; }
9779fi
9780
9781
9782 done
9783fi
9784
9785for ncn_progname in readelf; do
9786 if test -n "$ncn_tool_prefix"; then
9787 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9788set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790$as_echo_n "checking for $ac_word... " >&6; }
9791if test "${ac_cv_prog_READELF+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793else
9794 if test -n "$READELF"; then
9795 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9796else
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9807 fi
9808done
9809 done
9810IFS=$as_save_IFS
9811
9812fi
9813fi
9814READELF=$ac_cv_prog_READELF
9815if test -n "$READELF"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9817$as_echo "$READELF" >&6; }
9818else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820$as_echo "no" >&6; }
9821fi
9822
9823
9824 fi
9825 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9827set dummy ${ncn_progname}; ac_word=$2
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829$as_echo_n "checking for $ac_word... " >&6; }
9830if test "${ac_cv_prog_READELF+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9832else
9833 if test -n "$READELF"; then
9834 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9835else
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843 ac_cv_prog_READELF="${ncn_progname}"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847done
9848 done
9849IFS=$as_save_IFS
9850
9851fi
9852fi
9853READELF=$ac_cv_prog_READELF
9854if test -n "$READELF"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9856$as_echo "$READELF" >&6; }
9857else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859$as_echo "no" >&6; }
9860fi
9861
9862
9863 fi
9864 test -n "$ac_cv_prog_READELF" && break
9865done
9866
9867if test -z "$ac_cv_prog_READELF" ; then
9868 set dummy readelf
9869 if test $build = $host ; then
9870 READELF="$2"
9871 else
9872 READELF="${ncn_tool_prefix}$2"
9873 fi
9874fi
9875
9876
9877
671aa708
NN
9878
9879
9880
2abefe3d 9881# Target tools.
1c710c3c 9882
5213506e
RW
9883# Check whether --with-build-time-tools was given.
9884if test "${with_build_time_tools+set}" = set; then :
9885 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9886 x/*) ;;
9887 *)
9888 with_build_time_tools=
5213506e
RW
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9890$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9891 ;;
9892 esac
ca9f4b81 9893else
e8b05380 9894 with_build_time_tools=
5213506e
RW
9895fi
9896
ca9f4b81 9897
278a7a38
AO
9898
9899
9900if test -n "$CC_FOR_TARGET"; then
9901 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9902elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9903 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9904fi
9905
9906if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9907 for ncn_progname in cc gcc; do
9908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9909set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
9912if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
278a7a38
AO
9914else
9915 if test -n "$CC_FOR_TARGET"; then
9916 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
5213506e
RW
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9925 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9927 break 2
9928 fi
9929done
5213506e
RW
9930 done
9931IFS=$as_save_IFS
278a7a38
AO
9932
9933fi
9934fi
9935CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9936if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9938$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9939else
5213506e
RW
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941$as_echo "no" >&6; }
278a7a38
AO
9942fi
9943
5213506e 9944
278a7a38
AO
9945 done
9946fi
9947
9948if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9949 for ncn_progname in cc gcc; do
5213506e
RW
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9951$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9952 if test -x $with_build_time_tools/${ncn_progname}; then
9953 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9955$as_echo "yes" >&6; }
72a7ab82 9956 break
e8b05380 9957 else
5213506e
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
72a7ab82
AP
9960 fi
9961 done
4de997d1
PB
9962fi
9963
e8b05380
PB
9964if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9965 for ncn_progname in cc gcc; do
9966 if test -n "$ncn_target_tool_prefix"; then
9967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9968set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970$as_echo_n "checking for $ac_word... " >&6; }
9971if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9972 $as_echo_n "(cached) " >&6
4de997d1
PB
9973else
9974 if test -n "$CC_FOR_TARGET"; then
9975 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9976else
1c710c3c
DJ
9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978for as_dir in $PATH
9979do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
5213506e
RW
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9984 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9986 break 2
9987 fi
9988done
5213506e
RW
9989 done
9990IFS=$as_save_IFS
1c710c3c 9991
4de997d1
PB
9992fi
9993fi
1c710c3c 9994CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9995if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9997$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9998else
5213506e
RW
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000$as_echo "no" >&6; }
4de997d1
PB
10001fi
10002
5213506e 10003
e8b05380
PB
10004 fi
10005 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10007set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009$as_echo_n "checking for $ac_word... " >&6; }
10010if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
4de997d1 10012else
2693c0b0
PB
10013 if test -n "$CC_FOR_TARGET"; then
10014 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10015else
1c710c3c
DJ
10016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
5213506e
RW
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10023 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10025 break 2
10026 fi
10027done
5213506e
RW
10028 done
10029IFS=$as_save_IFS
1c710c3c 10030
4de997d1
PB
10031fi
10032fi
1c710c3c 10033CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10034if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10036$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10037else
5213506e
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
4de997d1 10040fi
1c710c3c 10041
5213506e 10042
e8b05380
PB
10043 fi
10044 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10045 done
10046fi
1c710c3c 10047
2693c0b0
PB
10048if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10049 set dummy cc gcc
10050 if test $build = $target ; then
10051 CC_FOR_TARGET="$2"
4de997d1 10052 else
2693c0b0 10053 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10054 fi
1c00b503
PB
10055else
10056 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10057fi
10058
278a7a38
AO
10059
10060
10061if test -n "$CXX_FOR_TARGET"; then
10062 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10063elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10064 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10065fi
10066
10067if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10068 for ncn_progname in c++ g++ cxx gxx; do
10069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072$as_echo_n "checking for $ac_word... " >&6; }
10073if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
278a7a38
AO
10075else
10076 if test -n "$CXX_FOR_TARGET"; then
10077 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10078else
10079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080for as_dir in $PATH
10081do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
5213506e
RW
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10086 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10088 break 2
10089 fi
10090done
5213506e
RW
10091 done
10092IFS=$as_save_IFS
278a7a38
AO
10093
10094fi
10095fi
10096CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10097if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10099$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10100else
5213506e
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102$as_echo "no" >&6; }
278a7a38
AO
10103fi
10104
5213506e 10105
278a7a38
AO
10106 done
10107fi
10108
10109if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10110 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10112$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10113 if test -x $with_build_time_tools/${ncn_progname}; then
10114 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116$as_echo "yes" >&6; }
e8b05380
PB
10117 break
10118 else
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
e8b05380
PB
10121 fi
10122 done
10123fi
10124
10125if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10126 for ncn_progname in c++ g++ cxx gxx; do
10127 if test -n "$ncn_target_tool_prefix"; then
10128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10129set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
4de997d1
PB
10134else
10135 if test -n "$CXX_FOR_TARGET"; then
10136 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10137else
1c710c3c
DJ
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
5213506e
RW
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10145 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10147 break 2
10148 fi
10149done
5213506e
RW
10150 done
10151IFS=$as_save_IFS
1c710c3c 10152
4de997d1
PB
10153fi
10154fi
1c710c3c 10155CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10156if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10158$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10159else
5213506e
RW
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
4de997d1
PB
10162fi
10163
5213506e 10164
e8b05380
PB
10165 fi
10166 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10168set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170$as_echo_n "checking for $ac_word... " >&6; }
10171if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
4de997d1 10173else
2693c0b0
PB
10174 if test -n "$CXX_FOR_TARGET"; then
10175 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10176else
1c710c3c
DJ
10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
5213506e
RW
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10184 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10186 break 2
10187 fi
10188done
5213506e
RW
10189 done
10190IFS=$as_save_IFS
1c710c3c 10191
4de997d1
PB
10192fi
10193fi
1c710c3c 10194CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10195if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10197$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10198else
5213506e
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
4de997d1 10201fi
1c710c3c 10202
5213506e 10203
e8b05380
PB
10204 fi
10205 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10206 done
10207fi
1c710c3c 10208
2693c0b0
PB
10209if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10210 set dummy c++ g++ cxx gxx
10211 if test $build = $target ; then
10212 CXX_FOR_TARGET="$2"
4de997d1 10213 else
2693c0b0 10214 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10215 fi
1c00b503
PB
10216else
10217 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10218fi
10219
278a7a38
AO
10220
10221
10222if test -n "$GCC_FOR_TARGET"; then
10223 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10224elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10225 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10226fi
10227
10228if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10229 for ncn_progname in gcc; do
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
278a7a38
AO
10236else
10237 if test -n "$GCC_FOR_TARGET"; then
10238 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10239else
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
5213506e
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10247 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10249 break 2
10250 fi
10251done
5213506e
RW
10252 done
10253IFS=$as_save_IFS
278a7a38
AO
10254
10255fi
10256fi
10257GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10258if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10260$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
278a7a38
AO
10264fi
10265
5213506e 10266
278a7a38
AO
10267 done
10268fi
10269
10270if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10271 for ncn_progname in gcc; do
5213506e
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10273$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10274 if test -x $with_build_time_tools/${ncn_progname}; then
10275 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277$as_echo "yes" >&6; }
e8b05380
PB
10278 break
10279 else
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
e8b05380
PB
10282 fi
10283 done
10284fi
10285
10286if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10287 for ncn_progname in gcc; do
10288 if test -n "$ncn_target_tool_prefix"; then
10289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
ca9f4b81 10295else
e8b05380
PB
10296 if test -n "$GCC_FOR_TARGET"; then
10297 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10298else
1c710c3c
DJ
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
5213506e
RW
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10306 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10308 break 2
10309 fi
10310done
5213506e
RW
10311 done
10312IFS=$as_save_IFS
1c710c3c 10313
ca9f4b81
AO
10314fi
10315fi
1c710c3c 10316GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10317if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10319$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10320else
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
ca9f4b81
AO
10323fi
10324
5213506e 10325
e8b05380
PB
10326 fi
10327 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10329set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331$as_echo_n "checking for $ac_word... " >&6; }
10332if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
ca9f4b81 10334else
e8b05380
PB
10335 if test -n "$GCC_FOR_TARGET"; then
10336 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10337else
1c710c3c
DJ
10338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339for as_dir in $PATH
10340do
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
5213506e
RW
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10345 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10347 break 2
10348 fi
10349done
5213506e
RW
10350 done
10351IFS=$as_save_IFS
1c710c3c 10352
ca9f4b81
AO
10353fi
10354fi
1c710c3c 10355GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10356if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10358$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10359else
5213506e
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361$as_echo "no" >&6; }
ca9f4b81 10362fi
1c710c3c 10363
5213506e 10364
e8b05380
PB
10365 fi
10366 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10367 done
10368fi
1c710c3c 10369
e8b05380
PB
10370if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10371 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10372else
10373 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10374fi
10375
278a7a38
AO
10376
10377
10378if test -n "$GCJ_FOR_TARGET"; then
10379 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10380elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10381 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10382fi
10383
10384if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10385 for ncn_progname in gcj; do
10386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10387set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
10390if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
278a7a38
AO
10392else
10393 if test -n "$GCJ_FOR_TARGET"; then
10394 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10395else
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
5213506e
RW
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10403 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10405 break 2
10406 fi
10407done
5213506e
RW
10408 done
10409IFS=$as_save_IFS
278a7a38
AO
10410
10411fi
10412fi
10413GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10414if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10416$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10417else
5213506e
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
278a7a38
AO
10420fi
10421
5213506e 10422
278a7a38
AO
10423 done
10424fi
10425
10426if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10427 for ncn_progname in gcj; do
5213506e
RW
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10429$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10430 if test -x $with_build_time_tools/${ncn_progname}; then
10431 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10433$as_echo "yes" >&6; }
e8b05380
PB
10434 break
10435 else
5213506e
RW
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
e8b05380
PB
10438 fi
10439 done
10440fi
10441
10442if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10443 for ncn_progname in gcj; do
10444 if test -n "$ncn_target_tool_prefix"; then
10445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10446set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
e8b05380 10451else
fb0103e5
RG
10452 if test -n "$GCJ_FOR_TARGET"; then
10453 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10454else
1c710c3c
DJ
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
5213506e
RW
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10462 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10464 break 2
10465 fi
10466done
5213506e
RW
10467 done
10468IFS=$as_save_IFS
1c710c3c 10469
e8b05380
PB
10470fi
10471fi
278a7a38
AO
10472GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10473if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10475$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10476else
5213506e
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
278a7a38
AO
10479fi
10480
5213506e 10481
278a7a38
AO
10482 fi
10483 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10485set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487$as_echo_n "checking for $ac_word... " >&6; }
10488if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
278a7a38
AO
10490else
10491 if test -n "$GCJ_FOR_TARGET"; then
10492 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
5213506e
RW
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10501 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10503 break 2
10504 fi
10505done
5213506e
RW
10506 done
10507IFS=$as_save_IFS
278a7a38
AO
10508
10509fi
10510fi
10511GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10512if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10514$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10515else
5213506e
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
278a7a38
AO
10518fi
10519
5213506e 10520
278a7a38
AO
10521 fi
10522 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10523 done
10524fi
10525
10526if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10527 set dummy gcj
10528 if test $build = $target ; then
10529 GCJ_FOR_TARGET="$2"
10530 else
10531 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10532 fi
1c00b503
PB
10533else
10534 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10535fi
10536
10537
10538
10539if test -n "$GFORTRAN_FOR_TARGET"; then
10540 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10541elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10542 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10543fi
10544
278a7a38
AO
10545if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10546 for ncn_progname in gfortran; do
10547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10548set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550$as_echo_n "checking for $ac_word... " >&6; }
10551if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
e8b05380 10553else
278a7a38
AO
10554 if test -n "$GFORTRAN_FOR_TARGET"; then
10555 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10556else
1c710c3c
DJ
10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
5213506e
RW
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10564 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10566 break 2
10567 fi
10568done
5213506e
RW
10569 done
10570IFS=$as_save_IFS
1c710c3c 10571
e8b05380
PB
10572fi
10573fi
278a7a38
AO
10574GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10575if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10577$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10578else
5213506e
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
e8b05380 10581fi
1c710c3c 10582
5213506e 10583
e8b05380
PB
10584 done
10585fi
1c710c3c 10586
278a7a38 10587if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10588 for ncn_progname in gfortran; do
5213506e
RW
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10590$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10591 if test -x $with_build_time_tools/${ncn_progname}; then
10592 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594$as_echo "yes" >&6; }
e8b05380
PB
10595 break
10596 else
5213506e
RW
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
e8b05380
PB
10599 fi
10600 done
10601fi
10602
10603if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10604 for ncn_progname in gfortran; do
10605 if test -n "$ncn_target_tool_prefix"; then
10606 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10607set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609$as_echo_n "checking for $ac_word... " >&6; }
10610if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10611 $as_echo_n "(cached) " >&6
e8b05380
PB
10612else
10613 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10614 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10615else
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
5213506e
RW
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10623 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10625 break 2
10626 fi
10627done
5213506e
RW
10628 done
10629IFS=$as_save_IFS
1c710c3c 10630
e8b05380
PB
10631fi
10632fi
1c710c3c 10633GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10634if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10636$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10637else
5213506e
RW
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
e8b05380
PB
10640fi
10641
5213506e 10642
e8b05380
PB
10643 fi
10644 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648$as_echo_n "checking for $ac_word... " >&6; }
10649if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
e8b05380
PB
10651else
10652 if test -n "$GFORTRAN_FOR_TARGET"; then
10653 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10654else
1c710c3c
DJ
10655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656for as_dir in $PATH
10657do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
5213506e
RW
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10662 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10664 break 2
10665 fi
10666done
5213506e
RW
10667 done
10668IFS=$as_save_IFS
1c710c3c 10669
e8b05380
PB
10670fi
10671fi
1c710c3c 10672GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10673if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10675$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10676else
5213506e
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678$as_echo "no" >&6; }
e8b05380 10679fi
1c710c3c 10680
5213506e 10681
e8b05380
PB
10682 fi
10683 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10684 done
10685fi
1c710c3c 10686
e8b05380
PB
10687if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10688 set dummy gfortran
2693c0b0 10689 if test $build = $target ; then
e8b05380 10690 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10691 else
e8b05380
PB
10692 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10693 fi
1c00b503
PB
10694else
10695 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10696fi
10697
10698
10699
632e2a07
ILT
10700if test -n "$GOC_FOR_TARGET"; then
10701 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10702elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10703 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10704fi
10705
10706if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10707 for ncn_progname in gccgo; do
10708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10709set dummy ${ncn_progname}; ac_word=$2
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714else
10715 if test -n "$GOC_FOR_TARGET"; then
10716 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730 done
10731IFS=$as_save_IFS
10732
10733fi
10734fi
10735GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10736if test -n "$GOC_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10738$as_echo "$GOC_FOR_TARGET" >&6; }
10739else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744
10745 done
10746fi
10747
10748if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10749 for ncn_progname in gccgo; do
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10751$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10752 if test -x $with_build_time_tools/${ncn_progname}; then
10753 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755$as_echo "yes" >&6; }
10756 break
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760 fi
10761 done
10762fi
10763
10764if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10765 for ncn_progname in gccgo; do
10766 if test -n "$ncn_target_tool_prefix"; then
10767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10768set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770$as_echo_n "checking for $ac_word... " >&6; }
10771if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773else
10774 if test -n "$GOC_FOR_TARGET"; then
10775 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10784 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789 done
10790IFS=$as_save_IFS
10791
10792fi
10793fi
10794GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10795if test -n "$GOC_FOR_TARGET"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10797$as_echo "$GOC_FOR_TARGET" >&6; }
10798else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
10801fi
10802
10803
10804 fi
10805 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807set dummy ${ncn_progname}; ac_word=$2
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809$as_echo_n "checking for $ac_word... " >&6; }
10810if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812else
10813 if test -n "$GOC_FOR_TARGET"; then
10814 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10815else
10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827done
10828 done
10829IFS=$as_save_IFS
10830
10831fi
10832fi
10833GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10834if test -n "$GOC_FOR_TARGET"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10836$as_echo "$GOC_FOR_TARGET" >&6; }
10837else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839$as_echo "no" >&6; }
10840fi
10841
10842
10843 fi
10844 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10845 done
10846fi
10847
10848if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10849 set dummy gccgo
10850 if test $build = $target ; then
10851 GOC_FOR_TARGET="$2"
10852 else
10853 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10854 fi
10855else
10856 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10857fi
10858
10859
10860
e8b05380
PB
10861cat > conftest.c << \EOF
10862#ifdef __GNUC__
10863 gcc_yay;
10864#endif
10865EOF
10866if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10867 have_gcc_for_target=yes
10868else
10869 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10870 have_gcc_for_target=no
10871fi
10872rm conftest.c
10873
10874
10875
10876
10877if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10878 if test -n "$with_build_time_tools"; then
5213506e
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10880$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10881 if test -x $with_build_time_tools/ar; then
10882 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10883 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10885$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10886 else
5213506e
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
d1f8db0c 10889 fi
e8b05380
PB
10890 elif test $build != $host && test $have_gcc_for_target = yes; then
10891 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10892 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10893 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10894 fi
10895fi
3e19841a 10896if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10897 # Extract the first word of "ar", so it can be a program name with args.
10898set dummy ar; ac_word=$2
5213506e
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
10901if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
e8b05380 10903else
1c710c3c
DJ
10904 case $AR_FOR_TARGET in
10905 [\\/]* | ?:[\\/]*)
e8b05380
PB
10906 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10907 ;;
e8b05380 10908 *)
1c710c3c
DJ
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $gcc_cv_tool_dirs
10911do
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
5213506e
RW
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10916 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10918 break 2
10919 fi
10920done
5213506e
RW
10921 done
10922IFS=$as_save_IFS
1c710c3c 10923
e8b05380
PB
10924 ;;
10925esac
10926fi
1c710c3c 10927AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10928if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10930$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10931else
5213506e
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
4de997d1
PB
10934fi
10935
5213506e 10936
e8b05380
PB
10937fi
10938if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10939
10940
10941if test -n "$AR_FOR_TARGET"; then
10942 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10943elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10945fi
10946
10947if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10948 for ncn_progname in ar; do
10949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10950set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952$as_echo_n "checking for $ac_word... " >&6; }
10953if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
278a7a38
AO
10955else
10956 if test -n "$AR_FOR_TARGET"; then
10957 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10958else
10959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
5213506e
RW
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10966 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10968 break 2
10969 fi
10970done
5213506e
RW
10971 done
10972IFS=$as_save_IFS
278a7a38
AO
10973
10974fi
10975fi
10976AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10977if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10979$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10980else
5213506e
RW
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
278a7a38
AO
10983fi
10984
5213506e 10985
278a7a38
AO
10986 done
10987fi
10988
10989if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10990 for ncn_progname in ar; do
5213506e
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10992$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10993 if test -x $with_build_time_tools/${ncn_progname}; then
10994 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996$as_echo "yes" >&6; }
e8b05380
PB
10997 break
10998 else
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
e8b05380
PB
11001 fi
11002 done
11003fi
11004
11005if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11006 for ncn_progname in ar; do
11007 if test -n "$ncn_target_tool_prefix"; then
11008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11009set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
11012if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
4de997d1 11014else
e8b05380
PB
11015 if test -n "$AR_FOR_TARGET"; then
11016 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11017else
1c710c3c
DJ
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
5213506e
RW
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11025 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11027 break 2
11028 fi
11029done
5213506e
RW
11030 done
11031IFS=$as_save_IFS
1c710c3c 11032
4de997d1
PB
11033fi
11034fi
1c710c3c 11035AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11036if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11038$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11039else
5213506e
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
4de997d1
PB
11042fi
11043
5213506e 11044
e8b05380
PB
11045 fi
11046 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050$as_echo_n "checking for $ac_word... " >&6; }
11051if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11052 $as_echo_n "(cached) " >&6
e8b05380
PB
11053else
11054 if test -n "$AR_FOR_TARGET"; then
11055 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11056else
1c710c3c
DJ
11057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058for as_dir in $PATH
11059do
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
5213506e
RW
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11064 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11066 break 2
11067 fi
11068done
5213506e
RW
11069 done
11070IFS=$as_save_IFS
1c710c3c 11071
e8b05380
PB
11072fi
11073fi
1c710c3c 11074AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11075if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11077$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11078else
5213506e
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
e8b05380 11081fi
1c710c3c 11082
5213506e 11083
e8b05380
PB
11084 fi
11085 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11086 done
11087fi
1c710c3c 11088
e8b05380
PB
11089if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11090 set dummy ar
11091 if test $build = $target ; then
11092 AR_FOR_TARGET="$2"
11093 else
11094 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11095 fi
1c00b503
PB
11096else
11097 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11098fi
11099
d1f8db0c
PB
11100else
11101 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11102fi
11103
11104
11105
11106
11107if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11108 if test -n "$with_build_time_tools"; then
5213506e
RW
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11110$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11111 if test -x $with_build_time_tools/as; then
11112 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11113 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11115$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11116 else
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
d1f8db0c 11119 fi
e8b05380
PB
11120 elif test $build != $host && test $have_gcc_for_target = yes; then
11121 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11122 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11123 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11124 fi
11125fi
3e19841a 11126if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11127 # Extract the first word of "as", so it can be a program name with args.
11128set dummy as; ac_word=$2
5213506e
RW
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130$as_echo_n "checking for $ac_word... " >&6; }
11131if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
e8b05380 11133else
1c710c3c
DJ
11134 case $AS_FOR_TARGET in
11135 [\\/]* | ?:[\\/]*)
e8b05380
PB
11136 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11137 ;;
e8b05380 11138 *)
1c710c3c
DJ
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $gcc_cv_tool_dirs
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
5213506e
RW
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11146 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11148 break 2
11149 fi
11150done
5213506e
RW
11151 done
11152IFS=$as_save_IFS
1c710c3c 11153
e8b05380
PB
11154 ;;
11155esac
11156fi
1c710c3c 11157AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11158if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11160$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11161else
5213506e
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
e8b05380
PB
11164fi
11165
5213506e 11166
e8b05380
PB
11167fi
11168if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11169
11170
11171if test -n "$AS_FOR_TARGET"; then
11172 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11173elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11174 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11175fi
11176
11177if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11178 for ncn_progname in as; do
11179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
11183if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
278a7a38
AO
11185else
11186 if test -n "$AS_FOR_TARGET"; then
11187 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
5213506e
RW
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11196 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11198 break 2
11199 fi
11200done
5213506e
RW
11201 done
11202IFS=$as_save_IFS
278a7a38
AO
11203
11204fi
11205fi
11206AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11207if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11209$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11210else
5213506e
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
278a7a38
AO
11213fi
11214
5213506e 11215
278a7a38
AO
11216 done
11217fi
11218
11219if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11220 for ncn_progname in as; do
5213506e
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11222$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11223 if test -x $with_build_time_tools/${ncn_progname}; then
11224 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226$as_echo "yes" >&6; }
e8b05380
PB
11227 break
11228 else
5213506e
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
e8b05380
PB
11231 fi
11232 done
11233fi
11234
11235if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11236 for ncn_progname in as; do
11237 if test -n "$ncn_target_tool_prefix"; then
11238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241$as_echo_n "checking for $ac_word... " >&6; }
11242if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
e8b05380
PB
11244else
11245 if test -n "$AS_FOR_TARGET"; then
11246 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11247else
1c710c3c
DJ
11248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249for as_dir in $PATH
11250do
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
5213506e
RW
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11255 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11257 break 2
11258 fi
11259done
5213506e
RW
11260 done
11261IFS=$as_save_IFS
1c710c3c 11262
e8b05380
PB
11263fi
11264fi
1c710c3c 11265AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11266if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11268$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11269else
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
e8b05380
PB
11272fi
11273
5213506e 11274
e8b05380
PB
11275 fi
11276 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11278set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
11281if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
4de997d1 11283else
e8b05380
PB
11284 if test -n "$AS_FOR_TARGET"; then
11285 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11286else
1c710c3c
DJ
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
5213506e
RW
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11294 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11296 break 2
11297 fi
11298done
5213506e
RW
11299 done
11300IFS=$as_save_IFS
1c710c3c 11301
4de997d1
PB
11302fi
11303fi
1c710c3c 11304AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11305if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11307$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11308else
5213506e
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
4de997d1 11311fi
1c710c3c 11312
5213506e 11313
e8b05380
PB
11314 fi
11315 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11316 done
11317fi
1c710c3c 11318
e8b05380
PB
11319if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11320 set dummy as
11321 if test $build = $target ; then
11322 AS_FOR_TARGET="$2"
11323 else
11324 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11325 fi
1c00b503
PB
11326else
11327 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11328fi
2693c0b0 11329
d1f8db0c
PB
11330else
11331 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11332fi
11333
e8b05380
PB
11334
11335
11336
11337if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11338 if test -n "$with_build_time_tools"; then
5213506e
RW
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11340$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11341 if test -x $with_build_time_tools/dlltool; then
11342 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11343 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11345$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11346 else
5213506e
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
d1f8db0c 11349 fi
e8b05380
PB
11350 elif test $build != $host && test $have_gcc_for_target = yes; then
11351 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11352 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11353 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11354 fi
11355fi
3e19841a 11356if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11357 # Extract the first word of "dlltool", so it can be a program name with args.
11358set dummy dlltool; ac_word=$2
5213506e
RW
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360$as_echo_n "checking for $ac_word... " >&6; }
11361if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
4de997d1 11363else
1c710c3c
DJ
11364 case $DLLTOOL_FOR_TARGET in
11365 [\\/]* | ?:[\\/]*)
e8b05380
PB
11366 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11367 ;;
e8b05380 11368 *)
1c710c3c
DJ
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370for as_dir in $gcc_cv_tool_dirs
11371do
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
5213506e
RW
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11376 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11378 break 2
11379 fi
11380done
5213506e
RW
11381 done
11382IFS=$as_save_IFS
1c710c3c 11383
e8b05380
PB
11384 ;;
11385esac
4de997d1 11386fi
1c710c3c 11387DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11388if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11390$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11391else
5213506e
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
4de997d1
PB
11394fi
11395
5213506e 11396
e8b05380
PB
11397fi
11398if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11399
11400
11401if test -n "$DLLTOOL_FOR_TARGET"; then
11402 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11403elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11404 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11405fi
11406
11407if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11408 for ncn_progname in dlltool; do
11409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11410set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412$as_echo_n "checking for $ac_word... " >&6; }
11413if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
278a7a38
AO
11415else
11416 if test -n "$DLLTOOL_FOR_TARGET"; then
11417 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11418else
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
5213506e
RW
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11426 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11428 break 2
11429 fi
11430done
5213506e
RW
11431 done
11432IFS=$as_save_IFS
278a7a38
AO
11433
11434fi
11435fi
11436DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11437if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11439$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11440else
5213506e
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
278a7a38
AO
11443fi
11444
5213506e 11445
278a7a38
AO
11446 done
11447fi
11448
11449if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11450 for ncn_progname in dlltool; do
5213506e
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11452$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11453 if test -x $with_build_time_tools/${ncn_progname}; then
11454 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456$as_echo "yes" >&6; }
e8b05380
PB
11457 break
11458 else
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
e8b05380
PB
11461 fi
11462 done
11463fi
11464
11465if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11466 for ncn_progname in dlltool; do
11467 if test -n "$ncn_target_tool_prefix"; then
11468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11469set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
4de997d1 11474else
e8b05380
PB
11475 if test -n "$DLLTOOL_FOR_TARGET"; then
11476 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11477else
1c710c3c
DJ
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
5213506e
RW
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11485 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11487 break 2
11488 fi
11489done
5213506e
RW
11490 done
11491IFS=$as_save_IFS
1c710c3c 11492
4de997d1
PB
11493fi
11494fi
1c710c3c 11495DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11496if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11498$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11499else
5213506e
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
4de997d1 11502fi
4de997d1 11503
5213506e 11504
e8b05380
PB
11505 fi
11506 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11508set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510$as_echo_n "checking for $ac_word... " >&6; }
11511if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
4de997d1 11513else
e8b05380
PB
11514 if test -n "$DLLTOOL_FOR_TARGET"; then
11515 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11516else
1c710c3c
DJ
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
5213506e
RW
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11524 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11526 break 2
11527 fi
11528done
5213506e
RW
11529 done
11530IFS=$as_save_IFS
1c710c3c 11531
4de997d1
PB
11532fi
11533fi
1c710c3c 11534DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11535if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11537$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11538else
5213506e
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
4de997d1 11541fi
1c710c3c 11542
5213506e 11543
e8b05380
PB
11544 fi
11545 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11546 done
11547fi
1c710c3c 11548
e8b05380
PB
11549if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11550 set dummy dlltool
11551 if test $build = $target ; then
11552 DLLTOOL_FOR_TARGET="$2"
11553 else
11554 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11555 fi
1c00b503
PB
11556else
11557 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11558fi
11559
d1f8db0c
PB
11560else
11561 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11562fi
11563
4de997d1 11564
e8b05380
PB
11565
11566
11567if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11568 if test -n "$with_build_time_tools"; then
5213506e
RW
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11570$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11571 if test -x $with_build_time_tools/ld; then
11572 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11573 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11575$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11576 else
5213506e
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
d1f8db0c 11579 fi
e8b05380
PB
11580 elif test $build != $host && test $have_gcc_for_target = yes; then
11581 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11582 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11583 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11584 fi
e8b05380 11585fi
3e19841a 11586if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11587 # Extract the first word of "ld", so it can be a program name with args.
11588set dummy ld; ac_word=$2
5213506e
RW
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
11591if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11592 $as_echo_n "(cached) " >&6
4de997d1 11593else
1c710c3c
DJ
11594 case $LD_FOR_TARGET in
11595 [\\/]* | ?:[\\/]*)
e8b05380
PB
11596 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11597 ;;
e8b05380 11598 *)
1c710c3c
DJ
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $gcc_cv_tool_dirs
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
5213506e
RW
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11606 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11608 break 2
11609 fi
11610done
5213506e
RW
11611 done
11612IFS=$as_save_IFS
1c710c3c 11613
e8b05380
PB
11614 ;;
11615esac
4de997d1 11616fi
1c710c3c 11617LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11618if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11620$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11621else
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
4de997d1 11624fi
2693c0b0 11625
5213506e 11626
e8b05380
PB
11627fi
11628if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11629
11630
11631if test -n "$LD_FOR_TARGET"; then
11632 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11633elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11634 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11635fi
11636
11637if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11638 for ncn_progname in ld; do
11639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11640set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
11643if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
278a7a38
AO
11645else
11646 if test -n "$LD_FOR_TARGET"; then
11647 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11648else
11649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650for as_dir in $PATH
11651do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
5213506e
RW
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11656 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11658 break 2
11659 fi
11660done
5213506e
RW
11661 done
11662IFS=$as_save_IFS
278a7a38
AO
11663
11664fi
11665fi
11666LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11667if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11669$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11670else
5213506e
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
278a7a38
AO
11673fi
11674
5213506e 11675
278a7a38
AO
11676 done
11677fi
11678
11679if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11680 for ncn_progname in ld; do
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11682$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11683 if test -x $with_build_time_tools/${ncn_progname}; then
11684 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686$as_echo "yes" >&6; }
e8b05380
PB
11687 break
11688 else
5213506e
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
e8b05380
PB
11691 fi
11692 done
ca9f4b81
AO
11693fi
11694
e8b05380
PB
11695if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11696 for ncn_progname in ld; do
11697 if test -n "$ncn_target_tool_prefix"; then
11698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11699set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
ca9f4b81 11704else
4de997d1
PB
11705 if test -n "$LD_FOR_TARGET"; then
11706 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11707else
1c710c3c
DJ
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
5213506e
RW
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11715 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11717 break 2
11718 fi
11719done
5213506e
RW
11720 done
11721IFS=$as_save_IFS
1c710c3c 11722
ca9f4b81
AO
11723fi
11724fi
1c710c3c 11725LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11726if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11728$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11729else
5213506e
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
ca9f4b81
AO
11732fi
11733
5213506e 11734
e8b05380
PB
11735 fi
11736 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11738set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
11741if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
ca9f4b81 11743else
2693c0b0
PB
11744 if test -n "$LD_FOR_TARGET"; then
11745 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11746else
1c710c3c
DJ
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
5213506e
RW
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11754 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11756 break 2
11757 fi
11758done
5213506e
RW
11759 done
11760IFS=$as_save_IFS
1c710c3c 11761
ca9f4b81
AO
11762fi
11763fi
1c710c3c 11764LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11765if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11767$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11768else
5213506e
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
ca9f4b81 11771fi
1c710c3c 11772
5213506e 11773
e8b05380
PB
11774 fi
11775 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11776 done
11777fi
1c710c3c 11778
2693c0b0
PB
11779if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11780 set dummy ld
11781 if test $build = $target ; then
11782 LD_FOR_TARGET="$2"
ca9f4b81 11783 else
2693c0b0 11784 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11785 fi
1c00b503
PB
11786else
11787 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11788fi
11789
d1f8db0c
PB
11790else
11791 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11792fi
11793
11794
11795
11796
11797if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11798 if test -n "$with_build_time_tools"; then
5213506e
RW
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11800$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11801 if test -x $with_build_time_tools/lipo; then
11802 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11803 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11805$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11806 else
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
d1f8db0c 11809 fi
e8b05380
PB
11810 elif test $build != $host && test $have_gcc_for_target = yes; then
11811 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11812 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11813 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11814 fi
11815fi
278a7a38
AO
11816if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11817 # Extract the first word of "lipo", so it can be a program name with args.
11818set dummy lipo; ac_word=$2
5213506e
RW
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820$as_echo_n "checking for $ac_word... " >&6; }
11821if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
278a7a38
AO
11823else
11824 case $LIPO_FOR_TARGET in
11825 [\\/]* | ?:[\\/]*)
11826 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11827 ;;
11828 *)
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $gcc_cv_tool_dirs
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
5213506e
RW
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11836 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11838 break 2
11839 fi
11840done
5213506e
RW
11841 done
11842IFS=$as_save_IFS
278a7a38
AO
11843
11844 ;;
11845esac
11846fi
11847LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11848if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11850$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11851else
5213506e
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853$as_echo "no" >&6; }
278a7a38
AO
11854fi
11855
5213506e 11856
278a7a38
AO
11857fi
11858if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11859
11860
11861if test -n "$LIPO_FOR_TARGET"; then
11862 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11863elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11864 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11865fi
11866
11867if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11868 for ncn_progname in lipo; do
11869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872$as_echo_n "checking for $ac_word... " >&6; }
11873if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
e8b05380 11875else
278a7a38
AO
11876 if test -n "$LIPO_FOR_TARGET"; then
11877 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
1c710c3c
DJ
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
5213506e
RW
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11886 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11888 break 2
11889 fi
11890done
5213506e
RW
11891 done
11892IFS=$as_save_IFS
1c710c3c 11893
e8b05380 11894fi
278a7a38
AO
11895fi
11896LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11897if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11899$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11900else
5213506e
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
e8b05380
PB
11903fi
11904
5213506e 11905
278a7a38 11906 done
e8b05380 11907fi
278a7a38
AO
11908
11909if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11910 for ncn_progname in lipo; do
5213506e
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11913 if test -x $with_build_time_tools/${ncn_progname}; then
11914 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916$as_echo "yes" >&6; }
e8b05380
PB
11917 break
11918 else
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
e8b05380
PB
11921 fi
11922 done
11923fi
11924
11925if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11926 for ncn_progname in lipo; do
11927 if test -n "$ncn_target_tool_prefix"; then
11928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
11932if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
040b1c5a
GK
11934else
11935 if test -n "$LIPO_FOR_TARGET"; then
11936 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11937else
1c710c3c
DJ
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
5213506e
RW
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11945 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11947 break 2
11948 fi
11949done
5213506e
RW
11950 done
11951IFS=$as_save_IFS
1c710c3c 11952
040b1c5a
GK
11953fi
11954fi
1c710c3c 11955LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11956if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11958$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11959else
5213506e
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
040b1c5a
GK
11962fi
11963
5213506e 11964
e8b05380
PB
11965 fi
11966 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11968set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
040b1c5a
GK
11973else
11974 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11975 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11976else
1c710c3c
DJ
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
5213506e
RW
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11984 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11986 break 2
11987 fi
11988done
5213506e
RW
11989 done
11990IFS=$as_save_IFS
1c710c3c 11991
040b1c5a
GK
11992fi
11993fi
1c710c3c 11994LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11995if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11997$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11998else
5213506e
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
040b1c5a 12001fi
1c710c3c 12002
5213506e 12003
e8b05380
PB
12004 fi
12005 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12006 done
12007fi
1c710c3c 12008
040b1c5a
GK
12009if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12010 set dummy lipo
12011 if test $build = $target ; then
12012 LIPO_FOR_TARGET="$2"
12013 else
12014 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12015 fi
1c00b503
PB
12016else
12017 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12018fi
12019
d1f8db0c
PB
12020else
12021 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12022fi
12023
12024
12025
12026
12027if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12028 if test -n "$with_build_time_tools"; then
5213506e
RW
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12030$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12031 if test -x $with_build_time_tools/nm; then
12032 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12033 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12035$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12036 else
5213506e
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
d1f8db0c 12039 fi
e8b05380
PB
12040 elif test $build != $host && test $have_gcc_for_target = yes; then
12041 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12042 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12043 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12044 fi
12045fi
3e19841a 12046if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12047 # Extract the first word of "nm", so it can be a program name with args.
12048set dummy nm; ac_word=$2
5213506e
RW
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
12051if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
e8b05380 12053else
1c710c3c
DJ
12054 case $NM_FOR_TARGET in
12055 [\\/]* | ?:[\\/]*)
e8b05380
PB
12056 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12057 ;;
e8b05380 12058 *)
1c710c3c
DJ
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060for as_dir in $gcc_cv_tool_dirs
12061do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
5213506e
RW
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12066 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12068 break 2
12069 fi
12070done
5213506e
RW
12071 done
12072IFS=$as_save_IFS
1c710c3c 12073
e8b05380
PB
12074 ;;
12075esac
12076fi
1c710c3c 12077NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12078if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12080$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12081else
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083$as_echo "no" >&6; }
e8b05380
PB
12084fi
12085
5213506e 12086
e8b05380
PB
12087fi
12088if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12089
12090
12091if test -n "$NM_FOR_TARGET"; then
12092 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12093elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12094 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12095fi
12096
12097if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12098 for ncn_progname in nm; do
12099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12100set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102$as_echo_n "checking for $ac_word... " >&6; }
12103if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
278a7a38
AO
12105else
12106 if test -n "$NM_FOR_TARGET"; then
12107 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12108else
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
5213506e
RW
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12116 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12118 break 2
12119 fi
12120done
5213506e
RW
12121 done
12122IFS=$as_save_IFS
278a7a38
AO
12123
12124fi
12125fi
12126NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12127if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12129$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12130else
5213506e
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
278a7a38
AO
12133fi
12134
5213506e 12135
278a7a38
AO
12136 done
12137fi
12138
12139if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12140 for ncn_progname in nm; do
5213506e
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12142$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12143 if test -x $with_build_time_tools/${ncn_progname}; then
12144 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146$as_echo "yes" >&6; }
e8b05380
PB
12147 break
12148 else
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
e8b05380
PB
12151 fi
12152 done
12153fi
12154
12155if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12156 for ncn_progname in nm; do
12157 if test -n "$ncn_target_tool_prefix"; then
12158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12159set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
ca9f4b81 12164else
4de997d1
PB
12165 if test -n "$NM_FOR_TARGET"; then
12166 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12167else
1c710c3c
DJ
12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169for as_dir in $PATH
12170do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
5213506e
RW
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12175 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12177 break 2
12178 fi
12179done
5213506e
RW
12180 done
12181IFS=$as_save_IFS
1c710c3c 12182
ca9f4b81
AO
12183fi
12184fi
1c710c3c 12185NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12186if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12188$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12189else
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
ca9f4b81
AO
12192fi
12193
5213506e 12194
e8b05380
PB
12195 fi
12196 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12198set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200$as_echo_n "checking for $ac_word... " >&6; }
12201if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
ca9f4b81 12203else
2693c0b0
PB
12204 if test -n "$NM_FOR_TARGET"; then
12205 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12206else
1c710c3c
DJ
12207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208for as_dir in $PATH
12209do
12210 IFS=$as_save_IFS
12211 test -z "$as_dir" && as_dir=.
5213506e
RW
12212 for ac_exec_ext in '' $ac_executable_extensions; do
12213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12214 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12216 break 2
12217 fi
12218done
5213506e
RW
12219 done
12220IFS=$as_save_IFS
1c710c3c 12221
ca9f4b81
AO
12222fi
12223fi
1c710c3c 12224NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12225if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12227$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12228else
5213506e
RW
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230$as_echo "no" >&6; }
ca9f4b81 12231fi
1c710c3c 12232
5213506e 12233
e8b05380
PB
12234 fi
12235 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12236 done
12237fi
1c710c3c 12238
2693c0b0
PB
12239if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12240 set dummy nm
12241 if test $build = $target ; then
12242 NM_FOR_TARGET="$2"
ca9f4b81 12243 else
2693c0b0 12244 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12245 fi
1c00b503
PB
12246else
12247 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12248fi
12249
d1f8db0c
PB
12250else
12251 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12252fi
12253
12254
12255
12256
9bccfdf5
AP
12257if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12258 if test -n "$with_build_time_tools"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12260$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12261 if test -x $with_build_time_tools/objcopy; then
12262 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12263 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12265$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269 fi
12270 elif test $build != $host && test $have_gcc_for_target = yes; then
12271 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12272 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12273 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12274 fi
12275fi
12276if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12277 # Extract the first word of "objcopy", so it can be a program name with args.
12278set dummy objcopy; ac_word=$2
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280$as_echo_n "checking for $ac_word... " >&6; }
12281if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283else
12284 case $OBJCOPY_FOR_TARGET in
12285 [\\/]* | ?:[\\/]*)
12286 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12287 ;;
12288 *)
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290for as_dir in $gcc_cv_tool_dirs
12291do
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12299 fi
12300done
12301 done
12302IFS=$as_save_IFS
12303
12304 ;;
12305esac
12306fi
12307OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12308if test -n "$OBJCOPY_FOR_TARGET"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12310$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12311else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
12314fi
12315
12316
12317fi
12318if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12319
12320
12321if test -n "$OBJCOPY_FOR_TARGET"; then
12322 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12323elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12324 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12325fi
12326
12327if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12328 for ncn_progname in objcopy; do
12329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330set dummy ${ncn_progname}; ac_word=$2
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
12333if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335else
12336 if test -n "$OBJCOPY_FOR_TARGET"; then
12337 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12338else
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12349 fi
12350done
12351 done
12352IFS=$as_save_IFS
12353
12354fi
12355fi
12356OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12357if test -n "$OBJCOPY_FOR_TARGET"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12359$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12360else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363fi
12364
12365
12366 done
12367fi
12368
12369if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12370 for ncn_progname in objcopy; do
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12372$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12373 if test -x $with_build_time_tools/${ncn_progname}; then
12374 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376$as_echo "yes" >&6; }
12377 break
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381 fi
12382 done
12383fi
12384
12385if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12386 for ncn_progname in objcopy; do
12387 if test -n "$ncn_target_tool_prefix"; then
12388 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12389set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394else
12395 if test -n "$OBJCOPY_FOR_TARGET"; then
12396 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12397else
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12408 fi
12409done
12410 done
12411IFS=$as_save_IFS
12412
12413fi
12414fi
12415OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12416if test -n "$OBJCOPY_FOR_TARGET"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12418$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12419else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
12422fi
12423
12424
12425 fi
12426 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12428set dummy ${ncn_progname}; ac_word=$2
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430$as_echo_n "checking for $ac_word... " >&6; }
12431if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433else
12434 if test -n "$OBJCOPY_FOR_TARGET"; then
12435 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12436else
12437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438for as_dir in $PATH
12439do
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12447 fi
12448done
12449 done
12450IFS=$as_save_IFS
12451
12452fi
12453fi
12454OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12455if test -n "$OBJCOPY_FOR_TARGET"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12457$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12458else
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460$as_echo "no" >&6; }
12461fi
12462
12463
12464 fi
12465 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12466 done
12467fi
12468
12469if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12470 set dummy objcopy
12471 if test $build = $target ; then
12472 OBJCOPY_FOR_TARGET="$2"
12473 else
12474 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12475 fi
12476else
12477 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12478fi
12479
12480else
12481 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12482fi
12483
12484
12485
12486
e8b05380
PB
12487if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12488 if test -n "$with_build_time_tools"; then
5213506e
RW
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12490$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12491 if test -x $with_build_time_tools/objdump; then
12492 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12493 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12495$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12496 else
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
d1f8db0c 12499 fi
e8b05380
PB
12500 elif test $build != $host && test $have_gcc_for_target = yes; then
12501 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12502 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12503 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12504 fi
12505fi
3e19841a 12506if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12507 # Extract the first word of "objdump", so it can be a program name with args.
12508set dummy objdump; ac_word=$2
5213506e
RW
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510$as_echo_n "checking for $ac_word... " >&6; }
12511if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
e8b05380 12513else
1c710c3c
DJ
12514 case $OBJDUMP_FOR_TARGET in
12515 [\\/]* | ?:[\\/]*)
e8b05380
PB
12516 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12517 ;;
e8b05380 12518 *)
1c710c3c
DJ
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $gcc_cv_tool_dirs
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
5213506e
RW
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12526 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12528 break 2
12529 fi
12530done
5213506e
RW
12531 done
12532IFS=$as_save_IFS
1c710c3c 12533
e8b05380
PB
12534 ;;
12535esac
12536fi
1c710c3c 12537OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12538if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12540$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12541else
5213506e
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
e8b05380
PB
12544fi
12545
5213506e 12546
e8b05380
PB
12547fi
12548if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12549
12550
12551if test -n "$OBJDUMP_FOR_TARGET"; then
12552 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12553elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12554 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12555fi
12556
12557if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12558 for ncn_progname in objdump; do
12559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12560set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562$as_echo_n "checking for $ac_word... " >&6; }
12563if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
278a7a38
AO
12565else
12566 if test -n "$OBJDUMP_FOR_TARGET"; then
12567 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12568else
12569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in $PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
5213506e
RW
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12576 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12578 break 2
12579 fi
12580done
5213506e
RW
12581 done
12582IFS=$as_save_IFS
278a7a38
AO
12583
12584fi
12585fi
12586OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12587if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12589$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12590else
5213506e
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
278a7a38
AO
12593fi
12594
5213506e 12595
278a7a38
AO
12596 done
12597fi
12598
12599if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12600 for ncn_progname in objdump; do
5213506e
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12602$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12603 if test -x $with_build_time_tools/${ncn_progname}; then
12604 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606$as_echo "yes" >&6; }
e8b05380
PB
12607 break
12608 else
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
e8b05380
PB
12611 fi
12612 done
12613fi
12614
12615if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12616 for ncn_progname in objdump; do
12617 if test -n "$ncn_target_tool_prefix"; then
12618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12619set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
d739199a
DJ
12624else
12625 if test -n "$OBJDUMP_FOR_TARGET"; then
12626 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12627else
1c710c3c
DJ
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
5213506e
RW
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12635 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12637 break 2
12638 fi
12639done
5213506e
RW
12640 done
12641IFS=$as_save_IFS
1c710c3c 12642
d739199a
DJ
12643fi
12644fi
1c710c3c 12645OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12646if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12648$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12649else
5213506e
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
d739199a
DJ
12652fi
12653
5213506e 12654
e8b05380
PB
12655 fi
12656 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12658set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
d739199a
DJ
12663else
12664 if test -n "$OBJDUMP_FOR_TARGET"; then
12665 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12666else
1c710c3c
DJ
12667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
5213506e
RW
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12674 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12676 break 2
12677 fi
12678done
5213506e
RW
12679 done
12680IFS=$as_save_IFS
1c710c3c 12681
d739199a
DJ
12682fi
12683fi
1c710c3c 12684OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12685if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12687$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12688else
5213506e
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
d739199a 12691fi
1c710c3c 12692
5213506e 12693
e8b05380
PB
12694 fi
12695 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12696 done
12697fi
1c710c3c 12698
d739199a
DJ
12699if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12700 set dummy objdump
12701 if test $build = $target ; then
12702 OBJDUMP_FOR_TARGET="$2"
12703 else
12704 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12705 fi
1c00b503
PB
12706else
12707 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12708fi
12709
d1f8db0c
PB
12710else
12711 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12712fi
12713
12714
12715
12716
12717if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12718 if test -n "$with_build_time_tools"; then
5213506e
RW
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12720$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12721 if test -x $with_build_time_tools/ranlib; then
12722 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12723 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12725$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12726 else
5213506e
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
d1f8db0c 12729 fi
e8b05380
PB
12730 elif test $build != $host && test $have_gcc_for_target = yes; then
12731 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12732 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12733 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12734 fi
12735fi
3e19841a 12736if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12737 # Extract the first word of "ranlib", so it can be a program name with args.
12738set dummy ranlib; ac_word=$2
5213506e
RW
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
12741if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
e8b05380 12743else
1c710c3c
DJ
12744 case $RANLIB_FOR_TARGET in
12745 [\\/]* | ?:[\\/]*)
e8b05380
PB
12746 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12747 ;;
e8b05380 12748 *)
1c710c3c
DJ
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750for as_dir in $gcc_cv_tool_dirs
12751do
12752 IFS=$as_save_IFS
12753 test -z "$as_dir" && as_dir=.
5213506e
RW
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12756 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12758 break 2
12759 fi
12760done
5213506e
RW
12761 done
12762IFS=$as_save_IFS
1c710c3c 12763
e8b05380
PB
12764 ;;
12765esac
12766fi
1c710c3c 12767RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12768if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12770$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12771else
5213506e
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
e8b05380
PB
12774fi
12775
5213506e 12776
e8b05380
PB
12777fi
12778if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12779
12780
12781if test -n "$RANLIB_FOR_TARGET"; then
12782 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12783elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12784 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12785fi
12786
12787if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12788 for ncn_progname in ranlib; do
12789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
12793if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
278a7a38
AO
12795else
12796 if test -n "$RANLIB_FOR_TARGET"; then
12797 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
5213506e
RW
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12806 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12808 break 2
12809 fi
12810done
5213506e
RW
12811 done
12812IFS=$as_save_IFS
278a7a38
AO
12813
12814fi
12815fi
12816RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12817if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12819$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12820else
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
278a7a38
AO
12823fi
12824
5213506e 12825
278a7a38
AO
12826 done
12827fi
12828
12829if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12830 for ncn_progname in ranlib; do
5213506e
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12832$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12833 if test -x $with_build_time_tools/${ncn_progname}; then
12834 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836$as_echo "yes" >&6; }
e8b05380
PB
12837 break
12838 else
5213506e
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
e8b05380
PB
12841 fi
12842 done
12843fi
12844
12845if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12846 for ncn_progname in ranlib; do
12847 if test -n "$ncn_target_tool_prefix"; then
12848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
12852if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
ca9f4b81 12854else
4de997d1
PB
12855 if test -n "$RANLIB_FOR_TARGET"; then
12856 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12857else
1c710c3c
DJ
12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859for as_dir in $PATH
12860do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
5213506e
RW
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12865 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12867 break 2
12868 fi
12869done
5213506e
RW
12870 done
12871IFS=$as_save_IFS
1c710c3c 12872
ca9f4b81
AO
12873fi
12874fi
1c710c3c 12875RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12876if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12878$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12879else
5213506e
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
ca9f4b81
AO
12882fi
12883
5213506e 12884
e8b05380
PB
12885 fi
12886 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12888set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890$as_echo_n "checking for $ac_word... " >&6; }
12891if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
ca9f4b81 12893else
2693c0b0
PB
12894 if test -n "$RANLIB_FOR_TARGET"; then
12895 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12896else
1c710c3c
DJ
12897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898for as_dir in $PATH
12899do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
5213506e
RW
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12904 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12906 break 2
12907 fi
12908done
5213506e
RW
12909 done
12910IFS=$as_save_IFS
1c710c3c 12911
ca9f4b81
AO
12912fi
12913fi
1c710c3c 12914RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12915if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12917$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12918else
5213506e
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
ca9f4b81 12921fi
1c710c3c 12922
5213506e 12923
e8b05380
PB
12924 fi
12925 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12926 done
12927fi
1c710c3c 12928
e8b05380
PB
12929if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12930 set dummy ranlib
12931 if test $build = $target ; then
12932 RANLIB_FOR_TARGET="$2"
12933 else
12934 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12935 fi
1c00b503
PB
12936else
12937 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12938fi
2693c0b0 12939
d1f8db0c
PB
12940else
12941 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12942fi
12943
e8b05380
PB
12944
12945
12946
e7a82751
RM
12947if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12948 if test -n "$with_build_time_tools"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12950$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12951 if test -x $with_build_time_tools/readelf; then
12952 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12953 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12955$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
12959 fi
12960 elif test $build != $host && test $have_gcc_for_target = yes; then
12961 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12962 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12963 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12964 fi
12965fi
12966if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12967 # Extract the first word of "readelf", so it can be a program name with args.
12968set dummy readelf; ac_word=$2
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970$as_echo_n "checking for $ac_word... " >&6; }
12971if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973else
12974 case $READELF_FOR_TARGET in
12975 [\\/]* | ?:[\\/]*)
12976 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12977 ;;
12978 *)
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980for as_dir in $gcc_cv_tool_dirs
12981do
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
12985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12986 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 break 2
12989 fi
12990done
12991 done
12992IFS=$as_save_IFS
12993
12994 ;;
12995esac
12996fi
12997READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12998if test -n "$READELF_FOR_TARGET"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13000$as_echo "$READELF_FOR_TARGET" >&6; }
13001else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
13004fi
13005
13006
13007fi
13008if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13009
13010
13011if test -n "$READELF_FOR_TARGET"; then
13012 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13013elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13014 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13015fi
13016
13017if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13018 for ncn_progname in readelf; do
13019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13020set dummy ${ncn_progname}; ac_word=$2
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
13023if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025else
13026 if test -n "$READELF_FOR_TARGET"; then
13027 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13036 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13039 fi
13040done
13041 done
13042IFS=$as_save_IFS
13043
13044fi
13045fi
13046READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13047if test -n "$READELF_FOR_TARGET"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13049$as_echo "$READELF_FOR_TARGET" >&6; }
13050else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
13054
13055
13056 done
13057fi
13058
13059if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13060 for ncn_progname in readelf; do
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13062$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13063 if test -x $with_build_time_tools/${ncn_progname}; then
13064 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066$as_echo "yes" >&6; }
13067 break
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071 fi
13072 done
13073fi
13074
13075if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13076 for ncn_progname in readelf; do
13077 if test -n "$ncn_target_tool_prefix"; then
13078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13084else
13085 if test -n "$READELF_FOR_TARGET"; then
13086 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099done
13100 done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13106if test -n "$READELF_FOR_TARGET"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13108$as_echo "$READELF_FOR_TARGET" >&6; }
13109else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114
13115 fi
13116 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13118set dummy ${ncn_progname}; ac_word=$2
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
13121if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123else
13124 if test -n "$READELF_FOR_TARGET"; then
13125 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138done
13139 done
13140IFS=$as_save_IFS
13141
13142fi
13143fi
13144READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13145if test -n "$READELF_FOR_TARGET"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13147$as_echo "$READELF_FOR_TARGET" >&6; }
13148else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152
13153
13154 fi
13155 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13156 done
13157fi
13158
13159if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13160 set dummy readelf
13161 if test $build = $target ; then
13162 READELF_FOR_TARGET="$2"
13163 else
13164 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13165 fi
13166else
13167 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13168fi
13169
13170else
13171 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13172fi
13173
13174
13175
13176
e8b05380
PB
13177if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13178 if test -n "$with_build_time_tools"; then
5213506e
RW
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13180$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13181 if test -x $with_build_time_tools/strip; then
13182 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13183 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13185$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13186 else
5213506e
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
d1f8db0c 13189 fi
e8b05380
PB
13190 elif test $build != $host && test $have_gcc_for_target = yes; then
13191 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13192 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13193 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13194 fi
13195fi
3e19841a 13196if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13197 # Extract the first word of "strip", so it can be a program name with args.
13198set dummy strip; ac_word=$2
5213506e
RW
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200$as_echo_n "checking for $ac_word... " >&6; }
13201if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
e8b05380 13203else
1c710c3c
DJ
13204 case $STRIP_FOR_TARGET in
13205 [\\/]* | ?:[\\/]*)
e8b05380
PB
13206 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13207 ;;
e8b05380 13208 *)
1c710c3c
DJ
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210for as_dir in $gcc_cv_tool_dirs
13211do
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
5213506e
RW
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13216 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13218 break 2
13219 fi
13220done
5213506e
RW
13221 done
13222IFS=$as_save_IFS
1c710c3c 13223
e8b05380
PB
13224 ;;
13225esac
13226fi
1c710c3c 13227STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13228if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13230$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13231else
5213506e
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233$as_echo "no" >&6; }
e8b05380
PB
13234fi
13235
5213506e 13236
e8b05380
PB
13237fi
13238if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13239
13240
13241if test -n "$STRIP_FOR_TARGET"; then
13242 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13243elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13244 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13245fi
13246
13247if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13248 for ncn_progname in strip; do
13249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13250set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252$as_echo_n "checking for $ac_word... " >&6; }
13253if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
278a7a38
AO
13255else
13256 if test -n "$STRIP_FOR_TARGET"; then
13257 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13258else
13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260for as_dir in $PATH
13261do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
5213506e
RW
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13266 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13268 break 2
13269 fi
13270done
5213506e
RW
13271 done
13272IFS=$as_save_IFS
278a7a38
AO
13273
13274fi
13275fi
13276STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13277if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13279$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13280else
5213506e
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282$as_echo "no" >&6; }
278a7a38
AO
13283fi
13284
5213506e 13285
278a7a38
AO
13286 done
13287fi
13288
13289if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13290 for ncn_progname in strip; do
5213506e
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13292$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13293 if test -x $with_build_time_tools/${ncn_progname}; then
13294 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13296$as_echo "yes" >&6; }
e8b05380
PB
13297 break
13298 else
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
e8b05380
PB
13301 fi
13302 done
13303fi
13304
13305if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13306 for ncn_progname in strip; do
13307 if test -n "$ncn_target_tool_prefix"; then
13308 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13309set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
af71363e
AS
13314else
13315 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13316 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13317else
13318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
5213506e
RW
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13325 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13327 break 2
13328 fi
13329done
5213506e
RW
13330 done
13331IFS=$as_save_IFS
1c710c3c 13332
040b1c5a
GK
13333fi
13334fi
1c710c3c 13335STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13336if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13338$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13339else
5213506e
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
040b1c5a
GK
13342fi
13343
5213506e 13344
e8b05380
PB
13345 fi
13346 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13348set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350$as_echo_n "checking for $ac_word... " >&6; }
13351if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
040b1c5a
GK
13353else
13354 if test -n "$STRIP_FOR_TARGET"; then
13355 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13356else
1c710c3c
DJ
13357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358for as_dir in $PATH
13359do
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
5213506e
RW
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13364 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13366 break 2
13367 fi
13368done
5213506e
RW
13369 done
13370IFS=$as_save_IFS
1c710c3c 13371
040b1c5a
GK
13372fi
13373fi
1c710c3c 13374STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13375if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13377$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13378else
5213506e
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380$as_echo "no" >&6; }
040b1c5a 13381fi
1c710c3c 13382
5213506e 13383
e8b05380
PB
13384 fi
13385 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13386 done
13387fi
1c710c3c 13388
040b1c5a
GK
13389if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13390 set dummy strip
13391 if test $build = $target ; then
13392 STRIP_FOR_TARGET="$2"
13393 else
13394 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13395 fi
1c00b503
PB
13396else
13397 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13398fi
13399
d1f8db0c
PB
13400else
13401 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13402fi
13403
13404
13405
13406
13407if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13408 if test -n "$with_build_time_tools"; then
5213506e
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13410$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13411 if test -x $with_build_time_tools/windres; then
13412 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13413 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13415$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13416 else
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418$as_echo "no" >&6; }
d1f8db0c 13419 fi
e8b05380
PB
13420 elif test $build != $host && test $have_gcc_for_target = yes; then
13421 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13422 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13423 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13424 fi
13425fi
3e19841a 13426if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13427 # Extract the first word of "windres", so it can be a program name with args.
13428set dummy windres; ac_word=$2
5213506e
RW
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430$as_echo_n "checking for $ac_word... " >&6; }
13431if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
e8b05380 13433else
1c710c3c
DJ
13434 case $WINDRES_FOR_TARGET in
13435 [\\/]* | ?:[\\/]*)
e8b05380
PB
13436 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13437 ;;
e8b05380 13438 *)
1c710c3c
DJ
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440for as_dir in $gcc_cv_tool_dirs
13441do
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
5213506e
RW
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13446 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13448 break 2
13449 fi
13450done
5213506e
RW
13451 done
13452IFS=$as_save_IFS
1c710c3c 13453
e8b05380
PB
13454 ;;
13455esac
13456fi
1c710c3c 13457WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13458if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13460$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13461else
5213506e
RW
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463$as_echo "no" >&6; }
e8b05380
PB
13464fi
13465
5213506e 13466
e8b05380
PB
13467fi
13468if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13469
13470
13471if test -n "$WINDRES_FOR_TARGET"; then
13472 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13473elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13474 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13475fi
13476
13477if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13478 for ncn_progname in windres; do
13479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13480set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482$as_echo_n "checking for $ac_word... " >&6; }
13483if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
278a7a38
AO
13485else
13486 if test -n "$WINDRES_FOR_TARGET"; then
13487 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13488else
13489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490for as_dir in $PATH
13491do
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
5213506e
RW
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13496 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13498 break 2
13499 fi
13500done
5213506e
RW
13501 done
13502IFS=$as_save_IFS
278a7a38
AO
13503
13504fi
13505fi
13506WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13507if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13509$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13510else
5213506e
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512$as_echo "no" >&6; }
278a7a38
AO
13513fi
13514
5213506e 13515
278a7a38
AO
13516 done
13517fi
13518
13519if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13520 for ncn_progname in windres; do
5213506e
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13522$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13523 if test -x $with_build_time_tools/${ncn_progname}; then
13524 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13526$as_echo "yes" >&6; }
e8b05380
PB
13527 break
13528 else
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
e8b05380
PB
13531 fi
13532 done
13533fi
13534
13535if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13536 for ncn_progname in windres; do
13537 if test -n "$ncn_target_tool_prefix"; then
13538 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13539set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541$as_echo_n "checking for $ac_word... " >&6; }
13542if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
ca9f4b81 13544else
4de997d1
PB
13545 if test -n "$WINDRES_FOR_TARGET"; then
13546 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13547else
1c710c3c
DJ
13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH
13550do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
5213506e
RW
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13555 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13557 break 2
13558 fi
13559done
5213506e
RW
13560 done
13561IFS=$as_save_IFS
1c710c3c 13562
ca9f4b81
AO
13563fi
13564fi
1c710c3c 13565WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13566if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13568$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13569else
5213506e
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571$as_echo "no" >&6; }
ca9f4b81
AO
13572fi
13573
5213506e 13574
e8b05380
PB
13575 fi
13576 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13578set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
13581if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
ca9f4b81 13583else
2693c0b0
PB
13584 if test -n "$WINDRES_FOR_TARGET"; then
13585 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13586else
1c710c3c
DJ
13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588for as_dir in $PATH
13589do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
5213506e
RW
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13594 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13596 break 2
13597 fi
13598done
5213506e
RW
13599 done
13600IFS=$as_save_IFS
1c710c3c 13601
ca9f4b81
AO
13602fi
13603fi
1c710c3c 13604WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13605if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13607$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13608else
5213506e
RW
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
ca9f4b81 13611fi
1c710c3c 13612
5213506e 13613
e8b05380
PB
13614 fi
13615 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13616 done
13617fi
1c710c3c 13618
2693c0b0
PB
13619if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13620 set dummy windres
13621 if test $build = $target ; then
13622 WINDRES_FOR_TARGET="$2"
ca9f4b81 13623 else
2693c0b0 13624 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13625 fi
1c00b503
PB
13626else
13627 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13628fi
13629
d1f8db0c
PB
13630else
13631 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13632fi
13633
4977bab6 13634
901119ae
KT
13635
13636
13637if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13638 if test -n "$with_build_time_tools"; then
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13640$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13641 if test -x $with_build_time_tools/windmc; then
13642 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13643 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13645$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13646 else
5213506e
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
901119ae
KT
13649 fi
13650 elif test $build != $host && test $have_gcc_for_target = yes; then
13651 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13652 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13653 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13654 fi
13655fi
13656if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13657 # Extract the first word of "windmc", so it can be a program name with args.
13658set dummy windmc; ac_word=$2
5213506e
RW
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660$as_echo_n "checking for $ac_word... " >&6; }
13661if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
901119ae
KT
13663else
13664 case $WINDMC_FOR_TARGET in
13665 [\\/]* | ?:[\\/]*)
13666 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13667 ;;
13668 *)
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670for as_dir in $gcc_cv_tool_dirs
13671do
13672 IFS=$as_save_IFS
13673 test -z "$as_dir" && as_dir=.
5213506e
RW
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13676 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13678 break 2
13679 fi
13680done
5213506e
RW
13681 done
13682IFS=$as_save_IFS
901119ae
KT
13683
13684 ;;
13685esac
13686fi
13687WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13688if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13690$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13691else
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693$as_echo "no" >&6; }
901119ae
KT
13694fi
13695
5213506e 13696
901119ae
KT
13697fi
13698if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13699
13700
13701if test -n "$WINDMC_FOR_TARGET"; then
13702 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13703elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13704 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13705fi
13706
13707if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13708 for ncn_progname in windmc; do
13709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13710set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
13713if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
901119ae
KT
13715else
13716 if test -n "$WINDMC_FOR_TARGET"; then
13717 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
5213506e
RW
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13726 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13728 break 2
13729 fi
13730done
5213506e
RW
13731 done
13732IFS=$as_save_IFS
901119ae
KT
13733
13734fi
13735fi
13736WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13737if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13739$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13740else
5213506e
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
901119ae
KT
13743fi
13744
5213506e 13745
901119ae
KT
13746 done
13747fi
13748
13749if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13750 for ncn_progname in windmc; do
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13752$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13753 if test -x $with_build_time_tools/${ncn_progname}; then
13754 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13756$as_echo "yes" >&6; }
901119ae
KT
13757 break
13758 else
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
901119ae
KT
13761 fi
13762 done
13763fi
13764
13765if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13766 for ncn_progname in windmc; do
13767 if test -n "$ncn_target_tool_prefix"; then
13768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13769set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771$as_echo_n "checking for $ac_word... " >&6; }
13772if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
901119ae
KT
13774else
13775 if test -n "$WINDMC_FOR_TARGET"; then
13776 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13777else
13778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779for as_dir in $PATH
13780do
13781 IFS=$as_save_IFS
13782 test -z "$as_dir" && as_dir=.
5213506e
RW
13783 for ac_exec_ext in '' $ac_executable_extensions; do
13784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13785 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13787 break 2
13788 fi
13789done
5213506e
RW
13790 done
13791IFS=$as_save_IFS
901119ae
KT
13792
13793fi
13794fi
13795WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13796if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13798$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13799else
5213506e
RW
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
901119ae
KT
13802fi
13803
5213506e 13804
901119ae
KT
13805 fi
13806 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13808set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810$as_echo_n "checking for $ac_word... " >&6; }
13811if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13812 $as_echo_n "(cached) " >&6
901119ae
KT
13813else
13814 if test -n "$WINDMC_FOR_TARGET"; then
13815 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13816else
13817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818for as_dir in $PATH
13819do
13820 IFS=$as_save_IFS
13821 test -z "$as_dir" && as_dir=.
5213506e
RW
13822 for ac_exec_ext in '' $ac_executable_extensions; do
13823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13824 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13826 break 2
13827 fi
13828done
5213506e
RW
13829 done
13830IFS=$as_save_IFS
901119ae
KT
13831
13832fi
13833fi
13834WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13835if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13837$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13838else
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840$as_echo "no" >&6; }
901119ae
KT
13841fi
13842
5213506e 13843
901119ae
KT
13844 fi
13845 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13846 done
13847fi
13848
13849if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13850 set dummy windmc
13851 if test $build = $target ; then
13852 WINDMC_FOR_TARGET="$2"
13853 else
13854 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13855 fi
1c00b503
PB
13856else
13857 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13858fi
13859
13860else
13861 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13862fi
13863
13864
2abefe3d
PB
13865RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13866
5213506e
RW
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13868$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13869if test "x${build}" != "x${host}" ; then
e8b05380
PB
13870 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13871 # We already found the complete path
172e41aa 13872 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13875 else
13876 # Canadian cross, just use what we found
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13878$as_echo "pre-installed" >&6; }
e8b05380 13879 fi
2abefe3d
PB
13880else
13881 ok=yes
13882 case " ${configdirs} " in
13883 *" binutils "*) ;;
13884 *) ok=no ;;
13885 esac
1c710c3c 13886
2abefe3d
PB
13887 if test $ok = yes; then
13888 # An in-tree tool is available and we can use it
13889 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13891$as_echo "just compiled" >&6; }
e8b05380
PB
13892 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
172e41aa 13894 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13897 elif test "x$target" = "x$host"; then
13898 # We can use an host tool
13899 AR_FOR_TARGET='$(AR)'
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13901$as_echo "host tool" >&6; }
2abefe3d
PB
13902 else
13903 # We need a cross tool
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905$as_echo "pre-installed" >&6; }
2abefe3d
PB
13906 fi
13907fi
0b0dc272 13908
5213506e
RW
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13910$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13911if test "x${build}" != "x${host}" ; then
e8b05380
PB
13912 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13913 # We already found the complete path
172e41aa 13914 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13916$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13917 else
13918 # Canadian cross, just use what we found
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13920$as_echo "pre-installed" >&6; }
e8b05380 13921 fi
2abefe3d
PB
13922else
13923 ok=yes
13924 case " ${configdirs} " in
13925 *" gas "*) ;;
13926 *) ok=no ;;
13927 esac
1c710c3c 13928
2abefe3d
PB
13929 if test $ok = yes; then
13930 # An in-tree tool is available and we can use it
13931 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13933$as_echo "just compiled" >&6; }
e8b05380
PB
13934 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13935 # We already found the complete path
172e41aa 13936 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13939 elif test "x$target" = "x$host"; then
13940 # We can use an host tool
13941 AS_FOR_TARGET='$(AS)'
5213506e
RW
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13943$as_echo "host tool" >&6; }
2abefe3d
PB
13944 else
13945 # We need a cross tool
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13947$as_echo "pre-installed" >&6; }
2abefe3d
PB
13948 fi
13949fi
0b0dc272 13950
5213506e
RW
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13952$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13953if test "x${build}" != "x${host}" ; then
e8b05380
PB
13954 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13955 # We already found the complete path
172e41aa 13956 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13958$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13959 else
13960 # Canadian cross, just use what we found
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13962$as_echo "pre-installed" >&6; }
e8b05380 13963 fi
2abefe3d
PB
13964else
13965 ok=yes
13966 case " ${configdirs} " in
13967 *" gcc "*) ;;
13968 *) ok=no ;;
13969 esac
1c710c3c 13970
2abefe3d
PB
13971 if test $ok = yes; then
13972 # An in-tree tool is available and we can use it
13973 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13975$as_echo "just compiled" >&6; }
e8b05380
PB
13976 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
172e41aa 13978 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
13981 elif test "x$target" = "x$host"; then
13982 # We can use an host tool
13983 CC_FOR_TARGET='$(CC)'
5213506e
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13985$as_echo "host tool" >&6; }
2abefe3d
PB
13986 else
13987 # We need a cross tool
5213506e
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13989$as_echo "pre-installed" >&6; }
2abefe3d
PB
13990 fi
13991fi
0b0dc272 13992
5213506e
RW
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13994$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13995if test "x${build}" != "x${host}" ; then
e8b05380
PB
13996 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13997 # We already found the complete path
172e41aa 13998 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14000$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14001 else
14002 # Canadian cross, just use what we found
5213506e
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14004$as_echo "pre-installed" >&6; }
e8b05380 14005 fi
2abefe3d
PB
14006else
14007 ok=yes
14008 case " ${configdirs} " in
14009 *" gcc "*) ;;
14010 *) ok=no ;;
14011 esac
14012 case ,${enable_languages}, in
14013 *,c++,*) ;;
14014 *) ok=no ;;
14015 esac
14016 if test $ok = yes; then
14017 # An in-tree tool is available and we can use it
2077db1b 14018 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'
5213506e
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14020$as_echo "just compiled" >&6; }
e8b05380
PB
14021 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
172e41aa 14023 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14026 elif test "x$target" = "x$host"; then
14027 # We can use an host tool
14028 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14030$as_echo "host tool" >&6; }
2abefe3d
PB
14031 else
14032 # We need a cross tool
5213506e
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14034$as_echo "pre-installed" >&6; }
2abefe3d
PB
14035 fi
14036fi
0b0dc272 14037
5213506e
RW
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14039$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14040if test "x${build}" != "x${host}" ; then
e8b05380
PB
14041 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14042 # We already found the complete path
172e41aa 14043 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14045$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14046 else
14047 # Canadian cross, just use what we found
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14049$as_echo "pre-installed" >&6; }
e8b05380 14050 fi
2abefe3d
PB
14051else
14052 ok=yes
14053 case " ${configdirs} " in
14054 *" gcc "*) ;;
14055 *) ok=no ;;
14056 esac
14057 case ,${enable_languages}, in
14058 *,c++,*) ;;
14059 *) ok=no ;;
14060 esac
14061 if test $ok = yes; then
14062 # An in-tree tool is available and we can use it
2077db1b 14063 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'
5213506e
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14065$as_echo "just compiled" >&6; }
e8b05380
PB
14066 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
172e41aa 14068 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14071 elif test "x$target" = "x$host"; then
14072 # We can use an host tool
14073 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075$as_echo "host tool" >&6; }
2abefe3d
PB
14076 else
14077 # We need a cross tool
5213506e
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079$as_echo "pre-installed" >&6; }
2abefe3d
PB
14080 fi
14081fi
0b0dc272 14082
5213506e
RW
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14084$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14085if test "x${build}" != "x${host}" ; then
e8b05380
PB
14086 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
172e41aa 14088 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14091 else
14092 # Canadian cross, just use what we found
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094$as_echo "pre-installed" >&6; }
e8b05380 14095 fi
2abefe3d
PB
14096else
14097 ok=yes
14098 case " ${configdirs} " in
14099 *" binutils "*) ;;
14100 *) ok=no ;;
14101 esac
1c710c3c 14102
2abefe3d
PB
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107$as_echo "just compiled" >&6; }
e8b05380
PB
14108 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
172e41aa 14110 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117$as_echo "host tool" >&6; }
2abefe3d
PB
14118 else
14119 # We need a cross tool
5213506e
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121$as_echo "pre-installed" >&6; }
2abefe3d
PB
14122 fi
14123fi
0b0dc272 14124
5213506e
RW
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14126$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14127if test "x${build}" != "x${host}" ; then
e8b05380
PB
14128 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
172e41aa 14130 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14133 else
14134 # Canadian cross, just use what we found
5213506e
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136$as_echo "pre-installed" >&6; }
e8b05380 14137 fi
2abefe3d
PB
14138else
14139 ok=yes
14140 case " ${configdirs} " in
14141 *" gcc "*) ;;
14142 *) ok=no ;;
14143 esac
1c710c3c 14144
2abefe3d
PB
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149$as_echo "just compiled" >&6; }
e8b05380
PB
14150 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
172e41aa 14152 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 GCC_FOR_TARGET='$()'
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159$as_echo "host tool" >&6; }
2abefe3d
PB
14160 else
14161 # We need a cross tool
5213506e
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
2abefe3d
PB
14164 fi
14165fi
0b0dc272 14166
5213506e
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14168$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 14169if test "x${build}" != "x${host}" ; then
e8b05380
PB
14170 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
172e41aa 14172 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14175 else
14176 # Canadian cross, just use what we found
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
e8b05380 14179 fi
2abefe3d
PB
14180else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" gcc "*) ;;
14184 *) ok=no ;;
14185 esac
14186 case ,${enable_languages}, in
14187 *,java,*) ;;
14188 *) ok=no ;;
14189 esac
14190 if test $ok = yes; then
14191 # An in-tree tool is available and we can use it
14192 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14194$as_echo "just compiled" >&6; }
e8b05380
PB
14195 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
172e41aa 14197 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14200 elif test "x$target" = "x$host"; then
14201 # We can use an host tool
14202 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14204$as_echo "host tool" >&6; }
2abefe3d
PB
14205 else
14206 # We need a cross tool
5213506e
RW
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208$as_echo "pre-installed" >&6; }
2abefe3d
PB
14209 fi
14210fi
0b0dc272 14211
5213506e
RW
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14213$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14214if test "x${build}" != "x${host}" ; then
e8b05380
PB
14215 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14216 # We already found the complete path
172e41aa 14217 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14219$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14220 else
14221 # Canadian cross, just use what we found
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
e8b05380 14224 fi
2abefe3d
PB
14225else
14226 ok=yes
14227 case " ${configdirs} " in
14228 *" gcc "*) ;;
14229 *) ok=no ;;
14230 esac
14231 case ,${enable_languages}, in
14232 *,fortran,*) ;;
14233 *) ok=no ;;
14234 esac
14235 if test $ok = yes; then
14236 # An in-tree tool is available and we can use it
14237 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14239$as_echo "just compiled" >&6; }
e8b05380
PB
14240 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14241 # We already found the complete path
172e41aa 14242 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14244$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14245 elif test "x$target" = "x$host"; then
14246 # We can use an host tool
14247 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14249$as_echo "host tool" >&6; }
2abefe3d
PB
14250 else
14251 # We need a cross tool
5213506e
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14253$as_echo "pre-installed" >&6; }
2abefe3d
PB
14254 fi
14255fi
0b0dc272 14256
632e2a07
ILT
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14258$as_echo_n "checking where to find the target gccgo... " >&6; }
14259if test "x${build}" != "x${host}" ; then
14260 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14261 # We already found the complete path
14262 ac_dir=`dirname $GOC_FOR_TARGET`
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264$as_echo "pre-installed in $ac_dir" >&6; }
14265 else
14266 # Canadian cross, just use what we found
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268$as_echo "pre-installed" >&6; }
14269 fi
14270else
14271 ok=yes
14272 case " ${configdirs} " in
14273 *" gcc "*) ;;
14274 *) ok=no ;;
14275 esac
14276 case ,${enable_languages}, in
14277 *,go,*) ;;
14278 *) ok=no ;;
14279 esac
14280 if test $ok = yes; then
14281 # An in-tree tool is available and we can use it
14282 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14284$as_echo "just compiled" >&6; }
14285 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14286 # We already found the complete path
14287 ac_dir=`dirname $GOC_FOR_TARGET`
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14289$as_echo "pre-installed in $ac_dir" >&6; }
14290 elif test "x$target" = "x$host"; then
14291 # We can use an host tool
14292 GOC_FOR_TARGET='$(GOC)'
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14294$as_echo "host tool" >&6; }
14295 else
14296 # We need a cross tool
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298$as_echo "pre-installed" >&6; }
14299 fi
14300fi
14301
5213506e
RW
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14303$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14304if test "x${build}" != "x${host}" ; then
e8b05380
PB
14305 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
172e41aa 14307 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14310 else
14311 # Canadian cross, just use what we found
5213506e
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14313$as_echo "pre-installed" >&6; }
e8b05380 14314 fi
2abefe3d
PB
14315else
14316 ok=yes
14317 case " ${configdirs} " in
14318 *" ld "*) ;;
14319 *) ok=no ;;
14320 esac
1c710c3c 14321
2abefe3d
PB
14322 if test $ok = yes; then
14323 # An in-tree tool is available and we can use it
14324 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14326$as_echo "just compiled" >&6; }
e8b05380
PB
14327 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
172e41aa 14329 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14332 elif test "x$target" = "x$host"; then
14333 # We can use an host tool
14334 LD_FOR_TARGET='$(LD)'
5213506e
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14336$as_echo "host tool" >&6; }
2abefe3d
PB
14337 else
14338 # We need a cross tool
5213506e
RW
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14340$as_echo "pre-installed" >&6; }
2abefe3d
PB
14341 fi
14342fi
0b0dc272 14343
5213506e
RW
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14345$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14346if test "x${build}" != "x${host}" ; then
e8b05380
PB
14347 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14348 # We already found the complete path
172e41aa 14349 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14351$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14352 else
14353 # Canadian cross, just use what we found
5213506e
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14355$as_echo "pre-installed" >&6; }
e8b05380 14356 fi
2abefe3d 14357else
e8b05380
PB
14358 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
172e41aa 14360 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14363 elif test "x$target" = "x$host"; then
2abefe3d
PB
14364 # We can use an host tool
14365 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14367$as_echo "host tool" >&6; }
2abefe3d
PB
14368 else
14369 # We need a cross tool
5213506e
RW
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14371$as_echo "pre-installed" >&6; }
2abefe3d
PB
14372 fi
14373fi
0b0dc272 14374
5213506e
RW
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14376$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14377if test "x${build}" != "x${host}" ; then
e8b05380
PB
14378 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
172e41aa 14380 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14383 else
14384 # Canadian cross, just use what we found
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386$as_echo "pre-installed" >&6; }
e8b05380 14387 fi
2abefe3d
PB
14388else
14389 ok=yes
14390 case " ${configdirs} " in
14391 *" binutils "*) ;;
14392 *) ok=no ;;
14393 esac
1c710c3c 14394
2abefe3d
PB
14395 if test $ok = yes; then
14396 # An in-tree tool is available and we can use it
14397 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14399$as_echo "just compiled" >&6; }
e8b05380
PB
14400 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
172e41aa 14402 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14405 elif test "x$target" = "x$host"; then
14406 # We can use an host tool
14407 NM_FOR_TARGET='$(NM)'
5213506e
RW
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14409$as_echo "host tool" >&6; }
2abefe3d
PB
14410 else
14411 # We need a cross tool
5213506e
RW
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413$as_echo "pre-installed" >&6; }
2abefe3d
PB
14414 fi
14415fi
0b0dc272 14416
9bccfdf5
AP
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14418$as_echo_n "checking where to find the target objcopy... " >&6; }
14419if test "x${build}" != "x${host}" ; then
14420 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
14425 else
14426 # Canadian cross, just use what we found
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428$as_echo "pre-installed" >&6; }
14429 fi
14430else
14431 ok=yes
14432 case " ${configdirs} " in
14433 *" binutils "*) ;;
14434 *) ok=no ;;
14435 esac
14436
14437 if test $ok = yes; then
14438 # An in-tree tool is available and we can use it
14439 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14441$as_echo "just compiled" >&6; }
14442 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
14447 elif test "x$target" = "x$host"; then
14448 # We can use an host tool
ec8fd1c0 14449 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14451$as_echo "host tool" >&6; }
14452 else
14453 # We need a cross tool
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14455$as_echo "pre-installed" >&6; }
14456 fi
14457fi
14458
5213506e
RW
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14460$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14461if test "x${build}" != "x${host}" ; then
e8b05380
PB
14462 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
172e41aa 14464 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14467 else
14468 # Canadian cross, just use what we found
5213506e
RW
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470$as_echo "pre-installed" >&6; }
e8b05380 14471 fi
2abefe3d
PB
14472else
14473 ok=yes
14474 case " ${configdirs} " in
14475 *" binutils "*) ;;
14476 *) ok=no ;;
14477 esac
1c710c3c 14478
2abefe3d
PB
14479 if test $ok = yes; then
14480 # An in-tree tool is available and we can use it
14481 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14483$as_echo "just compiled" >&6; }
e8b05380
PB
14484 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
172e41aa 14486 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14489 elif test "x$target" = "x$host"; then
14490 # We can use an host tool
14491 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14493$as_echo "host tool" >&6; }
2abefe3d
PB
14494 else
14495 # We need a cross tool
5213506e
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497$as_echo "pre-installed" >&6; }
2abefe3d
PB
14498 fi
14499fi
0b0dc272 14500
5213506e
RW
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14502$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14503if test "x${build}" != "x${host}" ; then
e8b05380
PB
14504 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14505 # We already found the complete path
172e41aa 14506 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14508$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14509 else
14510 # Canadian cross, just use what we found
5213506e
RW
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14512$as_echo "pre-installed" >&6; }
e8b05380 14513 fi
2abefe3d
PB
14514else
14515 ok=yes
14516 case " ${configdirs} " in
14517 *" binutils "*) ;;
14518 *) ok=no ;;
14519 esac
1c710c3c 14520
2abefe3d
PB
14521 if test $ok = yes; then
14522 # An in-tree tool is available and we can use it
14523 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14525$as_echo "just compiled" >&6; }
e8b05380
PB
14526 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14527 # We already found the complete path
172e41aa 14528 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14530$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14531 elif test "x$target" = "x$host"; then
14532 # We can use an host tool
14533 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14535$as_echo "host tool" >&6; }
2abefe3d
PB
14536 else
14537 # We need a cross tool
5213506e
RW
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14539$as_echo "pre-installed" >&6; }
2abefe3d
PB
14540 fi
14541fi
0b0dc272 14542
e7a82751
RM
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14544$as_echo_n "checking where to find the target readelf... " >&6; }
14545if test "x${build}" != "x${host}" ; then
14546 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14547 # We already found the complete path
14548 ac_dir=`dirname $READELF_FOR_TARGET`
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14550$as_echo "pre-installed in $ac_dir" >&6; }
14551 else
14552 # Canadian cross, just use what we found
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14554$as_echo "pre-installed" >&6; }
14555 fi
14556else
14557 ok=yes
14558 case " ${configdirs} " in
14559 *" binutils "*) ;;
14560 *) ok=no ;;
14561 esac
14562
14563 if test $ok = yes; then
14564 # An in-tree tool is available and we can use it
14565 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14567$as_echo "just compiled" >&6; }
14568 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14569 # We already found the complete path
14570 ac_dir=`dirname $READELF_FOR_TARGET`
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14572$as_echo "pre-installed in $ac_dir" >&6; }
14573 elif test "x$target" = "x$host"; then
14574 # We can use an host tool
14575 READELF_FOR_TARGET='$(READELF)'
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14577$as_echo "host tool" >&6; }
14578 else
14579 # We need a cross tool
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14581$as_echo "pre-installed" >&6; }
14582 fi
14583fi
14584
5213506e
RW
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14586$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14587if test "x${build}" != "x${host}" ; then
e8b05380
PB
14588 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14589 # We already found the complete path
172e41aa 14590 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14592$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14593 else
14594 # Canadian cross, just use what we found
5213506e
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14596$as_echo "pre-installed" >&6; }
e8b05380 14597 fi
2abefe3d
PB
14598else
14599 ok=yes
14600 case " ${configdirs} " in
14601 *" binutils "*) ;;
14602 *) ok=no ;;
14603 esac
1c710c3c 14604
2abefe3d
PB
14605 if test $ok = yes; then
14606 # An in-tree tool is available and we can use it
455c8f48 14607 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14609$as_echo "just compiled" >&6; }
e8b05380
PB
14610 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14611 # We already found the complete path
172e41aa 14612 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14614$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14615 elif test "x$target" = "x$host"; then
14616 # We can use an host tool
14617 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14619$as_echo "host tool" >&6; }
2abefe3d
PB
14620 else
14621 # We need a cross tool
5213506e
RW
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14623$as_echo "pre-installed" >&6; }
2abefe3d
PB
14624 fi
14625fi
0b0dc272 14626
5213506e
RW
14627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14628$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14629if test "x${build}" != "x${host}" ; then
e8b05380
PB
14630 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14631 # We already found the complete path
172e41aa 14632 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14634$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14635 else
14636 # Canadian cross, just use what we found
5213506e
RW
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14638$as_echo "pre-installed" >&6; }
e8b05380 14639 fi
2abefe3d
PB
14640else
14641 ok=yes
14642 case " ${configdirs} " in
14643 *" binutils "*) ;;
14644 *) ok=no ;;
14645 esac
1c710c3c 14646
2abefe3d
PB
14647 if test $ok = yes; then
14648 # An in-tree tool is available and we can use it
14649 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14651$as_echo "just compiled" >&6; }
e8b05380
PB
14652 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14653 # We already found the complete path
172e41aa 14654 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14656$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14657 elif test "x$target" = "x$host"; then
14658 # We can use an host tool
14659 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14661$as_echo "host tool" >&6; }
2abefe3d
PB
14662 else
14663 # We need a cross tool
5213506e
RW
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14665$as_echo "pre-installed" >&6; }
2abefe3d 14666 fi
671aa708 14667fi
be912515 14668
5213506e
RW
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14670$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14671if test "x${build}" != "x${host}" ; then
14672 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14673 # We already found the complete path
14674 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14676$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14677 else
14678 # Canadian cross, just use what we found
5213506e
RW
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14680$as_echo "pre-installed" >&6; }
901119ae
KT
14681 fi
14682else
14683 ok=yes
14684 case " ${configdirs} " in
14685 *" binutils "*) ;;
14686 *) ok=no ;;
14687 esac
14688
14689 if test $ok = yes; then
14690 # An in-tree tool is available and we can use it
14691 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14693$as_echo "just compiled" >&6; }
901119ae
KT
14694 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14695 # We already found the complete path
14696 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14698$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14699 elif test "x$target" = "x$host"; then
14700 # We can use an host tool
14701 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14703$as_echo "host tool" >&6; }
901119ae
KT
14704 else
14705 # We need a cross tool
5213506e
RW
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14707$as_echo "pre-installed" >&6; }
901119ae
KT
14708 fi
14709fi
14710
be912515
NN
14711
14712
2abefe3d 14713
0b0dc272 14714
671aa708
NN
14715# Certain tools may need extra flags.
14716AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14717RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14718NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14719
2abefe3d
PB
14720# When building target libraries, except in a Canadian cross, we use
14721# the same toolchain as the compiler we just built.
14722COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14723COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14724COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14725if test $host = $build; then
14726 case " $configdirs " in
14727 *" gcc "*)
14728 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14729 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14730 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14731 ;;
14732 esac
14733fi
14734
14735
14736
14737
14738
5213506e
RW
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14740$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14741# Check whether --enable-maintainer-mode was given.
14742if test "${enable_maintainer_mode+set}" = set; then :
14743 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14744else
14745 USE_MAINTAINER_MODE=no
5213506e
RW
14746fi
14747
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14749$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14750
14751
14752if test "$USE_MAINTAINER_MODE" = yes; then
14753 MAINTAINER_MODE_TRUE=
14754 MAINTAINER_MODE_FALSE='#'
14755else
14756 MAINTAINER_MODE_TRUE='#'
14757 MAINTAINER_MODE_FALSE=
1c710c3c 14758fi
ee03dc5e
AO
14759MAINT=$MAINTAINER_MODE_TRUE
14760
2805b53a
NN
14761# ---------------------
14762# GCC bootstrap support
14763# ---------------------
14764
14765# Stage specific cflags for build.
14766stage1_cflags="-g"
14767case $build in
14768 vax-*-*)
14769 case ${GCC} in
14770 yes) stage1_cflags="-g -Wa,-J" ;;
14771 *) stage1_cflags="-g -J" ;;
14772 esac ;;
2805b53a
NN
14773esac
14774
0b50988a 14775
2805b53a 14776
8efea775 14777# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14778# Check whether --enable-stage1-checking was given.
14779if test "${enable_stage1_checking+set}" = set; then :
14780 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14781else
e643dc23 14782 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14783 # For --disable-checking or implicit --enable-checking=release, avoid
14784 # setting --enable-checking=gc in the default stage1 checking for LTO
14785 # bootstraps. See PR62077.
14786 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14787 case $BUILD_CONFIG in
14788 *lto*)
14789 if test "x$enable_checking" = x && \
14790 test -d ${srcdir}/gcc && \
14791 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14792 stage1_checking=--enable-checking=yes,types
14793 fi;;
14794 *) stage1_checking=--enable-checking=yes,types;;
14795 esac
8efea775 14796else
e643dc23 14797 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14798fi
5213506e 14799fi
8efea775
PB
14800
14801
2aeb72e9 14802
5213506e
RW
14803# Enable -Werror in bootstrap stage2 and later.
14804# Check whether --enable-werror was given.
14805if test "${enable_werror+set}" = set; then :
14806 enableval=$enable_werror;
2805b53a 14807else
416cfb5e 14808 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14809 enable_werror=yes
88fceb68
PB
14810else
14811 enable_werror=no
14812fi
5213506e
RW
14813fi
14814
09a9c095
NN
14815case ${enable_werror} in
14816 yes) stage2_werror_flag="--enable-werror-always" ;;
14817 *) stage2_werror_flag="" ;;
2805b53a
NN
14818esac
14819
14820
459260ec
DM
14821# Enable --enable-host-shared.
14822# Check whether --enable-host-shared was given.
14823if test "${enable_host_shared+set}" = set; then :
14824 enableval=$enable_host_shared; host_shared=$enableval
14825else
14826 host_shared=no
14827fi
14828
14829
14830
231d020b
DM
14831# PR jit/64780: Require the user to explicitly specify
14832# --enable-host-shared if the jit is enabled, hinting
14833# that they might want to do a separate configure/build of
14834# the jit, to avoid users from slowing down the rest of the
14835# compiler by enabling the jit.
14836if test ${host_shared} = "no" ; then
14837 case "${enable_languages}" in
14838 *jit*)
14839 as_fn_error "
14840Enabling language \"jit\" requires --enable-host-shared.
14841
14842--enable-host-shared typically slows the rest of the compiler down by
14843a few %, so you must explicitly enable it.
14844
14845If you want to build both the jit and the regular compiler, it is often
14846best to do this via two separate configure/builds, in separate
14847directories, to avoid imposing the performance cost of
14848--enable-host-shared on the regular compiler." "$LINENO" 5
14849 ;;
14850 *)
14851 ;;
14852 esac
14853fi
14854
f2689b09
SE
14855# Specify what files to not compare during bootstrap.
14856
14857compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14858case "$target" in
14859 hppa*64*-*-hpux*) ;;
14860 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14861 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14862esac
14863
14864
5213506e
RW
14865ac_config_files="$ac_config_files Makefile"
14866
1c710c3c 14867cat >confcache <<\_ACEOF
671aa708
NN
14868# This file is a shell script that caches the results of configure
14869# tests run on this system so they can be shared between configure
1c710c3c
DJ
14870# scripts and configure runs, see configure's option --config-cache.
14871# It is not useful on other systems. If it contains results you don't
14872# want to keep, you may remove or edit it.
671aa708 14873#
1c710c3c
DJ
14874# config.status only pays attention to the cache file if you give it
14875# the --recheck option to rerun configure.
671aa708 14876#
1c710c3c
DJ
14877# `ac_cv_env_foo' variables (set or unset) will be overridden when
14878# loading this file, other *unset* `ac_cv_foo' will be assigned the
14879# following values.
14880
14881_ACEOF
14882
671aa708
NN
14883# The following way of writing the cache mishandles newlines in values,
14884# but we know of no workaround that is simple, portable, and efficient.
5213506e 14885# So, we kill variables containing newlines.
671aa708
NN
14886# Ultrix sh set writes to stderr and can't be redirected directly,
14887# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14888(
14889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14890 eval ac_val=\$$ac_var
14891 case $ac_val in #(
14892 *${as_nl}*)
14893 case $ac_var in #(
14894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14895$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14896 esac
14897 case $ac_var in #(
14898 _ | IFS | as_nl) ;; #(
14899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14900 *) { eval $ac_var=; unset $ac_var;} ;;
14901 esac ;;
14902 esac
14903 done
14904
1c710c3c 14905 (set) 2>&1 |
5213506e
RW
14906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14907 *${as_nl}ac_space=\ *)
14908 # `set' does not quote correctly, so add quotes: double-quote
14909 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14910 sed -n \
14911 "s/'/'\\\\''/g;
14912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14913 ;; #(
1c710c3c
DJ
14914 *)
14915 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14917 ;;
5213506e
RW
14918 esac |
14919 sort
14920) |
1c710c3c 14921 sed '
5213506e 14922 /^ac_cv_env_/b end
1c710c3c 14923 t clear
5213506e 14924 :clear
1c710c3c
DJ
14925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14926 t end
5213506e
RW
14927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14928 :end' >>confcache
14929if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14930 if test -w "$cache_file"; then
14931 test "x$cache_file" != "x/dev/null" &&
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14933$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14934 cat confcache >$cache_file
671aa708 14935 else
5213506e
RW
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14937$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14938 fi
4977bab6 14939fi
671aa708 14940rm -f confcache
79c06341 14941
671aa708
NN
14942test "x$prefix" = xNONE && prefix=$ac_default_prefix
14943# Let make expand exec_prefix.
14944test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14945
671aa708
NN
14946# Transform confdefs.h into DEFS.
14947# Protect against shell expansion while executing Makefile rules.
14948# Protect against Makefile macro expansion.
1c710c3c
DJ
14949#
14950# If the first sed substitution is executed (which looks for macros that
5213506e 14951# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14952# look for a macro that doesn't take arguments.
5213506e
RW
14953ac_script='
14954:mline
14955/\\$/{
14956 N
14957 s,\\\n,,
14958 b mline
14959}
1c710c3c 14960t clear
5213506e
RW
14961:clear
14962s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14963t quote
5213506e 14964s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14965t quote
5213506e
RW
14966b any
14967:quote
14968s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14969s/\[/\\&/g
14970s/\]/\\&/g
14971s/\$/$$/g
14972H
14973:any
14974${
14975 g
14976 s/^\n//
14977 s/\n/ /g
14978 p
14979}
14980'
14981DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14982
14983
14984ac_libobjs=
14985ac_ltlibobjs=
14986for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14987 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14988 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14989 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14990 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14991 # will be set to the directory where LIBOBJS objects are built.
14992 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14993 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14994done
14995LIBOBJS=$ac_libobjs
fb0103e5 14996
1c710c3c 14997LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14998
af71363e 14999
1c710c3c
DJ
15000
15001: ${CONFIG_STATUS=./config.status}
5213506e 15002ac_write_fail=0
1c710c3c
DJ
15003ac_clean_files_save=$ac_clean_files
15004ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15006$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15007as_write_fail=0
15008cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15009#! $SHELL
15010# Generated by $as_me.
671aa708 15011# Run this file to recreate the current configuration.
671aa708 15012# Compiler output produced by configure, useful for debugging
1c710c3c 15013# configure, is in config.log if it exists.
0b0dc272 15014
1c710c3c
DJ
15015debug=false
15016ac_cs_recheck=false
15017ac_cs_silent=false
1c710c3c 15018
5213506e
RW
15019SHELL=\${CONFIG_SHELL-$SHELL}
15020export SHELL
15021_ASEOF
15022cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15023## -------------------- ##
15024## M4sh Initialization. ##
15025## -------------------- ##
15026
15027# Be more Bourne compatible
15028DUALCASE=1; export DUALCASE # for MKS sh
15029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15030 emulate sh
15031 NULLCMD=:
5213506e 15032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15033 # is contrary to our usage. Disable this feature.
15034 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15035 setopt NO_GLOB_SUBST
15036else
15037 case `(set -o) 2>/dev/null` in #(
15038 *posix*) :
15039 set -o posix ;; #(
15040 *) :
15041 ;;
15042esac
1c710c3c 15043fi
1c710c3c 15044
5213506e
RW
15045
15046as_nl='
15047'
15048export as_nl
15049# Printing a long string crashes Solaris 7 /usr/bin/printf.
15050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15053# Prefer a ksh shell builtin over an external printf program on Solaris,
15054# but without wasting forks for bash or zsh.
15055if test -z "$BASH_VERSION$ZSH_VERSION" \
15056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15057 as_echo='print -r --'
15058 as_echo_n='print -rn --'
15059elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15060 as_echo='printf %s\n'
15061 as_echo_n='printf %s'
15062else
15063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15065 as_echo_n='/usr/ucb/echo -n'
15066 else
15067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15068 as_echo_n_body='eval
15069 arg=$1;
15070 case $arg in #(
15071 *"$as_nl"*)
15072 expr "X$arg" : "X\\(.*\\)$as_nl";
15073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15074 esac;
15075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15076 '
15077 export as_echo_n_body
15078 as_echo_n='sh -c $as_echo_n_body as_echo'
15079 fi
15080 export as_echo_body
15081 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15082fi
15083
5213506e
RW
15084# The user is always right.
15085if test "${PATH_SEPARATOR+set}" != set; then
15086 PATH_SEPARATOR=:
15087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15089 PATH_SEPARATOR=';'
15090 }
15091fi
15092
15093
15094# IFS
15095# We need space, tab and new line, in precisely that order. Quoting is
15096# there to prevent editors from complaining about space-tab.
15097# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15098# splitting by setting IFS to empty value.)
15099IFS=" "" $as_nl"
15100
15101# Find who we are. Look in the path if we contain no directory separator.
15102case $0 in #((
15103 *[\\/]* ) as_myself=$0 ;;
15104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15105for as_dir in $PATH
15106do
15107 IFS=$as_save_IFS
15108 test -z "$as_dir" && as_dir=.
15109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15110 done
15111IFS=$as_save_IFS
15112
15113 ;;
15114esac
15115# We did not find ourselves, most probably we were run as `sh COMMAND'
15116# in which case we are not to be found in the path.
15117if test "x$as_myself" = x; then
15118 as_myself=$0
15119fi
15120if test ! -f "$as_myself"; then
15121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15122 exit 1
15123fi
1c710c3c 15124
5213506e
RW
15125# Unset variables that we do not need and which cause bugs (e.g. in
15126# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15127# suppresses any "Segmentation fault" message there. '((' could
15128# trigger a bug in pdksh 5.2.14.
15129for as_var in BASH_ENV ENV MAIL MAILPATH
15130do eval test x\${$as_var+set} = xset \
15131 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15132done
1c710c3c
DJ
15133PS1='$ '
15134PS2='> '
15135PS4='+ '
15136
15137# NLS nuisances.
5213506e
RW
15138LC_ALL=C
15139export LC_ALL
15140LANGUAGE=C
15141export LANGUAGE
15142
15143# CDPATH.
15144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15145
15146
15147# as_fn_error ERROR [LINENO LOG_FD]
15148# ---------------------------------
15149# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15150# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15151# script with status $?, using 1 if that was 0.
15152as_fn_error ()
15153{
15154 as_status=$?; test $as_status -eq 0 && as_status=1
15155 if test "$3"; then
15156 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15157 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 15158 fi
5213506e
RW
15159 $as_echo "$as_me: error: $1" >&2
15160 as_fn_exit $as_status
15161} # as_fn_error
15162
15163
15164# as_fn_set_status STATUS
15165# -----------------------
15166# Set $? to STATUS, without forking.
15167as_fn_set_status ()
15168{
15169 return $1
15170} # as_fn_set_status
15171
15172# as_fn_exit STATUS
15173# -----------------
15174# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15175as_fn_exit ()
15176{
15177 set +e
15178 as_fn_set_status $1
15179 exit $1
15180} # as_fn_exit
15181
15182# as_fn_unset VAR
15183# ---------------
15184# Portably unset VAR.
15185as_fn_unset ()
15186{
15187 { eval $1=; unset $1;}
15188}
15189as_unset=as_fn_unset
15190# as_fn_append VAR VALUE
15191# ----------------------
15192# Append the text in VALUE to the end of the definition contained in VAR. Take
15193# advantage of any shell optimizations that allow amortized linear growth over
15194# repeated appends, instead of the typical quadratic growth present in naive
15195# implementations.
15196if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15197 eval 'as_fn_append ()
15198 {
15199 eval $1+=\$2
15200 }'
15201else
15202 as_fn_append ()
15203 {
15204 eval $1=\$$1\$2
15205 }
15206fi # as_fn_append
15207
15208# as_fn_arith ARG...
15209# ------------------
15210# Perform arithmetic evaluation on the ARGs, and store the result in the
15211# global $as_val. Take advantage of shells that can avoid forks. The arguments
15212# must be portable across $(()) and expr.
15213if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15214 eval 'as_fn_arith ()
15215 {
15216 as_val=$(( $* ))
15217 }'
15218else
15219 as_fn_arith ()
15220 {
15221 as_val=`expr "$@" || test $? -eq 1`
15222 }
15223fi # as_fn_arith
15224
1c710c3c 15225
5213506e
RW
15226if expr a : '\(a\)' >/dev/null 2>&1 &&
15227 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15228 as_expr=expr
15229else
15230 as_expr=false
15231fi
15232
5213506e 15233if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15234 as_basename=basename
15235else
15236 as_basename=false
15237fi
15238
5213506e
RW
15239if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15240 as_dirname=dirname
15241else
15242 as_dirname=false
15243fi
1c710c3c 15244
5213506e 15245as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15246$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15247 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15248 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15249$as_echo X/"$0" |
15250 sed '/^.*\/\([^/][^/]*\)\/*$/{
15251 s//\1/
15252 q
15253 }
15254 /^X\/\(\/\/\)$/{
15255 s//\1/
15256 q
15257 }
15258 /^X\/\(\/\).*/{
15259 s//\1/
15260 q
15261 }
15262 s/.*/./; q'`
2aeb72e9 15263
2aeb72e9
DD
15264# Avoid depending upon Character Ranges.
15265as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15266as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15267as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15268as_cr_digits='0123456789'
15269as_cr_alnum=$as_cr_Letters$as_cr_digits
15270
5213506e
RW
15271ECHO_C= ECHO_N= ECHO_T=
15272case `echo -n x` in #(((((
15273-n*)
15274 case `echo 'xy\c'` in
15275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15276 xy) ECHO_C='\c';;
15277 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15278 ECHO_T=' ';;
15279 esac;;
15280*)
15281 ECHO_N='-n';;
1c710c3c
DJ
15282esac
15283
5213506e
RW
15284rm -f conf$$ conf$$.exe conf$$.file
15285if test -d conf$$.dir; then
15286 rm -f conf$$.dir/conf$$.file
1c710c3c 15287else
5213506e
RW
15288 rm -f conf$$.dir
15289 mkdir conf$$.dir 2>/dev/null
1c710c3c 15290fi
5213506e
RW
15291if (echo >conf$$.file) 2>/dev/null; then
15292 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15293 as_ln_s='ln -s'
5213506e
RW
15294 # ... but there are two gotchas:
15295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15297 # In both cases, we have to default to `cp -p'.
15298 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15299 as_ln_s='cp -p'
15300 elif ln conf$$.file conf$$ 2>/dev/null; then
15301 as_ln_s=ln
15302 else
15303 as_ln_s='cp -p'
2aeb72e9 15304 fi
1c710c3c
DJ
15305else
15306 as_ln_s='cp -p'
15307fi
5213506e
RW
15308rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15309rmdir conf$$.dir 2>/dev/null
15310
15311
15312# as_fn_mkdir_p
15313# -------------
15314# Create "$as_dir" as a directory, including parents if necessary.
15315as_fn_mkdir_p ()
15316{
15317
15318 case $as_dir in #(
15319 -*) as_dir=./$as_dir;;
15320 esac
15321 test -d "$as_dir" || eval $as_mkdir_p || {
15322 as_dirs=
15323 while :; do
15324 case $as_dir in #(
15325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15326 *) as_qdir=$as_dir;;
15327 esac
15328 as_dirs="'$as_qdir' $as_dirs"
15329 as_dir=`$as_dirname -- "$as_dir" ||
15330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15331 X"$as_dir" : 'X\(//\)[^/]' \| \
15332 X"$as_dir" : 'X\(//\)$' \| \
15333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15334$as_echo X"$as_dir" |
15335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\(\/\/\)[^/].*/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\/\)$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\(\/\).*/{
15348 s//\1/
15349 q
15350 }
15351 s/.*/./; q'`
15352 test -d "$as_dir" && break
15353 done
15354 test -z "$as_dirs" || eval "mkdir $as_dirs"
15355 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15356
1c710c3c 15357
5213506e 15358} # as_fn_mkdir_p
1c710c3c 15359if mkdir -p . 2>/dev/null; then
5213506e 15360 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15361else
15362 test -d ./-p && rmdir ./-p
15363 as_mkdir_p=false
15364fi
15365
5213506e
RW
15366if test -x / >/dev/null 2>&1; then
15367 as_test_x='test -x'
15368else
15369 if ls -dL / >/dev/null 2>&1; then
15370 as_ls_L_option=L
15371 else
15372 as_ls_L_option=
15373 fi
15374 as_test_x='
15375 eval sh -c '\''
15376 if test -d "$1"; then
15377 test -d "$1/.";
15378 else
15379 case $1 in #(
15380 -*)set "./$1";;
15381 esac;
15382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15383 ???[sx]*):;;*)false;;esac;fi
15384 '\'' sh
15385 '
15386fi
15387as_executable_p=$as_test_x
1c710c3c
DJ
15388
15389# Sed expression to map a string onto a valid CPP name.
15390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15391
15392# Sed expression to map a string onto a valid variable name.
15393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15394
15395
1c710c3c 15396exec 6>&1
5213506e
RW
15397## ----------------------------------- ##
15398## Main body of $CONFIG_STATUS script. ##
15399## ----------------------------------- ##
15400_ASEOF
15401test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15402
15403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15404# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15405# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15406# values after options handling.
15407ac_log="
1c710c3c 15408This file was extended by $as_me, which was
5213506e 15409generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15410
15411 CONFIG_FILES = $CONFIG_FILES
15412 CONFIG_HEADERS = $CONFIG_HEADERS
15413 CONFIG_LINKS = $CONFIG_LINKS
15414 CONFIG_COMMANDS = $CONFIG_COMMANDS
15415 $ $0 $@
15416
5213506e
RW
15417on `(hostname || uname -n) 2>/dev/null | sed 1q`
15418"
15419
1c710c3c
DJ
15420_ACEOF
15421
5213506e
RW
15422case $ac_config_files in *"
15423"*) set x $ac_config_files; shift; ac_config_files=$*;;
15424esac
1c710c3c 15425
2aeb72e9 15426
2aeb72e9 15427
5213506e
RW
15428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15429# Files that config.status was made for.
15430config_files="$ac_config_files"
1c710c3c 15431
5213506e 15432_ACEOF
2aeb72e9 15433
5213506e 15434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15435ac_cs_usage="\
5213506e
RW
15436\`$as_me' instantiates files and other configuration actions
15437from templates according to the current configuration. Unless the files
15438and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15439
5213506e 15440Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15441
15442 -h, --help print this help, then exit
5213506e
RW
15443 -V, --version print version number and configuration settings, then exit
15444 -q, --quiet, --silent
15445 do not print progress messages
1c710c3c
DJ
15446 -d, --debug don't remove temporary files
15447 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15448 --file=FILE[:TEMPLATE]
15449 instantiate the configuration file FILE
1c710c3c
DJ
15450
15451Configuration files:
15452$config_files
15453
5213506e 15454Report bugs to the package provider."
2aeb72e9 15455
5213506e
RW
15456_ACEOF
15457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15458ac_cs_version="\\
15459config.status
5213506e
RW
15460configured by $0, generated by GNU Autoconf 2.64,
15461 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15462
5213506e 15463Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15464This config.status script is free software; the Free Software Foundation
15465gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15466
15467ac_pwd='$ac_pwd'
15468srcdir='$srcdir'
15469INSTALL='$INSTALL'
87264276 15470AWK='$AWK'
5213506e 15471test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15472_ACEOF
15473
5213506e
RW
15474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15476ac_need_defaults=:
15477while test $# != 0
a4b9e93e 15478do
1c710c3c
DJ
15479 case $1 in
15480 --*=*)
5213506e
RW
15481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15483 ac_shift=:
15484 ;;
5213506e 15485 *)
1c710c3c
DJ
15486 ac_option=$1
15487 ac_optarg=$2
15488 ac_shift=shift
15489 ;;
1c710c3c
DJ
15490 esac
15491
15492 case $ac_option in
15493 # Handling of the options.
671aa708 15494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15495 ac_cs_recheck=: ;;
5213506e
RW
15496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15497 $as_echo "$ac_cs_version"; exit ;;
15498 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15499 debug=: ;;
15500 --file | --fil | --fi | --f )
15501 $ac_shift
5213506e
RW
15502 case $ac_optarg in
15503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15504 esac
15505 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15506 ac_need_defaults=false;;
5213506e
RW
15507 --he | --h | --help | --hel | -h )
15508 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15511 ac_cs_silent=: ;;
15512
15513 # This is an error.
5213506e
RW
15514 -*) as_fn_error "unrecognized option: \`$1'
15515Try \`$0 --help' for more information." ;;
1c710c3c 15516
5213506e
RW
15517 *) as_fn_append ac_config_targets " $1"
15518 ac_need_defaults=false ;;
1c710c3c 15519
0b0dc272 15520 esac
1c710c3c 15521 shift
0b0dc272
AM
15522done
15523
1c710c3c 15524ac_configure_extra_args=
0b0dc272 15525
1c710c3c
DJ
15526if $ac_cs_silent; then
15527 exec 6>/dev/null
15528 ac_configure_extra_args="$ac_configure_extra_args --silent"
15529fi
0b0dc272 15530
1c710c3c 15531_ACEOF
5213506e 15532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15533if \$ac_cs_recheck; then
5213506e
RW
15534 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15535 shift
15536 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15537 CONFIG_SHELL='$SHELL'
15538 export CONFIG_SHELL
15539 exec "\$@"
1c710c3c
DJ
15540fi
15541
15542_ACEOF
5213506e
RW
15543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544exec 5>>config.log
15545{
15546 echo
15547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15548## Running $as_me. ##
15549_ASBOX
15550 $as_echo "$ac_log"
15551} >&5
1c710c3c 15552
5213506e
RW
15553_ACEOF
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15555#
15556# INIT-COMMANDS
15557#
15558extrasub_build="$extrasub_build"
15559 extrasub_host="$extrasub_host"
15560 extrasub_target="$extrasub_target"
15561
5213506e 15562_ACEOF
1c710c3c 15563
5213506e 15564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15565
5213506e 15566# Handling of arguments.
1c710c3c
DJ
15567for ac_config_target in $ac_config_targets
15568do
5213506e
RW
15569 case $ac_config_target in
15570 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15571
15572 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15573 esac
15574done
15575
5213506e 15576
1c710c3c
DJ
15577# If the user did not use the arguments to specify the items to instantiate,
15578# then the envvar interface is used. Set only those that are not.
15579# We use the long form for the default assignment because of an extremely
15580# bizarre bug on SunOS 4.1.3.
15581if $ac_need_defaults; then
15582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15583fi
15584
15585# Have a temporary directory for convenience. Make it in the build tree
5213506e 15586# simply because there is no reason against having it here, and in addition,
1c710c3c 15587# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15588# Hook for its removal unless debugging.
15589# Note that there is a small window in which the directory will not be cleaned:
15590# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15591$debug ||
15592{
5213506e
RW
15593 tmp=
15594 trap 'exit_status=$?
15595 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15596' 0
15597 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15598}
1c710c3c
DJ
15599# Create a (secure) tmp directory for tmp files.
15600
15601{
5213506e 15602 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15603 test -n "$tmp" && test -d "$tmp"
15604} ||
15605{
5213506e
RW
15606 tmp=./conf$$-$RANDOM
15607 (umask 077 && mkdir "$tmp")
15608} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15609
15610# Set up the scripts for CONFIG_FILES section.
15611# No need to generate them if there are no CONFIG_FILES.
15612# This happens for instance with `./config.status config.h'.
15613if test -n "$CONFIG_FILES"; then
15614
15615if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15616 ac_cs_awk_getline=:
15617 ac_cs_awk_pipe_init=
15618 ac_cs_awk_read_file='
15619 while ((getline aline < (F[key])) > 0)
15620 print(aline)
15621 close(F[key])'
15622 ac_cs_awk_pipe_fini=
15623else
15624 ac_cs_awk_getline=false
15625 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15626 ac_cs_awk_read_file='
15627 print "|#_!!_#|"
15628 print "cat " F[key] " &&"
15629 '$ac_cs_awk_pipe_init
15630 # The final `:' finishes the AND list.
15631 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15632fi
15633ac_cr=`echo X | tr X '\015'`
15634# On cygwin, bash can eat \r inside `` if the user requested igncr.
15635# But we know of no other shell where ac_cr would be empty at this
15636# point, so we can use a bashism as a fallback.
15637if test "x$ac_cr" = x; then
15638 eval ac_cr=\$\'\\r\'
15639fi
15640ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15641if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15642 ac_cs_awk_cr='\r'
15643else
15644 ac_cs_awk_cr=$ac_cr
15645fi
15646
15647echo 'BEGIN {' >"$tmp/subs1.awk" &&
15648_ACEOF
15649
15650# Create commands to substitute file output variables.
1c710c3c 15651{
5213506e
RW
15652 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15653 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15654 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15655 echo "_ACAWK" &&
15656 echo "_ACEOF"
15657} >conf$$files.sh &&
15658. ./conf$$files.sh ||
15659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15660rm -f conf$$files.sh
1c710c3c 15661
5213506e
RW
15662{
15663 echo "cat >conf$$subs.awk <<_ACEOF" &&
15664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15665 echo "_ACEOF"
15666} >conf$$subs.sh ||
15667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15668ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15669ac_delim='%!_!# '
15670for ac_last_try in false false false false false :; do
15671 . ./conf$$subs.sh ||
15672 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15673
15674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15675 if test $ac_delim_n = $ac_delim_num; then
15676 break
15677 elif $ac_last_try; then
15678 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15679 else
15680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15681 fi
15682done
15683rm -f conf$$subs.sh
15684
15685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15686cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15687_ACEOF
5213506e
RW
15688sed -n '
15689h
15690s/^/S["/; s/!.*/"]=/
15691p
15692g
15693s/^[^!]*!//
15694:repl
15695t repl
15696s/'"$ac_delim"'$//
15697t delim
15698:nl
15699h
15700s/\(.\{148\}\).*/\1/
15701t more1
15702s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15703p
15704n
15705b repl
15706:more1
15707s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15708p
15709g
15710s/.\{148\}//
15711t nl
15712:delim
15713h
15714s/\(.\{148\}\).*/\1/
15715t more2
15716s/["\\]/\\&/g; s/^/"/; s/$/"/
15717p
15718b
15719:more2
15720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15721p
15722g
15723s/.\{148\}//
15724t delim
15725' <conf$$subs.awk | sed '
15726/^[^""]/{
15727 N
15728 s/\n//
15729}
15730' >>$CONFIG_STATUS || ac_write_fail=1
15731rm -f conf$$subs.awk
15732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733_ACAWK
15734cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15735 for (key in S) S_is_set[key] = 1
15736 FS = "\a"
15737 \$ac_cs_awk_pipe_init
15738}
15739{
15740 line = $ 0
15741 nfields = split(line, field, "@")
15742 substed = 0
15743 len = length(field[1])
15744 for (i = 2; i < nfields; i++) {
15745 key = field[i]
15746 keylen = length(key)
15747 if (S_is_set[key]) {
15748 value = S[key]
15749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15750 len += length(value) + length(field[++i])
15751 substed = 1
15752 } else
15753 len += 1 + keylen
15754 }
15755 if (nfields == 3 && !substed) {
15756 key = field[2]
15757 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15758 \$ac_cs_awk_read_file
15759 next
15760 }
15761 }
15762 print line
15763}
15764\$ac_cs_awk_pipe_fini
15765_ACAWK
15766_ACEOF
15767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15768if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15770else
15771 cat
15772fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15773 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15774_ACEOF
15775
15776# VPATH may cause trouble with some makes, so we remove $(srcdir),
15777# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15778# trailing colons and then remove the whole line if VPATH becomes empty
15779# (actually we leave an empty line to preserve line numbers).
15780if test "x$srcdir" = x.; then
15781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15782s/:*\$(srcdir):*/:/
15783s/:*\${srcdir}:*/:/
15784s/:*@srcdir@:*/:/
15785s/^\([^=]*=[ ]*\):*/\1/
15786s/:*$//
15787s/^[^=]*=[ ]*$//
15788}'
15789fi
2aeb72e9 15790
5213506e
RW
15791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792fi # test -n "$CONFIG_FILES"
2aeb72e9 15793
1c710c3c 15794
5213506e
RW
15795eval set X " :F $CONFIG_FILES "
15796shift
15797for ac_tag
15798do
15799 case $ac_tag in
15800 :[FHLC]) ac_mode=$ac_tag; continue;;
15801 esac
15802 case $ac_mode$ac_tag in
15803 :[FHL]*:*);;
15804 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15805 :[FH]-) ac_tag=-:-;;
15806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15807 esac
15808 ac_save_IFS=$IFS
15809 IFS=:
15810 set x $ac_tag
15811 IFS=$ac_save_IFS
15812 shift
15813 ac_file=$1
15814 shift
79c06341 15815
5213506e
RW
15816 case $ac_mode in
15817 :L) ac_source=$1;;
15818 :[FH])
15819 ac_file_inputs=
15820 for ac_f
15821 do
15822 case $ac_f in
15823 -) ac_f="$tmp/stdin";;
15824 *) # Look for the file first in the build tree, then in the source tree
15825 # (if the path is not absolute). The absolute path cannot be DOS-style,
15826 # because $ac_f cannot contain `:'.
15827 test -f "$ac_f" ||
15828 case $ac_f in
15829 [\\/$]*) false;;
15830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15831 esac ||
15832 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15833 esac
15834 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15835 as_fn_append ac_file_inputs " '$ac_f'"
15836 done
1c710c3c 15837
5213506e
RW
15838 # Let's still pretend it is `configure' which instantiates (i.e., don't
15839 # use $as_me), people would be surprised to read:
15840 # /* config.h. Generated by config.status. */
15841 configure_input='Generated from '`
15842 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15843 `' by configure.'
15844 if test x"$ac_file" != x-; then
15845 configure_input="$ac_file. $configure_input"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15847$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15848 fi
5213506e
RW
15849 # Neutralize special characters interpreted by sed in replacement strings.
15850 case $configure_input in #(
15851 *\&* | *\|* | *\\* )
15852 ac_sed_conf_input=`$as_echo "$configure_input" |
15853 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15854 *) ac_sed_conf_input=$configure_input;;
15855 esac
11a67599 15856
5213506e
RW
15857 case $ac_tag in
15858 *:-:* | *:-) cat >"$tmp/stdin" \
15859 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15860 esac
15861 ;;
11a67599
ZW
15862 esac
15863
5213506e 15864 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15866 X"$ac_file" : 'X\(//\)[^/]' \| \
15867 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15869$as_echo X"$ac_file" |
15870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\(\/\/\)[^/].*/{
15875 s//\1/
15876 q
15877 }
15878 /^X\(\/\/\)$/{
15879 s//\1/
15880 q
15881 }
15882 /^X\(\/\).*/{
15883 s//\1/
15884 q
15885 }
15886 s/.*/./; q'`
15887 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15888 ac_builddir=.
0b0dc272 15889
5213506e
RW
15890case "$ac_dir" in
15891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15892*)
15893 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15894 # A ".." for each directory in $ac_dir_suffix.
15895 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15896 case $ac_top_builddir_sub in
15897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15899 esac ;;
15900esac
15901ac_abs_top_builddir=$ac_pwd
15902ac_abs_builddir=$ac_pwd$ac_dir_suffix
15903# for backward compatibility:
15904ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15905
15906case $srcdir in
5213506e 15907 .) # We are building in place.
1c710c3c 15908 ac_srcdir=.
5213506e
RW
15909 ac_top_srcdir=$ac_top_builddir_sub
15910 ac_abs_top_srcdir=$ac_pwd ;;
15911 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15912 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15913 ac_top_srcdir=$srcdir
15914 ac_abs_top_srcdir=$srcdir ;;
15915 *) # Relative name.
15916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15917 ac_top_srcdir=$ac_top_build_prefix$srcdir
15918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15919esac
5213506e 15920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15921
0b0dc272 15922
5213506e
RW
15923 case $ac_mode in
15924 :F)
15925 #
15926 # CONFIG_FILE
15927 #
1c710c3c
DJ
15928
15929 case $INSTALL in
15930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15932 esac
5213506e 15933_ACEOF
11a67599 15934
5213506e
RW
15935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936# If the template does not know about datarootdir, expand it.
15937# FIXME: This hack should be removed a few years after 2.60.
15938ac_datarootdir_hack=; ac_datarootdir_seen=
15939ac_sed_dataroot='
15940/datarootdir/ {
15941 p
15942 q
15943}
15944/@datadir@/p
15945/@docdir@/p
15946/@infodir@/p
15947/@localedir@/p
15948/@mandir@/p'
15949case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15950*datarootdir*) ac_datarootdir_seen=yes;;
15951*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15953$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15954_ACEOF
5213506e
RW
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_datarootdir_hack='
15957 s&@datadir@&$datadir&g
15958 s&@docdir@&$docdir&g
15959 s&@infodir@&$infodir&g
15960 s&@localedir@&$localedir&g
15961 s&@mandir@&$mandir&g
15962 s&\\\${datarootdir}&$datarootdir&g' ;;
15963esac
15964_ACEOF
15965
15966# Neutralize VPATH when `$srcdir' = `.'.
15967# Shell code in configure.ac might set extrasub.
15968# FIXME: do we really want to maintain this feature?
15969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15971$extrasub
15972_ACEOF
5213506e 15973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15974:t
15975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15976s|@configure_input@|$ac_sed_conf_input|;t t
15977s&@top_builddir@&$ac_top_builddir_sub&;t t
15978s&@top_build_prefix@&$ac_top_build_prefix&;t t
15979s&@srcdir@&$ac_srcdir&;t t
15980s&@abs_srcdir@&$ac_abs_srcdir&;t t
15981s&@top_srcdir@&$ac_top_srcdir&;t t
15982s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15983s&@builddir@&$ac_builddir&;t t
15984s&@abs_builddir@&$ac_abs_builddir&;t t
15985s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15986s&@INSTALL@&$ac_INSTALL&;t t
15987$ac_datarootdir_hack
15988"
15989eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15990if $ac_cs_awk_getline; then
15991 $AWK -f "$tmp/subs.awk"
15992else
15993 $AWK -f "$tmp/subs.awk" | $SHELL
15994fi >$tmp/out \
15995 || as_fn_error "could not create $ac_file" "$LINENO" 5
15996
15997test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16001which seems to be undefined. Please make sure it is defined." >&5
16002$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003which seems to be undefined. Please make sure it is defined." >&2;}
16004
16005 rm -f "$tmp/stdin"
16006 case $ac_file in
16007 -) cat "$tmp/out" && rm -f "$tmp/out";;
16008 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16009 esac \
16010 || as_fn_error "could not create $ac_file" "$LINENO" 5
16011 ;;
11a67599 16012
11a67599 16013
79c06341 16014
5213506e
RW
16015 esac
16016
3e54529c
RW
16017
16018 case $ac_file$ac_mode in
16019 "Makefile":F) sed "$extrasub_build" Makefile |
16020 sed "$extrasub_host" |
16021 sed "$extrasub_target" > mf$$
16022 mv -f mf$$ Makefile ;;
16023
16024 esac
5213506e
RW
16025done # for ac_tag
16026
16027
16028as_fn_exit 0
1c710c3c 16029_ACEOF
1c710c3c
DJ
16030ac_clean_files=$ac_clean_files_save
16031
5213506e
RW
16032test $ac_write_fail = 0 ||
16033 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16034
1c710c3c
DJ
16035
16036# configure is writing to config.log, and then calls config.status.
16037# config.status does its own redirection, appending to config.log.
16038# Unfortunately, on DOS this fails, as config.log is still kept open
16039# by configure, so config.status won't be able to write to it; its
16040# output is simply discarded. So we exec the FD to /dev/null,
16041# effectively closing config.log, so it can be properly (re)opened and
16042# appended to by config.status. When coming back to configure, we
16043# need to make the FD available again.
16044if test "$no_create" != yes; then
16045 ac_cs_success=:
16046 ac_config_status_args=
16047 test "$silent" = yes &&
16048 ac_config_status_args="$ac_config_status_args --quiet"
16049 exec 5>/dev/null
16050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16051 exec 5>>config.log
16052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16053 # would make configure fail if this is the last instruction.
5213506e
RW
16054 $ac_cs_success || as_fn_exit $?
16055fi
16056if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16058$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16059fi
79c06341 16060