]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Build machinery cleanup.
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 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.
71ab34df 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b30fcfae 14
cd9a469c 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 :
b30fcfae 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b30fcfae 31fi
b30fcfae 32
cd9a469c 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 }
b30fcfae 79fi
80
81
cd9a469c 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
b30fcfae 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 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'\" &&
b181f265 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
cd9a469c 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
b30fcfae 184do
cd9a469c 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."
b30fcfae 228 else
cd9a469c 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."
b30fcfae 233 fi
cd9a469c 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
b30fcfae 263
cd9a469c 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
b30fcfae 375 as_expr=expr
376else
377 as_expr=false
378fi
379
cd9a469c 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 381 as_basename=basename
382else
383 as_basename=false
384fi
385
cd9a469c 386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
b30fcfae 391
cd9a469c 392as_me=`$as_basename -- "$0" ||
b30fcfae 393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
b30fcfae 410
5084f823 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
570af75a 417
b30fcfae 418
cd9a469c 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 |
b30fcfae 428 sed '
cd9a469c 429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b30fcfae 433 N
cd9a469c 434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b30fcfae 436 t loop
cd9a469c 437 s/-\n.*//
b30fcfae 438 ' >$as_me.lineno &&
cd9a469c 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; }
b30fcfae 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
cd9a469c 444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b30fcfae 446 # Exit status is that of the last command.
447 exit
448}
449
cd9a469c 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';;
b30fcfae 461esac
462
cd9a469c 463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b30fcfae 466else
cd9a469c 467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b30fcfae 469fi
cd9a469c 470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 472 as_ln_s='ln -s'
cd9a469c 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'
5084f823 483 fi
b30fcfae 484else
485 as_ln_s='cp -p'
486fi
cd9a469c 487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b30fcfae 489
490if mkdir -p . 2>/dev/null; then
cd9a469c 491 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
cd9a469c 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
a83ffacf 519
b30fcfae 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
cd9a469c 527exec 7<&0 </dev/null 6>&1
b30fcfae 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
b30fcfae 534#
535# Initializations.
536#
71ab34df 537ac_default_prefix=/usr/local
cd9a469c 538ac_clean_files=
b30fcfae 539ac_config_libobj_dir=.
cd9a469c 540LIBOBJS=
b30fcfae 541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
5084f823 545
b30fcfae 546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
cd9a469c 552PACKAGE_URL=
b30fcfae 553
554ac_unique_file="move-if-change"
cd9a469c 555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
2bd17377 559host_shared
cd9a469c 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
3f71364d 574READELF_FOR_TARGET
cd9a469c 575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
5ff5b630 583GOC_FOR_TARGET
cd9a469c 584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
3f71364d 589READELF
cd9a469c 590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
cd9a469c 610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
5ff5b630 616GOC_FOR_BUILD
cd9a469c 617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
1fda3360 626target_configdirs
cd9a469c 627configdirs
cd9a469c 628build_configdirs
cd9a469c 629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
372a3f1e 636target_configargs
637host_configargs
638build_configargs
719faf1c 639BUILD_CONFIG
ed9516f5 640LDFLAGS_FOR_TARGET
cd9a469c 641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
7bfefa9d 645extra_host_libiberty_configure_flags
944792ef 646stage1_languages
1015a063 647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
87e20041 649islinc
429cca51 650isllibs
cd9a469c 651poststage1_ldflags
d6dfe18a 652poststage1_libs
cd9a469c 653stage1_ldflags
13687c85 654stage1_libs
e4128452 655extra_isl_gmp_configure_flags
cd9a469c 656extra_mpc_mpfr_configure_flags
657extra_mpc_gmp_configure_flags
658extra_mpfr_configure_flags
659gmpinc
660gmplibs
661do_compare
662GNATMAKE
663GNATBIND
664ac_ct_CXX
665CXXFLAGS
666CXX
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
d7e52ac9 674EXTRA_CONFIGARGS_LIBJAVA
d3a7dd32 675extra_liboffloadmic_configure_flags
cd9a469c 676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
b181f265 680AWK
681SED
cd9a469c 682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
a3d93be3 749enable_as_accelerator_for
750enable_offload_targets
cd9a469c 751enable_gold
1e369e5f 752enable_ld
d9d975ae 753enable_libquadmath
754enable_libquadmath_support
cd9a469c 755enable_libada
756enable_libssp
a3ba808f 757enable_libstdcxx
d3a7dd32 758enable_liboffloadmic
d7e52ac9 759enable_static_libjava
6c59dfa4 760enable_bootstrap
cd9a469c 761with_mpc
762with_mpc_include
763with_mpc_lib
764with_mpfr_dir
765with_mpfr
766with_mpfr_include
767with_mpfr_lib
768with_gmp_dir
769with_gmp
770with_gmp_include
771with_gmp_lib
772with_host_libstdcxx
cd9a469c 773with_stage1_libs
13687c85 774with_stage1_ldflags
cd9a469c 775with_boot_libs
d6dfe18a 776with_boot_ldflags
87e20041 777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
7bfefa9d 781enable_lto
1015a063 782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
cd9a469c 784enable_stage1_languages
785enable_objc_gc
786with_build_sysroot
787with_debug_prefix_map
a2059f7a 788with_build_config
ee055341 789enable_vtable_verify
cd9a469c 790enable_serial_configure
791with_build_time_tools
792enable_maintainer_mode
793enable_stage1_checking
794enable_werror
2bd17377 795enable_host_shared
cd9a469c 796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CXX
806CXXFLAGS
807CCC
372a3f1e 808build_configargs
809host_configargs
810target_configargs
cd9a469c 811AR
812AS
813DLLTOOL
814LD
815LIPO
816NM
817RANLIB
818STRIP
819WINDRES
820WINDMC
821OBJCOPY
822OBJDUMP
3f71364d 823READELF
cd9a469c 824CC_FOR_TARGET
825CXX_FOR_TARGET
826GCC_FOR_TARGET
827GCJ_FOR_TARGET
828GFORTRAN_FOR_TARGET
5ff5b630 829GOC_FOR_TARGET
cd9a469c 830AR_FOR_TARGET
831AS_FOR_TARGET
832DLLTOOL_FOR_TARGET
833LD_FOR_TARGET
834LIPO_FOR_TARGET
835NM_FOR_TARGET
836OBJDUMP_FOR_TARGET
837RANLIB_FOR_TARGET
3f71364d 838READELF_FOR_TARGET
cd9a469c 839STRIP_FOR_TARGET
840WINDRES_FOR_TARGET
841WINDMC_FOR_TARGET'
842
71ab34df 843
844# Initialize some variables set by options.
b30fcfae 845ac_init_help=
846ac_init_version=false
cd9a469c 847ac_unrecognized_opts=
848ac_unrecognized_sep=
71ab34df 849# The variables have the same names as the options, with
850# dashes changed to underlines.
b30fcfae 851cache_file=/dev/null
71ab34df 852exec_prefix=NONE
71ab34df 853no_create=
71ab34df 854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
71ab34df 862verbose=
863x_includes=NONE
864x_libraries=NONE
b30fcfae 865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 871# (The list follows the same order as the GNU Coding Standards.)
71ab34df 872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
cd9a469c 875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
71ab34df 877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
71ab34df 880includedir='${prefix}/include'
881oldincludedir='/usr/include'
cd9a469c 882docdir='${datarootdir}/doc/${PACKAGE}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
a8298541 891
71ab34df 892ac_prev=
cd9a469c 893ac_dashdash=
71ab34df 894for ac_option
895do
71ab34df 896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
cd9a469c 898 eval $ac_prev=\$ac_option
71ab34df 899 ac_prev=
900 continue
901 fi
a8298541 902
cd9a469c 903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
71ab34df 907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
cd9a469c 910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
71ab34df 913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 917 bindir=$ac_optarg ;;
71ab34df 918
919 -build | --build | --buil | --bui | --bu)
b30fcfae 920 ac_prev=build_alias ;;
71ab34df 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 922 build_alias=$ac_optarg ;;
71ab34df 923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
71ab34df 933
cd9a469c 934 -datadir | --datadir | --datadi | --datad)
71ab34df 935 ac_prev=datadir ;;
cd9a469c 936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 937 datadir=$ac_optarg ;;
71ab34df 938
cd9a469c 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
71ab34df 946 -disable-* | --disable-*)
cd9a469c 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 948 # Reject names that are not valid shell variable names.
cd9a469c 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
71ab34df 971
972 -enable-* | --enable-*)
cd9a469c 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 974 # Reject names that are not valid shell variable names.
cd9a469c 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
5084f823 985 esac
cd9a469c 986 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
b30fcfae 995 exec_prefix=$ac_optarg ;;
71ab34df 996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
b30fcfae 1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
71ab34df 1007
1008 -host | --host | --hos | --ho)
b30fcfae 1009 ac_prev=host_alias ;;
71ab34df 1010 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1011 host_alias=$ac_optarg ;;
71ab34df 1012
cd9a469c 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
71ab34df 1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1024 includedir=$ac_optarg ;;
71ab34df 1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1029 infodir=$ac_optarg ;;
71ab34df 1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1034 libdir=$ac_optarg ;;
71ab34df 1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1041 libexecdir=$ac_optarg ;;
71ab34df 1042
cd9a469c 1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
71ab34df 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1049 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1053 localstatedir=$ac_optarg ;;
71ab34df 1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1058 mandir=$ac_optarg ;;
71ab34df 1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1065 | --no-cr | --no-c | -n)
71ab34df 1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1079 oldincludedir=$ac_optarg ;;
71ab34df 1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1084 prefix=$ac_optarg ;;
71ab34df 1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1091 program_prefix=$ac_optarg ;;
71ab34df 1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1098 program_suffix=$ac_optarg ;;
71ab34df 1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1115 program_transform_name=$ac_optarg ;;
71ab34df 1116
cd9a469c 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
71ab34df 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
b30fcfae 1135 sbindir=$ac_optarg ;;
71ab34df 1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
b30fcfae 1146 sharedstatedir=$ac_optarg ;;
71ab34df 1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
b30fcfae 1151 site=$ac_optarg ;;
71ab34df 1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1156 srcdir=$ac_optarg ;;
71ab34df 1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1163 sysconfdir=$ac_optarg ;;
71ab34df 1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1166 ac_prev=target_alias ;;
71ab34df 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1168 target_alias=$ac_optarg ;;
71ab34df 1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
b30fcfae 1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
71ab34df 1175
1176 -with-* | --with-*)
cd9a469c 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1178 # Reject names that are not valid shell variable names.
cd9a469c 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
5084f823 1189 esac
cd9a469c 1190 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1191
1192 -without-* | --without-*)
cd9a469c 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1194 # Reject names that are not valid shell variable names.
cd9a469c 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
71ab34df 1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1217 x_includes=$ac_optarg ;;
71ab34df 1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1224 x_libraries=$ac_optarg ;;
71ab34df 1225
cd9a469c 1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information."
71ab34df 1228 ;;
1229
b30fcfae 1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
cd9a469c 1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
b30fcfae 1238 export $ac_envvar ;;
1239
71ab34df 1240 *)
b30fcfae 1241 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b30fcfae 1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
71ab34df 1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
b30fcfae 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1253 as_fn_error "missing argument to $ac_option"
ae48753c 1254fi
ae48753c 1255
cd9a469c 1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1261 esac
cd9a469c 1262fi
5084f823 1263
cd9a469c 1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
5084f823 1269do
cd9a469c 1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
5084f823 1278 case $ac_val in
cd9a469c 1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1281 esac
cd9a469c 1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1283done
1284
b30fcfae 1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
a83ffacf 1291
b30fcfae 1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
cd9a469c 1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b30fcfae 1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301fi
1302
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
71ab34df 1307
71ab34df 1308
cd9a469c 1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1315
1316
71ab34df 1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
cd9a469c 1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
71ab34df 1344 srcdir=$ac_confdir
cd9a469c 1345 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
cd9a469c 1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
13d2f2b2 1369case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1372 ;;
1373esac
d2d2630b 1374ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375
cd9a469c 1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
b30fcfae 1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures this package to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
b30fcfae 1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1412 [$ac_default_prefix]
b30fcfae 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1414 [PREFIX]
b30fcfae 1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
cd9a469c 1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460
1461 cat <<\_ACEOF
1462
1463Optional Features:
cd9a469c 1464 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a3d93be3 1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
1e369e5f 1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
d9d975ae 1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
09c2d953 1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
a3ba808f 1481 --disable-libstdcxx do not build libstdc++-v3 directory
d3a7dd32 1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
d7e52ac9 1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
6c59dfa4 1486 --enable-bootstrap enable bootstrapping [yes if native build]
87e20041 1487 --disable-isl-version-check
1488 disable check for ISL version
7bfefa9d 1489 --enable-lto enable link time optimization support
1015a063 1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
8747a938 1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
ee055341 1501 --enable-vtable-verify Enable vtable verification feature
09c2d953 1502 --enable-serial-[{host,target,build}-]configure
8747a938 1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
b30fcfae 1512 --enable-werror enable -Werror in bootstrap stage2 and later
2bd17377 1513 --enable-host-shared build host code as shared libraries
b30fcfae 1514
1515Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
8747a938 1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
b30fcfae 1528 --with-mpfr-include=PATH
09c2d953 1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
09c2d953 1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
8747a938 1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
13687c85 1540 --with-stage1-libs=LIBS libraries for stage1
8747a938 1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
8747a938 1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
87e20041 1546 --with-isl=PATH Specify prefix directory for the installed ISL
8747a938 1547 package. Equivalent to
87e20041 1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
09c2d953 1552 --with-build-sysroot=SYSROOT
b30fcfae 1553 use sysroot as the system root during the build
5f1f2de5 1554 --with-debug-prefix-map='A=B C=D ...'
8747a938 1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
09c2d953 1558 --with-build-time-tools=PATH
b30fcfae 1559 use given path to find target tools during the build
b30fcfae 1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
cd9a469c 1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
eae5b2bc 1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
372a3f1e 1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
95a05732 1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
75d6a0a9 1586 WINDMC WINDMC for the host
95a05732 1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
3f71364d 1589 READELF READELF for the host
95a05732 1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
5ff5b630 1600 GOC_FOR_TARGET
1601 GOC for the target
95a05732 1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
3f71364d 1618 READELF_FOR_TARGET
1619 READELF for the target
95a05732 1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
75d6a0a9 1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
b30fcfae 1626
1627Use these variables to override the choices made by `configure' or to help
1628it to find libraries and programs with nonstandard names/locations.
1629
cd9a469c 1630Report bugs to the package provider.
b30fcfae 1631_ACEOF
cd9a469c 1632ac_status=$?
b30fcfae 1633fi
1634
1635if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
b30fcfae 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
b30fcfae 1641 ac_builddir=.
1642
cd9a469c 1643case "$ac_dir" in
1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645*)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653esac
1654ac_abs_top_builddir=$ac_pwd
1655ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656# for backward compatibility:
1657ac_top_builddir=$ac_top_build_prefix
b30fcfae 1658
1659case $srcdir in
cd9a469c 1660 .) # We are building in place.
b30fcfae 1661 ac_srcdir=.
cd9a469c 1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1665 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1672esac
cd9a469c 1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1683 else
cd9a469c 1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1687 done
1688fi
1689
cd9a469c 1690test -n "$ac_init_help" && exit $ac_status
b30fcfae 1691if $ac_init_version; then
1692 cat <<\_ACEOF
cd9a469c 1693configure
1694generated by GNU Autoconf 2.64
b30fcfae 1695
cd9a469c 1696Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 1697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
1699_ACEOF
cd9a469c 1700 exit
a83ffacf 1701fi
cd9a469c 1702
1703## ------------------------ ##
1704## Autoconf initialization. ##
1705## ------------------------ ##
1706
1707# ac_fn_c_try_compile LINENO
1708# --------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_c_try_compile
1744
1745# ac_fn_cxx_try_compile LINENO
1746# ----------------------------
1747# Try to compile conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_cxx_try_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781} # ac_fn_cxx_try_compile
1782
13687c85 1783# ac_fn_cxx_try_link LINENO
1784# -------------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_cxx_try_link ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1826
1827} # ac_fn_cxx_try_link
1828
cd9a469c 1829# ac_fn_c_try_link LINENO
1830# -----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873} # ac_fn_c_try_link
1874cat >config.log <<_ACEOF
b30fcfae 1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
1878It was created by $as_me, which was
cd9a469c 1879generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 1880
1881 $ $0 $@
1882
1883_ACEOF
cd9a469c 1884exec 5>>config.log
b30fcfae 1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
cd9a469c 1915 $as_echo "PATH: $as_dir"
1916 done
1917IFS=$as_save_IFS
b30fcfae 1918
1919} >&5
1920
1921cat >&5 <<_ACEOF
1922
1923
1924## ----------- ##
1925## Core tests. ##
1926## ----------- ##
1927
1928_ACEOF
1929
1930
1931# Keep a trace of the command line.
1932# Strip out --no-create and --no-recursion so they do not pile up.
1933# Strip out --silent because we don't want to record it for future runs.
1934# Also quote any args containing shell meta-characters.
1935# Make two passes to allow for proper duplicate-argument suppression.
1936ac_configure_args=
1937ac_configure_args0=
1938ac_configure_args1=
b30fcfae 1939ac_must_keep_next=false
1940for ac_pass in 1 2
1941do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
cd9a469c 1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1951 esac
1952 case $ac_pass in
cd9a469c 1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 1954 2)
cd9a469c 1955 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
cd9a469c 1971 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 1972 ;;
1973 esac
1974 done
1975done
cd9a469c 1976{ ac_configure_args0=; unset ac_configure_args0;}
1977{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 1978
1979# When interrupted or exit'd, cleanup temporary files, and complete
1980# config.log. We remove comments because anyway the quotes in there
1981# would cause problems or look ugly.
cd9a469c 1982# WARNING: Use '\'' to represent an apostrophe within the trap.
1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 1984trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 cat <<\_ASBOX
1990## ---------------- ##
1991## Cache variables. ##
1992## ---------------- ##
1993_ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
cd9a469c 1996(
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
b30fcfae 2012 (set) 2>&1 |
cd9a469c 2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
b30fcfae 2015 sed -n \
cd9a469c 2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
b30fcfae 2019 *)
cd9a469c 2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 2021 ;;
cd9a469c 2022 esac |
2023 sort
2024)
b30fcfae 2025 echo
2026
2027 cat <<\_ASBOX
2028## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##
2031_ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
cd9a469c 2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
cd9a469c 2045## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##
b30fcfae 2048_ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
cd9a469c 2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##
2066_ASBOX
2067 echo
cd9a469c 2068 cat confdefs.h
b30fcfae 2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
cd9a469c 2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
b30fcfae 2074 } >&5
cd9a469c 2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2077 exit $exit_status
cd9a469c 2078' 0
b30fcfae 2079for ac_signal in 1 2 13 15; do
cd9a469c 2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
b30fcfae 2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
b30fcfae 2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
a83ffacf 2102
b30fcfae 2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
b30fcfae 2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
cd9a469c 2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
b30fcfae 2115
2116# Let the site file select an alternate cache file if it wants to.
cd9a469c 2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2128fi
cd9a469c 2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131 test "x$ac_site_file" = xNONE && continue
71ab34df 2132 if test -r "$ac_site_file"; then
cd9a469c 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2135 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 2136 . "$ac_site_file"
2137 fi
2138done
2139
2140if test -r "$cache_file"; then
b30fcfae 2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
cd9a469c 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2146 case $cache_file in
cd9a469c 2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
b30fcfae 2149 esac
2150 fi
71ab34df 2151else
cd9a469c 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2154 >$cache_file
2155fi
2156
2157# Check that the precious variables saved in the cache have kept the same
2158# value.
2159ac_cache_corrupted=false
cd9a469c 2160for ac_var in $ac_precious_vars; do
b30fcfae 2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2165 case $ac_old_set,$ac_new_set in
2166 set,)
cd9a469c 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2169 ac_cache_corrupted=: ;;
2170 ,set)
cd9a469c 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2173 ac_cache_corrupted=: ;;
2174 ,);;
2175 *)
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
cd9a469c 2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2204 esac
2205 fi
2206done
2207if $ac_cache_corrupted; then
cd9a469c 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2213fi
cd9a469c 2214## -------------------- ##
2215## Main body of script. ##
2216## -------------------- ##
71ab34df 2217
5084f823 2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
b30fcfae 2224
2225
2226
b30fcfae 2227
2228
cd2f3773 2229
b30fcfae 2230
4e8a889d 2231
2232progname=$0
2233# if PWD already has a value, it is probably wrong.
2234if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2235
2236# Export original configure arguments for use by sub-configures.
2237# Quote arguments with shell meta charatcers.
2238TOPLEVEL_CONFIGURE_ARGUMENTS=
2239set -- "$progname" "$@"
2240for ac_arg
2241do
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251done
2252if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2254fi
2255# Remove the initial space we just introduced and, as these will be
2256# expanded by make, quote '$'.
2257TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2258
b30fcfae 2259
2260# Find the build, host, and target systems.
71ab34df 2261ac_aux_dir=
cd9a469c 2262for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2268 fi
2269 done
71ab34df 2270done
2271if test -z "$ac_aux_dir"; then
cd9a469c 2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2273fi
cd9a469c 2274
2275# These three variables are undocumented and unsupported,
2276# and are intended to be withdrawn in a future Autoconf release.
2277# They can cause serious problems if a builder's source tree is in a directory
2278# whose full name contains unusual characters.
2279ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
71ab34df 2283
b30fcfae 2284# Make sure we can run config.sub.
cd9a469c 2285$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2287
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289$as_echo_n "checking build system type... " >&6; }
2290if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292else
2293 ac_build_alias=$build_alias
2294test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2300
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303$as_echo "$ac_cv_build" >&6; }
2304case $ac_cv_build in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307esac
b30fcfae 2308build=$ac_cv_build
cd9a469c 2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_build
2311shift
2312build_cpu=$1
2313build_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317build_os=$*
2318IFS=$ac_save_IFS
2319case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2320
71ab34df 2321
b30fcfae 2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
ae48753c 2325esac
2326
2327
ae48753c 2328
b30fcfae 2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
ae48753c 2332esac
2333
ae48753c 2334
b30fcfae 2335
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
ae48753c 2339esac
2340
ae48753c 2341
b30fcfae 2342
2343
2344test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
b30fcfae 2347 program_transform_name=s,y,y,
ae48753c 2348
cd9a469c 2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350$as_echo_n "checking host system type... " >&6; }
2351if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
ae48753c 2353else
cd9a469c 2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2359fi
b30fcfae 2360
ae48753c 2361fi
cd9a469c 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363$as_echo "$ac_cv_host" >&6; }
2364case $ac_cv_host in
2365*-*-*) ;;
2366*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367esac
b30fcfae 2368host=$ac_cv_host
cd9a469c 2369ac_save_IFS=$IFS; IFS='-'
2370set x $ac_cv_host
2371shift
2372host_cpu=$1
2373host_vendor=$2
2374shift; shift
2375# Remember, the first character of IFS is used to create $*,
2376# except with old shells:
2377host_os=$*
2378IFS=$ac_save_IFS
2379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2380
2381
cd9a469c 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383$as_echo_n "checking target system type... " >&6; }
2384if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
b30fcfae 2386else
cd9a469c 2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2392fi
b30fcfae 2393
2394fi
cd9a469c 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396$as_echo "$ac_cv_target" >&6; }
2397case $ac_cv_target in
2398*-*-*) ;;
2399*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400esac
b30fcfae 2401target=$ac_cv_target
cd9a469c 2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_target
2404shift
2405target_cpu=$1
2406target_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410target_os=$*
2411IFS=$ac_save_IFS
2412case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2413
2414
2415# The aliases save the names the user supplied, while $host etc.
2416# will get canonicalized.
2417test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
cd9a469c 2421
71ab34df 2422test "$program_prefix" != NONE &&
cd9a469c 2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2424# Use a double $ so make ignores it.
2425test "$program_suffix" != NONE &&
cd9a469c 2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427# Double any \ or $.
b30fcfae 2428# By default was `s,x,x', remove it if useless.
cd9a469c 2429ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2431
71ab34df 2432
2433
450e6c84 2434# Get 'install' or 'install-sh' and its variants.
2435# Find a good install program. We prefer a C program (faster),
2436# so one script is as good as another. But avoid the broken or
2437# incompatible versions:
2438# SysV /etc/install, /usr/sbin/install
2439# SunOS /usr/etc/install
2440# IRIX /sbin/install
2441# AIX /bin/install
b30fcfae 2442# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2446# OS/2's system install, which has a completely different semantic
450e6c84 2447# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2448# Reject install programs that cannot install multiple files.
cd9a469c 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2451if test -z "$INSTALL"; then
cd9a469c 2452if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
b30fcfae 2454else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
cd9a469c 2460 # Account for people who put trailing slashes in PATH elements.
2461case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
b30fcfae 2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2465 /usr/ucb/* ) ;;
2466 *)
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
450e6c84 2473 if test $ac_prog = install &&
b30fcfae 2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2475 # AIX install. It has an incompatible calling convention.
2476 :
b30fcfae 2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2480 :
450e6c84 2481 else
82eaf560 2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2493 fi
450e6c84 2494 fi
2495 fi
2496 done
b30fcfae 2497 done
2498 ;;
2499esac
cd9a469c 2500
2501 done
2502IFS=$as_save_IFS
b30fcfae 2503
82eaf560 2504rm -rf conftest.one conftest.two conftest.dir
450e6c84 2505
2506fi
2507 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2508 INSTALL=$ac_cv_path_install
450e6c84 2509 else
82eaf560 2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
450e6c84 2512 # break other packages using the cache if that directory is
82eaf560 2513 # removed, or if the value is a relative name.
b30fcfae 2514 INSTALL=$ac_install_sh
450e6c84 2515 fi
2516fi
cd9a469c 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518$as_echo "$INSTALL" >&6; }
450e6c84 2519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
b30fcfae 2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
cd9a469c 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529$as_echo_n "checking whether ln works... " >&6; }
2530if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
599a3eac 2532else
2533 rm -f conftestdata_t
2534echo >conftestdata_f
2535if ln conftestdata_f conftestdata_t 2>/dev/null
2536then
2537 acx_cv_prog_LN=ln
2538else
2539 acx_cv_prog_LN=no
2540fi
2541rm -f conftestdata_f conftestdata_t
2542
2543fi
2544if test $acx_cv_prog_LN = no; then
2545 LN="cp"
cd9a469c 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547$as_echo "no, using $LN" >&6; }
599a3eac 2548else
2549 LN="$acx_cv_prog_LN"
cd9a469c 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551$as_echo "yes" >&6; }
599a3eac 2552fi
2553
cd9a469c 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2556LN_S=$as_ln_s
2557if test "$LN_S" = "ln -s"; then
cd9a469c 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559$as_echo "yes" >&6; }
a4af6a58 2560else
cd9a469c 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562$as_echo "no, using $LN_S" >&6; }
5965d276 2563fi
2564
b181f265 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588# Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590case `"$ac_path_SED" --version 2>&1` in
2591*GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2593*)
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2597 do
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2609 fi
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614esac
2615
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2623 fi
2624else
2625 ac_cv_path_SED=$SED
2626fi
2627
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630$as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2633
2634for ac_prog in gawk mawk nawk awk
2635do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637set dummy $ac_prog; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657done
2658 done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663AWK=$ac_cv_prog_AWK
2664if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666$as_echo "$AWK" >&6; }
2667else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673 test -n "$AWK" && break
2674done
2675
450e6c84 2676
e8eddfdd 2677srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2678
2679# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680# a relative path.
2681if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2683fi
2684
71ab34df 2685# Set srcdir to "." if that's what it is.
2686# This is important for multilib support.
2687pwd=`${PWDCMD-pwd}`
71ab34df 2688if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
a8298541 2690fi
2691
71ab34df 2692topsrcdir=$srcpwd
ed37269d 2693
71ab34df 2694extra_host_args=
14ac9144 2695
71ab34df 2696### To add a new directory to the tree, first choose whether it is a target
2697### or a host dependent tool. Then put it into the appropriate list
2698### (library or tools, host or target), doing a dependency sort.
a8298541 2699
b30fcfae 2700# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2701# configdirs, or target_configdirs; see the serialization section below.
a8298541 2702
b30fcfae 2703# Dependency sorting is only needed when *configuration* must be done in
2704# a particular order. In all cases a dependency should be specified in
71ab34df 2705# the Makefile, whether or not it's implicitly specified here.
a8298541 2706
71ab34df 2707# Double entries in build_configdirs, configdirs, or target_configdirs may
2708# cause circular dependencies and break everything horribly.
a8298541 2709
2f8725b0 2710# these library is used by various programs built for the build
2711# environment
2712#
9245d2c5 2713build_libs="build-libiberty build-libcpp"
2f8725b0 2714
2715# these tools are built for the build environment
4fc99708 2716build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2717
71ab34df 2718# these libraries are used by various programs built for the host environment
429cca51 2719#f
572cf1f7 2720host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
71ab34df 2721
71ab34df 2722# these tools are built for the host environment
2723# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724# know that we are building the simulator.
2725# binutils, gas and ld appear in that order because it makes sense to run
2726# "make check" in that particular order.
af7c5662 2727# If --enable-gold is used, "gold" may replace "ld".
ab103e33 2728host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
71ab34df 2729
2730# libgcj represents the runtime libraries only used by gcj.
2731libgcj="target-libffi \
71ab34df 2732 target-zlib \
71ab34df 2733 target-libjava"
2734
2735# these libraries are built for the target environment, and are built after
2736# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2737# Note that libiberty is not a target library.
27bfe7b7 2738target_libraries="target-libgcc \
ecd3459e 2739 target-libbacktrace \
71ab34df 2740 target-libgloss \
2741 target-newlib \
a0191bfe 2742 target-libgomp \
4710dd51 2743 target-libcilkrts \
d3a7dd32 2744 target-liboffloadmic \
6db1d2ca 2745 target-libatomic \
4c0315d0 2746 target-libitm \
54d7d5f2 2747 target-libstdc++-v3 \
549e2197 2748 target-libsanitizer \
b710ec85 2749 target-libvtv \
0d55f4d0 2750 target-libssp \
87969c8c 2751 target-libquadmath \
4ee9c684 2752 target-libgfortran \
dd6d3a67 2753 target-boehm-gc \
cdfc500e 2754 ${libgcj} \
93341878 2755 target-libobjc \
5ff5b630 2756 target-libada \
2757 target-libgo"
71ab34df 2758
328637e8 2759# these tools are built using the target libraries, and are intended to
2760# run only in the target environment
71ab34df 2761#
328637e8 2762# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2763# list belongs in this list.
71ab34df 2764#
4fc99708 2765target_tools="target-rda"
a8298541 2766
71ab34df 2767################################################################################
a8298541 2768
71ab34df 2769## All tools belong in one of the four categories, and are assigned above
2770## We assign ${configdirs} this way to remove all embedded newlines. This
2771## is important because configure will choke if they ever get through.
2772## ${configdirs} is directories we build using the host tools.
2773## ${target_configdirs} is directories we build using the target tools.
71ab34df 2774configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2775target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2776build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2777
d2d2630b 2778
2779
71ab34df 2780################################################################################
a8298541 2781
71ab34df 2782srcname="gnu development package"
a8298541 2783
71ab34df 2784# This gets set non-empty for some net releases of packages.
2785appdirs=""
a8298541 2786
71ab34df 2787# Define is_cross_compiler to save on calls to 'test'.
2788is_cross_compiler=
2789if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
a8298541 2791else
71ab34df 2792 is_cross_compiler=yes
b30fcfae 2793fi
a8298541 2794
2f61b8ca 2795# Find the build and target subdir names.
6f4f34a7 2796
d3e7b04c 2797# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798# have matching libraries, they should use host libraries: Makefile.tpl
2799# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800# However, they still use the build modules, because the corresponding
2801# host modules (e.g. bison) are only built for the host when bootstrap
2802# finishes. So:
2803# - build_subdir is where we find build modules, and never changes.
2804# - build_libsubdir is where we find build libraries, and can be overridden.
2805
2806# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2807build_subdir="build-${build_noncanonical}"
b30fcfae 2808
cd9a469c 2809# Check whether --with-build-libsubdir was given.
2810if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2812else
2813 build_libsubdir="$build_subdir"
cd9a469c 2814fi
2815
c1eb9e31 2816# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820else
2821 host_subdir=.
2822fi
6f4f34a7 2823# No prefix.
2824target_subdir=${target_noncanonical}
b30fcfae 2825
04a2e841 2826# Be sure to cover against remnants of an in-tree build.
2827if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829Use a pristine source tree when building in a separate tree" "$LINENO" 5
2830fi
a8298541 2831
71ab34df 2832# Skipdirs are removed silently.
2833skipdirs=
2834# Noconfigdirs are removed loudly.
2835noconfigdirs=""
a8298541 2836
71ab34df 2837use_gnu_ld=
2838# Make sure we don't let GNU ld be added if we didn't want it.
2839if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
3d47fcf5 2841 noconfigdirs="$noconfigdirs ld gold"
a8298541 2842fi
2843
71ab34df 2844use_gnu_as=
2845# Make sure we don't let GNU as be added if we didn't want it.
2846if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
a8298541 2849fi
2850
7bfefa9d 2851use_included_zlib=
2852# Make sure we don't let ZLIB be added if we didn't want it.
2853if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2856fi
2857
b30fcfae 2858# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2859# it's not even worth trying to configure, much less build, that tool.
a8298541 2860
71ab34df 2861case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2863 no)
f843f075 2864 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2865 # We won't be able to build gdbtk without X.
b30fcfae 2866 enable_gdbtk=no
71ab34df 2867 ;;
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869esac
a8298541 2870
6c9785b4 2871# Some are only suitable for cross toolchains.
71ab34df 2872# Remove these if host=target.
2873cross_only="target-libgloss target-newlib target-opcodes"
2874
2875case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2877esac
a8298541 2878
71ab34df 2879# If both --with-headers and --with-libs are specified, default to
2880# --without-newlib.
e8eddfdd 2881if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2885 fi
a8298541 2886fi
2887
71ab34df 2888# Recognize --with-newlib/--without-newlib.
2889case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892esac
a8298541 2893
a3d93be3 2894# Check whether --enable-as-accelerator-for was given.
2895if test "${enable_as_accelerator_for+set}" = set; then :
67cedda8 2896 enableval=$enable_as_accelerator_for;
a3d93be3 2897fi
2898
2899
2900# Check whether --enable-offload-targets was given.
2901if test "${enable_offload_targets+set}" = set; then :
2902 enableval=$enable_offload_targets;
2903 if test x"$enable_offload_targets" = x; then
2904 as_fn_error "no offload targets specified" "$LINENO" 5
2905 fi
2906
2907else
2908 enable_offload_targets=
2909fi
2910
2911
1e369e5f 2912# Handle --enable-gold, --enable-ld.
2913# --disable-gold [--enable-ld]
2914# Build only ld. Default option.
85516948 2915# --enable-gold [--enable-ld]
2916# Build both gold and ld. Install gold as "ld.gold", install ld
2917# as "ld.bfd" and "ld".
2918# --enable-gold=default [--enable-ld]
1e369e5f 2919# Build both gold and ld. Install gold as "ld.gold" and "ld",
2920# install ld as "ld.bfd".
2921# --enable-gold[=default] --disable-ld
2922# Build only gold, which is then installed as both "ld.gold" and "ld".
2923# --enable-gold --enable-ld=default
85516948 2924# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2925# and ld.bfd).
1e369e5f 2926# In other words, ld is default
2927# --enable-gold=default --enable-ld=default
2928# Error.
2929
2930default_ld=
cd9a469c 2931# Check whether --enable-gold was given.
2932if test "${enable_gold+set}" = set; then :
2933 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 2934else
2935 ENABLE_GOLD=no
cd9a469c 2936fi
2937
1e369e5f 2938case "${ENABLE_GOLD}" in
2939 yes|default)
af7c5662 2940 # Check for ELF target.
2941 is_elf=no
2942 case "${target}" in
2943 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
e4c33dd2 2944 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 2945 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
9d36d513 2946 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
af7c5662 2947 case "${target}" in
2948 *-*-linux*aout* | *-*-linux*oldld*)
2949 ;;
2950 *)
2951 is_elf=yes
2952 ;;
2953 esac
2954 esac
2955
2956 if test "$is_elf" = "yes"; then
2957 # Check for target supported by gold.
3d47fcf5 2958 case "${target}" in
58f62c51 2959 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2960 | aarch64*-*-* | tilegx*-*-*)
1e369e5f 2961 configdirs="$configdirs gold"
2962 if test x${ENABLE_GOLD} = xdefault; then
2963 default_ld=gold
2964 fi
af7c5662 2965 ENABLE_GOLD=yes
3d47fcf5 2966 ;;
2967 esac
af7c5662 2968 fi
2969 ;;
2970 no)
2971 ;;
2972 *)
2973 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2974 ;;
1e369e5f 2975esac
2976
2977# Check whether --enable-ld was given.
2978if test "${enable_ld+set}" = set; then :
2979 enableval=$enable_ld; ENABLE_LD=$enableval
2980else
2981 ENABLE_LD=yes
2982fi
2983
2984
2985case "${ENABLE_LD}" in
2986 default)
85516948 2987 if test x${default_ld} != x; then
1e369e5f 2988 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2989 fi
2990 ;;
2991 yes)
2992 ;;
2993 no)
2994 if test x${ENABLE_GOLD} != xyes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2996$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2997 fi
2998 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2999 ;;
3000 *)
3001 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3002 ;;
3003esac
3d47fcf5 3004
71ab34df 3005# Configure extra directories which are host specific
a8298541 3006
71ab34df 3007case "${host}" in
3008 *-cygwin*)
3009 configdirs="$configdirs libtermcap" ;;
3010esac
a8298541 3011
ff7dcf6a 3012# A target can indicate whether a language isn't supported for some reason.
3013# Only spaces may be used in this macro; not newlines or tabs.
3014unsupported_languages=
3015
b30fcfae 3016# Remove more programs from consideration, based on the host or
71ab34df 3017# target this usually means that a port of the program doesn't
3018# exist yet.
c7879c37 3019
71ab34df 3020case "${host}" in
b2240ff6 3021 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 3022 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 3023 ;;
71ab34df 3024esac
c7879c37 3025
4ee9c684 3026
d9d975ae 3027# Check whether --enable-libquadmath was given.
3028if test "${enable_libquadmath+set}" = set; then :
3029 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3030else
3031 ENABLE_LIBQUADMATH=yes
3032fi
3033
3034if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3035 noconfigdirs="$noconfigdirs target-libquadmath"
3036fi
3037
3038
3039# Check whether --enable-libquadmath-support was given.
3040if test "${enable_libquadmath_support+set}" = set; then :
3041 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3042else
3043 ENABLE_LIBQUADMATH_SUPPORT=yes
3044fi
3045
3046enable_libquadmath_support=
3047if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3048 enable_libquadmath_support=no
3049fi
3050
3051
cd9a469c 3052# Check whether --enable-libada was given.
3053if test "${enable_libada+set}" = set; then :
3054 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 3055else
3056 ENABLE_LIBADA=yes
cd9a469c 3057fi
3058
93341878 3059if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 3060 noconfigdirs="$noconfigdirs gnattools"
93341878 3061fi
3062
cd9a469c 3063# Check whether --enable-libssp was given.
3064if test "${enable_libssp+set}" = set; then :
3065 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 3066else
3067 ENABLE_LIBSSP=yes
cd9a469c 3068fi
3069
07da5214 3070
a3ba808f 3071# Check whether --enable-libstdcxx was given.
3072if test "${enable_libstdcxx+set}" = set; then :
3073 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3074else
3075 ENABLE_LIBSTDCXX=default
3076fi
3077
3078if test "${ENABLE_LIBSTDCXX}" = "no" ; then
df148e44 3079 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a3ba808f 3080fi
3081
d3a7dd32 3082# If this is accelerator compiler and its target is intelmic we enable
3083# target liboffloadmic by default. If this is compiler with offloading
3084# for intelmic we enable host liboffloadmic by default. Otherwise
3085# liboffloadmic is disabled by default.
3086# Check whether --enable-liboffloadmic was given.
3087if test "${enable_liboffloadmic+set}" = set; then :
3088 enableval=$enable_liboffloadmic; case "$enableval" in
3089 no | host | target)
3090 enable_liboffloadmic=$enableval ;;
3091 *)
3092 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3093esac
3094else
67cedda8 3095 if test x"$enable_as_accelerator_for" != x; then
d3a7dd32 3096 case "${target}" in
3097 *-intelmic-* | *-intelmicemul-*)
3098 enable_liboffloadmic=target
3099 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3100 ;;
3101 *)
3102 enable_liboffloadmic=no
3103 ;;
3104 esac
3105else
3106 case "${enable_offload_targets}" in
3107 *-intelmic-* | *-intelmicemul-*)
3108 enable_liboffloadmic=host
3109 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3110 ;;
3111 *)
3112 enable_liboffloadmic=no
3113 ;;
3114 esac
3115fi
3116fi
3117
3118
3119
71ab34df 3120# Save it here so that, even in case of --enable-libgcj, if the Java
3121# front-end isn't enabled, we still get libgcj disabled.
3122libgcj_saved=$libgcj
3123case $enable_libgcj in
3124yes)
3125 # If we reset it here, it won't get added to noconfigdirs in the
3126 # target-specific build rules, so it will be forcibly enabled
3127 # (unless the Java language itself isn't enabled).
3128 libgcj=
3129 ;;
3130no)
3131 # Make sure we get it printed in the list of not supported target libs.
604a285a 3132 # Don't disable libffi, though, other languages use it.
3133 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
8593ce89 3134 # Clear libgcj_saved so that even if java is enabled libffi won't be
3135 # built.
3136 libgcj_saved=
71ab34df 3137 ;;
3138esac
c7879c37 3139
d7e52ac9 3140# Check whether --enable-static-libjava was given.
3141if test "${enable_static_libjava+set}" = set; then :
3142 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3143else
3144 ENABLE_STATIC_LIBJAVA=no
3145fi
3146
3147enable_static_libjava=
3148if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3149 enable_static_libjava=yes
3150fi
3151
3152if test x$enable_static_libjava != xyes ; then
3153 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3154fi
3155
4ee9c684 3156
50996fe5 3157# Disable libgomp on non POSIX hosted systems.
3158if test x$enable_libgomp = x ; then
1e8e9920 3159 # Enable libgomp by default on hosted POSIX systems.
3160 case "${target}" in
3bef4012 3161 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3162 ;;
e3a1fe08 3163 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3164 ;;
5641963c 3165 *-*-solaris2* | *-*-hpux11*)
1e8e9920 3166 ;;
634efbee 3167 *-*-darwin* | *-*-aix*)
1e8e9920 3168 ;;
3169 *)
3170 noconfigdirs="$noconfigdirs target-libgomp"
3171 ;;
3172 esac
50996fe5 3173fi
1e8e9920 3174
6db1d2ca 3175# Disable libatomic on unsupported systems.
3176if test -d ${srcdir}/libatomic; then
3177 if test x$enable_libatomic = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3179$as_echo_n "checking for libatomic support... " >&6; }
3180 if (srcdir=${srcdir}/libatomic; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libatomic"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190 fi
3191 fi
3192fi
3193
4710dd51 3194# Disable libcilkrts on unsupported systems.
3195if test -d ${srcdir}/libcilkrts; then
3196 if test x$enable_libcilkrts = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3198$as_echo_n "checking for libcilkrts support... " >&6; }
3199 if (srcdir=${srcdir}/libcilkrts; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libcilkrts"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 fi
3210 fi
3211fi
3212
d3a7dd32 3213# Disable liboffloadmic on unsupported systems.
3214if test -d ${srcdir}/liboffloadmic; then
3215 if test x$enable_liboffloadmic != xno; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3217$as_echo_n "checking for liboffloadmic support... " >&6; }
3218 if (srcdir=${srcdir}/liboffloadmic; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-liboffloadmic"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
3228 fi
3229 fi
3230fi
3231
42b15c81 3232# Disable libitm on unsupported systems.
3233if test -d ${srcdir}/libitm; then
3234 if test x$enable_libitm = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3236$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3237 if (srcdir=${srcdir}/libitm; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3242$as_echo "no" >&6; }
42b15c81 3243 noconfigdirs="$noconfigdirs target-libitm"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3246$as_echo "yes" >&6; }
42b15c81 3247 fi
3248 fi
4c0315d0 3249fi
3250
492e75a7 3251# Disable libsanitizer on unsupported systems.
3252if test -d ${srcdir}/libsanitizer; then
3253 if test x$enable_libsanitizer = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3255$as_echo_n "checking for libsanitizer support... " >&6; }
3256 if (srcdir=${srcdir}/libsanitizer; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libsanitizer"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265$as_echo "yes" >&6; }
3266 fi
3267 fi
3268fi
3269
b710ec85 3270# Disable libvtv on unsupported systems.
3271if test -d ${srcdir}/libvtv; then
3272 if test x$enable_libvtv = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3274$as_echo_n "checking for libvtv support... " >&6; }
3275 if (srcdir=${srcdir}/libvtv; \
3276 . ${srcdir}/configure.tgt; \
6d0992e1 3277 test "$VTV_SUPPORTED" != "yes")
b710ec85 3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libvtv"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284$as_echo "yes" >&6; }
3285 fi
3286 fi
3287fi
3288
62f0972f 3289# Disable libquadmath for some systems.
3290case "${target}" in
c36ee471 3291 avr-*-*)
3292 noconfigdirs="$noconfigdirs target-libquadmath"
3293 ;;
62f0972f 3294 # libquadmath is unused on AIX and libquadmath build process use of
3295 # LD_LIBRARY_PATH can break AIX bootstrap.
3296 powerpc-*-aix* | rs6000-*-aix*)
3297 noconfigdirs="$noconfigdirs target-libquadmath"
3298 ;;
3299esac
3300
d5831552 3301# Disable libssp for some systems.
3302case "${target}" in
3303 avr-*-*)
76c19016 3304 # No hosted I/O support.
d5831552 3305 noconfigdirs="$noconfigdirs target-libssp"
3306 ;;
3307 powerpc-*-aix* | rs6000-*-aix*)
3308 noconfigdirs="$noconfigdirs target-libssp"
78e515f7 3309 ;;
3310 rl78-*-*)
9d5fd7d0 3311 # libssp uses a misaligned load to trigger a fault, but the RL78
3312 # doesn't fault for those - instead, it gives a build-time error
3313 # for explicit misaligned loads.
78e515f7 3314 noconfigdirs="$noconfigdirs target-libssp"
d5831552 3315 ;;
d5831552 3316esac
3317
d5831552 3318# Disable libstdc++-v3 for some systems.
a3ba808f 3319# Allow user to override this if they pass --enable-libstdc++-v3
3320if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3321 case "${target}" in
3322 *-*-vxworks*)
3323 # VxWorks uses the Dinkumware C++ library.
3324 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3325 ;;
3326 arm*-wince-pe*)
3327 # the C++ libraries don't build on top of CE's C libraries
3328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3329 ;;
3330 avr-*-*)
3331 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332 ;;
3333 esac
3334fi
d5831552 3335
3336# Disable Fortran for some systems.
3337case "${target}" in
3338 mmix-*-*)
3339 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3340 unsupported_languages="$unsupported_languages fortran"
3341 ;;
3342esac
3343
91b5b6ec 3344# Disable Java if libffi is not supported.
f24be480 3345case "${target}" in
45e22a2e 3346 aarch64-*-*)
3347 ;;
91b5b6ec 3348 alpha*-*-*)
3349 ;;
3350 arm*-*-*)
3351 ;;
3352 cris-*-*)
3353 ;;
3354 frv-*-*)
3355 ;;
3356 hppa*-*-linux*)
3357 ;;
3358 hppa*-*-hpux*)
3359 ;;
3360 i?86-*-*)
3361 ;;
3362 ia64*-*-*)
3363 ;;
3364 m32r*-*-*)
3365 ;;
3366 m68k-*-*)
3367 ;;
5641963c 3368 mips*-*-rtems*)
91b5b6ec 3369 ;;
3370 mips*-*-linux*)
3371 ;;
3372 powerpc*-*-linux*)
3373 ;;
3374 powerpc-*-darwin*)
3375 ;;
3376 powerpc-*-aix* | rs6000-*-aix*)
3377 ;;
3378 powerpc-*-freebsd*)
3379 ;;
3380 powerpc64-*-freebsd*)
3381 ;;
3382 powerpc*-*-rtems*)
f24be480 3383 ;;
91b5b6ec 3384 s390-*-* | s390x-*-*)
3385 ;;
3386 sh-*-* | sh[34]*-*-*)
3387 ;;
3388 sh64-*-* | sh5*-*-*)
3389 ;;
3390 sparc*-*-*)
3391 ;;
3392 x86_64-*-*)
3393 ;;
3394 *-*-*)
3395 unsupported_languages="$unsupported_languages java"
3396 ;;
3397esac
3398
3399# Disable Java, libgcj or related libraries for some systems.
3400case "${target}" in
f24be480 3401 powerpc-*-darwin*)
3402 ;;
3403 i[3456789]86-*-darwin*)
3404 ;;
3405 x86_64-*-darwin[912]*)
3406 ;;
3407 *-*-darwin*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3409 ;;
f24be480 3410 *-*-netware*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3412 ;;
3413 *-*-rtems*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 ;;
3416 *-*-tpf*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
3419 *-*-uclinux*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
3422 *-*-vxworks*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 ;;
f24be480 3425 alpha*-*-*vms*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3427 ;;
91b5b6ec 3428 arm-wince-pe)
f24be480 3429 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ;;
f24be480 3431 arm*-*-symbianelf*)
3432 noconfigdirs="$noconfigdirs ${libgcj}"
3433 ;;
f24be480 3434 bfin-*-*)
f24be480 3435 noconfigdirs="$noconfigdirs target-boehm-gc"
3436 ;;
f24be480 3437 cris-*-* | crisv32-*-*)
3438 unsupported_languages="$unsupported_languages java"
3439 case "${target}" in
3440 *-*-linux*)
3441 ;;
3442 *) # See PR46792 regarding target-libffi.
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3444 esac
3445 ;;
f24be480 3446 hppa*64*-*-linux*)
3447 # In this case, it's because the hppa64-linux target is for
3448 # the kernel only at this point and has no libc, and thus no
3449 # headers, crt*.o, etc., all of which are needed by these.
a7e330e9 3450 unsupported_languages="$unsupported_languages java"
f24be480 3451 ;;
a7e330e9 3452 hppa*64*-*-hpux*)
f24be480 3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 hppa*-hp-hpux11*)
3456 ;;
a7e330e9 3457 hppa*-*-hpux*)
f24be480 3458 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3459 # build on HP-UX 10.20.
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 ;;
f24be480 3462 ia64*-*-*vms*)
3463 noconfigdirs="$noconfigdirs ${libgcj}"
3464 ;;
f24be480 3465 i[3456789]86-w64-mingw*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3467 ;;
3468 i[3456789]86-*-mingw*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
3471 x86_64-*-mingw*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
f24be480 3474 mmix-*-*)
3475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
f24be480 3476 ;;
3477 powerpc-*-aix*)
3478 # copied from rs6000-*-* entry
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3480 ;;
f24be480 3481 rs6000-*-aix*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3483 ;;
f24be480 3484 *-*-lynxos*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
f24be480 3487esac
3488
10e64fba 3489# Disable the go frontend on systems where it is known to not work. Please keep
3490# this in sync with contrib/config-list.mk.
56242c27 3491case "${target}" in
3492*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3493 unsupported_languages="$unsupported_languages go"
3494 ;;
3495esac
3496
a6999726 3497# Disable libgo for some systems where it is known to not work.
3498# For testing, you can easily override this with --enable-libgo.
3499if test x$enable_libgo = x; then
3500 case "${target}" in
3501 *-*-darwin*)
3502 # PR 46986
3503 noconfigdirs="$noconfigdirs target-libgo"
3504 ;;
3505 *-*-cygwin* | *-*-mingw*)
3506 noconfigdirs="$noconfigdirs target-libgo"
3507 ;;
3508 *-*-aix*)
3509 noconfigdirs="$noconfigdirs target-libgo"
3510 ;;
3511 esac
3512fi
3513
1c5767f1 3514# Default libgloss CPU subdirectory.
3515libgloss_dir="$target_cpu"
4ee9c684 3516
e0942c78 3517case "${target}" in
3518 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3519 libgloss_dir=wince
3520 ;;
e26fddfa 3521 aarch64*-*-* )
3522 libgloss_dir=aarch64
3523 ;;
e0942c78 3524 arm*-*-*)
3525 libgloss_dir=arm
3526 ;;
3527 cris-*-* | crisv32-*-*)
3528 libgloss_dir=cris
3529 ;;
3530 hppa*-*-*)
3531 libgloss_dir=pa
3532 ;;
3533 i[3456789]86-*-*)
3534 libgloss_dir=i386
3535 ;;
3536 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3537 libgloss_dir=m68hc11
3538 ;;
3539 m68*-*-* | fido-*-*)
3540 libgloss_dir=m68k
3541 ;;
3542 mips*-*-*)
3543 libgloss_dir=mips
3544 ;;
3545 powerpc*-*-*)
3546 libgloss_dir=rs6000
3547 ;;
3548 sparc*-*-*)
3549 libgloss_dir=sparc
3550 ;;
3551esac
3552
d556f192 3553# Disable newlib and libgloss for various target OSes.
71ab34df 3554case "${target}" in
d556f192 3555 alpha*-dec-osf*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 i[3456789]86-*-linux*)
3559 # This section makes it possible to build newlib natively on linux.
3560 # If we are using a cross compiler then don't configure newlib.
3561 if test x${is_cross_compiler} != xno ; then
3562 noconfigdirs="$noconfigdirs target-newlib"
3563 fi
3564 noconfigdirs="$noconfigdirs target-libgloss"
3565 # If we are not using a cross compiler, do configure newlib.
3566 # Note however, that newlib will only be configured in this situation
3567 # if the --with-newlib option has been given, because otherwise
3568 # 'target-newlib' will appear in skipdirs.
3569 ;;
3570 i[3456789]86-*-rdos*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 sparc-*-sunos4*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-aix*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-beos*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
71ab34df 3585 *-*-chorusos)
71559dce 3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3587 ;;
d556f192 3588 *-*-dragonfly*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-freebsd*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-lynxos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-mingw*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-netbsd*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-netware*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-tpf*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-uclinux*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-vxworks*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618esac
3619
3620case "${target}" in
3621 *-*-chorusos)
3622 ;;
40c500e1 3623 powerpc-*-darwin*)
dba2c8ea 3624 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3625 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3626 ;;
ea864ded 3627 i[3456789]86-*-darwin*)
3628 noconfigdirs="$noconfigdirs ld gprof"
3629 noconfigdirs="$noconfigdirs sim target-rda"
3630 ;;
3631 x86_64-*-darwin[912]*)
d9f9f3af 3632 noconfigdirs="$noconfigdirs ld gas gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
fce068fd 3635 *-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3638 ;;
e3a1fe08 3639 *-*-dragonfly*)
e3a1fe08 3640 ;;
c01dd063 3641 *-*-freebsd*)
4ee9c684 3642 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3643 && test -f /usr/local/include/gmp.h; then
3644 with_gmp=/usr/local
3645 fi
4ee9c684 3646 ;;
336577be 3647 *-*-kaos*)
3648 # Remove unsupported stuff on all kaOS configurations.
336577be 3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 ;;
71ab34df 3651 *-*-netbsd*)
71ab34df 3652 ;;
634f7a13 3653 *-*-netware*)
71ab34df 3654 ;;
3655 *-*-rtems*)
f24be480 3656 noconfigdirs="$noconfigdirs target-libgloss"
d781ea5c 3657 # this is not caught below because this stanza matches earlier
3658 case $target in
3659 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3660 esac
71ab34df 3661 ;;
9f88bc9d 3662 # The tpf target doesn't support gdb yet.
3663 *-*-tpf*)
d556f192 3664 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3665 ;;
688429c4 3666 *-*-uclinux*)
d556f192 3667 noconfigdirs="$noconfigdirs target-rda"
688429c4 3668 ;;
71ab34df 3669 *-*-vxworks*)
71ab34df 3670 ;;
3671 alpha*-dec-osf*)
3672 # ld works, but does not support shared libraries.
71ab34df 3673 # gas doesn't generate exception information.
d556f192 3674 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3675 ;;
3676 alpha*-*-*vms*)
f24be480 3677 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3678 ;;
71ab34df 3679 alpha*-*-*)
3680 # newlib is not 64 bit ready
f24be480 3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3682 ;;
71ab34df 3683 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3684 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3685 ;;
3c867e46 3686 arc-*-*|arceb-*-*)
17b3d2a8 3687 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3688 ;;
71ab34df 3689 arm-*-pe*)
f24be480 3690 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3691 ;;
71ab34df 3692 arm-*-riscix*)
71559dce 3693 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3694 ;;
fd28e216 3695 avr-*-rtems*)
3696 ;;
3697 avr-*-*)
3698 if test x${with_avrlibc} != xno; then
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 fi
3701 ;;
71ab34df 3702 c4x-*-* | tic4x-*-*)
71559dce 3703 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3704 ;;
71559dce 3705 tic54x-*-*)
3706 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3707 ;;
71ab34df 3708 d10v-*-*)
71559dce 3709 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3710 ;;
3711 d30v-*-*)
71559dce 3712 noconfigdirs="$noconfigdirs gdb"
71ab34df 3713 ;;
3714 fr30-*-elf*)
f24be480 3715 noconfigdirs="$noconfigdirs gdb"
71ab34df 3716 ;;
ca2751b6 3717 moxie-*-*)
ca2751b6 3718 noconfigdirs="$noconfigdirs gprof"
3719 ;;
71ab34df 3720 h8300*-*-*)
f24be480 3721 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3722 ;;
3723 h8500-*-*)
71559dce 3724 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3725 ;;
e8eddfdd 3726 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3727 ;;
6bd59761 3728 hppa*64*-*-linux*)
71ab34df 3729 ;;
99684e84 3730 hppa*-*-linux*)
08261f02 3731 ;;
71ab34df 3732 hppa*-*-*elf* | \
71ab34df 3733 hppa*-*-lites* | \
3734 hppa*-*-openbsd* | \
3735 hppa*64*-*-*)
71ab34df 3736 ;;
75d59721 3737 hppa*-hp-hpux11*)
6c9785b4 3738 noconfigdirs="$noconfigdirs ld"
75d59721 3739 ;;
1c5767f1 3740 hppa*-*-pro*)
1c5767f1 3741 ;;
71ab34df 3742 hppa*-*-*)
f24be480 3743 noconfigdirs="$noconfigdirs ld"
71ab34df 3744 ;;
4a9237fb 3745 i960-*-*)
71559dce 3746 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3747 ;;
71ab34df 3748 ia64*-*-elf*)
3749 # No gdb support yet.
6c9785b4 3750 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3751 ;;
3752 ia64*-**-hpux*)
1aca86a6 3753 # No ld support yet.
f24be480 3754 noconfigdirs="$noconfigdirs libgui itcl ld"
71ab34df 3755 ;;
8408ca00 3756 ia64*-*-*vms*)
3211401d 3757 # No ld support yet.
3758 noconfigdirs="$noconfigdirs libgui itcl ld"
8408ca00 3759 ;;
ec2eb8fb 3760 i[3456789]86-w64-mingw*)
ec2eb8fb 3761 ;;
3762 i[3456789]86-*-mingw*)
d6d689df 3763 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3764 ;;
71ab34df 3765 *-*-cygwin*)
3766 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3767 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3768 # always build newlib if winsup directory is present.
d6d689df 3769 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3770 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3771 elif test -d "$srcdir/newlib"; then
d6d689df 3772 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3773 fi
b30fcfae 3774 ;;
f74ea578 3775 i[3456789]86-*-pe)
17b3d2a8 3776 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3777 ;;
f74ea578 3778 i[3456789]86-*-sco3.2v5*)
71ab34df 3779 # The linker does not yet know about weak symbols in COFF,
3780 # and is not configured to handle mixed ELF and COFF.
71559dce 3781 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3782 ;;
f74ea578 3783 i[3456789]86-*-sco*)
71559dce 3784 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3785 ;;
14f27bc6 3786 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3787 noconfigdirs="$noconfigdirs target-libgloss"
3788 ;;
f74ea578 3789 i[3456789]86-*-sysv4*)
71559dce 3790 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3791 ;;
f74ea578 3792 i[3456789]86-*-beos*)
d556f192 3793 noconfigdirs="$noconfigdirs gdb"
602d002b 3794 ;;
ab0da556 3795 i[3456789]86-*-rdos*)
d556f192 3796 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3797 ;;
71ab34df 3798 mmix-*-*)
f24be480 3799 noconfigdirs="$noconfigdirs gdb"
71ab34df 3800 ;;
957985d9 3801 mt-*-*)
f6fa11cb 3802 noconfigdirs="$noconfigdirs sim"
3803 ;;
71ab34df 3804 powerpc-*-aix*)
3805 # copied from rs6000-*-* entry
d556f192 3806 noconfigdirs="$noconfigdirs gprof"
71ab34df 3807 ;;
6bd59761 3808 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3809 target_configdirs="$target_configdirs target-winsup"
71559dce 3810 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3811 # always build newlib.
3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3813 ;;
3814 # This is temporary until we can link against shared libraries
3815 powerpcle-*-solaris*)
71559dce 3816 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3817 ;;
3818 powerpc-*-beos*)
d556f192 3819 noconfigdirs="$noconfigdirs gdb"
71ab34df 3820 ;;
71ab34df 3821 rs6000-*-lynxos*)
d556f192 3822 noconfigdirs="$noconfigdirs gprof"
71ab34df 3823 ;;
3824 rs6000-*-aix*)
d556f192 3825 noconfigdirs="$noconfigdirs gprof"
71ab34df 3826 ;;
3827 rs6000-*-*)
f24be480 3828 noconfigdirs="$noconfigdirs gprof"
71ab34df 3829 ;;
3830 m68k-apollo-*)
71559dce 3831 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3832 ;;
ba2b484f 3833 microblaze*)
f24be480 3834 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3835 ;;
d781ea5c 3836 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
68c9bc25 3837 if test x$with_newlib = xyes; then
3838 noconfigdirs="$noconfigdirs gprof"
3839 fi
68c9bc25 3840 ;;
71ab34df 3841 mips*-*-irix5*)
71559dce 3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3843 ;;
3844 mips*-*-irix6*)
f24be480 3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3846 ;;
71ab34df 3847 mips*-*-bsd*)
d6449910 3848 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
71ab34df 3849 ;;
71ab34df 3850 mips*-*-linux*)
71ab34df 3851 ;;
d6449910 3852 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3853 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3854 noconfigdirs="$noconfigdirs ld gas gprof"
3855 ;;
71ab34df 3856 mips*-*-*)
f24be480 3857 noconfigdirs="$noconfigdirs gprof"
71ab34df 3858 ;;
d781ea5c 3859 nds32*-*-*)
3860 noconfigdirs="$noconfigdirs gdb"
3861 ;;
8ce80784 3862 nvptx*-*-*)
3863 # nvptx is just a compiler
3864 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3865 ;;
d781ea5c 3866 or1k*-*-*)
3867 noconfigdirs="$noconfigdirs gdb"
3868 ;;
33974778 3869 sh-*-* | sh64-*-*)
39f6b116 3870 case "${target}" in
3871 sh*-*-elf)
f24be480 3872 ;;
39f6b116 3873 *)
f24be480 3874 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3875 esac
71ab34df 3876 ;;
71ab34df 3877 sparc-*-sunos4*)
d556f192 3878 if test x${is_cross_compiler} = xno ; then
71ab34df 3879 use_gnu_ld=no
3880 fi
3881 ;;
fa0a53e3 3882 tic6x-*-*)
ccdfa490 3883 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3884 ;;
2da35515 3885 tilepro*-*-* | tilegx*-*-*)
e5fa74b2 3886 noconfigdirs="$noconfigdirs sim"
3887 ;;
71ab34df 3888 v810-*-*)
71559dce 3889 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3890 ;;
3891 vax-*-*)
f24be480 3892 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3893 ;;
71ab34df 3894esac
a8298541 3895
71ab34df 3896# If we aren't building newlib, then don't build libgloss, since libgloss
3897# depends upon some newlib header files.
3898case "${noconfigdirs}" in
3899 *target-libgloss*) ;;
3900 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3901esac
3902
71ab34df 3903# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3904host_makefile_frag=/dev/null
3905if test -d ${srcdir}/config ; then
3906case "${host}" in
f74ea578 3907 i[3456789]86-*-msdosdjgpp*)
71ab34df 3908 host_makefile_frag="config/mh-djgpp"
3909 ;;
3910 *-cygwin*)
45043b2b 3911
cd9a469c 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3913$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3914echo a >cygwin-cat-check
82d97a59 3915if test `cat cygwin-cat-check` = a ; then
45043b2b 3916 rm cygwin-cat-check
cd9a469c 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918$as_echo "yes" >&6; }
45043b2b 3919else
3920 rm cygwin-cat-check
cd9a469c 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923 as_fn_error "The cat command does not ignore carriage return characters.
45043b2b 3924 Please either mount the build directory in binary mode or run the following
3925 commands before running any configure script:
3926set -o igncr
3927export SHELLOPTS
cd9a469c 3928 " "$LINENO" 5
45043b2b 3929fi
3930
71ab34df 3931 host_makefile_frag="config/mh-cygwin"
3932 ;;
5a92bcc2 3933 *-mingw*)
70d8e49e 3934 host_makefile_frag="config/mh-mingw"
a378fc89 3935 ;;
385527e9 3936 alpha*-*-linux*)
3937 host_makefile_frag="config/mh-alpha-linux"
3938 ;;
d2b94e36 3939 hppa*-hp-hpux10*)
d2b94e36 3940 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3941 ;;
b2240ff6 3942 hppa*-hp-hpux*)
d2b94e36 3943 host_makefile_frag="config/mh-pa"
3944 ;;
3945 hppa*-*)
3946 host_makefile_frag="config/mh-pa"
3947 ;;
16463c8d 3948 *-*-darwin*)
3949 host_makefile_frag="config/mh-darwin"
0222d984 3950 ;;
9d44a802 3951 powerpc-*-aix*)
3952 host_makefile_frag="config/mh-ppc-aix"
3953 ;;
3954 rs6000-*-aix*)
3955 host_makefile_frag="config/mh-ppc-aix"
3956 ;;
71ab34df 3957esac
3958fi
3959
8e1fea1a 3960if test "${build}" != "${host}" ; then
93c5e793 3961 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3962 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 3963 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 3964 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3965 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3966 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 3967 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
93c5e793 3968 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3969 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3970 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3971 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3972 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3973 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3974else
3975 AR_FOR_BUILD="\$(AR)"
3976 AS_FOR_BUILD="\$(AS)"
a4af6a58 3977 CC_FOR_BUILD="\$(CC)"
93c5e793 3978 CXX_FOR_BUILD="\$(CXX)"
3979 GCJ_FOR_BUILD="\$(GCJ)"
3980 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 3981 GOC_FOR_BUILD="\$(GOC)"
93c5e793 3982 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3983 LD_FOR_BUILD="\$(LD)"
3984 NM_FOR_BUILD="\$(NM)"
3985 RANLIB_FOR_BUILD="\$(RANLIB)"
3986 WINDRES_FOR_BUILD="\$(WINDRES)"
3987 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 3988fi
3989
3990ac_ext=c
b30fcfae 3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999$as_echo_n "checking for $ac_word... " >&6; }
4000if test "${ac_cv_prog_CC+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
b30fcfae 4002else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
cd9a469c 4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4015 break 2
4016 fi
4017done
cd9a469c 4018 done
4019IFS=$as_save_IFS
b30fcfae 4020
4021fi
4022fi
4023CC=$ac_cv_prog_CC
4024if test -n "$CC"; then
cd9a469c 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026$as_echo "$CC" >&6; }
b30fcfae 4027else
cd9a469c 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
b30fcfae 4030fi
4031
cd9a469c 4032
b30fcfae 4033fi
4034if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
a4af6a58 4036 # Extract the first word of "gcc", so it can be a program name with args.
4037set dummy gcc; ac_word=$2
cd9a469c 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_ac_ct_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
b30fcfae 4042else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_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=.
cd9a469c 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
b30fcfae 4053 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4055 break 2
4056 fi
4057done
cd9a469c 4058 done
4059IFS=$as_save_IFS
b30fcfae 4060
4061fi
4062fi
4063ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064if test -n "$ac_ct_CC"; then
cd9a469c 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066$as_echo "$ac_ct_CC" >&6; }
b30fcfae 4067else
cd9a469c 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
b30fcfae 4070fi
4071
cd9a469c 4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
b30fcfae 4083else
4084 CC="$ac_cv_prog_CC"
4085fi
4086
4087if test -z "$CC"; then
cd9a469c 4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 4090set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
4093if test "${ac_cv_prog_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
8e1fea1a 4095else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098else
b30fcfae 4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
cd9a469c 4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4108 break 2
4109 fi
4110done
cd9a469c 4111 done
4112IFS=$as_save_IFS
b30fcfae 4113
a83ffacf 4114fi
a83ffacf 4115fi
b30fcfae 4116CC=$ac_cv_prog_CC
ae48753c 4117if test -n "$CC"; then
cd9a469c 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119$as_echo "$CC" >&6; }
5084f823 4120else
cd9a469c 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
5084f823 4123fi
4124
5084f823 4125
cd9a469c 4126 fi
b30fcfae 4127fi
8e1fea1a 4128if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130set dummy cc; ac_word=$2
cd9a469c 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
8e1fea1a 4135else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138else
a83ffacf 4139 ac_prog_rejected=no
b30fcfae 4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
cd9a469c 4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4150 fi
4151 ac_cv_prog_CC="cc"
cd9a469c 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4153 break 2
4154 fi
4155done
cd9a469c 4156 done
4157IFS=$as_save_IFS
b30fcfae 4158
8e1fea1a 4159if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
b30fcfae 4163 if test $# != 0; then
8e1fea1a 4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
b30fcfae 4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 4169 fi
4170fi
4171fi
4172fi
b30fcfae 4173CC=$ac_cv_prog_CC
8e1fea1a 4174if test -n "$CC"; then
cd9a469c 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176$as_echo "$CC" >&6; }
8e1fea1a 4177else
cd9a469c 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
8e1fea1a 4180fi
4181
cd9a469c 4182
b30fcfae 4183fi
4184if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
cd9a469c 4186 for ac_prog in cl.exe
b30fcfae 4187 do
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191$as_echo_n "checking for $ac_word... " >&6; }
4192if test "${ac_cv_prog_CC+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
8e1fea1a 4194else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197else
b30fcfae 4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
cd9a469c 4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4207 break 2
4208 fi
4209done
cd9a469c 4210 done
4211IFS=$as_save_IFS
b30fcfae 4212
8e1fea1a 4213fi
4214fi
b30fcfae 4215CC=$ac_cv_prog_CC
8e1fea1a 4216if test -n "$CC"; then
cd9a469c 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218$as_echo "$CC" >&6; }
b1660f25 4219else
cd9a469c 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
a4af6a58 4222fi
ae48753c 4223
cd9a469c 4224
b30fcfae 4225 test -n "$CC" && break
4226 done
ae48753c 4227fi
b30fcfae 4228if test -z "$CC"; then
4229 ac_ct_CC=$CC
cd9a469c 4230 for ac_prog in cl.exe
b30fcfae 4231do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233set dummy $ac_prog; ac_word=$2
cd9a469c 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
4236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
a83ffacf 4238else
b30fcfae 4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 4241else
b30fcfae 4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
cd9a469c 4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4249 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4251 break 2
4252 fi
4253done
cd9a469c 4254 done
4255IFS=$as_save_IFS
b30fcfae 4256
ae48753c 4257fi
4258fi
b30fcfae 4259ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260if test -n "$ac_ct_CC"; then
cd9a469c 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262$as_echo "$ac_ct_CC" >&6; }
a4af6a58 4263else
cd9a469c 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
ae48753c 4266fi
a83ffacf 4267
cd9a469c 4268
b30fcfae 4269 test -n "$ac_ct_CC" && break
4270done
4271
cd9a469c 4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276yes:)
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279ac_tool_warned=yes ;;
4280esac
4281 CC=$ac_ct_CC
4282 fi
b30fcfae 4283fi
4284
4285fi
4286
4287
cd9a469c 4288test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290as_fn_error "no acceptable C compiler found in \$PATH
4291See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4292
4293# Provide some information about the compiler.
cd9a469c 4294$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295set X $ac_compile
4296ac_compiler=$2
4297for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304$as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4306 ac_status=$?
cd9a469c 4307 if test -s conftest.err; then
4308 sed '10a\
4309... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4313 fi
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316done
b30fcfae 4317
cd9a469c 4318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4319/* end confdefs.h. */
4320
4321int
4322main ()
4323{
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329ac_clean_files_save=$ac_clean_files
cd9a469c 4330ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b30fcfae 4331# Try to create an executable without -o first, disregard a.out.
4332# It will help us diagnose broken compilers, and finding out an intuition
4333# of exeext.
cd9a469c 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335$as_echo_n "checking for C compiler default output file name... " >&6; }
4336ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4337
4338# The possible output files:
4339ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4340
4341ac_rmfiles=
4342for ac_file in $ac_files
4343do
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 esac
4348done
4349rm -f $ac_rmfiles
4350
4351if { { ac_try="$ac_link_default"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357$as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link_default") 2>&5
b30fcfae 4359 ac_status=$?
cd9a469c 4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }; then :
4362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4363# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4364# in a Makefile. We should not override ac_cv_exeext if it was cached,
4365# so that the user can short-circuit this test for compilers unknown to
4366# Autoconf.
4367for ac_file in $ac_files ''
b30fcfae 4368do
4369 test -f "$ac_file" || continue
4370 case $ac_file in
cd9a469c 4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4372 ;;
4373 [ab].out )
4374 # We found the default executable, but exeext='' is most
4375 # certainly right.
4376 break;;
4377 *.* )
cd9a469c 4378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 then :; else
4380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4381 fi
4382 # We set ac_cv_exeext here because the later test for it is not
4383 # safe: cross compilers may not add the suffix if given an `-o'
4384 # argument, so we may need to know it at that point already.
4385 # Even if this section looks crufty: it has the advantage of
4386 # actually working.
b30fcfae 4387 break;;
4388 * )
4389 break;;
4390 esac
4391done
cd9a469c 4392test "$ac_cv_exeext" = no && ac_cv_exeext=
4393
b30fcfae 4394else
cd9a469c 4395 ac_file=''
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4398$as_echo "$ac_file" >&6; }
4399if test -z "$ac_file"; then :
4400 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4401sed 's/^/| /' conftest.$ac_ext >&5
4402
cd9a469c 4403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405{ as_fn_set_status 77
4406as_fn_error "C compiler cannot create executables
4407See \`config.log' for more details." "$LINENO" 5; }; }
b30fcfae 4408fi
b30fcfae 4409ac_exeext=$ac_cv_exeext
b30fcfae 4410
cd9a469c 4411# Check that the compiler produces executables we can run. If not, either
b30fcfae 4412# the compiler is broken, or we cross compile.
cd9a469c 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4414$as_echo_n "checking whether the C compiler works... " >&6; }
b30fcfae 4415# If not cross compiling, check that we can run a simple program.
4416if test "$cross_compiling" != yes; then
4417 if { ac_try='./$ac_file'
cd9a469c 4418 { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423$as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
b30fcfae 4425 ac_status=$?
cd9a469c 4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; }; then
b30fcfae 4428 cross_compiling=no
4429 else
4430 if test "$cross_compiling" = maybe; then
4431 cross_compiling=yes
4432 else
cd9a469c 4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435as_fn_error "cannot run C compiled programs.
b30fcfae 4436If you meant to cross compile, use \`--host'.
cd9a469c 4437See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4438 fi
4439 fi
4440fi
cd9a469c 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442$as_echo "yes" >&6; }
b30fcfae 4443
cd9a469c 4444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b30fcfae 4445ac_clean_files=$ac_clean_files_save
cd9a469c 4446# Check that the compiler produces executables we can run. If not, either
b30fcfae 4447# the compiler is broken, or we cross compile.
cd9a469c 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4449$as_echo_n "checking whether we are cross compiling... " >&6; }
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451$as_echo "$cross_compiling" >&6; }
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4454$as_echo_n "checking for suffix of executables... " >&6; }
4455if { { ac_try="$ac_link"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461$as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_link") 2>&5
b30fcfae 4463 ac_status=$?
cd9a469c 4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
b30fcfae 4466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4467# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4468# work properly (i.e., refer to `conftest.exe'), while it won't with
4469# `rm'.
4470for ac_file in conftest.exe conftest conftest.*; do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
cd9a469c 4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4475 break;;
4476 * ) break;;
4477 esac
4478done
ae48753c 4479else
cd9a469c 4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482as_fn_error "cannot compute suffix of executables: cannot compile and link
4483See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4484fi
b30fcfae 4485rm -f conftest$ac_cv_exeext
cd9a469c 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4487$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4488
4489rm -f conftest.$ac_ext
4490EXEEXT=$ac_cv_exeext
4491ac_exeext=$EXEEXT
cd9a469c 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4493$as_echo_n "checking for suffix of object files... " >&6; }
4494if test "${ac_cv_objext+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
b30fcfae 4496else
cd9a469c 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4498/* end confdefs.h. */
4499
4500int
4501main ()
4502{
4503
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.o conftest.obj
cd9a469c 4509if { { ac_try="$ac_compile"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compile") 2>&5
b30fcfae 4517 ac_status=$?
cd9a469c 4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 for ac_file in conftest.o conftest.obj conftest.*; do
4521 test -f "$ac_file" || continue;
b30fcfae 4522 case $ac_file in
cd9a469c 4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4525 break;;
4526 esac
4527done
4528else
cd9a469c 4529 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4530sed 's/^/| /' conftest.$ac_ext >&5
4531
cd9a469c 4532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534as_fn_error "cannot compute suffix of object files: cannot compile
4535See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4536fi
b30fcfae 4537rm -f conftest.$ac_cv_objext conftest.$ac_ext
4538fi
cd9a469c 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4540$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4541OBJEXT=$ac_cv_objext
4542ac_objext=$OBJEXT
cd9a469c 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4545if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
b30fcfae 4547else
cd9a469c 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4549/* end confdefs.h. */
4550
4551int
4552main ()
4553{
4554#ifndef __GNUC__
4555 choke me
4556#endif
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
cd9a469c 4562if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4563 ac_compiler_gnu=yes
4564else
cd9a469c 4565 ac_compiler_gnu=no
b30fcfae 4566fi
cd9a469c 4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4568ac_cv_c_compiler_gnu=$ac_compiler_gnu
4569
4570fi
cd9a469c 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4573if test $ac_compiler_gnu = yes; then
4574 GCC=yes
4575else
4576 GCC=
4577fi
b30fcfae 4578ac_test_CFLAGS=${CFLAGS+set}
4579ac_save_CFLAGS=$CFLAGS
cd9a469c 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4581$as_echo_n "checking whether $CC accepts -g... " >&6; }
4582if test "${ac_cv_prog_cc_g+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4590/* end confdefs.h. */
4591
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
cd9a469c 4600if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4601 ac_cv_prog_cc_g=yes
4602else
cd9a469c 4603 CFLAGS=""
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h. */
4606
4607int
4608main ()
4609{
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616
4617else
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
ae48753c 4622
cd9a469c 4623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633fi
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4635fi
cd9a469c 4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4637fi
cd9a469c 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4642$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4643if test "$ac_test_CFLAGS" = set; then
b30fcfae 4644 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4645elif test $ac_cv_prog_cc_g = yes; then
4646 if test "$GCC" = yes; then
4647 CFLAGS="-g -O2"
4648 else
4649 CFLAGS="-g"
4650 fi
4651else
4652 if test "$GCC" = yes; then
4653 CFLAGS="-O2"
4654 else
4655 CFLAGS=
4656 fi
4657fi
cd9a469c 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
b30fcfae 4662else
cd9a469c 4663 ac_cv_prog_cc_c89=no
b30fcfae 4664ac_save_CC=$CC
cd9a469c 4665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4666/* end confdefs.h. */
4667#include <stdarg.h>
4668#include <stdio.h>
4669#include <sys/types.h>
4670#include <sys/stat.h>
4671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4672struct buf { int x; };
4673FILE * (*rcsopen) (struct buf *, struct stat *, int);
4674static char *e (p, i)
4675 char **p;
4676 int i;
4677{
4678 return p[i];
4679}
4680static char *f (char * (*g) (char **, int), char **p, ...)
4681{
4682 char *s;
4683 va_list v;
4684 va_start (v,p);
4685 s = g (p, va_arg (v,int));
4686 va_end (v);
4687 return s;
4688}
4689
4690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4691 function prototypes and stuff, but not '\xHH' hex character constants.
4692 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4693 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4695 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4696 that's true only with -std. */
b30fcfae 4697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4698
cd9a469c 4699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4700 inside strings and character constants. */
4701#define FOO(x) 'x'
4702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4703
b30fcfae 4704int test (int i, double x);
4705struct s1 {int (*f) (int a);};
4706struct s2 {int (*f) (double a);};
4707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4708int argc;
4709char **argv;
4710int
4711main ()
4712{
4713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4714 ;
4715 return 0;
4716}
4717_ACEOF
cd9a469c 4718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4720do
4721 CC="$ac_save_CC $ac_arg"
cd9a469c 4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4724fi
cd9a469c 4725rm -f core conftest.err conftest.$ac_objext
4726 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4727done
cd9a469c 4728rm -f conftest.$ac_ext
b30fcfae 4729CC=$ac_save_CC
4730
4731fi
cd9a469c 4732# AC_CACHE_VAL
4733case "x$ac_cv_prog_cc_c89" in
4734 x)
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736$as_echo "none needed" >&6; } ;;
4737 xno)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739$as_echo "unsupported" >&6; } ;;
b30fcfae 4740 *)
cd9a469c 4741 CC="$CC $ac_cv_prog_cc_c89"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4744esac
cd9a469c 4745if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4746
5084f823 4747fi
4748
5084f823 4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
cd9a469c 4755ac_ext=cpp
5084f823 4756ac_cpp='$CXXCPP $CPPFLAGS'
4757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4760if test -z "$CXX"; then
4761 if test -n "$CCC"; then
4762 CXX=$CCC
4763 else
4764 if test -n "$ac_tool_prefix"; then
4765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4766 do
4767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770$as_echo_n "checking for $ac_word... " >&6; }
4771if test "${ac_cv_prog_CXX+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
5084f823 4773else
4774 if test -n "$CXX"; then
4775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
cd9a469c 4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084f823 4784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4786 break 2
4787 fi
4788done
cd9a469c 4789 done
4790IFS=$as_save_IFS
8e1fea1a 4791
eae5b2bc 4792fi
4793fi
4794CXX=$ac_cv_prog_CXX
4795if test -n "$CXX"; then
cd9a469c 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4797$as_echo "$CXX" >&6; }
eae5b2bc 4798else
cd9a469c 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800$as_echo "no" >&6; }
eae5b2bc 4801fi
4802
cd9a469c 4803
eae5b2bc 4804 test -n "$CXX" && break
4805 done
4806fi
4807if test -z "$CXX"; then
4808 ac_ct_CXX=$CXX
cd9a469c 4809 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4810do
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812set dummy $ac_prog; ac_word=$2
cd9a469c 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
eae5b2bc 4817else
4818 if test -n "$ac_ct_CXX"; then
4819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
cd9a469c 4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eae5b2bc 4828 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4830 break 2
4831 fi
4832done
cd9a469c 4833 done
4834IFS=$as_save_IFS
eae5b2bc 4835
4836fi
4837fi
4838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4839if test -n "$ac_ct_CXX"; then
cd9a469c 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4841$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4842else
cd9a469c 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
eae5b2bc 4845fi
4846
cd9a469c 4847
eae5b2bc 4848 test -n "$ac_ct_CXX" && break
4849done
eae5b2bc 4850
cd9a469c 4851 if test "x$ac_ct_CXX" = x; then
4852 CXX="g++"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855yes:)
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858ac_tool_warned=yes ;;
4859esac
4860 CXX=$ac_ct_CXX
4861 fi
eae5b2bc 4862fi
4863
cd9a469c 4864 fi
4865fi
eae5b2bc 4866# Provide some information about the compiler.
cd9a469c 4867$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4868set X $ac_compile
4869ac_compiler=$2
4870for ac_option in --version -v -V -qversion; do
4871 { { ac_try="$ac_compiler $ac_option >&5"
4872case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875esac
4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877$as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4879 ac_status=$?
cd9a469c 4880 if test -s conftest.err; then
4881 sed '10a\
4882... rest of stderr output deleted ...
4883 10q' conftest.err >conftest.er1
4884 cat conftest.er1 >&5
4885 rm -f conftest.er1 conftest.err
4886 fi
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4889done
eae5b2bc 4890
cd9a469c 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4892$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4893if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
eae5b2bc 4895else
cd9a469c 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4897/* end confdefs.h. */
4898
4899int
4900main ()
4901{
4902#ifndef __GNUC__
4903 choke me
4904#endif
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
cd9a469c 4910if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4911 ac_compiler_gnu=yes
4912else
cd9a469c 4913 ac_compiler_gnu=no
eae5b2bc 4914fi
cd9a469c 4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4916ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4917
4918fi
cd9a469c 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4920$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4921if test $ac_compiler_gnu = yes; then
4922 GXX=yes
4923else
4924 GXX=
4925fi
eae5b2bc 4926ac_test_CXXFLAGS=${CXXFLAGS+set}
4927ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4929$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4930if test "${ac_cv_prog_cxx_g+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932else
4933 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4934 ac_cxx_werror_flag=yes
4935 ac_cv_prog_cxx_g=no
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4938/* end confdefs.h. */
4939
4940int
4941main ()
4942{
4943
4944 ;
4945 return 0;
4946}
4947_ACEOF
cd9a469c 4948if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4949 ac_cv_prog_cxx_g=yes
4950else
cd9a469c 4951 CXXFLAGS=""
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4953/* end confdefs.h. */
cd9a469c 4954
eae5b2bc 4955int
4956main ()
4957{
cd9a469c 4958
eae5b2bc 4959 ;
4960 return 0;
4961}
4962_ACEOF
cd9a469c 4963if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 4964
cd9a469c 4965else
4966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4969/* end confdefs.h. */
cd9a469c 4970
eae5b2bc 4971int
4972main ()
4973{
cd9a469c 4974
eae5b2bc 4975 ;
4976 return 0;
4977}
4978_ACEOF
cd9a469c 4979if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
570af75a 4981fi
cd9a469c 4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983fi
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4990$as_echo "$ac_cv_prog_cxx_g" >&6; }
4991if test "$ac_test_CXXFLAGS" = set; then
4992 CXXFLAGS=$ac_save_CXXFLAGS
4993elif test $ac_cv_prog_cxx_g = yes; then
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-g -O2"
4996 else
4997 CXXFLAGS="-g"
4998 fi
4999else
5000 if test "$GXX" = yes; then
5001 CXXFLAGS="-O2"
5002 else
5003 CXXFLAGS=
5004 fi
eae5b2bc 5005fi
eae5b2bc 5006ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013# We must set the default linker to the linker used by gcc for the correct
5014# operation of libtool. If LD is not defined and we are using gcc, try to
5015# set the LD default to the ld used by gcc.
5016if test -z "$LD"; then
5017 if test "$GCC" = yes; then
5018 case $build in
5019 *-*-mingw*)
5020 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5021 *)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5023 esac
5024 case $gcc_prog_ld in
5025 # Accept absolute paths.
5026 [\\/]* | [A-Za-z]:[\\/]*)
5027 LD="$gcc_prog_ld" ;;
5028 esac
5029 fi
2f8725b0 5030fi
5031
13687c85 5032# Check whether -static-libstdc++ -static-libgcc is supported.
5033have_static_libs=no
5034if test "$GCC" = yes; then
5035 saved_LDFLAGS="$LDFLAGS"
5036
5037 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5039$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5040 ac_ext=cpp
5041ac_cpp='$CXXCPP $CPPFLAGS'
5042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5045
5046
5047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
74f1ea54 5049
5050#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5051#error -static-libstdc++ not implemented
5052#endif
13687c85 5053int main() {}
5054_ACEOF
5055if ac_fn_cxx_try_link "$LINENO"; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057$as_echo "yes" >&6; }; have_static_libs=yes
5058else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 ac_ext=c
5065ac_cpp='$CPP $CPPFLAGS'
5066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069
5070
5071 LDFLAGS="$saved_LDFLAGS"
5072fi
5073
2f8725b0 5074
5075
8e1fea1a 5076
b30fcfae 5077if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 5079set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
5082if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
8e1fea1a 5084else
5085 if test -n "$GNATBIND"; then
5086 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5087else
b30fcfae 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
cd9a469c 5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5095 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5097 break 2
5098 fi
5099done
cd9a469c 5100 done
5101IFS=$as_save_IFS
b30fcfae 5102
8e1fea1a 5103fi
5104fi
b30fcfae 5105GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 5106if test -n "$GNATBIND"; then
cd9a469c 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5108$as_echo "$GNATBIND" >&6; }
8e1fea1a 5109else
cd9a469c 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
8e1fea1a 5112fi
5113
cd9a469c 5114
b30fcfae 5115fi
8e1fea1a 5116if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 5117 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 5118 # Extract the first word of "gnatbind", so it can be a program name with args.
5119set dummy gnatbind; ac_word=$2
cd9a469c 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_ac_ct_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
8e1fea1a 5124else
b30fcfae 5125 if test -n "$ac_ct_GNATBIND"; then
5126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 5127else
b30fcfae 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=.
cd9a469c 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
b30fcfae 5135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5137 break 2
5138 fi
5139done
cd9a469c 5140 done
5141IFS=$as_save_IFS
b30fcfae 5142
8e1fea1a 5143fi
5144fi
b30fcfae 5145ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5146if test -n "$ac_ct_GNATBIND"; then
cd9a469c 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5148$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 5149else
cd9a469c 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
8e1fea1a 5152fi
5153
cd9a469c 5154 if test "x$ac_ct_GNATBIND" = x; then
5155 GNATBIND="no"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158yes:)
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161ac_tool_warned=yes ;;
5162esac
5163 GNATBIND=$ac_ct_GNATBIND
5164 fi
8e1fea1a 5165else
b30fcfae 5166 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 5167fi
5168
b30fcfae 5169if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 5171set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
a18b2c54 5176else
5177 if test -n "$GNATMAKE"; then
5178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5179else
b30fcfae 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
cd9a469c 5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 5187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5189 break 2
5190 fi
5191done
cd9a469c 5192 done
5193IFS=$as_save_IFS
b30fcfae 5194
a18b2c54 5195fi
5196fi
b30fcfae 5197GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 5198if test -n "$GNATMAKE"; then
cd9a469c 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5200$as_echo "$GNATMAKE" >&6; }
a18b2c54 5201else
cd9a469c 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
a18b2c54 5204fi
5205
cd9a469c 5206
b30fcfae 5207fi
a18b2c54 5208if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 5209 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 5210 # Extract the first word of "gnatmake", so it can be a program name with args.
5211set dummy gnatmake; ac_word=$2
cd9a469c 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_ac_ct_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
a18b2c54 5216else
b30fcfae 5217 if test -n "$ac_ct_GNATMAKE"; then
5218 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 5219else
b30fcfae 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=.
cd9a469c 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
b30fcfae 5227 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 5229 break 2
5230 fi
5231done
cd9a469c 5232 done
5233IFS=$as_save_IFS
b30fcfae 5234
a18b2c54 5235fi
5236fi
b30fcfae 5237ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5238if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5240$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 5241else
cd9a469c 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
a18b2c54 5244fi
5245
cd9a469c 5246 if test "x$ac_ct_GNATMAKE" = x; then
5247 GNATMAKE="no"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250yes:)
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253ac_tool_warned=yes ;;
5254esac
5255 GNATMAKE=$ac_ct_GNATMAKE
5256 fi
a18b2c54 5257else
b30fcfae 5258 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 5259fi
5260
cd9a469c 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5262$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5263if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
8e1fea1a 5265else
5266 cat >conftest.adb <<EOF
5267procedure conftest is begin null; end conftest;
5268EOF
5269acx_cv_cc_gcc_supports_ada=no
5270# There is a bug in old released versions of GCC which causes the
5271# driver to exit successfully when the appropriate language module
5272# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5273# Therefore we must check for the error message as well as an
5274# unsuccessful exit.
216de822 5275# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5276# given a .adb file, but produce no object file. So we must check
5277# if an object file was really produced to guard against this.
8e1fea1a 5278errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 5279if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 5280 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 5281fi
5282rm -f conftest.*
5283fi
cd9a469c 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5285$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 5286
9d5fd7d0 5287if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 5288 have_gnat=yes
5289else
5290 have_gnat=no
5291fi
5292
cd9a469c 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5294$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5295if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
7bcc3b4a 5297else
5298 echo abfoo >t1
5299 echo cdfoo >t2
5300 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 5301 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5302 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5303 :
5304 else
5305 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5306 fi
5307 fi
7bcc3b4a 5308 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5309 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 5310 :
7bcc3b4a 5311 else
5312 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5313 fi
5314 fi
5315 rm t1 t2
5316
5317fi
cd9a469c 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5319$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5320do_compare="$gcc_cv_prog_cmp_skip"
5321
5322
8e1fea1a 5323
6c59dfa4 5324# Check whether --enable-bootstrap was given.
5325if test "${enable_bootstrap+set}" = set; then :
5326 enableval=$enable_bootstrap;
5327else
5328 enable_bootstrap=default
5329fi
5330
5331
5332# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5333if test -r $srcdir/gcc/configure; then
5334 have_compiler=yes
5335else
5336 have_compiler=no
5337fi
6c59dfa4 5338
5339case "$have_compiler:$host:$target:$enable_bootstrap" in
5340 *:*:*:no) ;;
5341
5342 # Default behavior. Enable bootstrap if we have a compiler
5343 # and we are in a native configuration.
5344 yes:$build:$build:default)
5345 enable_bootstrap=yes ;;
5346
5347 *:*:*:default)
5348 enable_bootstrap=no ;;
5349
5350 # We have a compiler and we are in a native configuration, bootstrap is ok
5351 yes:$build:$build:yes)
5352 ;;
5353
5354 # Other configurations, but we have a compiler. Assume the user knows
5355 # what he's doing.
5356 yes:*:*:yes)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5358$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5359 ;;
5360
5361 # No compiler: if they passed --enable-bootstrap explicitly, fail
5362 no:*:*:yes)
5363 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5364
5365 # Fail if wrong command line
5366 *)
5367 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5368 ;;
5369esac
5370
c3fc6a63 5371# Used for setting $lt_cv_objdir
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5373$as_echo_n "checking for objdir... " >&6; }
5374if test "${lt_cv_objdir+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 rm -f .libs 2>/dev/null
5378mkdir .libs 2>/dev/null
5379if test -d .libs; then
5380 lt_cv_objdir=.libs
5381else
5382 # MS-DOS does not allow filenames that begin with a dot.
5383 lt_cv_objdir=_libs
5384fi
5385rmdir .libs 2>/dev/null
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5388$as_echo "$lt_cv_objdir" >&6; }
5389objdir=$lt_cv_objdir
5390
5391
5392
5393
5394
5395cat >>confdefs.h <<_ACEOF
5396#define LT_OBJDIR "$lt_cv_objdir/"
5397_ACEOF
5398
5399
5400
7601a55c 5401# Check for GMP, MPFR and MPC
16de6a81 5402gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5403gmpinc=
d45318b3 5404have_gmp=no
7601a55c 5405
5406# Specify a location for mpc
5407# check for this first so it ends up on the link line before mpfr.
5408
cd9a469c 5409# Check whether --with-mpc was given.
5410if test "${with_mpc+set}" = set; then :
5411 withval=$with_mpc;
5412fi
7601a55c 5413
7601a55c 5414
73f813e1 5415# Check whether --with-mpc-include was given.
cd9a469c 5416if test "${with_mpc_include+set}" = set; then :
5417 withval=$with_mpc_include;
5418fi
7601a55c 5419
7601a55c 5420
73f813e1 5421# Check whether --with-mpc-lib was given.
cd9a469c 5422if test "${with_mpc_lib+set}" = set; then :
5423 withval=$with_mpc_lib;
5424fi
7601a55c 5425
7601a55c 5426
5427if test "x$with_mpc" != x; then
16de6a81 5428 gmplibs="-L$with_mpc/lib $gmplibs"
5429 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5430fi
5431if test "x$with_mpc_include" != x; then
16de6a81 5432 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5433fi
5434if test "x$with_mpc_lib" != x; then
16de6a81 5435 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5436fi
5437if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5438 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5439 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5440 # Do not test the mpc version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
16de6a81 5444 have_gmp=yes
7601a55c 5445fi
d45318b3 5446
5ca838b8 5447# Specify a location for mpfr
5448# check for this first so it ends up on the link line before gmp.
b30fcfae 5449
cd9a469c 5450# Check whether --with-mpfr-dir was given.
5451if test "${with_mpfr_dir+set}" = set; then :
5452 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5453Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5454fi
5455
5ca838b8 5456
5457
cd9a469c 5458# Check whether --with-mpfr was given.
5459if test "${with_mpfr+set}" = set; then :
5460 withval=$with_mpfr;
5461fi
b30fcfae 5462
5ca838b8 5463
73f813e1 5464# Check whether --with-mpfr-include was given.
cd9a469c 5465if test "${with_mpfr_include+set}" = set; then :
5466 withval=$with_mpfr_include;
5467fi
b30fcfae 5468
a5144c1d 5469
73f813e1 5470# Check whether --with-mpfr-lib was given.
cd9a469c 5471if test "${with_mpfr_lib+set}" = set; then :
5472 withval=$with_mpfr_lib;
5473fi
a5144c1d 5474
5ca838b8 5475
5476if test "x$with_mpfr" != x; then
5477 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5478 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5479fi
a5144c1d 5480if test "x$with_mpfr_include" != x; then
16de6a81 5481 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5482fi
5483if test "x$with_mpfr_lib" != x; then
5484 gmplibs="-L$with_mpfr_lib $gmplibs"
5485fi
d45318b3 5486if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
37ca4325 5487 # MPFR v3.1.0 moved the sources into a src sub-directory.
5488 if test -d ${srcdir}/mpfr/src; then
5489 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5490 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5491 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5492 else
5493 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5494 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5495 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5496 fi
d45318b3 5497 # Do not test the mpfr version. Assume that it is sufficient, since
5498 # it is in the source tree, and the library has not been built yet
5499 # but it would be included on the link line in the version check below
5500 # hence making the test fail.
5501 have_gmp=yes
5502fi
5ca838b8 5503
4ee9c684 5504# Specify a location for gmp
b30fcfae 5505
cd9a469c 5506# Check whether --with-gmp-dir was given.
5507if test "${with_gmp_dir+set}" = set; then :
5508 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5509Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5510fi
5511
4ee9c684 5512
4ee9c684 5513
cd9a469c 5514# Check whether --with-gmp was given.
5515if test "${with_gmp+set}" = set; then :
5516 withval=$with_gmp;
5517fi
b30fcfae 5518
4ee9c684 5519
73f813e1 5520# Check whether --with-gmp-include was given.
cd9a469c 5521if test "${with_gmp_include+set}" = set; then :
5522 withval=$with_gmp_include;
5523fi
b30fcfae 5524
a5144c1d 5525
73f813e1 5526# Check whether --with-gmp-lib was given.
cd9a469c 5527if test "${with_gmp_lib+set}" = set; then :
5528 withval=$with_gmp_lib;
5529fi
a5144c1d 5530
5531
4ee9c684 5532
5ca838b8 5533if test "x$with_gmp" != x; then
5534 gmplibs="-L$with_gmp/lib $gmplibs"
5535 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5536fi
a5144c1d 5537if test "x$with_gmp_include" != x; then
5538 gmpinc="-I$with_gmp_include $gmpinc"
5539fi
5540if test "x$with_gmp_lib" != x; then
5541 gmplibs="-L$with_gmp_lib $gmplibs"
5542fi
d45318b3 5543if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5544 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5545 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5546 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5547 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e4128452 5548 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
d45318b3 5549 # Do not test the gmp version. Assume that it is sufficient, since
5550 # it is in the source tree, and the library has not been built yet
5551 # but it would be included on the link line in the version check below
5552 # hence making the test fail.
5553 have_gmp=yes
5554fi
4ee9c684 5555
16c9b2e3 5556if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5557 have_gmp=yes
5558 saved_CFLAGS="$CFLAGS"
5559 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5560 # Check for the recommended and required versions of GMP.
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5562$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5563
5564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5565/* end confdefs.h. */
5566#include "gmp.h"
5567int
5568main ()
5569{
5570
5571 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5572 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
f819bb73 5573 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
17b6993a 5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5583/* end confdefs.h. */
17b6993a 5584#include <gmp.h>
b30fcfae 5585int
5586main ()
5587{
4ee9c684 5588
17b6993a 5589 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5590 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5591 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5592 choke me
5593 #endif
b30fcfae 5594
5595 ;
5596 return 0;
5597}
5598_ACEOF
cd9a469c 5599if ac_fn_c_try_compile "$LINENO"; then :
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5601$as_echo "yes" >&6; }
17b6993a 5602else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5604$as_echo "buggy but acceptable" >&6; }
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5607else
cd9a469c 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5610fi
cd9a469c 5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5612
7601a55c 5613 # If we have GMP, check the MPFR version.
d45318b3 5614 if test x"$have_gmp" = xyes; then
17b6993a 5615 # Check for the recommended and required versions of MPFR.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5617$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5619/* end confdefs.h. */
6a086156 5620#include <gmp.h>
d45318b3 5621 #include <mpfr.h>
b30fcfae 5622int
5623main ()
5624{
112f3d57 5625
cb1d9044 5626 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
d45318b3 5627 choke me
5628 #endif
b30fcfae 5629
5630 ;
5631 return 0;
5632}
5633_ACEOF
cd9a469c 5634if ac_fn_c_try_compile "$LINENO"; then :
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5636/* end confdefs.h. */
0157cc75 5637#include <gmp.h>
d45318b3 5638 #include <mpfr.h>
b30fcfae 5639int
5640main ()
5641{
0157cc75 5642
17b6993a 5643 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5644 choke me
5645 #endif
7601a55c 5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
cd9a469c 5651if ac_fn_c_try_compile "$LINENO"; then :
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653$as_echo "yes" >&6; }
7601a55c 5654else
cd9a469c 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5656$as_echo "buggy but acceptable" >&6; }
7601a55c 5657fi
cd9a469c 5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5659else
cd9a469c 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }; have_gmp=no
7601a55c 5662fi
cd9a469c 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5664 fi
5665
5666 # Check for the MPC header version.
16de6a81 5667 if test x"$have_gmp" = xyes ; then
17b6993a 5668 # Check for the recommended and required versions of MPC.
cd9a469c 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5670$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5672/* end confdefs.h. */
5673#include <mpc.h>
5674int
5675main ()
5676{
5677
17b6993a 5678 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5679 choke me
5680 #endif
5681
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"; then :
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689#include <mpc.h>
5690int
5691main ()
5692{
5693
5694 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5695 choke me
5696 #endif
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
cd9a469c 5702if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5704$as_echo "yes" >&6; }
17b6993a 5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707$as_echo "buggy but acceptable" >&6; }
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5710else
cd9a469c 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5712$as_echo "no" >&6; }; have_gmp=no
7601a55c 5713fi
cd9a469c 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5715 fi
5716
5717 # Now check the MPFR library.
5718 if test x"$have_gmp" = xyes; then
5719 saved_LIBS="$LIBS"
5720 LIBS="$LIBS $gmplibs"
16de6a81 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5722$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5724/* end confdefs.h. */
16de6a81 5725#include <mpc.h>
7601a55c 5726int
5727main ()
5728{
5729
5730 mpfr_t n;
5731 mpfr_t x;
16de6a81 5732 mpc_t c;
7601a55c 5733 int t;
5734 mpfr_init (n);
5735 mpfr_init (x);
5736 mpfr_atan2 (n, n, x, GMP_RNDN);
5737 mpfr_erfc (n, x, GMP_RNDN);
5738 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5739 mpfr_clear(n);
5740 mpfr_clear(x);
5741 mpc_init2 (c, 53);
5742 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5743 mpc_cosh (c, c, MPC_RNDNN);
5744 mpc_pow (c, c, c, MPC_RNDNN);
5745 mpc_acosh (c, c, MPC_RNDNN);
5746 mpc_clear (c);
b30fcfae 5747
5748 ;
5749 return 0;
5750}
5751_ACEOF
cd9a469c 5752if ac_fn_c_try_link "$LINENO"; then :
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754$as_echo "yes" >&6; }
b30fcfae 5755else
cd9a469c 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5758fi
cd9a469c 5759rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
7601a55c 5761 LIBS="$saved_LIBS"
5762 fi
5763
d45318b3 5764 CFLAGS="$saved_CFLAGS"
4ee9c684 5765
17b6993a 5766# The library versions listed in the error message below should match
5767# the HARD-minimums enforced above.
d45318b3 5768 if test x$have_gmp != xyes; then
cb1d9044 5769 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
16de6a81 5770Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5771their locations. Source code for these libraries can be found at
5772their respective hosting sites as well as at
5773ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5774http://gcc.gnu.org/install/prerequisites.html for additional info. If
5775you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5776make sure that you have installed both the libraries and the header
5777files. They may be located in separate packages." "$LINENO" 5
d45318b3 5778 fi
6a086156 5779fi
5780
7601a55c 5781# Flags needed for both GMP, MPFR and/or MPC.
5782
5783
4ee9c684 5784
5785
5786
bff7ea4a 5787
e4128452 5788
5bc96548 5789# Allow host libstdc++ to be specified for static linking with PPL.
5790
cd9a469c 5791# Check whether --with-host-libstdcxx was given.
5792if test "${with_host_libstdcxx+set}" = set; then :
5793 withval=$with_host_libstdcxx;
5794fi
5bc96548 5795
5bc96548 5796
5797case $with_host_libstdcxx in
5798 no|yes)
cd9a469c 5799 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5bc96548 5800 ;;
5801esac
255b6be7 5802
13687c85 5803# Libraries to use for stage1 or when not bootstrapping.
7ab76cec 5804
13687c85 5805# Check whether --with-stage1-libs was given.
5806if test "${with_stage1_libs+set}" = set; then :
5807 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5808 stage1_libs=
7ab76cec 5809 else
13687c85 5810 stage1_libs=$withval
7ab76cec 5811 fi
5812else
13687c85 5813 stage1_libs=$with_host_libstdcxx
cd9a469c 5814fi
5815
7ab76cec 5816
5817
13687c85 5818# Linker flags to use for stage1 or when not bootstrapping.
7ab76cec 5819
13687c85 5820# Check whether --with-stage1-ldflags was given.
5821if test "${with_stage1_ldflags+set}" = set; then :
5822 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5823 stage1_ldflags=
7ab76cec 5824 else
13687c85 5825 stage1_ldflags=$withval
7ab76cec 5826 fi
5827else
13687c85 5828 stage1_ldflags=
5829 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5830 # if supported. But if the user explicitly specified the libraries to use,
5831 # trust that they are doing what they want.
5832 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5833 stage1_ldflags="-static-libstdc++ -static-libgcc"
5834 fi
cd9a469c 5835fi
5836
7ab76cec 5837
5838
7ab76cec 5839# Libraries to use for stage2 and later builds. This defaults to the
5840# argument passed to --with-host-libstdcxx.
5841
cd9a469c 5842# Check whether --with-boot-libs was given.
5843if test "${with_boot_libs+set}" = set; then :
5844 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5845 poststage1_libs=
5846 else
5847 poststage1_libs=$withval
5848 fi
5849else
7ab76cec 5850 poststage1_libs=$with_host_libstdcxx
cd9a469c 5851fi
5852
7ab76cec 5853
5854
d6dfe18a 5855# Linker flags to use for stage2 and later builds.
5856
5857# Check whether --with-boot-ldflags was given.
5858if test "${with_boot_ldflags+set}" = set; then :
5859 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5860 poststage1_ldflags=
5861 else
5862 poststage1_ldflags=$withval
5863 fi
5864else
5865 poststage1_ldflags=
7deb2d70 5866 # In stages 2 and 3, default to linking libstdc++ and libgcc
5867 # statically. But if the user explicitly specified the libraries to
5868 # use, trust that they are doing what they want.
5869 if test "$poststage1_libs" = ""; then
d6dfe18a 5870 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5871 fi
5872fi
5873
5874
5875
572cf1f7 5876# GCC GRAPHITE dependency ISL.
5877# Basic setup is inlined here, actual checks are in config/isl.m4
255b6be7 5878
5879
87e20041 5880# Check whether --with-isl was given.
5881if test "${with_isl+set}" = set; then :
5882 withval=$with_isl;
cd9a469c 5883fi
255b6be7 5884
255b6be7 5885
429cca51 5886# Treat --without-isl as a request to disable
83d54ac4 5887# GRAPHITE support and skip all following checks.
429cca51 5888if test "x$with_isl" != "xno"; then
83d54ac4 5889 # Check for ISL
5890
5891
87e20041 5892# Check whether --with-isl-include was given.
5893if test "${with_isl_include+set}" = set; then :
5894 withval=$with_isl_include;
cd9a469c 5895fi
5896
255b6be7 5897
87e20041 5898# Check whether --with-isl-lib was given.
5899if test "${with_isl_lib+set}" = set; then :
5900 withval=$with_isl_lib;
cd9a469c 5901fi
255b6be7 5902
255b6be7 5903
87e20041 5904 # Check whether --enable-isl-version-check was given.
5905if test "${enable_isl_version_check+set}" = set; then :
5906 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5907else
5908 ENABLE_ISL_CHECK=yes
062b4a94 5909fi
5910
5911
87e20041 5912 # Initialize isllibs and islinc.
5913 case $with_isl in
5914 no)
5915 isllibs=
5916 islinc=
5917 ;;
5918 "" | yes)
5919 ;;
5920 *)
5921 isllibs="-L$with_isl/lib"
5922 islinc="-I$with_isl/include"
5923 ;;
5924 esac
5925 if test "x${with_isl_include}" != x ; then
5926 islinc="-I$with_isl_include"
5927 fi
5928 if test "x${with_isl_lib}" != x; then
5929 isllibs="-L$with_isl_lib"
5930 fi
5931 if test "x${islinc}" = x && test "x${isllibs}" = x \
5932 && test -d ${srcdir}/isl; then
5933 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5934 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5935 ENABLE_ISL_CHECK=no
5b0131d5 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5937$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
87e20041 5938 fi
062b4a94 5939
429cca51 5940 isllibs="${isllibs} -lisl"
5941
062b4a94 5942
062b4a94 5943
078393c7 5944 if test "${ENABLE_ISL_CHECK}" = yes ; then
5945 _isl_saved_CFLAGS=$CFLAGS
5946 _isl_saved_LDFLAGS=$LDFLAGS
5947 _isl_saved_LIBS=$LIBS
5948
5949 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5950 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5951 LIBS="${_isl_saved_LIBS} -lisl"
5952
b6de67fd 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5954$as_echo_n "checking for compatible ISL... " >&6; }
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6ac3b11e 5956/* end confdefs.h. */
b6de67fd 5957#include <isl/val.h>
6ac3b11e 5958int
5959main ()
5960{
b6de67fd 5961;
6ac3b11e 5962 ;
5963 return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_link "$LINENO"; then :
078393c7 5967 gcc_cv_isl=yes
6ac3b11e 5968else
5969 gcc_cv_isl=no
5970fi
5971rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
078393c7 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5974$as_echo "$gcc_cv_isl" >&6; }
5975
5976 CFLAGS=$_isl_saved_CFLAGS
5977 LDFLAGS=$_isl_saved_LDFLAGS
5978 LIBS=$_isl_saved_LIBS
5979 fi
5980
5981
255b6be7 5982
255b6be7 5983
87e20041 5984
5985
87e20041 5986 if test "x${with_isl}" = xno; then
5987 graphite_requested=no
5988 elif test "x${with_isl}" != x \
5989 || test "x${with_isl_include}" != x \
5990 || test "x${with_isl_lib}" != x ; then
5991 graphite_requested=yes
5992 else
5993 graphite_requested=no
062b4a94 5994 fi
5362e323 5995
5362e323 5996
5997
87e20041 5998 if test "${gcc_cv_isl}" = no ; then
5999 isllibs=
6000 islinc=
6001 fi
6002
6003 if test "${graphite_requested}" = yes \
6004 && test "x${isllibs}" = x \
6005 && test "x${islinc}" = x ; then
255b6be7 6006
87e20041 6007 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6008 fi
255b6be7 6009
a3c81e03 6010
a3c81e03 6011fi
6012
572cf1f7 6013# If the ISL check failed, disable builds of in-tree variant of ISL
83d54ac4 6014if test "x$with_isl" = xno ||
83d54ac4 6015 test "x$gcc_cv_isl" = xno; then
572cf1f7 6016 noconfigdirs="$noconfigdirs isl"
83d54ac4 6017 islinc=
bacb15cb 6018fi
6019
83d54ac4 6020
6021
6022
7bfefa9d 6023# Check for LTO support.
6024# Check whether --enable-lto was given.
6025if test "${enable_lto+set}" = set; then :
6026 enableval=$enable_lto; enable_lto=$enableval
6027else
6028 enable_lto=yes; default_enable_lto=yes
6029fi
6030
6031
1a4f45ec 6032
9bdbb0bc 6033
6034
6035target_elf=no
6036case $target in
6037 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6038 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9bdbb0bc 6039 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6040 target_elf=no
6041 ;;
6042 *)
6043 target_elf=yes
6044 ;;
6045esac
6046
6047if test $target_elf = yes; then :
25630dc7 6048 # ELF platforms build the lto-plugin always.
6049 build_lto_plugin=yes
9bdbb0bc 6050
9bdbb0bc 6051else
6052 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6053 case $target in
b990d06f 6054 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
25630dc7 6055 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6056 *) enable_lto=no ;;
6057 esac
9bdbb0bc 6058 else
62932e4d 6059 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6060 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6061 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6062 # warn during gcc/ subconfigure; unless you're bootstrapping with
6063 # -flto it won't be needed until after installation anyway.
6064 case $target in
ca42e774 6065 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9bdbb0bc 6066 *) if test x"$enable_lto" = x"yes"; then
6067 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6068 fi
6069 ;;
6070 esac
6071 fi
ca42e774 6072 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6073 # Build it unless LTO was explicitly disabled.
ca42e774 6074 case $target in
25630dc7 6075 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6076 *) ;;
6077 esac
25630dc7 6078
9bdbb0bc 6079fi
6080
7bfefa9d 6081
1015a063 6082# Check whether --enable-linker-plugin-configure-flags was given.
6083if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6084 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6085else
6086 extra_linker_plugin_configure_flags=
6087fi
6088
6089
6090# Check whether --enable-linker-plugin-flags was given.
6091if test "${enable_linker_plugin_flags+set}" = set; then :
6092 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6093else
6094 extra_linker_plugin_flags=
6095fi
6096
6097
6098
255b6be7 6099
2b15d2ba 6100# By default, C and C++ are the only stage 1 languages.
9c3a0a29 6101stage1_languages=,c,
2d64c2fd 6102
7ab76cec 6103# Target libraries that we bootstrap.
5c96a839 6104bootstrap_target_libs=,target-libgcc,
7ab76cec 6105
8e1fea1a 6106# Figure out what language subdirectories are present.
6107# Look if the user specified --enable-languages="..."; if not, use
6108# the environment variable $LANGUAGES if defined. $LANGUAGES might
6109# go away some day.
6110# NB: embedded tabs in this IF block -- do not untabify
6111if test -d ${srcdir}/gcc; then
6112 if test x"${enable_languages+set}" != xset; then
6113 if test x"${LANGUAGES+set}" = xset; then
6114 enable_languages="${LANGUAGES}"
6115 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6116 else
6117 enable_languages=all
6118 fi
6119 else
6120 if test x"${enable_languages}" = x ||
6121 test x"${enable_languages}" = xyes;
6122 then
6123 echo configure.in: --enable-languages needs at least one language argument 1>&2
6124 exit 1
6125 fi
6126 fi
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6128
2c718da0 6129 # 'f95' is the old name for the 'fortran' language. We issue a warning
6130 # and make the substitution.
6131 case ,${enable_languages}, in
6132 *,f95,*)
6133 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6134 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6135 ;;
6136 esac
6137
2b15d2ba 6138 # If bootstrapping, C++ must be enabled.
6139 case ",$enable_languages,:$enable_bootstrap" in
6140 *,c++,*:*) ;;
6141 *:yes)
6c59dfa4 6142 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6143 enable_languages="${enable_languages},c++"
6144 else
2b15d2ba 6145 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6c59dfa4 6146 fi
6147 ;;
6148 esac
6149
8e1fea1a 6150 # First scan to see if an enabled language requires some other language.
6151 # We assume that a given config-lang.in will list all the language
6152 # front ends it requires, even if some are required indirectly.
6153 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6154 case ${lang_frag} in
6155 ..) ;;
6156 # The odd quoting in the next line works around
6157 # an apparent bug in bash 1.12 on linux.
6158 ${srcdir}/gcc/[*]/config-lang.in) ;;
6159 *)
101ddbe4 6160 # From the config-lang.in, get $language, $lang_requires, and
6161 # $lang_requires_boot_languages.
8e1fea1a 6162 language=
6163 lang_requires=
101ddbe4 6164 lang_requires_boot_languages=
8e1fea1a 6165 . ${lang_frag}
101ddbe4 6166 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6167 case ,${enable_languages}, in
6168 *,$other,*) ;;
6169 *,all,*) ;;
6170 *,$language,*)
6171 echo " \`$other' language required by \`$language'; enabling" 1>&2
6172 enable_languages="${enable_languages},${other}"
6173 ;;
6174 esac
6175 done
101ddbe4 6176 for other in ${lang_requires_boot_languages} ; do
6177 if test "$other" != "c"; then
6178 case ,${enable_stage1_languages}, in
6179 *,$other,*) ;;
6180 *,all,*) ;;
6181 *)
6182 case ,${enable_languages}, in
6183 *,$language,*)
6184 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6185 enable_stage1_languages="$enable_stage1_languages,${other}"
6186 ;;
6187 esac
6188 ;;
6189 esac
6190 fi
6191 done
8e1fea1a 6192 ;;
6193 esac
6194 done
6195
9c3a0a29 6196 new_enable_languages=,c,
7bfefa9d 6197
6198 # If LTO is enabled, add the LTO front end.
7bfefa9d 6199 if test "$enable_lto" = "yes" ; then
d6ef094a 6200 case ,${enable_languages}, in
6201 *,lto,*) ;;
6202 *) enable_languages="${enable_languages},lto" ;;
6203 esac
ca42e774 6204 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6205 configdirs="$configdirs lto-plugin"
7bfefa9d 6206 fi
6207 fi
6208
8e1fea1a 6209 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6210 potential_languages=,c,
8e1fea1a 6211
604a285a 6212 enabled_target_libs=
6213 disabled_target_libs=
6214
8e1fea1a 6215 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6216 case ${lang_frag} in
6217 ..) ;;
6218 # The odd quoting in the next line works around
6219 # an apparent bug in bash 1.12 on linux.
6220 ${srcdir}/gcc/[*]/config-lang.in) ;;
6221 *)
b30fcfae 6222 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6223 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6224 language=
6225 target_libs=
6226 lang_dirs=
5dee13c2 6227 subdir_requires=
9c3a0a29 6228 boot_language=no
6229 build_by_default=yes
8e1fea1a 6230 . ${lang_frag}
9c3a0a29 6231 if test x${language} = x; then
6232 echo "${lang_frag} doesn't set \$language." 1>&2
6233 exit 1
6234 fi
6235
ef3c41c7 6236 if test "$language" = "c++"; then
2b15d2ba 6237 boot_language=yes
7ab76cec 6238 fi
6239
a2ecd49c 6240 add_this_lang=no
9c3a0a29 6241 case ,${enable_languages}, in
6242 *,${language},*)
e53d55e7 6243 # Language was explicitly selected; include it
6244 # unless it is C, which is enabled by default.
6245 if test "$language" != "c"; then
6246 add_this_lang=yes
6247 fi
8e1fea1a 6248 ;;
9c3a0a29 6249 *,all,*)
6250 # 'all' was selected, select it if it is a default language
a2ecd49c 6251 if test "$language" != "c"; then
6252 add_this_lang=${build_by_default}
6253 fi
8e1fea1a 6254 ;;
6255 esac
4ee9c684 6256
5dee13c2 6257 # Disable languages that need other directories if these aren't available.
9333ae0b 6258 for i in $subdir_requires; do
3891e7d9 6259 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 6260 case ,${enable_languages}, in
6261 *,${language},*)
6262 # Specifically requested language; tell them.
cd9a469c 6263 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6264 ;;
6265 *)
6266 # Silently disable.
9c3a0a29 6267 add_this_lang=unsupported
5dee13c2 6268 ;;
6269 esac
6270 done
6271
9c3a0a29 6272 # Disable Ada if no preexisting GNAT is available.
6273 case ,${enable_languages},:${language}:${have_gnat} in
6274 *,${language},*:ada:no)
6275 # Specifically requested language; tell them.
cd9a469c 6276 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6277 ;;
6278 *:ada:no)
6279 # Silently disable.
6280 add_this_lang=unsupported
6281 ;;
6282 esac
6283
ff7dcf6a 6284 # Disable a language that is unsupported by the target.
6285 case " $unsupported_languages " in
6286 *" $language "*)
9c3a0a29 6287 add_this_lang=unsupported
ff7dcf6a 6288 ;;
6289 esac
6290
4ee9c684 6291 case $add_this_lang in
9c3a0a29 6292 unsupported)
8e1fea1a 6293 # Remove language-dependent dirs.
604a285a 6294 disabled_target_libs="$disabled_target_libs $target_libs"
6295 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6296 ;;
9c3a0a29 6297 no)
6298 # Remove language-dependent dirs; still show language as supported.
604a285a 6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6301 potential_languages="${potential_languages}${language},"
6302 ;;
6303 yes)
6304 new_enable_languages="${new_enable_languages}${language},"
6305 potential_languages="${potential_languages}${language},"
2d64c2fd 6306 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6307 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6308 case "${boot_language}:,$enable_stage1_languages," in
6309 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6310 # Add to (comma-separated) list of stage 1 languages.
32027446 6311 case ",$stage1_languages," in
6312 *,$language,* | ,yes, | ,all,) ;;
6313 *) stage1_languages="${stage1_languages}${language}," ;;
6314 esac
7ab76cec 6315 # We need to bootstrap any supporting libraries.
6316 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6317 ;;
6318 esac
6319 ;;
8e1fea1a 6320 esac
6321 ;;
6322 esac
6323 done
6324
604a285a 6325 # Add target libraries which are only needed for disabled languages
6326 # to noconfigdirs.
6327 if test -n "$disabled_target_libs"; then
6328 for dir in $disabled_target_libs; do
6329 case " $enabled_target_libs " in
6330 *" ${dir} "*) ;;
6331 *) noconfigdirs="$noconfigdirs $dir" ;;
6332 esac
6333 done
6334 fi
6335
cd9a469c 6336 # Check whether --enable-stage1-languages was given.
6337if test "${enable_stage1_languages+set}" = set; then :
6338 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6339 ,no,|,,)
6340 # Set it to something that will have no effect in the loop below
6341 enable_stage1_languages=c ;;
6342 ,yes,)
6343 enable_stage1_languages=`echo $new_enable_languages | \
6344 sed -e "s/^,//" -e "s/,$//" ` ;;
6345 *,all,*)
6346 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6347 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6348 esac
6349
6350 # Add "good" languages from enable_stage1_languages to stage1_languages,
6351 # while "bad" languages go in missing_languages. Leave no duplicates.
6352 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6353 case $potential_languages in
6354 *,$i,*)
6355 case $stage1_languages in
6356 *,$i,*) ;;
6357 *) stage1_languages="$stage1_languages$i," ;;
6358 esac ;;
6359 *)
6360 case $missing_languages in
6361 *,$i,*) ;;
6362 *) missing_languages="$missing_languages$i," ;;
6363 esac ;;
6364 esac
6365 done
cd9a469c 6366fi
6367
9c3a0a29 6368
6369 # Remove leading/trailing commas that were added for simplicity
6370 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6371 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6372 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6373 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6374
8e1fea1a 6375 if test "x$missing_languages" != x; then
cd9a469c 6376 as_fn_error "
e8bfe1fa 6377The following requested languages could not be built: ${missing_languages}
cd9a469c 6378Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6379 fi
8e1fea1a 6380 if test "x$new_enable_languages" != "x$enable_languages"; then
6381 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6382 enable_languages="$new_enable_languages"
8e1fea1a 6383 fi
9c3a0a29 6384
b30fcfae 6385
b0e9b581 6386 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6387fi
6388
50996fe5 6389# Handle --disable-<component> generically.
6390for dir in $configdirs $build_configdirs $target_configdirs ; do
6391 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6392 varname=`echo $dirname | sed -e s/+/_/g`
6393 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6394 noconfigdirs="$noconfigdirs $dir"
6395 fi
6396done
6397
dd6d3a67 6398# Check for Boehm's garbage collector
cd9a469c 6399# Check whether --enable-objc-gc was given.
6400if test "${enable_objc_gc+set}" = set; then :
6401 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 6402 *,objc,*:*:yes:*target-boehm-gc*)
cd9a469c 6403 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
dd6d3a67 6404 ;;
6405esac
cd9a469c 6406fi
6407
dd6d3a67 6408
6409# Make sure we only build Boehm's garbage collector if required.
f1716c67 6410case ,${enable_languages},:${enable_objc_gc} in
6411 *,objc,*:yes)
dd6d3a67 6412 # Keep target-boehm-gc if requested for Objective-C.
6413 ;;
dd6d3a67 6414 *)
f1716c67 6415 # Otherwise remove target-boehm-gc depending on target-libjava.
6416 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6417 noconfigdirs="$noconfigdirs target-boehm-gc"
6418 fi
dd6d3a67 6419 ;;
6420esac
6421
d3a7dd32 6422# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
b33ca042 6423case ,${enable_languages}, in
df148e44 6424 *,c++,*)
6425 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6426 case "${noconfigdirs}" in
6427 *target-libstdc++-v3*)
6428 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6429 ;;
6430 *) ;;
6431 esac
6432 ;;
b33ca042 6433 *)
d3a7dd32 6434 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
b33ca042 6435 ;;
6436esac
6437
e8eddfdd 6438# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6439# $build_configdirs and $target_configdirs.
8e1fea1a 6440# If we have the source for $noconfigdirs entries, add them to $notsupp.
6441
6442notsupp=""
6443for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6444 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6445 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6446 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6447 if test -r $srcdir/$dirname/configure ; then
6448 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 true
6450 else
6451 notsupp="$notsupp $dir"
6452 fi
6453 fi
6454 fi
e8eddfdd 6455 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6456 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6457 if test -r $srcdir/$dirname/configure ; then
6458 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 true
6460 else
6461 notsupp="$notsupp $dir"
6462 fi
6463 fi
6464 fi
8e1fea1a 6465 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6466 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6467 if test -r $srcdir/$dirname/configure ; then
6468 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 true
6470 else
6471 notsupp="$notsupp $dir"
6472 fi
6473 fi
6474 fi
6475done
6476
8e1fea1a 6477# Quietly strip out all directories which aren't configurable in this tree.
6478# This relies on all configurable subdirectories being autoconfiscated, which
6479# is now the case.
2f8725b0 6480build_configdirs_all="$build_configdirs"
6481build_configdirs=
6482for i in ${build_configdirs_all} ; do
b30fcfae 6483 j=`echo $i | sed -e s/build-//g`
2f8725b0 6484 if test -f ${srcdir}/$j/configure ; then
6485 build_configdirs="${build_configdirs} $i"
6486 fi
6487done
6488
8e1fea1a 6489configdirs_all="$configdirs"
6490configdirs=
6491for i in ${configdirs_all} ; do
6492 if test -f ${srcdir}/$i/configure ; then
6493 configdirs="${configdirs} $i"
6494 fi
6495done
2f8725b0 6496
8e1fea1a 6497target_configdirs_all="$target_configdirs"
6498target_configdirs=
6499for i in ${target_configdirs_all} ; do
b30fcfae 6500 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6501 if test -f ${srcdir}/$j/configure ; then
6502 target_configdirs="${target_configdirs} $i"
6503 fi
6504done
6505
1015a063 6506# libiberty-linker-plugin is special: it doesn't have its own source directory,
6507# so we have to add it after the preceding checks.
6508if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6509then
6510 case " $configdirs " in
6511 *" libiberty "*)
6512 # If we can build libiberty, we can also build libiberty-linker-plugin.
6513 configdirs="$configdirs libiberty-linker-plugin"
6514 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6515 --with-libiberty=../libiberty-linker-plugin";;
6516 *)
6517 as_fn_error "libiberty missing" "$LINENO" 5;;
6518 esac
6519fi
6520
944792ef 6521# Sometimes we have special requirements for the host libiberty.
6522extra_host_libiberty_configure_flags=
6523case " $configdirs " in
6524 *" lto-plugin "* | *" libcc1 "*)
6525 # When these are to be built as shared libraries, the same applies to
6526 # libiberty.
6527 extra_host_libiberty_configure_flags=--enable-shared
6528 ;;
6529esac
6530
6531
8e1fea1a 6532# Produce a warning message for the subdirs we can't configure.
6533# This isn't especially interesting in the Cygnus tree, but in the individual
6534# FSF releases, it's important to let people know when their machine isn't
6535# supported by the one or two programs in a package.
6536
6537if test -n "${notsupp}" && test -z "${norecursion}" ; then
6538 # If $appdirs is non-empty, at least one of those directories must still
6539 # be configured, or we error out. (E.g., if the gas release supports a
6540 # specified target in some subdirs but not the gas subdir, we shouldn't
6541 # pretend that all is well.)
6542 if test -n "$appdirs" ; then
6543 for dir in $appdirs ; do
6544 if test -r $dir/Makefile.in ; then
6545 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6546 appdirs=""
6547 break
6548 fi
2f8725b0 6549 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6550 appdirs=""
6551 break
6552 fi
6553 fi
6554 done
6555 if test -n "$appdirs" ; then
6556 echo "*** This configuration is not supported by this package." 1>&2
6557 exit 1
6558 fi
6559 fi
6560 # Okay, some application will build, or we don't care to check. Still
6561 # notify of subdirs not getting built.
6562 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6563 echo " ${notsupp}" 1>&2
6564 echo " (Any other directories should still work fine.)" 1>&2
6565fi
6566
6567case "$host" in
6568 *msdosdjgpp*)
6569 enable_gdbtk=no ;;
6570esac
6571
eae5b2bc 6572# To find our prefix, in gcc_cv_tool_prefix.
6573
6574# The user is always right.
6575if test "${PATH_SEPARATOR+set}" != set; then
6576 echo "#! /bin/sh" >conf$$.sh
6577 echo "exit 0" >>conf$$.sh
6578 chmod +x conf$$.sh
6579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6580 PATH_SEPARATOR=';'
6581 else
6582 PATH_SEPARATOR=:
6583 fi
6584 rm -f conf$$.sh
6585fi
6586
6587
6588
6589if test "x$exec_prefix" = xNONE; then
6590 if test "x$prefix" = xNONE; then
6591 gcc_cv_tool_prefix=$ac_default_prefix
6592 else
6593 gcc_cv_tool_prefix=$prefix
6594 fi
6595else
6596 gcc_cv_tool_prefix=$exec_prefix
6597fi
6598
6599# If there is no compiler in the tree, use the PATH only. In any
6600# case, if there is no compiler in the tree nobody should use
6601# AS_FOR_TARGET and LD_FOR_TARGET.
6602if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6603 gcc_version=`cat $srcdir/gcc/BASE-VER`
6604 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6610else
6611 gcc_cv_tool_dirs=
6612fi
6613
6614if test x$build = x$target && test -n "$md_exec_prefix"; then
6615 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6616fi
6617
6618
6619
8e1fea1a 6620copy_dirs=
6621
b30fcfae 6622
cd9a469c 6623# Check whether --with-build-sysroot was given.
6624if test "${with_build_sysroot+set}" = set; then :
6625 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6626 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6627 fi
6628else
6629 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6630fi
ffa8502d 6631
6632
5f1f2de5 6633
cd9a469c 6634
6635# Check whether --with-debug-prefix-map was given.
6636if test "${with_debug_prefix_map+set}" = set; then :
6637 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6638 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6639 for debug_map in $withval; do
6640 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6641 done
6642 fi
6643else
6644 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6645fi
6646
5f1f2de5 6647
6648
c898f165 6649# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6650# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6651# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6652# We want to ensure that TARGET libraries (which we know are built with
6653# gcc) are built with "-O2 -g", so include those options when setting
6654# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6655if test "x$CFLAGS_FOR_TARGET" = x; then
6656 CFLAGS_FOR_TARGET=$CFLAGS
6657 case " $CFLAGS " in
6658 *" -O2 "*) ;;
2be1222c 6659 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
c898f165 6660 esac
6661 case " $CFLAGS " in
6662 *" -g "* | *" -g3 "*) ;;
2be1222c 6663 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
c898f165 6664 esac
6665fi
6666
6667
6668if test "x$CXXFLAGS_FOR_TARGET" = x; then
6669 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6670 case " $CXXFLAGS " in
6671 *" -O2 "*) ;;
2be1222c 6672 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
c898f165 6673 esac
6674 case " $CXXFLAGS " in
6675 *" -g "* | *" -g3 "*) ;;
2be1222c 6676 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
c898f165 6677 esac
6678fi
6679
6680
ed9516f5 6681
6682
8e1fea1a 6683# Handle --with-headers=XXX. If the value is not "yes", the contents of
6684# the named directory are copied to $(tooldir)/sys-include.
6685if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6686 if test x${is_cross_compiler} = xno ; then
6687 echo 1>&2 '***' --with-headers is only supported when cross compiling
6688 exit 1
6689 fi
6690 if test x"${with_headers}" != xyes ; then
eae5b2bc 6691 x=${gcc_cv_tool_prefix}
b30fcfae 6692 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6693 fi
6694fi
6695
6696# Handle --with-libs=XXX. If the value is not "yes", the contents of
6697# the name directories are copied to $(tooldir)/lib. Multiple directories
6698# are permitted.
6699if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6700 if test x${is_cross_compiler} = xno ; then
6701 echo 1>&2 '***' --with-libs is only supported when cross compiling
6702 exit 1
6703 fi
6704 if test x"${with_libs}" != xyes ; then
6705 # Copy the libraries in reverse order, so that files in the first named
6706 # library override files in subsequent libraries.
eae5b2bc 6707 x=${gcc_cv_tool_prefix}
8e1fea1a 6708 for l in ${with_libs}; do
b30fcfae 6709 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6710 done
6711 fi
6712fi
6713
7bfefa9d 6714# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6715#
6716# This is done by determining whether or not the appropriate directory
6717# is available, and by checking whether or not specific configurations
6718# have requested that this magic not happen.
b30fcfae 6719#
6720# The command line options always override the explicit settings in
c47832b1 6721# configure.in, and the settings in configure.in override this magic.
6722#
b30fcfae 6723# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6724# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6725# --without-gnu-ld options for the configure script. Similarly, if
6726# the default is to use the included zlib and you don't want to do that,
6727# you should use the --with-system-zlib option for the configure script.
c47832b1 6728
6729if test x${use_gnu_as} = x &&
6730 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6731 with_gnu_as=yes
6732 extra_host_args="$extra_host_args --with-gnu-as"
6733fi
6734
6735if test x${use_gnu_ld} = x &&
3d47fcf5 6736 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6737 with_gnu_ld=yes
6738 extra_host_args="$extra_host_args --with-gnu-ld"
6739fi
6740
7bfefa9d 6741if test x${use_included_zlib} = x &&
6742 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6743 :
6744else
6745 with_system_zlib=yes
6746 extra_host_args="$extra_host_args --with-system-zlib"
6747fi
6748
c47832b1 6749# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6750# can detect this case.
6751
6752if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6753 with_newlib=yes
6754 extra_host_args="$extra_host_args --with-newlib"
6755fi
6756
8e1fea1a 6757# Handle ${copy_dirs}
6758set fnord ${copy_dirs}
6759shift
6760while test $# != 0 ; do
6761 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6762 :
6763 else
6764 echo Copying $1 to $2
6765
6766 # Use the install script to create the directory and all required
6767 # parent directories.
6768 if test -d $2 ; then
6769 :
6770 else
6771 echo >config.temp
6772 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6773 fi
6774
6775 # Copy the directory, assuming we have tar.
6776 # FIXME: Should we use B in the second tar? Not all systems support it.
6777 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6778
6779 # It is the responsibility of the user to correctly adjust all
6780 # symlinks. If somebody can figure out how to handle them correctly
6781 # here, feel free to add the code.
6782
6783 echo $1 > $2/COPIED
6784 fi
6785 shift; shift
6786done
6787
c47832b1 6788# Determine a target-dependent exec_prefix that the installed
6789# gcc will search in. Keep this list sorted by triplet, with
6790# the *-*-osname triplets last.
6791md_exec_prefix=
6792case "${target}" in
09c2d953 6793 i[34567]86-pc-msdosdjgpp*)
c47832b1 6794 md_exec_prefix=/dev/env/DJDIR/bin
6795 ;;
c47832b1 6796 *-*-hpux* | \
c47832b1 6797 *-*-nto-qnx* | \
93faf308 6798 *-*-solaris2*)
c47832b1 6799 md_exec_prefix=/usr/ccs/bin
6800 ;;
6801esac
6802
71ab34df 6803extra_arflags_for_target=
6804extra_nmflags_for_target=
6805extra_ranlibflags_for_target=
6806target_makefile_frag=/dev/null
6807case "${target}" in
57c7de11 6808 spu-*-*)
6809 target_makefile_frag="config/mt-spu"
6810 ;;
d781ea5c 6811 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
f8520ad7 6812 target_makefile_frag="config/mt-sde"
6813 ;;
3013c2c7 6814 mipsisa*-*-elfoabi*)
6815 target_makefile_frag="config/mt-mips-elfoabi"
6816 ;;
559b0712 6817 mips*-*-*linux* | mips*-*-gnu*)
6818 target_makefile_frag="config/mt-mips-gnu"
6819 ;;
2481a2c1 6820 nios2-*-elf*)
6821 target_makefile_frag="config/mt-nios2-elf"
6822 ;;
3bef4012 6823 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 6824 target_makefile_frag="config/mt-gnu"
71ab34df 6825 ;;
6826 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 6827 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 6828 # commands to handle both 32-bit and 64-bit objects. These flags are
6829 # harmless if we're using GNU nm or ar.
6830 extra_arflags_for_target=" -X32_64"
6831 extra_nmflags_for_target=" -B -X32_64"
6832 ;;
71ab34df 6833esac
6834
6835alphaieee_frag=/dev/null
6836case $target in
6837 alpha*-*-*)
6838 # This just makes sure to use the -mieee option to build target libs.
6839 # This should probably be set individually by each library.
6840 alphaieee_frag="config/mt-alphaieee"
6841 ;;
6842esac
6843
6844# If --enable-target-optspace always use -Os instead of -O2 to build
6845# the target libraries, similarly if it is not specified, use -Os
6846# on selected platforms.
6847ospace_frag=/dev/null
6848case "${enable_target_optspace}:${target}" in
6849 yes:*)
6850 ospace_frag="config/mt-ospace"
6851 ;;
6852 :d30v-*)
6853 ospace_frag="config/mt-d30v"
6854 ;;
6855 :m32r-* | :d10v-* | :fr30-*)
6856 ospace_frag="config/mt-ospace"
6857 ;;
6858 no:* | :*)
6859 ;;
6860 *)
6861 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6862 ;;
6863esac
6864
71ab34df 6865# Some systems (e.g., one of the i386-aix systems the gas testers are
6866# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 6867tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 6868build_tooldir=${tooldir}
6869
71ab34df 6870# Create a .gdbinit file which runs the one in srcdir
6871# and tells GDB to look there for source files.
6872
6873if test -r ${srcdir}/.gdbinit ; then
6874 case ${srcdir} in
6875 .) ;;
6876 *) cat > ./.gdbinit <<EOF
6877# ${NO_EDIT}
6878dir ${srcdir}
6879dir .
6880source ${srcdir}/.gdbinit
6881EOF
6882 ;;
6883 esac
6884fi
6885
71ab34df 6886# Make sure that the compiler is able to generate an executable. If it
6887# can't, we are probably in trouble. We don't care whether we can run the
6888# executable--we might be using a cross compiler--we only care whether it
6889# can be created. At this point the main configure script has set CC.
6890we_are_ok=no
6891echo "int main () { return 0; }" > conftest.c
6892${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6893if test $? = 0 ; then
6894 if test -s conftest || test -s conftest.exe ; then
6895 we_are_ok=yes
6896 fi
b30fcfae 6897fi
71ab34df 6898case $we_are_ok in
6899 no)
6900 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6901 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6902 rm -f conftest*
6903 exit 1
6904 ;;
6905esac
6906rm -f conftest*
6907
7d804f04 6908# Decide which environment variable is used to find dynamic libraries.
71ab34df 6909case "${host}" in
6910 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 6911 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 6912 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 6913 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6914esac
6915
7d804f04 6916# On systems where the dynamic library environment variable is PATH,
6917# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6918# built executables to PATH.
6919if test "$RPATH_ENVVAR" = PATH; then
6920 GCC_SHLIB_SUBDIR=/shlib
6921else
6922 GCC_SHLIB_SUBDIR=
6923fi
6924
ee055341 6925# Adjust the toplevel makefile according to whether bootstrap was selected.
6926case $enable_bootstrap in
6927 yes)
6928 bootstrap_suffix=bootstrap
6929 BUILD_CONFIG=bootstrap-debug
6930 ;;
6931 no)
6932 bootstrap_suffix=no-bootstrap
6933 BUILD_CONFIG=
6934 ;;
6935esac
6936
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6938$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6939
6940
6941# Check whether --with-build-config was given.
6942if test "${with_build_config+set}" = set; then :
6943 withval=$with_build_config; case $with_build_config in
6944 yes) with_build_config= ;;
6945 no) with_build_config= BUILD_CONFIG= ;;
6946 esac
6947fi
6948
6949
6950if test "x${with_build_config}" != x; then
6951 BUILD_CONFIG=$with_build_config
6952else
6953 case $BUILD_CONFIG in
6954 bootstrap-debug)
6955 if echo "int f (void) { return 0; }" > conftest.c &&
6956 ${CC} -c conftest.c &&
6957 mv conftest.o conftest.o.g0 &&
6958 ${CC} -c -g conftest.c &&
6959 mv conftest.o conftest.o.g &&
6960 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6961 :
6962 else
6963 BUILD_CONFIG=
6964 fi
6965 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6966 ;;
6967 esac
6968fi
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6970$as_echo "$BUILD_CONFIG" >&6; }
6971
6972
6973# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6975$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6976# Check whether --enable-vtable-verify was given.
6977if test "${enable_vtable_verify+set}" = set; then :
6978 enableval=$enable_vtable_verify; case "$enableval" in
6979 yes) enable_vtable_verify=yes ;;
6980 no) enable_vtable_verify=no ;;
6981 *) enable_vtable_verify=no;;
6982 esac
6983else
6984 enable_vtable_verify=no
6985fi
6986
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6988$as_echo "$enable_vtable_verify" >&6; }
6989
71ab34df 6990# Record target_configdirs and the configure arguments for target and
6991# build configuration in Makefile.
6992target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 6993build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
f4ae1a00 6994bootstrap_fixincludes=no
71ab34df 6995
5c96a839 6996# If we are building libgomp, bootstrap it.
6997if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6998 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6999fi
7000
ee055341 7001# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7002# or bootstrap-ubsan, bootstrap it.
7003if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7004 case "$BUILD_CONFIG" in
7005 *bootstrap-asan* | *bootstrap-ubsan* )
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
f4ae1a00 7007 bootstrap_fixincludes=yes
ee055341 7008 ;;
7009 esac
579abfee 7010fi
7011
ee055341 7012# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7013if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7014 test "$enable_vtable_verify" != no; then
b710ec85 7015 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7016fi
7017
71ab34df 7018# Determine whether gdb needs tk/tcl or not.
7019# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7020# and in that case we want gdb to be built without tk. Ugh!
7021# In fact I believe gdb is the *only* package directly dependent on tk,
7022# so we should be able to put the 'maybe's in unconditionally and
7023# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7024# 100% sure that that's safe though.
8fdaf281 7025
f843f075 7026gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 7027case "$enable_gdbtk" in
7028 no)
7029 GDB_TK="" ;;
8fdaf281 7030 yes)
7031 GDB_TK="${gdb_tk}" ;;
71ab34df 7032 *)
8fdaf281 7033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7034 # distro. Eventually someone will fix this and move Insight, nee
7035 # gdbtk to a separate directory.
7036 if test -d ${srcdir}/gdb/gdbtk ; then
7037 GDB_TK="${gdb_tk}"
7038 else
7039 GDB_TK=""
7040 fi
7041 ;;
71ab34df 7042esac
415470be 7043CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7044INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 7045
01b41571 7046# Strip out unwanted targets.
6f4f34a7 7047
7048# While at that, we remove Makefiles if we were started for recursive
7049# configuration, so that the top-level Makefile reconfigures them,
7050# like we used to do when configure itself was recursive.
6f4f34a7 7051
8bb79148 7052# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7053# but now we're fixing up the Makefile ourselves with the additional
7054# commands passed to AC_CONFIG_FILES. Use separate variables
7055# extrasub-{build,host,target} not because there is any reason to split
7056# the substitutions up that way, but only to remain below the limit of
7057# 99 commands in a script, for HP-UX sed.
7058# Do not nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 7059
7b5fee3e 7060case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7061 yes:yes:*\ gold\ *:*,c++,*) ;;
7062 yes:yes:*\ gold\ *:*)
7063 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7064 ;;
7065esac
7066
8bb79148 7067extrasub_build=
2f8725b0 7068for module in ${build_configdirs} ; do
93f93279 7069 if test -z "${no_recursion}" \
7070 && test -f ${build_subdir}/${module}/Makefile; then
7071 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7072 rm -f ${build_subdir}/${module}/Makefile
7073 fi
8bb79148 7074 extrasub_build="$extrasub_build
93f93279 7075/^@if build-$module\$/d
7076/^@endif build-$module\$/d
7077/^@if build-$module-$bootstrap_suffix\$/d
7078/^@endif build-$module-$bootstrap_suffix\$/d"
7079done
8bb79148 7080extrasub_host=
93f93279 7081for module in ${configdirs} ; do
9c19a746 7082 if test -z "${no_recursion}"; then
35d84d10 7083 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7084 if test -f ${file}; then
7085 echo 1>&2 "*** removing ${file} to force reconfigure"
7086 rm -f ${file}
7087 fi
7088 done
93f93279 7089 fi
f4ae1a00 7090 case ${module},${bootstrap_fixincludes} in
7091 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7092 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7093 esac
8bb79148 7094 extrasub_host="$extrasub_host
93f93279 7095/^@if $module\$/d
7096/^@endif $module\$/d
f4ae1a00 7097/^@if $module-$host_bootstrap_suffix\$/d
7098/^@endif $module-$host_bootstrap_suffix\$/d"
93f93279 7099done
8bb79148 7100extrasub_target=
93f93279 7101for module in ${target_configdirs} ; do
7102 if test -z "${no_recursion}" \
7103 && test -f ${target_subdir}/${module}/Makefile; then
7104 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7105 rm -f ${target_subdir}/${module}/Makefile
7106 fi
7ab76cec 7107
7108 # We only bootstrap target libraries listed in bootstrap_target_libs.
7109 case $bootstrap_target_libs in
7110 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7111 *) target_bootstrap_suffix=no-bootstrap ;;
7112 esac
7113
8bb79148 7114 extrasub_target="$extrasub_target
93f93279 7115/^@if target-$module\$/d
7116/^@endif target-$module\$/d
7ab76cec 7117/^@if target-$module-$target_bootstrap_suffix\$/d
7118/^@endif target-$module-$target_bootstrap_suffix\$/d"
93f93279 7119done
7120
8bb79148 7121# Do the final fixup along with target modules.
7122extrasub_target="$extrasub_target
01b41571 7123/^@if /,/^@endif /d"
71ab34df 7124
7125# Create the serialization dependencies. This uses a temporary file.
7126
cd9a469c 7127# Check whether --enable-serial-configure was given.
7128if test "${enable_serial_configure+set}" = set; then :
7129 enableval=$enable_serial_configure;
7130fi
11d8013a 7131
7132
622c1fa9 7133case ${enable_serial_configure} in
7134 yes)
7135 enable_serial_build_configure=yes
7136 enable_serial_host_configure=yes
7137 enable_serial_target_configure=yes
7138 ;;
7139esac
7140
71ab34df 7141# These force 'configure's to be done one at a time, to avoid problems
7142# with contention over a shared config.cache.
7143rm -f serdep.tmp
11d8013a 7144echo '# serdep.tmp' > serdep.tmp
71ab34df 7145olditem=
622c1fa9 7146test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7147for item in ${build_configdirs} ; do
7148 case ${olditem} in
7149 "") ;;
11d8013a 7150 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7151 esac
7152 olditem=${item}
7153done
7154olditem=
622c1fa9 7155test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7156for item in ${configdirs} ; do
7157 case ${olditem} in
7158 "") ;;
11d8013a 7159 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7160 esac
7161 olditem=${item}
7162done
7163olditem=
622c1fa9 7164test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7165for item in ${target_configdirs} ; do
7166 case ${olditem} in
7167 "") ;;
11d8013a 7168 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7169 esac
7170 olditem=${item}
7171done
7172serialization_dependencies=serdep.tmp
7173
7174
11d8013a 7175# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7176# target, nonopt, and variable assignments. These are the ones we
412c2e81 7177# might not want to pass down to subconfigures. The exception being
7178# --cache-file=/dev/null, which is used to turn off the use of cache
7179# files altogether, and which should be passed on to subconfigures.
7180# Also strip program-prefix, program-suffix, and program-transform-name,
7181# so that we can pass down a consistent program-transform-name.
b30fcfae 7182baseargs=
0e4d1862 7183tbaseargs=
b30fcfae 7184keep_next=no
7185skip_next=no
7186eval "set -- $ac_configure_args"
4ff792a4 7187for ac_arg
7188do
b30fcfae 7189 if test X"$skip_next" = X"yes"; then
7190 skip_next=no
7191 continue
7192 fi
7193 if test X"$keep_next" = X"yes"; then
7194 case $ac_arg in
7195 *\'*)
7196 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7197 esac
7198 baseargs="$baseargs '$ac_arg'"
0e4d1862 7199 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7200 keep_next=no
7201 continue
7202 fi
7203
7204 # Handle separated arguments. Based on the logic generated by
7205 # autoconf 2.59.
7206 case $ac_arg in
7207 *=* | --config-cache | -C | -disable-* | --disable-* \
7208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7210 | -with-* | --with-* | -without-* | --without-* | --x)
7211 separate_arg=no
7212 ;;
7213 -*)
7214 separate_arg=yes
7215 ;;
7216 *)
7217 separate_arg=no
7218 ;;
7219 esac
7220
0e4d1862 7221 skip_targ=no
7222 case $ac_arg in
7223
7224 --with-* | --without-*)
7225 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7226
7227 case $libopt in
7228 *[-_]include)
7229 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7230 ;;
7231 *[-_]lib)
7232 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7233 ;;
7234 *)
7235 lib=$libopt
7236 ;;
7237 esac
7238
7239
7240 case $lib in
572cf1f7 7241 mpc | mpfr | gmp | isl)
0e4d1862 7242 # If we're processing --with-$lib, --with-$lib-include or
7243 # --with-$lib-lib, for one of the libs above, and target is
7244 # different from host, don't pass the current argument to any
7245 # target library's configure.
7246 if test x$is_cross_compiler = xyes; then
7247 skip_targ=yes
7248 fi
7249 ;;
7250 esac
7251 ;;
7252 esac
7253
b30fcfae 7254 case "$ac_arg" in
412c2e81 7255 --cache-file=/dev/null | \
7256 -cache-file=/dev/null )
7257 # Handled here to avoid the test to skip args below.
7258 baseargs="$baseargs '$ac_arg'"
0e4d1862 7259 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7260 # Assert: $separate_arg should always be no.
7261 keep_next=$separate_arg
7262 ;;
b30fcfae 7263 --no*)
7264 continue
7265 ;;
7266 --c* | \
7267 --sr* | \
7268 --ho* | \
7269 --bu* | \
7270 --t* | \
7271 --program-* | \
7272 -cache_file* | \
7273 -srcdir* | \
7274 -host* | \
7275 -build* | \
7276 -target* | \
7277 -program-prefix* | \
7278 -program-suffix* | \
7279 -program-transform-name* )
7280 skip_next=$separate_arg
7281 continue
7282 ;;
7283 -*)
7284 # An option. Add it.
7285 case $ac_arg in
7286 *\'*)
7287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288 esac
7289 baseargs="$baseargs '$ac_arg'"
0e4d1862 7290 if test X"$skip_targ" = Xno; then
7291 tbaseargs="$tbaseargs '$ac_arg'"
7292 fi
b30fcfae 7293 keep_next=$separate_arg
7294 ;;
7295 *)
7296 # Either a variable assignment, or a nonopt (triplet). Don't
7297 # pass it down; let the Makefile handle this.
7298 continue
7299 ;;
7300 esac
7301done
7302# Remove the initial space we just introduced and, as these will be
7303# expanded by make, quote '$'.
7304baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7305
fbfea1fa 7306# Add in --program-transform-name, after --program-prefix and
7307# --program-suffix have been applied to it. Autoconf has already
7308# doubled dollar signs and backslashes in program_transform_name; we want
7309# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7310# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7311# Also, because we want to override the logic in subdir configure scripts to
7312# choose program_transform_name, replace any s,x,x, with s,y,y,.
7313sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7314${program_transform_name}
7315EOF_SED
7316gcc_transform_name=`cat conftestsed.out`
7317rm -f conftestsed.out
7318baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7319tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7320if test "$silent" = yes; then
7321 baseargs="$baseargs --silent"
0e4d1862 7322 tbaseargs="$tbaseargs --silent"
af7bb0c0 7323fi
cd2f3773 7324baseargs="$baseargs --disable-option-checking"
0e4d1862 7325tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7326
372a3f1e 7327# Record and document user additions to sub configure arguments.
7328
7329
7330
7331
71ab34df 7332# For the build-side libraries, we just need to pretend we're native,
7333# and not use the same cache file. Multilibs are neither needed nor
b85b703b 7334# desired. We can't even use the same cache file for all build-side
7335# libraries, as they're compiled differently; some with C, some with
7336# C++ or with different feature-enabling options.
7337build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
71ab34df 7338
7339# For host modules, accept cache file option, or specification as blank.
7340case "${cache_file}" in
7341"") # empty
7342 cache_file_option="" ;;
7343/* | [A-Za-z]:[\\/]* ) # absolute path
7344 cache_file_option="--cache-file=${cache_file}" ;;
7345*) # relative path
7346 cache_file_option="--cache-file=../${cache_file}" ;;
7347esac
7348
ba1081ef 7349# Host dirs don't like to share a cache file either, horribly enough.
7350# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7351host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7352
0e4d1862 7353target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7354
7355# Passing a --with-cross-host argument lets the target libraries know
7356# whether they are being built with a cross-compiler or being built
7357# native. However, it would be better to use other mechanisms to make the
7358# sorts of decisions they want to make on this basis. Please consider
7359# this option to be deprecated. FIXME.
7360if test x${is_cross_compiler} = xyes ; then
b30fcfae 7361 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7362fi
7363
87ebeb4c 7364# Special user-friendly check for native x86_64-linux build, if
7365# multilib is not explicitly enabled.
7366case "$target:$have_compiler:$host:$target:$enable_multilib" in
7367 x86_64-*linux*:yes:$build:$build:)
7368 # Make sure we have a developement environment that handles 32-bit
7369 dev64=no
7370 echo "int main () { return 0; }" > conftest.c
7371 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7372 if test $? = 0 ; then
7373 if test -s conftest || test -s conftest.exe ; then
7374 dev64=yes
7375 fi
7376 fi
7377 rm -f conftest*
7378 if test x${dev64} != xyes ; then
7379 as_fn_error "I suspect your system does not have 32-bit developement 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
7380 fi
7381 ;;
7382esac
7383
59a40389 7384# Default to --enable-multilib.
7385if test x${enable_multilib} = x ; then
71ab34df 7386 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7387fi
71ab34df 7388
7389# Pass --with-newlib if appropriate. Note that target_configdirs has
7390# changed from the earlier setting of with_newlib.
7391if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392 target_configargs="--with-newlib ${target_configargs}"
7393fi
7394
74fef112 7395# Different target subdirs use different values of certain variables
7396# (notably CXX). Worse, multilibs use *lots* of different values.
7397# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398# it doesn't automatically accept command-line overrides of them.
7399# This means it's not safe for target subdirs to share a cache file,
7400# which is disgusting, but there you have it. Hopefully this can be
7401# fixed in future. It's still worthwhile to use a cache file for each
7402# directory. I think.
7403
a8abbd9d 7404# Pass the appropriate --build, --host, --target and --cache-file arguments.
7405# We need to pass --target, as newer autoconf's requires consistency
7406# for target_alias and gcc doesn't manage it consistently.
d45318b3 7407target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7408
71ab34df 7409FLAGS_FOR_TARGET=
7410case " $target_configdirs " in
7411 *" newlib "*)
7412 case " $target_configargs " in
7413 *" --with-newlib "*)
7414 case "$target" in
fe284774 7415 *-cygwin*)
db54564d 7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
fe284774 7417 ;;
71ab34df 7418 esac
7419
7420 # If we're not building GCC, don't discard standard headers.
7421 if test -d ${srcdir}/gcc; then
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7423
7424 if test "${build}" != "${host}"; then
7425 # On Canadian crosses, CC_FOR_TARGET will have already been set
7426 # by `configure', so we won't have an opportunity to add -Bgcc/
7427 # to it. This is right: we don't want to search that directory
7428 # for binaries, but we want the header files in there, so add
7429 # them explicitly.
e619f0a6 7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7431
7432 # Someone might think of using the pre-installed headers on
7433 # Canadian crosses, in case the installed compiler is not fully
7434 # compatible with the compiler being built. In this case, it
7435 # would be better to flag an error than risking having
7436 # incompatible object files being constructed. We can't
7437 # guarantee that an error will be flagged, but let's hope the
7438 # compiler will do it, when presented with incompatible header
7439 # files.
7440 fi
7441 fi
7442
7443 case "${target}-${is_cross_compiler}" in
f74ea578 7444 i[3456789]86-*-linux*-no)
71ab34df 7445 # Here host == target, so we don't need to build gcc,
7446 # so we don't want to discard standard headers.
7447 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7448 ;;
7449 *)
7450 # If we're building newlib, use its generic headers last, but search
7451 # for any libc-related directories first (so make it the last -B
7452 # switch).
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7454
7455 # If we're building libgloss, find the startup file, simulator library
7456 # and linker script.
7457 case " $target_configdirs " in
7458 *" libgloss "*)
7459 # Look for startup file, simulator library and maybe linker script.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461 # Look for libnosys.a in case the target needs it.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463 # Most targets have the linker script in the source directory.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7465 ;;
7466 esac
71ab34df 7467 ;;
7468 esac
7469 ;;
7470 esac
7471 ;;
7472esac
fe284774 7473
d6d689df 7474case "$target" in
fe284774 7475 x86_64-*mingw* | *-w64-mingw*)
7476 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477 # however, use a symlink named 'mingw' in ${prefix} .
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7479 ;;
7480 *-mingw*)
7481 # MinGW can't be handled as Cygwin above since it does not use newlib.
7482 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'
7483 ;;
d6d689df 7484esac
71ab34df 7485
d8e9ea04 7486# Allow the user to override the flags for
7487# our build compiler if desired.
823e8b8d 7488if test x"${build}" = x"${host}" ; then
7489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7492fi
d8e9ea04 7493
71ab34df 7494# On Canadian crosses, we'll be searching the right directories for
7495# the previously-installed cross compiler, so don't bother to add
7496# flags for directories within the install tree of the compiler
7497# being built; programs in there won't even run.
7498if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499 # Search for pre-installed headers if nothing else fits.
5750c7d4 7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7501fi
7502
7503if test "x${use_gnu_ld}" = x &&
7504 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7507fi
7508
24714a39 7509# Search for other target-specific linker scripts and such.
7510case "${target}" in
38d7211b 7511 mep*)
7512 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7513 ;;
24714a39 7514esac
7515
71ab34df 7516# Makefile fragments.
03c65091 7517for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7518do
7519 eval fragval=\$$frag
7520 if test $fragval != /dev/null; then
7521 eval $frag=${srcdir}/$fragval
7522 fi
7523done
71ab34df 7524
7525
7526
7527
7528
7529# Miscellanea: directories, flags, etc.
7530
7531
7532
7533
7534
7535
7536
7d804f04 7537
2f8725b0 7538# Build module lists & subconfigure args.
71ab34df 7539
7540
7541
f5aebe3e 7542# Host module lists & subconfigure args.
7543
7544
7545
1fda3360 7546
f5aebe3e 7547# Target module lists & subconfigure args.
7548
7549
7550
7551# Build tools.
7552
7553
7554
93c5e793 7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
f5aebe3e 7569# Generate default definitions for YACC, M4, LEX and other programs that run
7570# on the build machine. These are used if the Makefile can't locate these
7571# programs in objdir.
7572MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7573
7574for ac_prog in 'bison -y' byacc yacc
7575do
b30fcfae 7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7577set dummy $ac_prog; ac_word=$2
cd9a469c 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if test "${ac_cv_prog_YACC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
f5aebe3e 7582else
7583 if test -n "$YACC"; then
7584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7585else
b30fcfae 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
cd9a469c 7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7593 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7595 break 2
7596 fi
7597done
cd9a469c 7598 done
7599IFS=$as_save_IFS
b30fcfae 7600
f5aebe3e 7601fi
7602fi
b30fcfae 7603YACC=$ac_cv_prog_YACC
f5aebe3e 7604if test -n "$YACC"; then
cd9a469c 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606$as_echo "$YACC" >&6; }
f5aebe3e 7607else
cd9a469c 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
f5aebe3e 7610fi
7611
cd9a469c 7612
b30fcfae 7613 test -n "$YACC" && break
f5aebe3e 7614done
7615test -n "$YACC" || YACC="$MISSING bison -y"
7616
7617case " $build_configdirs " in
7618 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7619esac
7620
7621for ac_prog in bison
7622do
b30fcfae 7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7624set dummy $ac_prog; ac_word=$2
cd9a469c 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_BISON+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
f5aebe3e 7629else
7630 if test -n "$BISON"; then
7631 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7632else
b30fcfae 7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
cd9a469c 7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7640 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7642 break 2
7643 fi
7644done
cd9a469c 7645 done
7646IFS=$as_save_IFS
b30fcfae 7647
f5aebe3e 7648fi
7649fi
b30fcfae 7650BISON=$ac_cv_prog_BISON
f5aebe3e 7651if test -n "$BISON"; then
cd9a469c 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7653$as_echo "$BISON" >&6; }
f5aebe3e 7654else
cd9a469c 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
f5aebe3e 7657fi
7658
cd9a469c 7659
b30fcfae 7660 test -n "$BISON" && break
f5aebe3e 7661done
7662test -n "$BISON" || BISON="$MISSING bison"
7663
7664case " $build_configdirs " in
7665 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7666esac
7667
7668for ac_prog in gm4 gnum4 m4
7669do
b30fcfae 7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7671set dummy $ac_prog; ac_word=$2
cd9a469c 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673$as_echo_n "checking for $ac_word... " >&6; }
7674if test "${ac_cv_prog_M4+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
f5aebe3e 7676else
7677 if test -n "$M4"; then
7678 ac_cv_prog_M4="$M4" # Let the user override the test.
7679else
b30fcfae 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
cd9a469c 7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7687 ac_cv_prog_M4="$ac_prog"
cd9a469c 7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7689 break 2
7690 fi
7691done
cd9a469c 7692 done
7693IFS=$as_save_IFS
b30fcfae 7694
f5aebe3e 7695fi
7696fi
b30fcfae 7697M4=$ac_cv_prog_M4
f5aebe3e 7698if test -n "$M4"; then
cd9a469c 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7700$as_echo "$M4" >&6; }
f5aebe3e 7701else
cd9a469c 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
f5aebe3e 7704fi
7705
cd9a469c 7706
b30fcfae 7707 test -n "$M4" && break
f5aebe3e 7708done
7709test -n "$M4" || M4="$MISSING m4"
7710
7711case " $build_configdirs " in
7712 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7713esac
7714
7715for ac_prog in flex lex
7716do
b30fcfae 7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7718set dummy $ac_prog; ac_word=$2
cd9a469c 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
7721if test "${ac_cv_prog_LEX+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
f5aebe3e 7723else
7724 if test -n "$LEX"; then
7725 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7726else
b30fcfae 7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
cd9a469c 7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7734 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7736 break 2
7737 fi
7738done
cd9a469c 7739 done
7740IFS=$as_save_IFS
b30fcfae 7741
f5aebe3e 7742fi
7743fi
b30fcfae 7744LEX=$ac_cv_prog_LEX
f5aebe3e 7745if test -n "$LEX"; then
cd9a469c 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7747$as_echo "$LEX" >&6; }
f5aebe3e 7748else
cd9a469c 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
f5aebe3e 7751fi
7752
cd9a469c 7753
b30fcfae 7754 test -n "$LEX" && break
f5aebe3e 7755done
7756test -n "$LEX" || LEX="$MISSING flex"
7757
7758case " $build_configdirs " in
7759 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7760 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7761esac
7762
7763for ac_prog in flex
7764do
b30fcfae 7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7766set dummy $ac_prog; ac_word=$2
cd9a469c 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_prog_FLEX+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
f5aebe3e 7771else
7772 if test -n "$FLEX"; then
7773 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7774else
b30fcfae 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
cd9a469c 7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7782 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7784 break 2
7785 fi
7786done
cd9a469c 7787 done
7788IFS=$as_save_IFS
b30fcfae 7789
f5aebe3e 7790fi
7791fi
b30fcfae 7792FLEX=$ac_cv_prog_FLEX
f5aebe3e 7793if test -n "$FLEX"; then
cd9a469c 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7795$as_echo "$FLEX" >&6; }
f5aebe3e 7796else
cd9a469c 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
f5aebe3e 7799fi
7800
cd9a469c 7801
b30fcfae 7802 test -n "$FLEX" && break
f5aebe3e 7803done
7804test -n "$FLEX" || FLEX="$MISSING flex"
7805
7806case " $build_configdirs " in
7807 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7808esac
7809
7810for ac_prog in makeinfo
7811do
b30fcfae 7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7813set dummy $ac_prog; ac_word=$2
cd9a469c 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
f5aebe3e 7818else
7819 if test -n "$MAKEINFO"; then
7820 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7821else
b30fcfae 7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
cd9a469c 7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7829 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7831 break 2
7832 fi
7833done
cd9a469c 7834 done
7835IFS=$as_save_IFS
b30fcfae 7836
f5aebe3e 7837fi
7838fi
b30fcfae 7839MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 7840if test -n "$MAKEINFO"; then
cd9a469c 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7842$as_echo "$MAKEINFO" >&6; }
f5aebe3e 7843else
cd9a469c 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
f5aebe3e 7846fi
7847
cd9a469c 7848
b30fcfae 7849 test -n "$MAKEINFO" && break
f5aebe3e 7850done
7851test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7852
7853case " $build_configdirs " in
7854 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7855 *)
7856
03caadda 7857 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 7858 # higher, else we use the "missing" dummy.
7859 if ${MAKEINFO} --version \
03caadda 7860 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 7861 :
7862 else
7863 MAKEINFO="$MISSING makeinfo"
7864 fi
7865 ;;
7866
7867esac
71ab34df 7868
f5aebe3e 7869# FIXME: expect and dejagnu may become build tools?
71ab34df 7870
f5aebe3e 7871for ac_prog in expect
7872do
b30fcfae 7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7874set dummy $ac_prog; ac_word=$2
cd9a469c 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if test "${ac_cv_prog_EXPECT+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
f5aebe3e 7879else
7880 if test -n "$EXPECT"; then
7881 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7882else
b30fcfae 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
cd9a469c 7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7890 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7892 break 2
7893 fi
7894done
cd9a469c 7895 done
7896IFS=$as_save_IFS
b30fcfae 7897
f5aebe3e 7898fi
7899fi
b30fcfae 7900EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 7901if test -n "$EXPECT"; then
cd9a469c 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7903$as_echo "$EXPECT" >&6; }
f5aebe3e 7904else
cd9a469c 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
f5aebe3e 7907fi
71ab34df 7908
cd9a469c 7909
b30fcfae 7910 test -n "$EXPECT" && break
f5aebe3e 7911done
7912test -n "$EXPECT" || EXPECT="expect"
71ab34df 7913
f5aebe3e 7914case " $configdirs " in
7915 *" expect "*)
7916 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7917 ;;
7918esac
71ab34df 7919
f5aebe3e 7920for ac_prog in runtest
7921do
b30fcfae 7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7923set dummy $ac_prog; ac_word=$2
cd9a469c 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
7926if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
f5aebe3e 7928else
7929 if test -n "$RUNTEST"; then
7930 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 7931else
b30fcfae 7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
cd9a469c 7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7939 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7941 break 2
7942 fi
7943done
cd9a469c 7944 done
7945IFS=$as_save_IFS
b30fcfae 7946
f5aebe3e 7947fi
7948fi
b30fcfae 7949RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 7950if test -n "$RUNTEST"; then
cd9a469c 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7952$as_echo "$RUNTEST" >&6; }
f5aebe3e 7953else
cd9a469c 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
f5aebe3e 7956fi
71ab34df 7957
cd9a469c 7958
b30fcfae 7959 test -n "$RUNTEST" && break
f5aebe3e 7960done
7961test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 7962
f5aebe3e 7963case " $configdirs " in
7964 *" dejagnu "*)
8d365775 7965 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 7966 ;;
7967esac
71ab34df 7968
7969
71ab34df 7970# Host tools.
bb612911 7971ncn_tool_prefix=
7972test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7973ncn_target_tool_prefix=
7974test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7975
95a05732 7976
7977
7978if test -n "$AR"; then
7979 ac_cv_prog_AR=$AR
7980elif test -n "$ac_cv_prog_AR"; then
7981 AR=$ac_cv_prog_AR
7982fi
7983
7984if test -n "$ac_cv_prog_AR"; then
7985 for ncn_progname in ar; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987set dummy ${ncn_progname}; ac_word=$2
cd9a469c 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
7990if test "${ac_cv_prog_AR+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
95a05732 7992else
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR="$AR" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
cd9a469c 8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8003 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8005 break 2
8006 fi
8007done
cd9a469c 8008 done
8009IFS=$as_save_IFS
95a05732 8010
8011fi
8012fi
8013AR=$ac_cv_prog_AR
8014if test -n "$AR"; then
cd9a469c 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8016$as_echo "$AR" >&6; }
95a05732 8017else
cd9a469c 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019$as_echo "no" >&6; }
95a05732 8020fi
8021
cd9a469c 8022
95a05732 8023 done
8024fi
8025
8026for ncn_progname in ar; do
768691b5 8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031$as_echo_n "checking for $ac_word... " >&6; }
8032if test "${ac_cv_prog_AR+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
bb612911 8034else
8035 if test -n "$AR"; then
8036 ac_cv_prog_AR="$AR" # Let the user override the test.
8037else
b30fcfae 8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
cd9a469c 8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8045 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8047 break 2
8048 fi
8049done
cd9a469c 8050 done
8051IFS=$as_save_IFS
b30fcfae 8052
bb612911 8053fi
8054fi
b30fcfae 8055AR=$ac_cv_prog_AR
bb612911 8056if test -n "$AR"; then
cd9a469c 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058$as_echo "$AR" >&6; }
bb612911 8059else
cd9a469c 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
bb612911 8062fi
8063
cd9a469c 8064
768691b5 8065 fi
8066 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
bb612911 8073else
768691b5 8074 if test -n "$AR"; then
ae48753c 8075 ac_cv_prog_AR="$AR" # Let the user override the test.
8076else
b30fcfae 8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
cd9a469c 8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8084 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8086 break 2
8087 fi
8088done
cd9a469c 8089 done
8090IFS=$as_save_IFS
b30fcfae 8091
bb612911 8092fi
8093fi
b30fcfae 8094AR=$ac_cv_prog_AR
768691b5 8095if test -n "$AR"; then
cd9a469c 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097$as_echo "$AR" >&6; }
bb612911 8098else
cd9a469c 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
bb612911 8101fi
b30fcfae 8102
cd9a469c 8103
768691b5 8104 fi
8105 test -n "$ac_cv_prog_AR" && break
8106done
8107
8108if test -z "$ac_cv_prog_AR" ; then
8109 set dummy ar
8110 if test $build = $host ; then
8111 AR="$2"
bb612911 8112 else
768691b5 8113 AR="${ncn_tool_prefix}$2"
bb612911 8114 fi
bb612911 8115fi
8116
95a05732 8117
8118
8119if test -n "$AS"; then
8120 ac_cv_prog_AS=$AS
8121elif test -n "$ac_cv_prog_AS"; then
8122 AS=$ac_cv_prog_AS
8123fi
8124
8125if test -n "$ac_cv_prog_AS"; then
8126 for ncn_progname in as; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AS+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
95a05732 8133else
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS="$AS" # Let the user override the test.
8136else
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
cd9a469c 8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8144 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8146 break 2
8147 fi
8148done
cd9a469c 8149 done
8150IFS=$as_save_IFS
95a05732 8151
8152fi
8153fi
8154AS=$ac_cv_prog_AS
8155if test -n "$AS"; then
cd9a469c 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8157$as_echo "$AS" >&6; }
95a05732 8158else
cd9a469c 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
95a05732 8161fi
8162
cd9a469c 8163
95a05732 8164 done
8165fi
8166
8167for ncn_progname in as; do
768691b5 8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if test "${ac_cv_prog_AS+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
bb612911 8175else
8176 if test -n "$AS"; then
8177 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8178else
b30fcfae 8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
cd9a469c 8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8188 break 2
8189 fi
8190done
cd9a469c 8191 done
8192IFS=$as_save_IFS
b30fcfae 8193
bb612911 8194fi
8195fi
b30fcfae 8196AS=$ac_cv_prog_AS
bb612911 8197if test -n "$AS"; then
cd9a469c 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8199$as_echo "$AS" >&6; }
bb612911 8200else
cd9a469c 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
bb612911 8203fi
8204
cd9a469c 8205
768691b5 8206 fi
8207 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if test "${ac_cv_prog_AS+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
bb612911 8214else
768691b5 8215 if test -n "$AS"; then
8216 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8217else
b30fcfae 8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
cd9a469c 8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8225 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8227 break 2
8228 fi
8229done
cd9a469c 8230 done
8231IFS=$as_save_IFS
b30fcfae 8232
bb612911 8233fi
8234fi
b30fcfae 8235AS=$ac_cv_prog_AS
768691b5 8236if test -n "$AS"; then
cd9a469c 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8238$as_echo "$AS" >&6; }
bb612911 8239else
cd9a469c 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
bb612911 8242fi
b30fcfae 8243
cd9a469c 8244
768691b5 8245 fi
8246 test -n "$ac_cv_prog_AS" && break
8247done
8248
8249if test -z "$ac_cv_prog_AS" ; then
8250 set dummy as
8251 if test $build = $host ; then
8252 AS="$2"
bb612911 8253 else
768691b5 8254 AS="${ncn_tool_prefix}$2"
bb612911 8255 fi
bb612911 8256fi
8257
95a05732 8258
8259
8260if test -n "$DLLTOOL"; then
8261 ac_cv_prog_DLLTOOL=$DLLTOOL
8262elif test -n "$ac_cv_prog_DLLTOOL"; then
8263 DLLTOOL=$ac_cv_prog_DLLTOOL
8264fi
8265
8266if test -n "$ac_cv_prog_DLLTOOL"; then
8267 for ncn_progname in dlltool; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
95a05732 8274else
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
cd9a469c 8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8285 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8287 break 2
8288 fi
8289done
cd9a469c 8290 done
8291IFS=$as_save_IFS
95a05732 8292
8293fi
8294fi
8295DLLTOOL=$ac_cv_prog_DLLTOOL
8296if test -n "$DLLTOOL"; then
cd9a469c 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8298$as_echo "$DLLTOOL" >&6; }
95a05732 8299else
cd9a469c 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
95a05732 8302fi
8303
cd9a469c 8304
95a05732 8305 done
8306fi
8307
8308for ncn_progname in dlltool; do
768691b5 8309 if test -n "$ncn_tool_prefix"; then
8310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8311set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
bb612911 8316else
8317 if test -n "$DLLTOOL"; then
8318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8319else
b30fcfae 8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
cd9a469c 8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8327 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8329 break 2
8330 fi
8331done
cd9a469c 8332 done
8333IFS=$as_save_IFS
b30fcfae 8334
bb612911 8335fi
8336fi
b30fcfae 8337DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8338if test -n "$DLLTOOL"; then
cd9a469c 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8340$as_echo "$DLLTOOL" >&6; }
bb612911 8341else
cd9a469c 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
bb612911 8344fi
8345
cd9a469c 8346
768691b5 8347 fi
8348 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352$as_echo_n "checking for $ac_word... " >&6; }
8353if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
bb612911 8355else
768691b5 8356 if test -n "$DLLTOOL"; then
8357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8358else
b30fcfae 8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
cd9a469c 8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8366 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8368 break 2
8369 fi
8370done
cd9a469c 8371 done
8372IFS=$as_save_IFS
b30fcfae 8373
bb612911 8374fi
8375fi
b30fcfae 8376DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8377if test -n "$DLLTOOL"; then
cd9a469c 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8379$as_echo "$DLLTOOL" >&6; }
bb612911 8380else
cd9a469c 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
bb612911 8383fi
b30fcfae 8384
cd9a469c 8385
768691b5 8386 fi
8387 test -n "$ac_cv_prog_DLLTOOL" && break
8388done
8389
8390if test -z "$ac_cv_prog_DLLTOOL" ; then
8391 set dummy dlltool
8392 if test $build = $host ; then
8393 DLLTOOL="$2"
bb612911 8394 else
768691b5 8395 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8396 fi
bb612911 8397fi
8398
95a05732 8399
8400
8401if test -n "$LD"; then
8402 ac_cv_prog_LD=$LD
8403elif test -n "$ac_cv_prog_LD"; then
8404 LD=$ac_cv_prog_LD
8405fi
8406
8407if test -n "$ac_cv_prog_LD"; then
8408 for ncn_progname in ld; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_LD+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
95a05732 8415else
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD="$LD" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
cd9a469c 8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8426 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8428 break 2
8429 fi
8430done
cd9a469c 8431 done
8432IFS=$as_save_IFS
95a05732 8433
8434fi
8435fi
8436LD=$ac_cv_prog_LD
8437if test -n "$LD"; then
cd9a469c 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8439$as_echo "$LD" >&6; }
95a05732 8440else
cd9a469c 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
95a05732 8443fi
8444
cd9a469c 8445
95a05732 8446 done
8447fi
8448
8449for ncn_progname in ld; do
768691b5 8450 if test -n "$ncn_tool_prefix"; then
8451 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8452set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_LD+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
bb612911 8457else
8458 if test -n "$LD"; then
8459 ac_cv_prog_LD="$LD" # Let the user override the test.
8460else
b30fcfae 8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
cd9a469c 8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8468 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8470 break 2
8471 fi
8472done
cd9a469c 8473 done
8474IFS=$as_save_IFS
b30fcfae 8475
bb612911 8476fi
8477fi
b30fcfae 8478LD=$ac_cv_prog_LD
bb612911 8479if test -n "$LD"; then
cd9a469c 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8481$as_echo "$LD" >&6; }
bb612911 8482else
cd9a469c 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
bb612911 8485fi
8486
cd9a469c 8487
768691b5 8488 fi
8489 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
8494if test "${ac_cv_prog_LD+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
bb612911 8496else
768691b5 8497 if test -n "$LD"; then
8498 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8499else
b30fcfae 8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
cd9a469c 8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8507 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8509 break 2
8510 fi
8511done
cd9a469c 8512 done
8513IFS=$as_save_IFS
b30fcfae 8514
bb612911 8515fi
8516fi
b30fcfae 8517LD=$ac_cv_prog_LD
768691b5 8518if test -n "$LD"; then
cd9a469c 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8520$as_echo "$LD" >&6; }
bb612911 8521else
cd9a469c 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523$as_echo "no" >&6; }
bb612911 8524fi
b30fcfae 8525
cd9a469c 8526
768691b5 8527 fi
8528 test -n "$ac_cv_prog_LD" && break
8529done
8530
8531if test -z "$ac_cv_prog_LD" ; then
8532 set dummy ld
8533 if test $build = $host ; then
8534 LD="$2"
bb612911 8535 else
768691b5 8536 LD="${ncn_tool_prefix}$2"
bb612911 8537 fi
bb612911 8538fi
8539
95a05732 8540
8541
8542if test -n "$LIPO"; then
8543 ac_cv_prog_LIPO=$LIPO
8544elif test -n "$ac_cv_prog_LIPO"; then
8545 LIPO=$ac_cv_prog_LIPO
8546fi
8547
8548if test -n "$ac_cv_prog_LIPO"; then
8549 for ncn_progname in lipo; do
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_LIPO+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
95a05732 8556else
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
cd9a469c 8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8567 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8569 break 2
8570 fi
8571done
cd9a469c 8572 done
8573IFS=$as_save_IFS
95a05732 8574
8575fi
8576fi
8577LIPO=$ac_cv_prog_LIPO
8578if test -n "$LIPO"; then
cd9a469c 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580$as_echo "$LIPO" >&6; }
95a05732 8581else
cd9a469c 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
95a05732 8584fi
8585
cd9a469c 8586
95a05732 8587 done
8588fi
8589
8590for ncn_progname in lipo; do
f5aebe3e 8591 if test -n "$ncn_tool_prefix"; then
8592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8593set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_LIPO+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
f5aebe3e 8598else
8599 if test -n "$LIPO"; then
8600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8601else
b30fcfae 8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
cd9a469c 8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8609 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8611 break 2
8612 fi
8613done
cd9a469c 8614 done
8615IFS=$as_save_IFS
b30fcfae 8616
f5aebe3e 8617fi
8618fi
b30fcfae 8619LIPO=$ac_cv_prog_LIPO
f5aebe3e 8620if test -n "$LIPO"; then
cd9a469c 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8622$as_echo "$LIPO" >&6; }
f5aebe3e 8623else
cd9a469c 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
f5aebe3e 8626fi
8627
cd9a469c 8628
f5aebe3e 8629 fi
8630 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634$as_echo_n "checking for $ac_word... " >&6; }
8635if test "${ac_cv_prog_LIPO+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
f5aebe3e 8637else
8638 if test -n "$LIPO"; then
8639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8640else
b30fcfae 8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
cd9a469c 8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8648 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8650 break 2
8651 fi
8652done
cd9a469c 8653 done
8654IFS=$as_save_IFS
b30fcfae 8655
f5aebe3e 8656fi
8657fi
b30fcfae 8658LIPO=$ac_cv_prog_LIPO
f5aebe3e 8659if test -n "$LIPO"; then
cd9a469c 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8661$as_echo "$LIPO" >&6; }
f5aebe3e 8662else
cd9a469c 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664$as_echo "no" >&6; }
f5aebe3e 8665fi
b30fcfae 8666
cd9a469c 8667
f5aebe3e 8668 fi
8669 test -n "$ac_cv_prog_LIPO" && break
8670done
8671
8672if test -z "$ac_cv_prog_LIPO" ; then
8673 set dummy lipo
8674 if test $build = $host ; then
8675 LIPO="$2"
8676 else
8677 LIPO="${ncn_tool_prefix}$2"
8678 fi
8679fi
8680
95a05732 8681
8682
8683if test -n "$NM"; then
8684 ac_cv_prog_NM=$NM
8685elif test -n "$ac_cv_prog_NM"; then
8686 NM=$ac_cv_prog_NM
8687fi
8688
8689if test -n "$ac_cv_prog_NM"; then
8690 for ncn_progname in nm; do
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if test "${ac_cv_prog_NM+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
bb612911 8697else
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM="$NM" # Let the user override the test.
8700else
b30fcfae 8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
cd9a469c 8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8708 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8710 break 2
8711 fi
8712done
cd9a469c 8713 done
8714IFS=$as_save_IFS
b30fcfae 8715
bb612911 8716fi
8717fi
b30fcfae 8718NM=$ac_cv_prog_NM
bb612911 8719if test -n "$NM"; then
cd9a469c 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8721$as_echo "$NM" >&6; }
bb612911 8722else
cd9a469c 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
bb612911 8725fi
8726
cd9a469c 8727
95a05732 8728 done
8729fi
8730
8731for ncn_progname in nm; do
8732 if test -n "$ncn_tool_prefix"; then
8733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8734set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_NM+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
bb612911 8739else
768691b5 8740 if test -n "$NM"; then
8741 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8742else
b30fcfae 8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
cd9a469c 8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8750 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8752 break 2
8753 fi
8754done
cd9a469c 8755 done
8756IFS=$as_save_IFS
b30fcfae 8757
bb612911 8758fi
8759fi
b30fcfae 8760NM=$ac_cv_prog_NM
768691b5 8761if test -n "$NM"; then
cd9a469c 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8763$as_echo "$NM" >&6; }
bb612911 8764else
cd9a469c 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
bb612911 8767fi
b30fcfae 8768
cd9a469c 8769
768691b5 8770 fi
95a05732 8771 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775$as_echo_n "checking for $ac_word... " >&6; }
8776if test "${ac_cv_prog_NM+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
95a05732 8778else
8779 if test -n "$NM"; then
8780 ac_cv_prog_NM="$NM" # Let the user override the test.
8781else
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
cd9a469c 8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8789 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8791 break 2
8792 fi
8793done
cd9a469c 8794 done
8795IFS=$as_save_IFS
95a05732 8796
8797fi
8798fi
8799NM=$ac_cv_prog_NM
8800if test -n "$NM"; then
cd9a469c 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8802$as_echo "$NM" >&6; }
95a05732 8803else
cd9a469c 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805$as_echo "no" >&6; }
95a05732 8806fi
8807
cd9a469c 8808
95a05732 8809 fi
8810 test -n "$ac_cv_prog_NM" && break
8811done
8812
8813if test -z "$ac_cv_prog_NM" ; then
8814 set dummy nm
8815 if test $build = $host ; then
8816 NM="$2"
8817 else
8818 NM="${ncn_tool_prefix}$2"
8819 fi
8820fi
8821
8822
8823
8824if test -n "$RANLIB"; then
8825 ac_cv_prog_RANLIB=$RANLIB
8826elif test -n "$ac_cv_prog_RANLIB"; then
8827 RANLIB=$ac_cv_prog_RANLIB
8828fi
8829
8830if test -n "$ac_cv_prog_RANLIB"; then
8831 for ncn_progname in ranlib; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if test "${ac_cv_prog_RANLIB+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
95a05732 8838else
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
cd9a469c 8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8849 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8851 break 2
8852 fi
8853done
cd9a469c 8854 done
8855IFS=$as_save_IFS
95a05732 8856
8857fi
8858fi
8859RANLIB=$ac_cv_prog_RANLIB
8860if test -n "$RANLIB"; then
cd9a469c 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862$as_echo "$RANLIB" >&6; }
95a05732 8863else
cd9a469c 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
95a05732 8866fi
8867
cd9a469c 8868
95a05732 8869 done
8870fi
bb612911 8871
95a05732 8872for ncn_progname in ranlib; do
768691b5 8873 if test -n "$ncn_tool_prefix"; then
8874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8875set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_RANLIB+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
bb612911 8880else
8881 if test -n "$RANLIB"; then
8882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8883else
b30fcfae 8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
cd9a469c 8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8891 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8893 break 2
8894 fi
8895done
cd9a469c 8896 done
8897IFS=$as_save_IFS
b30fcfae 8898
bb612911 8899fi
8900fi
b30fcfae 8901RANLIB=$ac_cv_prog_RANLIB
bb612911 8902if test -n "$RANLIB"; then
cd9a469c 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8904$as_echo "$RANLIB" >&6; }
bb612911 8905else
cd9a469c 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
bb612911 8908fi
8909
cd9a469c 8910
768691b5 8911 fi
8912 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if test "${ac_cv_prog_RANLIB+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
bb612911 8919else
768691b5 8920 if test -n "$RANLIB"; then
8921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 8922else
b30fcfae 8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
cd9a469c 8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8930 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8932 break 2
8933 fi
8934done
cd9a469c 8935 done
8936IFS=$as_save_IFS
b30fcfae 8937
bb612911 8938fi
8939fi
b30fcfae 8940RANLIB=$ac_cv_prog_RANLIB
768691b5 8941if test -n "$RANLIB"; then
cd9a469c 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8943$as_echo "$RANLIB" >&6; }
bb612911 8944else
cd9a469c 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
bb612911 8947fi
b30fcfae 8948
cd9a469c 8949
bb612911 8950 fi
768691b5 8951 test -n "$ac_cv_prog_RANLIB" && break
8952done
8953
8954if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 8955 RANLIB="true"
bb612911 8956fi
8957
95a05732 8958
8959
8960if test -n "$STRIP"; then
8961 ac_cv_prog_STRIP=$STRIP
8962elif test -n "$ac_cv_prog_STRIP"; then
8963 STRIP=$ac_cv_prog_STRIP
8964fi
8965
8966if test -n "$ac_cv_prog_STRIP"; then
8967 for ncn_progname in strip; do
8968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8969set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if test "${ac_cv_prog_STRIP+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
95a05732 8974else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
cd9a469c 8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8985 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8987 break 2
8988 fi
8989done
cd9a469c 8990 done
8991IFS=$as_save_IFS
95a05732 8992
8993fi
8994fi
8995STRIP=$ac_cv_prog_STRIP
8996if test -n "$STRIP"; then
cd9a469c 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8998$as_echo "$STRIP" >&6; }
95a05732 8999else
cd9a469c 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
95a05732 9002fi
9003
cd9a469c 9004
95a05732 9005 done
9006fi
9007
9008for ncn_progname in strip; do
f5aebe3e 9009 if test -n "$ncn_tool_prefix"; then
9010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013$as_echo_n "checking for $ac_word... " >&6; }
9014if test "${ac_cv_prog_STRIP+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
f5aebe3e 9016else
9017 if test -n "$STRIP"; then
9018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9019else
b30fcfae 9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
cd9a469c 9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9027 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9029 break 2
9030 fi
9031done
cd9a469c 9032 done
9033IFS=$as_save_IFS
b30fcfae 9034
f5aebe3e 9035fi
9036fi
b30fcfae 9037STRIP=$ac_cv_prog_STRIP
f5aebe3e 9038if test -n "$STRIP"; then
cd9a469c 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9040$as_echo "$STRIP" >&6; }
f5aebe3e 9041else
cd9a469c 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043$as_echo "no" >&6; }
f5aebe3e 9044fi
9045
cd9a469c 9046
f5aebe3e 9047 fi
9048 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9050set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if test "${ac_cv_prog_STRIP+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
f5aebe3e 9055else
9056 if test -n "$STRIP"; then
9057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9058else
b30fcfae 9059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060for as_dir in $PATH
9061do
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
cd9a469c 9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9066 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9068 break 2
9069 fi
9070done
cd9a469c 9071 done
9072IFS=$as_save_IFS
b30fcfae 9073
f5aebe3e 9074fi
9075fi
b30fcfae 9076STRIP=$ac_cv_prog_STRIP
f5aebe3e 9077if test -n "$STRIP"; then
cd9a469c 9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9079$as_echo "$STRIP" >&6; }
f5aebe3e 9080else
cd9a469c 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082$as_echo "no" >&6; }
f5aebe3e 9083fi
b30fcfae 9084
cd9a469c 9085
f5aebe3e 9086 fi
9087 test -n "$ac_cv_prog_STRIP" && break
9088done
9089
9090if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9091 STRIP="true"
f5aebe3e 9092fi
9093
95a05732 9094
9095
9096if test -n "$WINDRES"; then
9097 ac_cv_prog_WINDRES=$WINDRES
9098elif test -n "$ac_cv_prog_WINDRES"; then
9099 WINDRES=$ac_cv_prog_WINDRES
9100fi
9101
9102if test -n "$ac_cv_prog_WINDRES"; then
9103 for ncn_progname in windres; do
9104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9105set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if test "${ac_cv_prog_WINDRES+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
95a05732 9110else
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
cd9a469c 9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9121 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9123 break 2
9124 fi
9125done
cd9a469c 9126 done
9127IFS=$as_save_IFS
95a05732 9128
9129fi
9130fi
9131WINDRES=$ac_cv_prog_WINDRES
9132if test -n "$WINDRES"; then
cd9a469c 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9134$as_echo "$WINDRES" >&6; }
95a05732 9135else
cd9a469c 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
95a05732 9138fi
9139
cd9a469c 9140
95a05732 9141 done
9142fi
9143
9144for ncn_progname in windres; do
768691b5 9145 if test -n "$ncn_tool_prefix"; then
9146 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9147set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if test "${ac_cv_prog_WINDRES+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
bb612911 9152else
9153 if test -n "$WINDRES"; then
9154 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9155else
b30fcfae 9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
cd9a469c 9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9163 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9165 break 2
9166 fi
9167done
cd9a469c 9168 done
9169IFS=$as_save_IFS
b30fcfae 9170
bb612911 9171fi
9172fi
b30fcfae 9173WINDRES=$ac_cv_prog_WINDRES
bb612911 9174if test -n "$WINDRES"; then
cd9a469c 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9176$as_echo "$WINDRES" >&6; }
bb612911 9177else
cd9a469c 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
bb612911 9180fi
9181
cd9a469c 9182
768691b5 9183 fi
9184 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9186set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188$as_echo_n "checking for $ac_word... " >&6; }
9189if test "${ac_cv_prog_WINDRES+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
bb612911 9191else
768691b5 9192 if test -n "$WINDRES"; then
9193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9194else
b30fcfae 9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196for as_dir in $PATH
9197do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
cd9a469c 9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9202 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9204 break 2
9205 fi
9206done
cd9a469c 9207 done
9208IFS=$as_save_IFS
b30fcfae 9209
bb612911 9210fi
9211fi
b30fcfae 9212WINDRES=$ac_cv_prog_WINDRES
768691b5 9213if test -n "$WINDRES"; then
cd9a469c 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9215$as_echo "$WINDRES" >&6; }
bb612911 9216else
cd9a469c 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
bb612911 9219fi
b30fcfae 9220
cd9a469c 9221
768691b5 9222 fi
9223 test -n "$ac_cv_prog_WINDRES" && break
9224done
9225
9226if test -z "$ac_cv_prog_WINDRES" ; then
9227 set dummy windres
9228 if test $build = $host ; then
9229 WINDRES="$2"
bb612911 9230 else
768691b5 9231 WINDRES="${ncn_tool_prefix}$2"
bb612911 9232 fi
bb612911 9233fi
9234
95a05732 9235
9236
75d6a0a9 9237if test -n "$WINDMC"; then
9238 ac_cv_prog_WINDMC=$WINDMC
9239elif test -n "$ac_cv_prog_WINDMC"; then
9240 WINDMC=$ac_cv_prog_WINDMC
9241fi
9242
9243if test -n "$ac_cv_prog_WINDMC"; then
9244 for ncn_progname in windmc; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if test "${ac_cv_prog_WINDMC+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
75d6a0a9 9251else
9252 if test -n "$WINDMC"; then
9253 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
cd9a469c 9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9262 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9264 break 2
9265 fi
9266done
cd9a469c 9267 done
9268IFS=$as_save_IFS
75d6a0a9 9269
9270fi
9271fi
9272WINDMC=$ac_cv_prog_WINDMC
9273if test -n "$WINDMC"; then
cd9a469c 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9275$as_echo "$WINDMC" >&6; }
75d6a0a9 9276else
cd9a469c 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278$as_echo "no" >&6; }
75d6a0a9 9279fi
9280
cd9a469c 9281
75d6a0a9 9282 done
9283fi
9284
9285for ncn_progname in windmc; do
9286 if test -n "$ncn_tool_prefix"; then
9287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_WINDMC+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
75d6a0a9 9293else
9294 if test -n "$WINDMC"; then
9295 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
cd9a469c 9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9304 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9306 break 2
9307 fi
9308done
cd9a469c 9309 done
9310IFS=$as_save_IFS
75d6a0a9 9311
9312fi
9313fi
9314WINDMC=$ac_cv_prog_WINDMC
9315if test -n "$WINDMC"; then
cd9a469c 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9317$as_echo "$WINDMC" >&6; }
75d6a0a9 9318else
cd9a469c 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
75d6a0a9 9321fi
9322
cd9a469c 9323
75d6a0a9 9324 fi
9325 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329$as_echo_n "checking for $ac_word... " >&6; }
9330if test "${ac_cv_prog_WINDMC+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
75d6a0a9 9332else
9333 if test -n "$WINDMC"; then
9334 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9335else
9336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337for as_dir in $PATH
9338do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
cd9a469c 9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9343 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9345 break 2
9346 fi
9347done
cd9a469c 9348 done
9349IFS=$as_save_IFS
75d6a0a9 9350
9351fi
9352fi
9353WINDMC=$ac_cv_prog_WINDMC
9354if test -n "$WINDMC"; then
cd9a469c 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9356$as_echo "$WINDMC" >&6; }
75d6a0a9 9357else
cd9a469c 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359$as_echo "no" >&6; }
75d6a0a9 9360fi
9361
cd9a469c 9362
75d6a0a9 9363 fi
9364 test -n "$ac_cv_prog_WINDMC" && break
9365done
9366
9367if test -z "$ac_cv_prog_WINDMC" ; then
9368 set dummy windmc
9369 if test $build = $host ; then
9370 WINDMC="$2"
9371 else
9372 WINDMC="${ncn_tool_prefix}$2"
9373 fi
9374fi
9375
9376
9377
95a05732 9378if test -n "$OBJCOPY"; then
9379 ac_cv_prog_OBJCOPY=$OBJCOPY
9380elif test -n "$ac_cv_prog_OBJCOPY"; then
9381 OBJCOPY=$ac_cv_prog_OBJCOPY
9382fi
9383
9384if test -n "$ac_cv_prog_OBJCOPY"; then
9385 for ncn_progname in objcopy; do
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
95a05732 9392else
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
cd9a469c 9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9403 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9405 break 2
9406 fi
9407done
cd9a469c 9408 done
9409IFS=$as_save_IFS
95a05732 9410
9411fi
9412fi
9413OBJCOPY=$ac_cv_prog_OBJCOPY
9414if test -n "$OBJCOPY"; then
cd9a469c 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9416$as_echo "$OBJCOPY" >&6; }
95a05732 9417else
cd9a469c 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
95a05732 9420fi
9421
cd9a469c 9422
95a05732 9423 done
9424fi
9425
9426for ncn_progname in objcopy; do
768691b5 9427 if test -n "$ncn_tool_prefix"; then
9428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
bb612911 9434else
9435 if test -n "$OBJCOPY"; then
9436 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9437else
b30fcfae 9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
cd9a469c 9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9445 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9447 break 2
9448 fi
9449done
cd9a469c 9450 done
9451IFS=$as_save_IFS
b30fcfae 9452
bb612911 9453fi
9454fi
b30fcfae 9455OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9456if test -n "$OBJCOPY"; then
cd9a469c 9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9458$as_echo "$OBJCOPY" >&6; }
bb612911 9459else
cd9a469c 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
bb612911 9462fi
9463
cd9a469c 9464
768691b5 9465 fi
9466 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470$as_echo_n "checking for $ac_word... " >&6; }
9471if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
bb612911 9473else
768691b5 9474 if test -n "$OBJCOPY"; then
9475 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9476else
b30fcfae 9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
cd9a469c 9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9484 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9486 break 2
9487 fi
9488done
cd9a469c 9489 done
9490IFS=$as_save_IFS
b30fcfae 9491
bb612911 9492fi
9493fi
b30fcfae 9494OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9495if test -n "$OBJCOPY"; then
cd9a469c 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9497$as_echo "$OBJCOPY" >&6; }
bb612911 9498else
cd9a469c 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500$as_echo "no" >&6; }
bb612911 9501fi
b30fcfae 9502
cd9a469c 9503
768691b5 9504 fi
9505 test -n "$ac_cv_prog_OBJCOPY" && break
9506done
9507
9508if test -z "$ac_cv_prog_OBJCOPY" ; then
9509 set dummy objcopy
9510 if test $build = $host ; then
9511 OBJCOPY="$2"
bb612911 9512 else
768691b5 9513 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9514 fi
bb612911 9515fi
9516
95a05732 9517
9518
9519if test -n "$OBJDUMP"; then
9520 ac_cv_prog_OBJDUMP=$OBJDUMP
9521elif test -n "$ac_cv_prog_OBJDUMP"; then
9522 OBJDUMP=$ac_cv_prog_OBJDUMP
9523fi
9524
9525if test -n "$ac_cv_prog_OBJDUMP"; then
9526 for ncn_progname in objdump; do
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
95a05732 9533else
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9536else
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
cd9a469c 9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9544 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9546 break 2
9547 fi
9548done
cd9a469c 9549 done
9550IFS=$as_save_IFS
95a05732 9551
9552fi
9553fi
9554OBJDUMP=$ac_cv_prog_OBJDUMP
9555if test -n "$OBJDUMP"; then
cd9a469c 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557$as_echo "$OBJDUMP" >&6; }
95a05732 9558else
cd9a469c 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
95a05732 9561fi
9562
cd9a469c 9563
95a05732 9564 done
9565fi
9566
9567for ncn_progname in objdump; do
768691b5 9568 if test -n "$ncn_tool_prefix"; then
9569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572$as_echo_n "checking for $ac_word... " >&6; }
9573if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
bb612911 9575else
9576 if test -n "$OBJDUMP"; then
9577 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9578else
b30fcfae 9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
cd9a469c 9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9586 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9588 break 2
9589 fi
9590done
cd9a469c 9591 done
9592IFS=$as_save_IFS
b30fcfae 9593
bb612911 9594fi
9595fi
b30fcfae 9596OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9597if test -n "$OBJDUMP"; then
cd9a469c 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9599$as_echo "$OBJDUMP" >&6; }
bb612911 9600else
cd9a469c 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
bb612911 9603fi
9604
cd9a469c 9605
768691b5 9606 fi
9607 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611$as_echo_n "checking for $ac_word... " >&6; }
9612if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
bb612911 9614else
768691b5 9615 if test -n "$OBJDUMP"; then
9616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9617else
b30fcfae 9618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
cd9a469c 9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9625 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9627 break 2
9628 fi
9629done
cd9a469c 9630 done
9631IFS=$as_save_IFS
b30fcfae 9632
bb612911 9633fi
9634fi
b30fcfae 9635OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9636if test -n "$OBJDUMP"; then
cd9a469c 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9638$as_echo "$OBJDUMP" >&6; }
bb612911 9639else
cd9a469c 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641$as_echo "no" >&6; }
bb612911 9642fi
b30fcfae 9643
cd9a469c 9644
768691b5 9645 fi
9646 test -n "$ac_cv_prog_OBJDUMP" && break
9647done
9648
9649if test -z "$ac_cv_prog_OBJDUMP" ; then
9650 set dummy objdump
9651 if test $build = $host ; then
9652 OBJDUMP="$2"
bb612911 9653 else
768691b5 9654 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9655 fi
bb612911 9656fi
9657
71ab34df 9658
9659
3f71364d 9660if test -n "$READELF"; then
9661 ac_cv_prog_READELF=$READELF
9662elif test -n "$ac_cv_prog_READELF"; then
9663 READELF=$ac_cv_prog_READELF
9664fi
9665
9666if test -n "$ac_cv_prog_READELF"; then
9667 for ncn_progname in readelf; do
9668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9669set dummy ${ncn_progname}; ac_word=$2
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671$as_echo_n "checking for $ac_word... " >&6; }
9672if test "${ac_cv_prog_READELF+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674else
9675 if test -n "$READELF"; then
9676 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9677else
9678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679for as_dir in $PATH
9680do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_READELF="${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689done
9690 done
9691IFS=$as_save_IFS
9692
9693fi
9694fi
9695READELF=$ac_cv_prog_READELF
9696if test -n "$READELF"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9698$as_echo "$READELF" >&6; }
9699else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
9702fi
9703
9704
9705 done
9706fi
9707
9708for ncn_progname in readelf; do
9709 if test -n "$ncn_tool_prefix"; then
9710 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713$as_echo_n "checking for $ac_word... " >&6; }
9714if test "${ac_cv_prog_READELF+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716else
9717 if test -n "$READELF"; then
9718 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731done
9732 done
9733IFS=$as_save_IFS
9734
9735fi
9736fi
9737READELF=$ac_cv_prog_READELF
9738if test -n "$READELF"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9740$as_echo "$READELF" >&6; }
9741else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744fi
9745
9746
9747 fi
9748 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750set dummy ${ncn_progname}; ac_word=$2
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752$as_echo_n "checking for $ac_word... " >&6; }
9753if test "${ac_cv_prog_READELF+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755else
9756 if test -n "$READELF"; then
9757 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9758else
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_READELF="${ncn_progname}"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770done
9771 done
9772IFS=$as_save_IFS
9773
9774fi
9775fi
9776READELF=$ac_cv_prog_READELF
9777if test -n "$READELF"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9779$as_echo "$READELF" >&6; }
9780else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782$as_echo "no" >&6; }
9783fi
9784
9785
9786 fi
9787 test -n "$ac_cv_prog_READELF" && break
9788done
9789
9790if test -z "$ac_cv_prog_READELF" ; then
9791 set dummy readelf
9792 if test $build = $host ; then
9793 READELF="$2"
9794 else
9795 READELF="${ncn_tool_prefix}$2"
9796 fi
9797fi
9798
9799
9800
71ab34df 9801
9802
9803
f5aebe3e 9804# Target tools.
b30fcfae 9805
cd9a469c 9806# Check whether --with-build-time-tools was given.
9807if test "${with_build_time_tools+set}" = set; then :
9808 withval=$with_build_time_tools; case x"$withval" in
c47832b1 9809 x/*) ;;
9810 *)
9811 with_build_time_tools=
cd9a469c 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9813$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 9814 ;;
9815 esac
bb612911 9816else
c47832b1 9817 with_build_time_tools=
cd9a469c 9818fi
9819
bb612911 9820
95a05732 9821
9822
9823if test -n "$CC_FOR_TARGET"; then
9824 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9825elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9826 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9827fi
9828
9829if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9830 for ncn_progname in cc gcc; do
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834$as_echo_n "checking for $ac_word... " >&6; }
9835if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
95a05732 9837else
9838 if test -n "$CC_FOR_TARGET"; then
9839 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
cd9a469c 9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9848 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9850 break 2
9851 fi
9852done
cd9a469c 9853 done
9854IFS=$as_save_IFS
95a05732 9855
9856fi
9857fi
9858CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9859if test -n "$CC_FOR_TARGET"; then
cd9a469c 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9861$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 9862else
cd9a469c 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
95a05732 9865fi
9866
cd9a469c 9867
95a05732 9868 done
9869fi
9870
9871if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9872 for ncn_progname in cc gcc; do
cd9a469c 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9874$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 9875 if test -x $with_build_time_tools/${ncn_progname}; then
9876 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9878$as_echo "yes" >&6; }
9886f3d1 9879 break
c47832b1 9880 else
cd9a469c 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
9886f3d1 9883 fi
9884 done
ef8184c7 9885fi
9886
c47832b1 9887if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9888 for ncn_progname in cc gcc; do
9889 if test -n "$ncn_target_tool_prefix"; then
9890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9891set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893$as_echo_n "checking for $ac_word... " >&6; }
9894if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
ef8184c7 9896else
9897 if test -n "$CC_FOR_TARGET"; then
9898 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9899else
b30fcfae 9900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901for as_dir in $PATH
9902do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
cd9a469c 9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9907 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9909 break 2
9910 fi
9911done
cd9a469c 9912 done
9913IFS=$as_save_IFS
b30fcfae 9914
ef8184c7 9915fi
9916fi
b30fcfae 9917CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 9918if test -n "$CC_FOR_TARGET"; then
cd9a469c 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9920$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 9921else
cd9a469c 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923$as_echo "no" >&6; }
ef8184c7 9924fi
9925
cd9a469c 9926
c47832b1 9927 fi
9928 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9930set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
9933if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
ef8184c7 9935else
768691b5 9936 if test -n "$CC_FOR_TARGET"; then
9937 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 9938else
b30fcfae 9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
cd9a469c 9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9946 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9948 break 2
9949 fi
9950done
cd9a469c 9951 done
9952IFS=$as_save_IFS
b30fcfae 9953
ef8184c7 9954fi
9955fi
b30fcfae 9956CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 9957if test -n "$CC_FOR_TARGET"; then
cd9a469c 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9959$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 9960else
cd9a469c 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
ef8184c7 9963fi
b30fcfae 9964
cd9a469c 9965
c47832b1 9966 fi
9967 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9968 done
9969fi
b30fcfae 9970
768691b5 9971if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9972 set dummy cc gcc
9973 if test $build = $target ; then
9974 CC_FOR_TARGET="$2"
ef8184c7 9975 else
768691b5 9976 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9977 fi
b7ef8464 9978else
9979 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 9980fi
9981
95a05732 9982
9983
9984if test -n "$CXX_FOR_TARGET"; then
9985 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9986elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9987 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9988fi
9989
9990if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9991 for ncn_progname in c++ g++ cxx gxx; do
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995$as_echo_n "checking for $ac_word... " >&6; }
9996if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
95a05732 9998else
9999 if test -n "$CXX_FOR_TARGET"; then
10000 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
cd9a469c 10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10009 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10011 break 2
10012 fi
10013done
cd9a469c 10014 done
10015IFS=$as_save_IFS
95a05732 10016
10017fi
10018fi
10019CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10020if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10022$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 10023else
cd9a469c 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
95a05732 10026fi
10027
cd9a469c 10028
95a05732 10029 done
10030fi
10031
10032if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10033 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10036 if test -x $with_build_time_tools/${ncn_progname}; then
10037 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039$as_echo "yes" >&6; }
c47832b1 10040 break
10041 else
cd9a469c 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
c47832b1 10044 fi
10045 done
10046fi
10047
10048if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10049 for ncn_progname in c++ g++ cxx gxx; do
10050 if test -n "$ncn_target_tool_prefix"; then
10051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054$as_echo_n "checking for $ac_word... " >&6; }
10055if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
ef8184c7 10057else
10058 if test -n "$CXX_FOR_TARGET"; then
10059 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10060else
b30fcfae 10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
cd9a469c 10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10068 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10070 break 2
10071 fi
10072done
cd9a469c 10073 done
10074IFS=$as_save_IFS
b30fcfae 10075
ef8184c7 10076fi
10077fi
b30fcfae 10078CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 10079if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10081$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10082else
cd9a469c 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084$as_echo "no" >&6; }
ef8184c7 10085fi
10086
cd9a469c 10087
c47832b1 10088 fi
10089 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10091set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
ef8184c7 10096else
768691b5 10097 if test -n "$CXX_FOR_TARGET"; then
10098 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 10099else
b30fcfae 10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
cd9a469c 10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10107 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10109 break 2
10110 fi
10111done
cd9a469c 10112 done
10113IFS=$as_save_IFS
b30fcfae 10114
ef8184c7 10115fi
10116fi
b30fcfae 10117CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 10118if test -n "$CXX_FOR_TARGET"; then
cd9a469c 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10120$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 10121else
cd9a469c 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
ef8184c7 10124fi
b30fcfae 10125
cd9a469c 10126
c47832b1 10127 fi
10128 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10129 done
10130fi
b30fcfae 10131
768691b5 10132if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10133 set dummy c++ g++ cxx gxx
10134 if test $build = $target ; then
10135 CXX_FOR_TARGET="$2"
ef8184c7 10136 else
768691b5 10137 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 10138 fi
b7ef8464 10139else
10140 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 10141fi
10142
95a05732 10143
10144
10145if test -n "$GCC_FOR_TARGET"; then
10146 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10147elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10148 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10149fi
10150
10151if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10152 for ncn_progname in gcc; do
10153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10154set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156$as_echo_n "checking for $ac_word... " >&6; }
10157if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
95a05732 10159else
10160 if test -n "$GCC_FOR_TARGET"; then
10161 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10162else
10163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164for as_dir in $PATH
10165do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
cd9a469c 10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10170 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10172 break 2
10173 fi
10174done
cd9a469c 10175 done
10176IFS=$as_save_IFS
95a05732 10177
10178fi
10179fi
10180GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10181if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10183$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 10184else
cd9a469c 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186$as_echo "no" >&6; }
95a05732 10187fi
10188
cd9a469c 10189
95a05732 10190 done
10191fi
10192
10193if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10194 for ncn_progname in gcc; do
cd9a469c 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10196$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10197 if test -x $with_build_time_tools/${ncn_progname}; then
10198 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10200$as_echo "yes" >&6; }
c47832b1 10201 break
10202 else
cd9a469c 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
c47832b1 10205 fi
10206 done
10207fi
10208
10209if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10210 for ncn_progname in gcc; do
10211 if test -n "$ncn_target_tool_prefix"; then
10212 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10213set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215$as_echo_n "checking for $ac_word... " >&6; }
10216if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
bb612911 10218else
c47832b1 10219 if test -n "$GCC_FOR_TARGET"; then
10220 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10221else
b30fcfae 10222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $PATH
10224do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
cd9a469c 10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10229 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10231 break 2
10232 fi
10233done
cd9a469c 10234 done
10235IFS=$as_save_IFS
b30fcfae 10236
bb612911 10237fi
10238fi
b30fcfae 10239GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10240if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10242$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10243else
cd9a469c 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
bb612911 10246fi
10247
cd9a469c 10248
c47832b1 10249 fi
10250 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10252set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254$as_echo_n "checking for $ac_word... " >&6; }
10255if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
bb612911 10257else
c47832b1 10258 if test -n "$GCC_FOR_TARGET"; then
10259 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10260else
b30fcfae 10261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
cd9a469c 10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10268 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10270 break 2
10271 fi
10272done
cd9a469c 10273 done
10274IFS=$as_save_IFS
b30fcfae 10275
bb612911 10276fi
10277fi
b30fcfae 10278GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10279if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10281$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10282else
cd9a469c 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284$as_echo "no" >&6; }
bb612911 10285fi
b30fcfae 10286
cd9a469c 10287
c47832b1 10288 fi
10289 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10290 done
10291fi
b30fcfae 10292
c47832b1 10293if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10294 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10295else
10296 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10297fi
10298
95a05732 10299
10300
10301if test -n "$GCJ_FOR_TARGET"; then
10302 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10303elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10304 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10305fi
10306
10307if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10308 for ncn_progname in gcj; do
10309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10310set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312$as_echo_n "checking for $ac_word... " >&6; }
10313if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
95a05732 10315else
10316 if test -n "$GCJ_FOR_TARGET"; then
10317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
cd9a469c 10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10328 break 2
10329 fi
10330done
cd9a469c 10331 done
10332IFS=$as_save_IFS
95a05732 10333
10334fi
10335fi
10336GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10337if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10339$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10340else
cd9a469c 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
95a05732 10343fi
10344
cd9a469c 10345
95a05732 10346 done
10347fi
10348
10349if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10350 for ncn_progname in gcj; do
cd9a469c 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10352$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10353 if test -x $with_build_time_tools/${ncn_progname}; then
10354 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356$as_echo "yes" >&6; }
c47832b1 10357 break
10358 else
cd9a469c 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
c47832b1 10361 fi
10362 done
10363fi
10364
10365if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10366 for ncn_progname in gcj; do
10367 if test -n "$ncn_target_tool_prefix"; then
10368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10369set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371$as_echo_n "checking for $ac_word... " >&6; }
10372if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
c47832b1 10374else
a4af6a58 10375 if test -n "$GCJ_FOR_TARGET"; then
10376 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10377else
b30fcfae 10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
cd9a469c 10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10385 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10387 break 2
10388 fi
10389done
cd9a469c 10390 done
10391IFS=$as_save_IFS
b30fcfae 10392
c47832b1 10393fi
10394fi
95a05732 10395GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10398$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10399else
cd9a469c 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
95a05732 10402fi
10403
cd9a469c 10404
95a05732 10405 fi
10406 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10408set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410$as_echo_n "checking for $ac_word... " >&6; }
10411if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
95a05732 10413else
10414 if test -n "$GCJ_FOR_TARGET"; then
10415 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
cd9a469c 10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10424 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10426 break 2
10427 fi
10428done
cd9a469c 10429 done
10430IFS=$as_save_IFS
95a05732 10431
10432fi
10433fi
10434GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10435if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10437$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10438else
cd9a469c 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440$as_echo "no" >&6; }
95a05732 10441fi
10442
cd9a469c 10443
95a05732 10444 fi
10445 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10446 done
10447fi
10448
10449if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10450 set dummy gcj
10451 if test $build = $target ; then
10452 GCJ_FOR_TARGET="$2"
10453 else
10454 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10455 fi
b7ef8464 10456else
10457 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 10458fi
10459
10460
10461
10462if test -n "$GFORTRAN_FOR_TARGET"; then
10463 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10464elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10465 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10466fi
10467
95a05732 10468if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10469 for ncn_progname in gfortran; do
10470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10471set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473$as_echo_n "checking for $ac_word... " >&6; }
10474if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
c47832b1 10476else
95a05732 10477 if test -n "$GFORTRAN_FOR_TARGET"; then
10478 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10479else
b30fcfae 10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
cd9a469c 10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10487 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10489 break 2
10490 fi
10491done
cd9a469c 10492 done
10493IFS=$as_save_IFS
b30fcfae 10494
c47832b1 10495fi
10496fi
95a05732 10497GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10498if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10500$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10501else
cd9a469c 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
c47832b1 10504fi
b30fcfae 10505
cd9a469c 10506
c47832b1 10507 done
10508fi
b30fcfae 10509
95a05732 10510if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10511 for ncn_progname in gfortran; do
cd9a469c 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10513$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10514 if test -x $with_build_time_tools/${ncn_progname}; then
10515 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517$as_echo "yes" >&6; }
c47832b1 10518 break
10519 else
cd9a469c 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
c47832b1 10522 fi
10523 done
10524fi
10525
10526if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10527 for ncn_progname in gfortran; do
10528 if test -n "$ncn_target_tool_prefix"; then
10529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10530set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
10533if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
c47832b1 10535else
10536 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10537 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
cd9a469c 10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10546 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10548 break 2
10549 fi
10550done
cd9a469c 10551 done
10552IFS=$as_save_IFS
b30fcfae 10553
c47832b1 10554fi
10555fi
b30fcfae 10556GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10557if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10559$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10560else
cd9a469c 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
c47832b1 10563fi
10564
cd9a469c 10565
c47832b1 10566 fi
10567 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10569set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571$as_echo_n "checking for $ac_word... " >&6; }
10572if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
c47832b1 10574else
10575 if test -n "$GFORTRAN_FOR_TARGET"; then
10576 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10577else
b30fcfae 10578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579for as_dir in $PATH
10580do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
cd9a469c 10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10585 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10587 break 2
10588 fi
10589done
cd9a469c 10590 done
10591IFS=$as_save_IFS
b30fcfae 10592
c47832b1 10593fi
10594fi
b30fcfae 10595GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10596if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10598$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10599else
cd9a469c 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601$as_echo "no" >&6; }
c47832b1 10602fi
b30fcfae 10603
cd9a469c 10604
c47832b1 10605 fi
10606 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10607 done
10608fi
b30fcfae 10609
c47832b1 10610if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10611 set dummy gfortran
768691b5 10612 if test $build = $target ; then
c47832b1 10613 GFORTRAN_FOR_TARGET="$2"
bb612911 10614 else
c47832b1 10615 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10616 fi
b7ef8464 10617else
10618 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10619fi
10620
10621
10622
5ff5b630 10623if test -n "$GOC_FOR_TARGET"; then
10624 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10625elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10626 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10627fi
10628
10629if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10630 for ncn_progname in gccgo; do
10631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10632set dummy ${ncn_progname}; ac_word=$2
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637else
10638 if test -n "$GOC_FOR_TARGET"; then
10639 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652done
10653 done
10654IFS=$as_save_IFS
10655
10656fi
10657fi
10658GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10659if test -n "$GOC_FOR_TARGET"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10661$as_echo "$GOC_FOR_TARGET" >&6; }
10662else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
10665fi
10666
10667
10668 done
10669fi
10670
10671if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10672 for ncn_progname in gccgo; do
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10674$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10675 if test -x $with_build_time_tools/${ncn_progname}; then
10676 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678$as_echo "yes" >&6; }
10679 break
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682$as_echo "no" >&6; }
10683 fi
10684 done
10685fi
10686
10687if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10688 for ncn_progname in gccgo; do
10689 if test -n "$ncn_target_tool_prefix"; then
10690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10691set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
10694if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10696else
10697 if test -n "$GOC_FOR_TARGET"; then
10698 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711done
10712 done
10713IFS=$as_save_IFS
10714
10715fi
10716fi
10717GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718if test -n "$GOC_FOR_TARGET"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10720$as_echo "$GOC_FOR_TARGET" >&6; }
10721else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
10724fi
10725
10726
10727 fi
10728 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10730set dummy ${ncn_progname}; ac_word=$2
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732$as_echo_n "checking for $ac_word... " >&6; }
10733if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 if test -n "$GOC_FOR_TARGET"; then
10737 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751 done
10752IFS=$as_save_IFS
10753
10754fi
10755fi
10756GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10757if test -n "$GOC_FOR_TARGET"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10759$as_echo "$GOC_FOR_TARGET" >&6; }
10760else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765
10766 fi
10767 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10768 done
10769fi
10770
10771if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10772 set dummy gccgo
10773 if test $build = $target ; then
10774 GOC_FOR_TARGET="$2"
10775 else
10776 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10777 fi
10778else
10779 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10780fi
10781
10782
10783
c47832b1 10784cat > conftest.c << \EOF
10785#ifdef __GNUC__
10786 gcc_yay;
10787#endif
10788EOF
10789if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10790 have_gcc_for_target=yes
10791else
10792 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10793 have_gcc_for_target=no
10794fi
10795rm conftest.c
10796
10797
10798
10799
10800if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10801 if test -n "$with_build_time_tools"; then
cd9a469c 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10803$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 10804 if test -x $with_build_time_tools/ar; then
10805 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10806 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10808$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 10809 else
cd9a469c 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
ab0da556 10812 fi
c47832b1 10813 elif test $build != $host && test $have_gcc_for_target = yes; then
10814 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 10815 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10816 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 10817 fi
10818fi
38d7211b 10819if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10820 # Extract the first word of "ar", so it can be a program name with args.
10821set dummy ar; ac_word=$2
cd9a469c 10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
10824if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
c47832b1 10826else
b30fcfae 10827 case $AR_FOR_TARGET in
10828 [\\/]* | ?:[\\/]*)
c47832b1 10829 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10830 ;;
c47832b1 10831 *)
b30fcfae 10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $gcc_cv_tool_dirs
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
cd9a469c 10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10839 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10841 break 2
10842 fi
10843done
cd9a469c 10844 done
10845IFS=$as_save_IFS
b30fcfae 10846
c47832b1 10847 ;;
10848esac
10849fi
b30fcfae 10850AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10851if test -n "$AR_FOR_TARGET"; then
cd9a469c 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10853$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10854else
cd9a469c 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
ef8184c7 10857fi
10858
cd9a469c 10859
c47832b1 10860fi
10861if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 10862
10863
10864if test -n "$AR_FOR_TARGET"; then
10865 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10866elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10867 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10868fi
10869
10870if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10871 for ncn_progname in ar; do
10872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10873set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875$as_echo_n "checking for $ac_word... " >&6; }
10876if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10877 $as_echo_n "(cached) " >&6
95a05732 10878else
10879 if test -n "$AR_FOR_TARGET"; then
10880 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10881else
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
cd9a469c 10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10889 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10891 break 2
10892 fi
10893done
cd9a469c 10894 done
10895IFS=$as_save_IFS
95a05732 10896
10897fi
10898fi
10899AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10900if test -n "$AR_FOR_TARGET"; then
cd9a469c 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10902$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 10903else
cd9a469c 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
95a05732 10906fi
10907
cd9a469c 10908
95a05732 10909 done
10910fi
10911
10912if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10913 for ncn_progname in ar; do
cd9a469c 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10915$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10916 if test -x $with_build_time_tools/${ncn_progname}; then
10917 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919$as_echo "yes" >&6; }
c47832b1 10920 break
10921 else
cd9a469c 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
c47832b1 10924 fi
10925 done
10926fi
10927
10928if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10929 for ncn_progname in ar; do
10930 if test -n "$ncn_target_tool_prefix"; then
10931 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10932set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934$as_echo_n "checking for $ac_word... " >&6; }
10935if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
ef8184c7 10937else
c47832b1 10938 if test -n "$AR_FOR_TARGET"; then
10939 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 10940else
b30fcfae 10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
cd9a469c 10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10948 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10950 break 2
10951 fi
10952done
cd9a469c 10953 done
10954IFS=$as_save_IFS
b30fcfae 10955
ef8184c7 10956fi
10957fi
b30fcfae 10958AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10959if test -n "$AR_FOR_TARGET"; then
cd9a469c 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10961$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 10962else
cd9a469c 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964$as_echo "no" >&6; }
ef8184c7 10965fi
10966
cd9a469c 10967
c47832b1 10968 fi
10969 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10971set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
10974if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
c47832b1 10976else
10977 if test -n "$AR_FOR_TARGET"; then
10978 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10979else
b30fcfae 10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
cd9a469c 10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10987 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10989 break 2
10990 fi
10991done
cd9a469c 10992 done
10993IFS=$as_save_IFS
b30fcfae 10994
c47832b1 10995fi
10996fi
b30fcfae 10997AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10998if test -n "$AR_FOR_TARGET"; then
cd9a469c 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11000$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 11001else
cd9a469c 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
c47832b1 11004fi
b30fcfae 11005
cd9a469c 11006
c47832b1 11007 fi
11008 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11009 done
11010fi
b30fcfae 11011
c47832b1 11012if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11013 set dummy ar
11014 if test $build = $target ; then
11015 AR_FOR_TARGET="$2"
11016 else
11017 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 11018 fi
b7ef8464 11019else
11020 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 11021fi
11022
ab0da556 11023else
11024 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 11025fi
11026
11027
11028
11029
11030if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11031 if test -n "$with_build_time_tools"; then
cd9a469c 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11033$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 11034 if test -x $with_build_time_tools/as; then
11035 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11036 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11038$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 11039 else
cd9a469c 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
ab0da556 11042 fi
c47832b1 11043 elif test $build != $host && test $have_gcc_for_target = yes; then
11044 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 11045 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11046 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 11047 fi
11048fi
38d7211b 11049if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11050 # Extract the first word of "as", so it can be a program name with args.
11051set dummy as; ac_word=$2
cd9a469c 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053$as_echo_n "checking for $ac_word... " >&6; }
11054if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
c47832b1 11056else
b30fcfae 11057 case $AS_FOR_TARGET in
11058 [\\/]* | ?:[\\/]*)
c47832b1 11059 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11060 ;;
c47832b1 11061 *)
b30fcfae 11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $gcc_cv_tool_dirs
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
cd9a469c 11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11069 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11071 break 2
11072 fi
11073done
cd9a469c 11074 done
11075IFS=$as_save_IFS
b30fcfae 11076
c47832b1 11077 ;;
11078esac
11079fi
b30fcfae 11080AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 11081if test -n "$AS_FOR_TARGET"; then
cd9a469c 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11083$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11084else
cd9a469c 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
c47832b1 11087fi
11088
cd9a469c 11089
c47832b1 11090fi
11091if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 11092
11093
11094if test -n "$AS_FOR_TARGET"; then
11095 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11096elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11097 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11098fi
11099
11100if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11101 for ncn_progname in as; do
11102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11103set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105$as_echo_n "checking for $ac_word... " >&6; }
11106if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
95a05732 11108else
11109 if test -n "$AS_FOR_TARGET"; then
11110 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11111else
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
cd9a469c 11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11119 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11121 break 2
11122 fi
11123done
cd9a469c 11124 done
11125IFS=$as_save_IFS
95a05732 11126
11127fi
11128fi
11129AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11130if test -n "$AS_FOR_TARGET"; then
cd9a469c 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11132$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 11133else
cd9a469c 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
95a05732 11136fi
11137
cd9a469c 11138
95a05732 11139 done
11140fi
11141
11142if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11143 for ncn_progname in as; do
cd9a469c 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11145$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11146 if test -x $with_build_time_tools/${ncn_progname}; then
11147 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149$as_echo "yes" >&6; }
c47832b1 11150 break
11151 else
cd9a469c 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
c47832b1 11154 fi
11155 done
11156fi
11157
11158if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11159 for ncn_progname in as; do
11160 if test -n "$ncn_target_tool_prefix"; then
11161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11162set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164$as_echo_n "checking for $ac_word... " >&6; }
11165if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
c47832b1 11167else
11168 if test -n "$AS_FOR_TARGET"; then
11169 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11170else
b30fcfae 11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $PATH
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
cd9a469c 11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11178 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11180 break 2
11181 fi
11182done
cd9a469c 11183 done
11184IFS=$as_save_IFS
b30fcfae 11185
c47832b1 11186fi
11187fi
b30fcfae 11188AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11189if test -n "$AS_FOR_TARGET"; then
cd9a469c 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11191$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11192else
cd9a469c 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194$as_echo "no" >&6; }
c47832b1 11195fi
11196
cd9a469c 11197
c47832b1 11198 fi
11199 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11201set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203$as_echo_n "checking for $ac_word... " >&6; }
11204if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
ef8184c7 11206else
c47832b1 11207 if test -n "$AS_FOR_TARGET"; then
11208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11209else
b30fcfae 11210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211for as_dir in $PATH
11212do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
cd9a469c 11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11217 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11219 break 2
11220 fi
11221done
cd9a469c 11222 done
11223IFS=$as_save_IFS
b30fcfae 11224
ef8184c7 11225fi
11226fi
b30fcfae 11227AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11228if test -n "$AS_FOR_TARGET"; then
cd9a469c 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11230$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11231else
cd9a469c 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233$as_echo "no" >&6; }
ef8184c7 11234fi
b30fcfae 11235
cd9a469c 11236
c47832b1 11237 fi
11238 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11239 done
11240fi
b30fcfae 11241
c47832b1 11242if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11243 set dummy as
11244 if test $build = $target ; then
11245 AS_FOR_TARGET="$2"
11246 else
11247 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11248 fi
b7ef8464 11249else
11250 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11251fi
768691b5 11252
ab0da556 11253else
11254 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11255fi
11256
c47832b1 11257
11258
11259
11260if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11261 if test -n "$with_build_time_tools"; then
cd9a469c 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11263$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11264 if test -x $with_build_time_tools/dlltool; then
11265 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11266 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11268$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11269 else
cd9a469c 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
ab0da556 11272 fi
c47832b1 11273 elif test $build != $host && test $have_gcc_for_target = yes; then
11274 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11275 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11276 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11277 fi
11278fi
38d7211b 11279if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11280 # Extract the first word of "dlltool", so it can be a program name with args.
11281set dummy dlltool; ac_word=$2
cd9a469c 11282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283$as_echo_n "checking for $ac_word... " >&6; }
11284if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
ef8184c7 11286else
b30fcfae 11287 case $DLLTOOL_FOR_TARGET in
11288 [\\/]* | ?:[\\/]*)
c47832b1 11289 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11290 ;;
c47832b1 11291 *)
b30fcfae 11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $gcc_cv_tool_dirs
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
cd9a469c 11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11299 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11301 break 2
11302 fi
11303done
cd9a469c 11304 done
11305IFS=$as_save_IFS
b30fcfae 11306
c47832b1 11307 ;;
11308esac
ef8184c7 11309fi
b30fcfae 11310DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11311if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11313$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11314else
cd9a469c 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
ef8184c7 11317fi
11318
cd9a469c 11319
c47832b1 11320fi
11321if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11322
11323
11324if test -n "$DLLTOOL_FOR_TARGET"; then
11325 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11326elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11327 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11328fi
11329
11330if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11331 for ncn_progname in dlltool; do
11332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11333set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335$as_echo_n "checking for $ac_word... " >&6; }
11336if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
95a05732 11338else
11339 if test -n "$DLLTOOL_FOR_TARGET"; then
11340 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
cd9a469c 11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11349 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11351 break 2
11352 fi
11353done
cd9a469c 11354 done
11355IFS=$as_save_IFS
95a05732 11356
11357fi
11358fi
11359DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11360if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11362$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11363else
cd9a469c 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
95a05732 11366fi
11367
cd9a469c 11368
95a05732 11369 done
11370fi
11371
11372if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11373 for ncn_progname in dlltool; do
cd9a469c 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11375$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11376 if test -x $with_build_time_tools/${ncn_progname}; then
11377 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379$as_echo "yes" >&6; }
c47832b1 11380 break
11381 else
cd9a469c 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383$as_echo "no" >&6; }
c47832b1 11384 fi
11385 done
11386fi
11387
11388if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11389 for ncn_progname in dlltool; do
11390 if test -n "$ncn_target_tool_prefix"; then
11391 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11392set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
ef8184c7 11397else
c47832b1 11398 if test -n "$DLLTOOL_FOR_TARGET"; then
11399 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11400else
b30fcfae 11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
cd9a469c 11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11408 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11410 break 2
11411 fi
11412done
cd9a469c 11413 done
11414IFS=$as_save_IFS
b30fcfae 11415
ef8184c7 11416fi
11417fi
b30fcfae 11418DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11419if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11421$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11422else
cd9a469c 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
ef8184c7 11425fi
ef8184c7 11426
cd9a469c 11427
c47832b1 11428 fi
11429 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11431set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
11434if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11435 $as_echo_n "(cached) " >&6
ef8184c7 11436else
c47832b1 11437 if test -n "$DLLTOOL_FOR_TARGET"; then
11438 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11439else
b30fcfae 11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
cd9a469c 11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11447 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11449 break 2
11450 fi
11451done
cd9a469c 11452 done
11453IFS=$as_save_IFS
b30fcfae 11454
ef8184c7 11455fi
11456fi
b30fcfae 11457DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11458if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11460$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11461else
cd9a469c 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
ef8184c7 11464fi
b30fcfae 11465
cd9a469c 11466
c47832b1 11467 fi
11468 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11469 done
11470fi
b30fcfae 11471
c47832b1 11472if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11473 set dummy dlltool
11474 if test $build = $target ; then
11475 DLLTOOL_FOR_TARGET="$2"
11476 else
11477 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11478 fi
b7ef8464 11479else
11480 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11481fi
11482
ab0da556 11483else
11484 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11485fi
11486
ef8184c7 11487
c47832b1 11488
11489
11490if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11491 if test -n "$with_build_time_tools"; then
cd9a469c 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11493$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11494 if test -x $with_build_time_tools/ld; then
11495 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11496 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11498$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11499 else
cd9a469c 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
ab0da556 11502 fi
c47832b1 11503 elif test $build != $host && test $have_gcc_for_target = yes; then
11504 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11505 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11506 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11507 fi
c47832b1 11508fi
38d7211b 11509if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11510 # Extract the first word of "ld", so it can be a program name with args.
11511set dummy ld; ac_word=$2
cd9a469c 11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513$as_echo_n "checking for $ac_word... " >&6; }
11514if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
ef8184c7 11516else
b30fcfae 11517 case $LD_FOR_TARGET in
11518 [\\/]* | ?:[\\/]*)
c47832b1 11519 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11520 ;;
c47832b1 11521 *)
b30fcfae 11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $gcc_cv_tool_dirs
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
cd9a469c 11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11529 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11531 break 2
11532 fi
11533done
cd9a469c 11534 done
11535IFS=$as_save_IFS
b30fcfae 11536
c47832b1 11537 ;;
11538esac
ef8184c7 11539fi
b30fcfae 11540LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11541if test -n "$LD_FOR_TARGET"; then
cd9a469c 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11543$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11544else
cd9a469c 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
ef8184c7 11547fi
768691b5 11548
cd9a469c 11549
c47832b1 11550fi
11551if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11552
11553
11554if test -n "$LD_FOR_TARGET"; then
11555 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11556elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11557 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11558fi
11559
11560if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11561 for ncn_progname in ld; do
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565$as_echo_n "checking for $ac_word... " >&6; }
11566if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
95a05732 11568else
11569 if test -n "$LD_FOR_TARGET"; then
11570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
cd9a469c 11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11581 break 2
11582 fi
11583done
cd9a469c 11584 done
11585IFS=$as_save_IFS
95a05732 11586
11587fi
11588fi
11589LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11590if test -n "$LD_FOR_TARGET"; then
cd9a469c 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11592$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11593else
cd9a469c 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
95a05732 11596fi
11597
cd9a469c 11598
95a05732 11599 done
11600fi
11601
11602if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11603 for ncn_progname in ld; do
cd9a469c 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11605$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11606 if test -x $with_build_time_tools/${ncn_progname}; then
11607 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609$as_echo "yes" >&6; }
c47832b1 11610 break
11611 else
cd9a469c 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
c47832b1 11614 fi
11615 done
bb612911 11616fi
11617
c47832b1 11618if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11619 for ncn_progname in ld; do
11620 if test -n "$ncn_target_tool_prefix"; then
11621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11622set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
bb612911 11627else
ef8184c7 11628 if test -n "$LD_FOR_TARGET"; then
11629 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11630else
b30fcfae 11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
cd9a469c 11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11638 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11640 break 2
11641 fi
11642done
cd9a469c 11643 done
11644IFS=$as_save_IFS
b30fcfae 11645
bb612911 11646fi
11647fi
b30fcfae 11648LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11649if test -n "$LD_FOR_TARGET"; then
cd9a469c 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11651$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11652else
cd9a469c 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
bb612911 11655fi
11656
cd9a469c 11657
c47832b1 11658 fi
11659 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11661set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
11664if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
bb612911 11666else
768691b5 11667 if test -n "$LD_FOR_TARGET"; then
11668 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11669else
b30fcfae 11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
cd9a469c 11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11677 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11679 break 2
11680 fi
11681done
cd9a469c 11682 done
11683IFS=$as_save_IFS
b30fcfae 11684
bb612911 11685fi
11686fi
b30fcfae 11687LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 11688if test -n "$LD_FOR_TARGET"; then
cd9a469c 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11690$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11691else
cd9a469c 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
bb612911 11694fi
b30fcfae 11695
cd9a469c 11696
c47832b1 11697 fi
11698 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11699 done
11700fi
b30fcfae 11701
768691b5 11702if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11703 set dummy ld
11704 if test $build = $target ; then
11705 LD_FOR_TARGET="$2"
bb612911 11706 else
768691b5 11707 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11708 fi
b7ef8464 11709else
11710 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 11711fi
11712
ab0da556 11713else
11714 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11715fi
11716
11717
11718
11719
11720if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11721 if test -n "$with_build_time_tools"; then
cd9a469c 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11723$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 11724 if test -x $with_build_time_tools/lipo; then
11725 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11726 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11728$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 11729 else
cd9a469c 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
ab0da556 11732 fi
c47832b1 11733 elif test $build != $host && test $have_gcc_for_target = yes; then
11734 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 11735 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11736 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 11737 fi
11738fi
95a05732 11739if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11740 # Extract the first word of "lipo", so it can be a program name with args.
11741set dummy lipo; ac_word=$2
cd9a469c 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743$as_echo_n "checking for $ac_word... " >&6; }
11744if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
95a05732 11746else
11747 case $LIPO_FOR_TARGET in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11750 ;;
11751 *)
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $gcc_cv_tool_dirs
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
cd9a469c 11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11759 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11761 break 2
11762 fi
11763done
cd9a469c 11764 done
11765IFS=$as_save_IFS
95a05732 11766
11767 ;;
11768esac
11769fi
11770LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 11771if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11773$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 11774else
cd9a469c 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
95a05732 11777fi
11778
cd9a469c 11779
95a05732 11780fi
11781if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11782
11783
11784if test -n "$LIPO_FOR_TARGET"; then
11785 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11786elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11787 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11788fi
11789
11790if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11791 for ncn_progname in lipo; do
11792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795$as_echo_n "checking for $ac_word... " >&6; }
11796if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
c47832b1 11798else
95a05732 11799 if test -n "$LIPO_FOR_TARGET"; then
11800 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11801else
11802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803for as_dir in $PATH
b30fcfae 11804do
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
cd9a469c 11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11809 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11811 break 2
11812 fi
11813done
cd9a469c 11814 done
11815IFS=$as_save_IFS
b30fcfae 11816
c47832b1 11817fi
95a05732 11818fi
11819LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 11820if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11822$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 11823else
cd9a469c 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
c47832b1 11826fi
11827
cd9a469c 11828
95a05732 11829 done
c47832b1 11830fi
95a05732 11831
11832if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11833 for ncn_progname in lipo; do
cd9a469c 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11835$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11836 if test -x $with_build_time_tools/${ncn_progname}; then
11837 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839$as_echo "yes" >&6; }
c47832b1 11840 break
11841 else
cd9a469c 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
c47832b1 11844 fi
11845 done
11846fi
11847
11848if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11849 for ncn_progname in lipo; do
11850 if test -n "$ncn_target_tool_prefix"; then
11851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11852set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
9fec3fa8 11857else
11858 if test -n "$LIPO_FOR_TARGET"; then
11859 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11860else
b30fcfae 11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
cd9a469c 11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11868 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11870 break 2
11871 fi
11872done
cd9a469c 11873 done
11874IFS=$as_save_IFS
b30fcfae 11875
9fec3fa8 11876fi
11877fi
b30fcfae 11878LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11879if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11881$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11882else
cd9a469c 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
9fec3fa8 11885fi
11886
cd9a469c 11887
c47832b1 11888 fi
11889 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 11891set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893$as_echo_n "checking for $ac_word... " >&6; }
11894if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
9fec3fa8 11896else
11897 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 11898 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11899else
b30fcfae 11900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $PATH
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
cd9a469c 11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11907 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11909 break 2
11910 fi
11911done
cd9a469c 11912 done
11913IFS=$as_save_IFS
b30fcfae 11914
9fec3fa8 11915fi
11916fi
b30fcfae 11917LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11918if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11920$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11921else
cd9a469c 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
9fec3fa8 11924fi
b30fcfae 11925
cd9a469c 11926
c47832b1 11927 fi
11928 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11929 done
11930fi
b30fcfae 11931
9fec3fa8 11932if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11933 set dummy lipo
11934 if test $build = $target ; then
11935 LIPO_FOR_TARGET="$2"
11936 else
11937 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11938 fi
b7ef8464 11939else
11940 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 11941fi
11942
ab0da556 11943else
11944 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 11945fi
11946
11947
11948
11949
11950if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11951 if test -n "$with_build_time_tools"; then
cd9a469c 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11953$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 11954 if test -x $with_build_time_tools/nm; then
11955 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11956 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11958$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 11959 else
cd9a469c 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
ab0da556 11962 fi
c47832b1 11963 elif test $build != $host && test $have_gcc_for_target = yes; then
11964 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 11965 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11966 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 11967 fi
11968fi
38d7211b 11969if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11970 # Extract the first word of "nm", so it can be a program name with args.
11971set dummy nm; ac_word=$2
cd9a469c 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973$as_echo_n "checking for $ac_word... " >&6; }
11974if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
c47832b1 11976else
b30fcfae 11977 case $NM_FOR_TARGET in
11978 [\\/]* | ?:[\\/]*)
c47832b1 11979 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11980 ;;
c47832b1 11981 *)
b30fcfae 11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $gcc_cv_tool_dirs
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
cd9a469c 11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11989 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11991 break 2
11992 fi
11993done
cd9a469c 11994 done
11995IFS=$as_save_IFS
b30fcfae 11996
c47832b1 11997 ;;
11998esac
11999fi
b30fcfae 12000NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12001if test -n "$NM_FOR_TARGET"; then
cd9a469c 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12003$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 12004else
cd9a469c 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
c47832b1 12007fi
12008
cd9a469c 12009
c47832b1 12010fi
12011if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 12012
12013
12014if test -n "$NM_FOR_TARGET"; then
12015 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12016elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12017 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12018fi
12019
12020if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12021 for ncn_progname in nm; do
12022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12023set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025$as_echo_n "checking for $ac_word... " >&6; }
12026if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
95a05732 12028else
12029 if test -n "$NM_FOR_TARGET"; then
12030 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12031else
12032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033for as_dir in $PATH
12034do
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
cd9a469c 12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12039 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12041 break 2
12042 fi
12043done
cd9a469c 12044 done
12045IFS=$as_save_IFS
95a05732 12046
12047fi
12048fi
12049NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12050if test -n "$NM_FOR_TARGET"; then
cd9a469c 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12052$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 12053else
cd9a469c 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
95a05732 12056fi
12057
cd9a469c 12058
95a05732 12059 done
12060fi
12061
12062if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12063 for ncn_progname in nm; do
cd9a469c 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12065$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12066 if test -x $with_build_time_tools/${ncn_progname}; then
12067 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069$as_echo "yes" >&6; }
c47832b1 12070 break
12071 else
cd9a469c 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
c47832b1 12074 fi
12075 done
12076fi
12077
12078if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12079 for ncn_progname in nm; do
12080 if test -n "$ncn_target_tool_prefix"; then
12081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
bb612911 12087else
ef8184c7 12088 if test -n "$NM_FOR_TARGET"; then
12089 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12090else
b30fcfae 12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
cd9a469c 12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12098 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12100 break 2
12101 fi
12102done
cd9a469c 12103 done
12104IFS=$as_save_IFS
b30fcfae 12105
bb612911 12106fi
12107fi
b30fcfae 12108NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 12109if test -n "$NM_FOR_TARGET"; then
cd9a469c 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12111$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12112else
cd9a469c 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
bb612911 12115fi
12116
cd9a469c 12117
c47832b1 12118 fi
12119 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12121set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
12124if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
bb612911 12126else
768691b5 12127 if test -n "$NM_FOR_TARGET"; then
12128 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 12129else
b30fcfae 12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
cd9a469c 12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12137 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12139 break 2
12140 fi
12141done
cd9a469c 12142 done
12143IFS=$as_save_IFS
b30fcfae 12144
bb612911 12145fi
12146fi
b30fcfae 12147NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 12148if test -n "$NM_FOR_TARGET"; then
cd9a469c 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12150$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 12151else
cd9a469c 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
bb612911 12154fi
b30fcfae 12155
cd9a469c 12156
c47832b1 12157 fi
12158 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12159 done
12160fi
b30fcfae 12161
768691b5 12162if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12163 set dummy nm
12164 if test $build = $target ; then
12165 NM_FOR_TARGET="$2"
bb612911 12166 else
768691b5 12167 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12168 fi
b7ef8464 12169else
12170 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 12171fi
12172
ab0da556 12173else
12174 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 12175fi
12176
12177
12178
12179
12180if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12181 if test -n "$with_build_time_tools"; then
cd9a469c 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12183$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 12184 if test -x $with_build_time_tools/objdump; then
12185 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12186 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12188$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 12189 else
cd9a469c 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
ab0da556 12192 fi
c47832b1 12193 elif test $build != $host && test $have_gcc_for_target = yes; then
12194 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12195 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12196 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12197 fi
12198fi
38d7211b 12199if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12200 # Extract the first word of "objdump", so it can be a program name with args.
12201set dummy objdump; ac_word=$2
cd9a469c 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203$as_echo_n "checking for $ac_word... " >&6; }
12204if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
c47832b1 12206else
b30fcfae 12207 case $OBJDUMP_FOR_TARGET in
12208 [\\/]* | ?:[\\/]*)
c47832b1 12209 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12210 ;;
c47832b1 12211 *)
b30fcfae 12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $gcc_cv_tool_dirs
12214do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
cd9a469c 12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12219 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12221 break 2
12222 fi
12223done
cd9a469c 12224 done
12225IFS=$as_save_IFS
b30fcfae 12226
c47832b1 12227 ;;
12228esac
12229fi
b30fcfae 12230OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12231if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12233$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12234else
cd9a469c 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
c47832b1 12237fi
12238
cd9a469c 12239
c47832b1 12240fi
12241if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12242
12243
12244if test -n "$OBJDUMP_FOR_TARGET"; then
12245 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12246elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12247 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12248fi
12249
12250if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12251 for ncn_progname in objdump; do
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
12256if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
95a05732 12258else
12259 if test -n "$OBJDUMP_FOR_TARGET"; then
12260 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12261else
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
cd9a469c 12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12269 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12271 break 2
12272 fi
12273done
cd9a469c 12274 done
12275IFS=$as_save_IFS
95a05732 12276
12277fi
12278fi
12279OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12280if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12282$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12283else
cd9a469c 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
95a05732 12286fi
12287
cd9a469c 12288
95a05732 12289 done
12290fi
12291
12292if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12293 for ncn_progname in objdump; do
cd9a469c 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12295$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12296 if test -x $with_build_time_tools/${ncn_progname}; then
12297 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299$as_echo "yes" >&6; }
c47832b1 12300 break
12301 else
cd9a469c 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
c47832b1 12304 fi
12305 done
12306fi
12307
12308if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12309 for ncn_progname in objdump; do
12310 if test -n "$ncn_target_tool_prefix"; then
12311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12312set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
ae74ffb7 12317else
12318 if test -n "$OBJDUMP_FOR_TARGET"; then
12319 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12320else
b30fcfae 12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
cd9a469c 12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12328 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12330 break 2
12331 fi
12332done
cd9a469c 12333 done
12334IFS=$as_save_IFS
b30fcfae 12335
ae74ffb7 12336fi
12337fi
b30fcfae 12338OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12339if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12341$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12342else
cd9a469c 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
ae74ffb7 12345fi
12346
cd9a469c 12347
c47832b1 12348 fi
12349 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12351set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353$as_echo_n "checking for $ac_word... " >&6; }
12354if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
ae74ffb7 12356else
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12359else
b30fcfae 12360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in $PATH
12362do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
cd9a469c 12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12367 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12369 break 2
12370 fi
12371done
cd9a469c 12372 done
12373IFS=$as_save_IFS
b30fcfae 12374
ae74ffb7 12375fi
12376fi
b30fcfae 12377OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12378if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12380$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12381else
cd9a469c 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383$as_echo "no" >&6; }
ae74ffb7 12384fi
b30fcfae 12385
cd9a469c 12386
c47832b1 12387 fi
12388 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12389 done
12390fi
b30fcfae 12391
ae74ffb7 12392if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12393 set dummy objdump
12394 if test $build = $target ; then
12395 OBJDUMP_FOR_TARGET="$2"
12396 else
12397 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12398 fi
b7ef8464 12399else
12400 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12401fi
12402
ab0da556 12403else
12404 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12405fi
12406
12407
12408
12409
12410if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12411 if test -n "$with_build_time_tools"; then
cd9a469c 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12413$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 12414 if test -x $with_build_time_tools/ranlib; then
12415 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12416 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12418$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 12419 else
cd9a469c 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
ab0da556 12422 fi
c47832b1 12423 elif test $build != $host && test $have_gcc_for_target = yes; then
12424 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 12425 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12426 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 12427 fi
12428fi
38d7211b 12429if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12430 # Extract the first word of "ranlib", so it can be a program name with args.
12431set dummy ranlib; ac_word=$2
cd9a469c 12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
12434if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
c47832b1 12436else
b30fcfae 12437 case $RANLIB_FOR_TARGET in
12438 [\\/]* | ?:[\\/]*)
c47832b1 12439 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12440 ;;
c47832b1 12441 *)
b30fcfae 12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $gcc_cv_tool_dirs
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
cd9a469c 12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12449 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12451 break 2
12452 fi
12453done
cd9a469c 12454 done
12455IFS=$as_save_IFS
b30fcfae 12456
c47832b1 12457 ;;
12458esac
12459fi
b30fcfae 12460RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 12461if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12463$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 12464else
cd9a469c 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
c47832b1 12467fi
12468
cd9a469c 12469
c47832b1 12470fi
12471if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 12472
12473
12474if test -n "$RANLIB_FOR_TARGET"; then
12475 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12476elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12477 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12478fi
12479
12480if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12481 for ncn_progname in ranlib; do
12482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12483set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
12486if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
95a05732 12488else
12489 if test -n "$RANLIB_FOR_TARGET"; then
12490 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
cd9a469c 12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12499 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12501 break 2
12502 fi
12503done
cd9a469c 12504 done
12505IFS=$as_save_IFS
95a05732 12506
12507fi
12508fi
12509RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12510if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12512$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 12513else
cd9a469c 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
95a05732 12516fi
12517
cd9a469c 12518
95a05732 12519 done
12520fi
12521
12522if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12523 for ncn_progname in ranlib; do
cd9a469c 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12525$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12526 if test -x $with_build_time_tools/${ncn_progname}; then
12527 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529$as_echo "yes" >&6; }
c47832b1 12530 break
12531 else
cd9a469c 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
c47832b1 12534 fi
12535 done
12536fi
12537
12538if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12539 for ncn_progname in ranlib; do
12540 if test -n "$ncn_target_tool_prefix"; then
12541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 12542set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
bb612911 12547else
ef8184c7 12548 if test -n "$RANLIB_FOR_TARGET"; then
12549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12550else
b30fcfae 12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
cd9a469c 12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12560 break 2
12561 fi
12562done
cd9a469c 12563 done
12564IFS=$as_save_IFS
b30fcfae 12565
bb612911 12566fi
12567fi
b30fcfae 12568RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 12569if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12571$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12572else
cd9a469c 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
bb612911 12575fi
12576
cd9a469c 12577
c47832b1 12578 fi
12579 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12581set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
12584if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
bb612911 12586else
768691b5 12587 if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12589else
b30fcfae 12590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
cd9a469c 12595 for ac_exec_ext in '' $ac_executable_extensions; do
12596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12597 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12599 break 2
12600 fi
12601done
cd9a469c 12602 done
12603IFS=$as_save_IFS
b30fcfae 12604
bb612911 12605fi
12606fi
b30fcfae 12607RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 12608if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12610$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12611else
cd9a469c 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
bb612911 12614fi
b30fcfae 12615
cd9a469c 12616
c47832b1 12617 fi
12618 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12619 done
12620fi
b30fcfae 12621
c47832b1 12622if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12623 set dummy ranlib
12624 if test $build = $target ; then
12625 RANLIB_FOR_TARGET="$2"
12626 else
12627 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12628 fi
b7ef8464 12629else
12630 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 12631fi
768691b5 12632
ab0da556 12633else
12634 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 12635fi
12636
c47832b1 12637
12638
12639
3f71364d 12640if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12641 if test -n "$with_build_time_tools"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12643$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12644 if test -x $with_build_time_tools/readelf; then
12645 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12646 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12648$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652 fi
12653 elif test $build != $host && test $have_gcc_for_target = yes; then
12654 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12655 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12656 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12657 fi
12658fi
12659if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12660 # Extract the first word of "readelf", so it can be a program name with args.
12661set dummy readelf; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
12664if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666else
12667 case $READELF_FOR_TARGET in
12668 [\\/]* | ?:[\\/]*)
12669 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12670 ;;
12671 *)
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673for as_dir in $gcc_cv_tool_dirs
12674do
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12679 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12682 fi
12683done
12684 done
12685IFS=$as_save_IFS
12686
12687 ;;
12688esac
12689fi
12690READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12691if test -n "$READELF_FOR_TARGET"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12693$as_echo "$READELF_FOR_TARGET" >&6; }
12694else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696$as_echo "no" >&6; }
12697fi
12698
12699
12700fi
12701if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12702
12703
12704if test -n "$READELF_FOR_TARGET"; then
12705 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12706elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12707 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12708fi
12709
12710if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12711 for ncn_progname in readelf; do
12712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713set dummy ${ncn_progname}; ac_word=$2
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715$as_echo_n "checking for $ac_word... " >&6; }
12716if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718else
12719 if test -n "$READELF_FOR_TARGET"; then
12720 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12721else
12722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723for as_dir in $PATH
12724do
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733done
12734 done
12735IFS=$as_save_IFS
12736
12737fi
12738fi
12739READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12740if test -n "$READELF_FOR_TARGET"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12742$as_echo "$READELF_FOR_TARGET" >&6; }
12743else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745$as_echo "no" >&6; }
12746fi
12747
12748
12749 done
12750fi
12751
12752if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12753 for ncn_progname in readelf; do
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12755$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12756 if test -x $with_build_time_tools/${ncn_progname}; then
12757 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
12760 break
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
12764 fi
12765 done
12766fi
12767
12768if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12769 for ncn_progname in readelf; do
12770 if test -n "$ncn_target_tool_prefix"; then
12771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12772set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$READELF_FOR_TARGET"; then
12779 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12799if test -n "$READELF_FOR_TARGET"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12801$as_echo "$READELF_FOR_TARGET" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808 fi
12809 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12811set dummy ${ncn_progname}; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
12814if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831done
12832 done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12838if test -n "$READELF_FOR_TARGET"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12840$as_echo "$READELF_FOR_TARGET" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846
12847 fi
12848 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12849 done
12850fi
12851
12852if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12853 set dummy readelf
12854 if test $build = $target ; then
12855 READELF_FOR_TARGET="$2"
12856 else
12857 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12858 fi
12859else
12860 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12861fi
12862
12863else
12864 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12865fi
12866
12867
12868
12869
c47832b1 12870if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12871 if test -n "$with_build_time_tools"; then
cd9a469c 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12873$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 12874 if test -x $with_build_time_tools/strip; then
12875 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12876 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12878$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 12879 else
cd9a469c 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
ab0da556 12882 fi
c47832b1 12883 elif test $build != $host && test $have_gcc_for_target = yes; then
12884 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 12885 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12886 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 12887 fi
12888fi
38d7211b 12889if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12890 # Extract the first word of "strip", so it can be a program name with args.
12891set dummy strip; ac_word=$2
cd9a469c 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
12894if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
c47832b1 12896else
b30fcfae 12897 case $STRIP_FOR_TARGET in
12898 [\\/]* | ?:[\\/]*)
c47832b1 12899 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12900 ;;
c47832b1 12901 *)
b30fcfae 12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $gcc_cv_tool_dirs
12904do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
cd9a469c 12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12909 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12911 break 2
12912 fi
12913done
cd9a469c 12914 done
12915IFS=$as_save_IFS
b30fcfae 12916
c47832b1 12917 ;;
12918esac
12919fi
b30fcfae 12920STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 12921if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12923$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 12924else
cd9a469c 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
c47832b1 12927fi
12928
cd9a469c 12929
c47832b1 12930fi
12931if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 12932
12933
12934if test -n "$STRIP_FOR_TARGET"; then
12935 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12936elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12937 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12938fi
12939
12940if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12941 for ncn_progname in strip; do
12942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12943set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
12946if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
95a05732 12948else
12949 if test -n "$STRIP_FOR_TARGET"; then
12950 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
cd9a469c 12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12959 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12961 break 2
12962 fi
12963done
cd9a469c 12964 done
12965IFS=$as_save_IFS
95a05732 12966
12967fi
12968fi
12969STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12970if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12972$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 12973else
cd9a469c 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
95a05732 12976fi
12977
cd9a469c 12978
95a05732 12979 done
12980fi
12981
12982if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12983 for ncn_progname in strip; do
cd9a469c 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12985$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12986 if test -x $with_build_time_tools/${ncn_progname}; then
12987 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989$as_echo "yes" >&6; }
c47832b1 12990 break
12991 else
cd9a469c 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
c47832b1 12994 fi
12995 done
12996fi
12997
12998if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12999 for ncn_progname in strip; do
13000 if test -n "$ncn_target_tool_prefix"; then
13001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 13002set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
ae48753c 13007else
13008 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 13009 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
cd9a469c 13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13018 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13020 break 2
13021 fi
13022done
cd9a469c 13023 done
13024IFS=$as_save_IFS
b30fcfae 13025
9fec3fa8 13026fi
13027fi
b30fcfae 13028STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13029if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13031$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13032else
cd9a469c 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
9fec3fa8 13035fi
13036
cd9a469c 13037
c47832b1 13038 fi
13039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 13041set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
13044if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
9fec3fa8 13046else
13047 if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13049else
b30fcfae 13050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051for as_dir in $PATH
13052do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
cd9a469c 13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13057 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13059 break 2
13060 fi
13061done
cd9a469c 13062 done
13063IFS=$as_save_IFS
b30fcfae 13064
9fec3fa8 13065fi
13066fi
b30fcfae 13067STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 13068if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13070$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 13071else
cd9a469c 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
9fec3fa8 13074fi
b30fcfae 13075
cd9a469c 13076
c47832b1 13077 fi
13078 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13079 done
13080fi
b30fcfae 13081
9fec3fa8 13082if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13083 set dummy strip
13084 if test $build = $target ; then
13085 STRIP_FOR_TARGET="$2"
13086 else
13087 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13088 fi
b7ef8464 13089else
13090 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 13091fi
13092
ab0da556 13093else
13094 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 13095fi
13096
13097
13098
13099
13100if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13101 if test -n "$with_build_time_tools"; then
cd9a469c 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13103$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 13104 if test -x $with_build_time_tools/windres; then
13105 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13106 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13108$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 13109 else
cd9a469c 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
ab0da556 13112 fi
c47832b1 13113 elif test $build != $host && test $have_gcc_for_target = yes; then
13114 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 13115 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13116 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 13117 fi
13118fi
38d7211b 13119if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 13120 # Extract the first word of "windres", so it can be a program name with args.
13121set dummy windres; ac_word=$2
cd9a469c 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123$as_echo_n "checking for $ac_word... " >&6; }
13124if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
c47832b1 13126else
b30fcfae 13127 case $WINDRES_FOR_TARGET in
13128 [\\/]* | ?:[\\/]*)
c47832b1 13129 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13130 ;;
c47832b1 13131 *)
b30fcfae 13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133for as_dir in $gcc_cv_tool_dirs
13134do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
cd9a469c 13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13139 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13141 break 2
13142 fi
13143done
cd9a469c 13144 done
13145IFS=$as_save_IFS
b30fcfae 13146
c47832b1 13147 ;;
13148esac
13149fi
b30fcfae 13150WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13151if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13153$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 13154else
cd9a469c 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
c47832b1 13157fi
13158
cd9a469c 13159
c47832b1 13160fi
13161if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 13162
13163
13164if test -n "$WINDRES_FOR_TARGET"; then
13165 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13166elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13167 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13168fi
13169
13170if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13171 for ncn_progname in windres; do
13172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13173set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
95a05732 13178else
13179 if test -n "$WINDRES_FOR_TARGET"; then
13180 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
cd9a469c 13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 13189 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 13191 break 2
13192 fi
13193done
cd9a469c 13194 done
13195IFS=$as_save_IFS
95a05732 13196
13197fi
13198fi
13199WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13200if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13202$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 13203else
cd9a469c 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
95a05732 13206fi
13207
cd9a469c 13208
95a05732 13209 done
13210fi
13211
13212if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 13213 for ncn_progname in windres; do
cd9a469c 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13215$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 13216 if test -x $with_build_time_tools/${ncn_progname}; then
13217 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219$as_echo "yes" >&6; }
c47832b1 13220 break
13221 else
cd9a469c 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
c47832b1 13224 fi
13225 done
13226fi
13227
13228if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13229 for ncn_progname in windres; do
13230 if test -n "$ncn_target_tool_prefix"; then
13231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 13232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
13235if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
bb612911 13237else
ef8184c7 13238 if test -n "$WINDRES_FOR_TARGET"; then
13239 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13240else
b30fcfae 13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
cd9a469c 13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13248 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13250 break 2
13251 fi
13252done
cd9a469c 13253 done
13254IFS=$as_save_IFS
b30fcfae 13255
bb612911 13256fi
13257fi
b30fcfae 13258WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 13259if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13261$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13262else
cd9a469c 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
bb612911 13265fi
13266
cd9a469c 13267
c47832b1 13268 fi
13269 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 13271set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
13274if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
bb612911 13276else
768691b5 13277 if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 13279else
b30fcfae 13280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281for as_dir in $PATH
13282do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
cd9a469c 13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 13287 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 13289 break 2
13290 fi
13291done
cd9a469c 13292 done
13293IFS=$as_save_IFS
b30fcfae 13294
bb612911 13295fi
13296fi
b30fcfae 13297WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 13298if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13300$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 13301else
cd9a469c 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303$as_echo "no" >&6; }
bb612911 13304fi
b30fcfae 13305
cd9a469c 13306
c47832b1 13307 fi
13308 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13309 done
13310fi
b30fcfae 13311
768691b5 13312if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13313 set dummy windres
13314 if test $build = $target ; then
13315 WINDRES_FOR_TARGET="$2"
bb612911 13316 else
768691b5 13317 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 13318 fi
b7ef8464 13319else
13320 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 13321fi
13322
ab0da556 13323else
13324 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 13325fi
13326
805e22b2 13327
75d6a0a9 13328
13329
13330if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13331 if test -n "$with_build_time_tools"; then
cd9a469c 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13333$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 13334 if test -x $with_build_time_tools/windmc; then
13335 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13336 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13338$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13339 else
cd9a469c 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
75d6a0a9 13342 fi
13343 elif test $build != $host && test $have_gcc_for_target = yes; then
13344 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 13345 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13346 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 13347 fi
13348fi
13349if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13350 # Extract the first word of "windmc", so it can be a program name with args.
13351set dummy windmc; ac_word=$2
cd9a469c 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353$as_echo_n "checking for $ac_word... " >&6; }
13354if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
75d6a0a9 13356else
13357 case $WINDMC_FOR_TARGET in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13360 ;;
13361 *)
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $gcc_cv_tool_dirs
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
cd9a469c 13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13369 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13371 break 2
13372 fi
13373done
cd9a469c 13374 done
13375IFS=$as_save_IFS
75d6a0a9 13376
13377 ;;
13378esac
13379fi
13380WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 13381if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13383$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13384else
cd9a469c 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
75d6a0a9 13387fi
13388
cd9a469c 13389
75d6a0a9 13390fi
13391if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13392
13393
13394if test -n "$WINDMC_FOR_TARGET"; then
13395 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13396elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13397 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13398fi
13399
13400if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13401 for ncn_progname in windmc; do
13402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13403set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405$as_echo_n "checking for $ac_word... " >&6; }
13406if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
75d6a0a9 13408else
13409 if test -n "$WINDMC_FOR_TARGET"; then
13410 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13411else
13412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413for as_dir in $PATH
13414do
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
cd9a469c 13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13419 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13421 break 2
13422 fi
13423done
cd9a469c 13424 done
13425IFS=$as_save_IFS
75d6a0a9 13426
13427fi
13428fi
13429WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13430if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13432$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13433else
cd9a469c 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435$as_echo "no" >&6; }
75d6a0a9 13436fi
13437
cd9a469c 13438
75d6a0a9 13439 done
13440fi
13441
13442if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13443 for ncn_progname in windmc; do
cd9a469c 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13445$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 13446 if test -x $with_build_time_tools/${ncn_progname}; then
13447 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449$as_echo "yes" >&6; }
75d6a0a9 13450 break
13451 else
cd9a469c 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
75d6a0a9 13454 fi
13455 done
13456fi
13457
13458if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13459 for ncn_progname in windmc; do
13460 if test -n "$ncn_target_tool_prefix"; then
13461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464$as_echo_n "checking for $ac_word... " >&6; }
13465if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
75d6a0a9 13467else
13468 if test -n "$WINDMC_FOR_TARGET"; then
13469 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13470else
13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472for as_dir in $PATH
13473do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
cd9a469c 13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13478 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13480 break 2
13481 fi
13482done
cd9a469c 13483 done
13484IFS=$as_save_IFS
75d6a0a9 13485
13486fi
13487fi
13488WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13489if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13491$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13492else
cd9a469c 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
75d6a0a9 13495fi
13496
cd9a469c 13497
75d6a0a9 13498 fi
13499 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13501set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503$as_echo_n "checking for $ac_word... " >&6; }
13504if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
75d6a0a9 13506else
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13509else
13510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511for as_dir in $PATH
13512do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
cd9a469c 13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13517 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13519 break 2
13520 fi
13521done
cd9a469c 13522 done
13523IFS=$as_save_IFS
75d6a0a9 13524
13525fi
13526fi
13527WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13528if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13530$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13531else
cd9a469c 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
75d6a0a9 13534fi
13535
cd9a469c 13536
75d6a0a9 13537 fi
13538 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13539 done
13540fi
13541
13542if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13543 set dummy windmc
13544 if test $build = $target ; then
13545 WINDMC_FOR_TARGET="$2"
13546 else
13547 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13548 fi
b7ef8464 13549else
13550 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 13551fi
13552
13553else
13554 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13555fi
13556
13557
f5aebe3e 13558RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13559
cd9a469c 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13561$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 13562if test "x${build}" != "x${host}" ; then
c47832b1 13563 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
a6c599b5 13565 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13568 else
13569 # Canadian cross, just use what we found
cd9a469c 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
c47832b1 13572 fi
f5aebe3e 13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" binutils "*) ;;
13577 *) ok=no ;;
13578 esac
b30fcfae 13579
f5aebe3e 13580 if test $ok = yes; then
13581 # An in-tree tool is available and we can use it
13582 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13584$as_echo "just compiled" >&6; }
c47832b1 13585 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
a6c599b5 13587 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13590 elif test "x$target" = "x$host"; then
13591 # We can use an host tool
13592 AR_FOR_TARGET='$(AR)'
cd9a469c 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13594$as_echo "host tool" >&6; }
f5aebe3e 13595 else
13596 # We need a cross tool
cd9a469c 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13598$as_echo "pre-installed" >&6; }
f5aebe3e 13599 fi
13600fi
a83ffacf 13601
cd9a469c 13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13603$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 13604if test "x${build}" != "x${host}" ; then
c47832b1 13605 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
a6c599b5 13607 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13609$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13610 else
13611 # Canadian cross, just use what we found
cd9a469c 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
c47832b1 13614 fi
f5aebe3e 13615else
13616 ok=yes
13617 case " ${configdirs} " in
13618 *" gas "*) ;;
13619 *) ok=no ;;
13620 esac
b30fcfae 13621
f5aebe3e 13622 if test $ok = yes; then
13623 # An in-tree tool is available and we can use it
13624 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13626$as_echo "just compiled" >&6; }
c47832b1 13627 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
a6c599b5 13629 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13632 elif test "x$target" = "x$host"; then
13633 # We can use an host tool
13634 AS_FOR_TARGET='$(AS)'
cd9a469c 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13636$as_echo "host tool" >&6; }
f5aebe3e 13637 else
13638 # We need a cross tool
cd9a469c 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13640$as_echo "pre-installed" >&6; }
f5aebe3e 13641 fi
13642fi
a83ffacf 13643
cd9a469c 13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13645$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 13646if test "x${build}" != "x${host}" ; then
c47832b1 13647 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
a6c599b5 13649 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13652 else
13653 # Canadian cross, just use what we found
cd9a469c 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13655$as_echo "pre-installed" >&6; }
c47832b1 13656 fi
f5aebe3e 13657else
13658 ok=yes
13659 case " ${configdirs} " in
13660 *" gcc "*) ;;
13661 *) ok=no ;;
13662 esac
b30fcfae 13663
f5aebe3e 13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668$as_echo "just compiled" >&6; }
c47832b1 13669 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
a6c599b5 13671 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 CC_FOR_TARGET='$(CC)'
cd9a469c 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678$as_echo "host tool" >&6; }
f5aebe3e 13679 else
13680 # We need a cross tool
cd9a469c 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682$as_echo "pre-installed" >&6; }
f5aebe3e 13683 fi
13684fi
a83ffacf 13685
cd9a469c 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13687$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 13688if test "x${build}" != "x${host}" ; then
c47832b1 13689 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
a6c599b5 13691 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13694 else
13695 # Canadian cross, just use what we found
cd9a469c 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
c47832b1 13698 fi
f5aebe3e 13699else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" gcc "*) ;;
13703 *) ok=no ;;
13704 esac
13705 case ,${enable_languages}, in
13706 *,c++,*) ;;
13707 *) ok=no ;;
13708 esac
13709 if test $ok = yes; then
13710 # An in-tree tool is available and we can use it
b710ec85 13711 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'
cd9a469c 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713$as_echo "just compiled" >&6; }
c47832b1 13714 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
a6c599b5 13716 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13719 elif test "x$target" = "x$host"; then
13720 # We can use an host tool
13721 CXX_FOR_TARGET='$(CXX)'
cd9a469c 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723$as_echo "host tool" >&6; }
f5aebe3e 13724 else
13725 # We need a cross tool
cd9a469c 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727$as_echo "pre-installed" >&6; }
f5aebe3e 13728 fi
13729fi
a83ffacf 13730
cd9a469c 13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13732$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 13733if test "x${build}" != "x${host}" ; then
c47832b1 13734 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
a6c599b5 13736 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13739 else
13740 # Canadian cross, just use what we found
cd9a469c 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742$as_echo "pre-installed" >&6; }
c47832b1 13743 fi
f5aebe3e 13744else
13745 ok=yes
13746 case " ${configdirs} " in
13747 *" gcc "*) ;;
13748 *) ok=no ;;
13749 esac
13750 case ,${enable_languages}, in
13751 *,c++,*) ;;
13752 *) ok=no ;;
13753 esac
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
b710ec85 13756 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'
cd9a469c 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758$as_echo "just compiled" >&6; }
c47832b1 13759 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
a6c599b5 13761 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13764 elif test "x$target" = "x$host"; then
13765 # We can use an host tool
13766 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768$as_echo "host tool" >&6; }
f5aebe3e 13769 else
13770 # We need a cross tool
cd9a469c 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772$as_echo "pre-installed" >&6; }
f5aebe3e 13773 fi
13774fi
a83ffacf 13775
cd9a469c 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13777$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 13778if test "x${build}" != "x${host}" ; then
c47832b1 13779 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
a6c599b5 13781 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13784 else
13785 # Canadian cross, just use what we found
cd9a469c 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787$as_echo "pre-installed" >&6; }
c47832b1 13788 fi
f5aebe3e 13789else
13790 ok=yes
13791 case " ${configdirs} " in
13792 *" binutils "*) ;;
13793 *) ok=no ;;
13794 esac
b30fcfae 13795
f5aebe3e 13796 if test $ok = yes; then
13797 # An in-tree tool is available and we can use it
13798 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13800$as_echo "just compiled" >&6; }
c47832b1 13801 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
a6c599b5 13803 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13805$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13806 elif test "x$target" = "x$host"; then
13807 # We can use an host tool
13808 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13810$as_echo "host tool" >&6; }
f5aebe3e 13811 else
13812 # We need a cross tool
cd9a469c 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814$as_echo "pre-installed" >&6; }
f5aebe3e 13815 fi
13816fi
a83ffacf 13817
cd9a469c 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13819$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 13820if test "x${build}" != "x${host}" ; then
c47832b1 13821 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
a6c599b5 13823 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13826 else
13827 # Canadian cross, just use what we found
cd9a469c 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13829$as_echo "pre-installed" >&6; }
c47832b1 13830 fi
f5aebe3e 13831else
13832 ok=yes
13833 case " ${configdirs} " in
13834 *" gcc "*) ;;
13835 *) ok=no ;;
13836 esac
b30fcfae 13837
f5aebe3e 13838 if test $ok = yes; then
13839 # An in-tree tool is available and we can use it
13840 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13842$as_echo "just compiled" >&6; }
c47832b1 13843 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13844 # We already found the complete path
a6c599b5 13845 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13847$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13848 elif test "x$target" = "x$host"; then
13849 # We can use an host tool
13850 GCC_FOR_TARGET='$()'
cd9a469c 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13852$as_echo "host tool" >&6; }
f5aebe3e 13853 else
13854 # We need a cross tool
cd9a469c 13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856$as_echo "pre-installed" >&6; }
f5aebe3e 13857 fi
13858fi
a83ffacf 13859
cd9a469c 13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13861$as_echo_n "checking where to find the target gcj... " >&6; }
f5aebe3e 13862if test "x${build}" != "x${host}" ; then
c47832b1 13863 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
a6c599b5 13865 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13868 else
13869 # Canadian cross, just use what we found
cd9a469c 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871$as_echo "pre-installed" >&6; }
c47832b1 13872 fi
f5aebe3e 13873else
13874 ok=yes
13875 case " ${configdirs} " in
13876 *" gcc "*) ;;
13877 *) ok=no ;;
13878 esac
13879 case ,${enable_languages}, in
13880 *,java,*) ;;
13881 *) ok=no ;;
13882 esac
13883 if test $ok = yes; then
13884 # An in-tree tool is available and we can use it
13885 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887$as_echo "just compiled" >&6; }
c47832b1 13888 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
a6c599b5 13890 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13893 elif test "x$target" = "x$host"; then
13894 # We can use an host tool
13895 GCJ_FOR_TARGET='$(GCJ)'
cd9a469c 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897$as_echo "host tool" >&6; }
f5aebe3e 13898 else
13899 # We need a cross tool
cd9a469c 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
f5aebe3e 13902 fi
13903fi
a83ffacf 13904
cd9a469c 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13906$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 13907if test "x${build}" != "x${host}" ; then
c47832b1 13908 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
a6c599b5 13910 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13913 else
13914 # Canadian cross, just use what we found
cd9a469c 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
c47832b1 13917 fi
f5aebe3e 13918else
13919 ok=yes
13920 case " ${configdirs} " in
13921 *" gcc "*) ;;
13922 *) ok=no ;;
13923 esac
13924 case ,${enable_languages}, in
13925 *,fortran,*) ;;
13926 *) ok=no ;;
13927 esac
13928 if test $ok = yes; then
13929 # An in-tree tool is available and we can use it
13930 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932$as_echo "just compiled" >&6; }
c47832b1 13933 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
a6c599b5 13935 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13938 elif test "x$target" = "x$host"; then
13939 # We can use an host tool
13940 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942$as_echo "host tool" >&6; }
f5aebe3e 13943 else
13944 # We need a cross tool
cd9a469c 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
f5aebe3e 13947 fi
13948fi
a83ffacf 13949
5ff5b630 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13951$as_echo_n "checking where to find the target gccgo... " >&6; }
13952if test "x${build}" != "x${host}" ; then
13953 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13954 # We already found the complete path
13955 ac_dir=`dirname $GOC_FOR_TARGET`
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957$as_echo "pre-installed in $ac_dir" >&6; }
13958 else
13959 # Canadian cross, just use what we found
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
13962 fi
13963else
13964 ok=yes
13965 case " ${configdirs} " in
13966 *" gcc "*) ;;
13967 *) ok=no ;;
13968 esac
13969 case ,${enable_languages}, in
13970 *,go,*) ;;
13971 *) ok=no ;;
13972 esac
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
13975 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977$as_echo "just compiled" >&6; }
13978 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $GOC_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982$as_echo "pre-installed in $ac_dir" >&6; }
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 GOC_FOR_TARGET='$(GOC)'
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987$as_echo "host tool" >&6; }
13988 else
13989 # We need a cross tool
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
13992 fi
13993fi
13994
cd9a469c 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13996$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 13997if test "x${build}" != "x${host}" ; then
c47832b1 13998 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
a6c599b5 14000 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14003 else
14004 # Canadian cross, just use what we found
cd9a469c 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
c47832b1 14007 fi
f5aebe3e 14008else
14009 ok=yes
14010 case " ${configdirs} " in
14011 *" ld "*) ;;
14012 *) ok=no ;;
14013 esac
b30fcfae 14014
f5aebe3e 14015 if test $ok = yes; then
14016 # An in-tree tool is available and we can use it
14017 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14019$as_echo "just compiled" >&6; }
c47832b1 14020 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14021 # We already found the complete path
a6c599b5 14022 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14024$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14025 elif test "x$target" = "x$host"; then
14026 # We can use an host tool
14027 LD_FOR_TARGET='$(LD)'
cd9a469c 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14029$as_echo "host tool" >&6; }
f5aebe3e 14030 else
14031 # We need a cross tool
cd9a469c 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033$as_echo "pre-installed" >&6; }
f5aebe3e 14034 fi
14035fi
a83ffacf 14036
cd9a469c 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14038$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 14039if test "x${build}" != "x${host}" ; then
c47832b1 14040 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14041 # We already found the complete path
a6c599b5 14042 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14044$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14045 else
14046 # Canadian cross, just use what we found
cd9a469c 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
c47832b1 14049 fi
f5aebe3e 14050else
c47832b1 14051 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
a6c599b5 14053 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14056 elif test "x$target" = "x$host"; then
f5aebe3e 14057 # We can use an host tool
14058 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060$as_echo "host tool" >&6; }
f5aebe3e 14061 else
14062 # We need a cross tool
cd9a469c 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064$as_echo "pre-installed" >&6; }
f5aebe3e 14065 fi
14066fi
a83ffacf 14067
cd9a469c 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14069$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 14070if test "x${build}" != "x${host}" ; then
c47832b1 14071 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
a6c599b5 14073 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14076 else
14077 # Canadian cross, just use what we found
cd9a469c 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079$as_echo "pre-installed" >&6; }
c47832b1 14080 fi
f5aebe3e 14081else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" binutils "*) ;;
14085 *) ok=no ;;
14086 esac
b30fcfae 14087
f5aebe3e 14088 if test $ok = yes; then
14089 # An in-tree tool is available and we can use it
14090 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14092$as_echo "just compiled" >&6; }
c47832b1 14093 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
a6c599b5 14095 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14098 elif test "x$target" = "x$host"; then
14099 # We can use an host tool
14100 NM_FOR_TARGET='$(NM)'
cd9a469c 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14102$as_echo "host tool" >&6; }
f5aebe3e 14103 else
14104 # We need a cross tool
cd9a469c 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106$as_echo "pre-installed" >&6; }
f5aebe3e 14107 fi
14108fi
a83ffacf 14109
cd9a469c 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14111$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 14112if test "x${build}" != "x${host}" ; then
c47832b1 14113 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
a6c599b5 14115 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14117$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14118 else
14119 # Canadian cross, just use what we found
cd9a469c 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121$as_echo "pre-installed" >&6; }
c47832b1 14122 fi
f5aebe3e 14123else
14124 ok=yes
14125 case " ${configdirs} " in
14126 *" binutils "*) ;;
14127 *) ok=no ;;
14128 esac
b30fcfae 14129
f5aebe3e 14130 if test $ok = yes; then
14131 # An in-tree tool is available and we can use it
14132 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14134$as_echo "just compiled" >&6; }
c47832b1 14135 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
a6c599b5 14137 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14140 elif test "x$target" = "x$host"; then
14141 # We can use an host tool
14142 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14144$as_echo "host tool" >&6; }
f5aebe3e 14145 else
14146 # We need a cross tool
cd9a469c 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14148$as_echo "pre-installed" >&6; }
f5aebe3e 14149 fi
14150fi
a83ffacf 14151
cd9a469c 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14153$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 14154if test "x${build}" != "x${host}" ; then
c47832b1 14155 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
a6c599b5 14157 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14160 else
14161 # Canadian cross, just use what we found
cd9a469c 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
c47832b1 14164 fi
f5aebe3e 14165else
14166 ok=yes
14167 case " ${configdirs} " in
14168 *" binutils "*) ;;
14169 *) ok=no ;;
14170 esac
b30fcfae 14171
f5aebe3e 14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
14174 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176$as_echo "just compiled" >&6; }
c47832b1 14177 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
a6c599b5 14179 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186$as_echo "host tool" >&6; }
f5aebe3e 14187 else
14188 # We need a cross tool
cd9a469c 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190$as_echo "pre-installed" >&6; }
f5aebe3e 14191 fi
14192fi
a83ffacf 14193
3f71364d 14194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14195$as_echo_n "checking where to find the target readelf... " >&6; }
14196if test "x${build}" != "x${host}" ; then
14197 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
14199 ac_dir=`dirname $READELF_FOR_TARGET`
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201$as_echo "pre-installed in $ac_dir" >&6; }
14202 else
14203 # Canadian cross, just use what we found
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
14206 fi
14207else
14208 ok=yes
14209 case " ${configdirs} " in
14210 *" binutils "*) ;;
14211 *) ok=no ;;
14212 esac
14213
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
14216 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218$as_echo "just compiled" >&6; }
14219 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $READELF_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 READELF_FOR_TARGET='$(READELF)'
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228$as_echo "host tool" >&6; }
14229 else
14230 # We need a cross tool
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232$as_echo "pre-installed" >&6; }
14233 fi
14234fi
14235
cd9a469c 14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14237$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 14238if test "x${build}" != "x${host}" ; then
c47832b1 14239 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
a6c599b5 14241 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14244 else
14245 # Canadian cross, just use what we found
cd9a469c 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
c47832b1 14248 fi
f5aebe3e 14249else
14250 ok=yes
14251 case " ${configdirs} " in
14252 *" binutils "*) ;;
14253 *) ok=no ;;
14254 esac
b30fcfae 14255
f5aebe3e 14256 if test $ok = yes; then
14257 # An in-tree tool is available and we can use it
2b7a4d59 14258 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260$as_echo "just compiled" >&6; }
c47832b1 14261 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
a6c599b5 14263 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270$as_echo "host tool" >&6; }
f5aebe3e 14271 else
14272 # We need a cross tool
cd9a469c 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274$as_echo "pre-installed" >&6; }
f5aebe3e 14275 fi
14276fi
a83ffacf 14277
cd9a469c 14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14279$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 14280if test "x${build}" != "x${host}" ; then
c47832b1 14281 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
a6c599b5 14283 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 14286 else
14287 # Canadian cross, just use what we found
cd9a469c 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
c47832b1 14290 fi
f5aebe3e 14291else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" binutils "*) ;;
14295 *) ok=no ;;
14296 esac
b30fcfae 14297
f5aebe3e 14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302$as_echo "just compiled" >&6; }
c47832b1 14303 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
a6c599b5 14305 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312$as_echo "host tool" >&6; }
f5aebe3e 14313 else
14314 # We need a cross tool
cd9a469c 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316$as_echo "pre-installed" >&6; }
f5aebe3e 14317 fi
71ab34df 14318fi
49aae208 14319
cd9a469c 14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14321$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 14322if test "x${build}" != "x${host}" ; then
14323 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14328 else
14329 # Canadian cross, just use what we found
cd9a469c 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
75d6a0a9 14332 fi
14333else
14334 ok=yes
14335 case " ${configdirs} " in
14336 *" binutils "*) ;;
14337 *) ok=no ;;
14338 esac
14339
14340 if test $ok = yes; then
14341 # An in-tree tool is available and we can use it
14342 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344$as_echo "just compiled" >&6; }
75d6a0a9 14345 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 14350 elif test "x$target" = "x$host"; then
14351 # We can use an host tool
14352 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354$as_echo "host tool" >&6; }
75d6a0a9 14355 else
14356 # We need a cross tool
cd9a469c 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358$as_echo "pre-installed" >&6; }
75d6a0a9 14359 fi
14360fi
14361
49aae208 14362
14363
f5aebe3e 14364
a83ffacf 14365
71ab34df 14366# Certain tools may need extra flags.
14367AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14368RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14369NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14370
f5aebe3e 14371# When building target libraries, except in a Canadian cross, we use
14372# the same toolchain as the compiler we just built.
14373COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14374COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14375COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14376if test $host = $build; then
14377 case " $configdirs " in
14378 *" gcc "*)
14379 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14380 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14381 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14382 ;;
14383 esac
14384fi
14385
14386
14387
14388
14389
cd9a469c 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14391$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14392# Check whether --enable-maintainer-mode was given.
14393if test "${enable_maintainer_mode+set}" = set; then :
14394 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 14395else
14396 USE_MAINTAINER_MODE=no
cd9a469c 14397fi
14398
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14400$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 14401
14402
14403if test "$USE_MAINTAINER_MODE" = yes; then
14404 MAINTAINER_MODE_TRUE=
14405 MAINTAINER_MODE_FALSE='#'
14406else
14407 MAINTAINER_MODE_TRUE='#'
14408 MAINTAINER_MODE_FALSE=
b30fcfae 14409fi
3290c0cf 14410MAINT=$MAINTAINER_MODE_TRUE
14411
2d64c2fd 14412# ---------------------
14413# GCC bootstrap support
14414# ---------------------
14415
14416# Stage specific cflags for build.
14417stage1_cflags="-g"
14418case $build in
14419 vax-*-*)
14420 case ${GCC} in
14421 yes) stage1_cflags="-g -Wa,-J" ;;
14422 *) stage1_cflags="-g -J" ;;
14423 esac ;;
2d64c2fd 14424esac
14425
f508ba97 14426
2d64c2fd 14427
39f34cfc 14428# Enable --enable-checking in stage1 of the compiler.
cd9a469c 14429# Check whether --enable-stage1-checking was given.
14430if test "${enable_stage1_checking+set}" = set; then :
14431 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 14432else
f6be6a96 14433 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
f03e0ae4 14434 stage1_checking=--enable-checking=yes,types
39f34cfc 14435else
f6be6a96 14436 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 14437fi
cd9a469c 14438fi
39f34cfc 14439
14440
5084f823 14441
cd9a469c 14442# Enable -Werror in bootstrap stage2 and later.
14443# Check whether --enable-werror was given.
14444if test "${enable_werror+set}" = set; then :
14445 enableval=$enable_werror;
2d64c2fd 14446else
dd979235 14447 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 14448 enable_werror=yes
dc914c6d 14449else
14450 enable_werror=no
14451fi
cd9a469c 14452fi
14453
c0c5068d 14454case ${enable_werror} in
14455 yes) stage2_werror_flag="--enable-werror-always" ;;
14456 *) stage2_werror_flag="" ;;
2d64c2fd 14457esac
14458
14459
2bd17377 14460# Enable --enable-host-shared.
14461# Check whether --enable-host-shared was given.
14462if test "${enable_host_shared+set}" = set; then :
14463 enableval=$enable_host_shared; host_shared=$enableval
14464else
14465 host_shared=no
14466fi
14467
14468
14469
6fe86052 14470# Specify what files to not compare during bootstrap.
14471
14472compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14473case "$target" in
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
62f0972f 14476 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
6fe86052 14477esac
14478
14479
cd9a469c 14480ac_config_files="$ac_config_files Makefile"
14481
b30fcfae 14482cat >confcache <<\_ACEOF
71ab34df 14483# This file is a shell script that caches the results of configure
14484# tests run on this system so they can be shared between configure
b30fcfae 14485# scripts and configure runs, see configure's option --config-cache.
14486# It is not useful on other systems. If it contains results you don't
14487# want to keep, you may remove or edit it.
71ab34df 14488#
b30fcfae 14489# config.status only pays attention to the cache file if you give it
14490# the --recheck option to rerun configure.
71ab34df 14491#
b30fcfae 14492# `ac_cv_env_foo' variables (set or unset) will be overridden when
14493# loading this file, other *unset* `ac_cv_foo' will be assigned the
14494# following values.
14495
14496_ACEOF
14497
71ab34df 14498# The following way of writing the cache mishandles newlines in values,
14499# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 14500# So, we kill variables containing newlines.
71ab34df 14501# Ultrix sh set writes to stderr and can't be redirected directly,
14502# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 14503(
14504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14505 eval ac_val=\$$ac_var
14506 case $ac_val in #(
14507 *${as_nl}*)
14508 case $ac_var in #(
14509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14511 esac
14512 case $ac_var in #(
14513 _ | IFS | as_nl) ;; #(
14514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14515 *) { eval $ac_var=; unset $ac_var;} ;;
14516 esac ;;
14517 esac
14518 done
14519
b30fcfae 14520 (set) 2>&1 |
cd9a469c 14521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14522 *${as_nl}ac_space=\ *)
14523 # `set' does not quote correctly, so add quotes: double-quote
14524 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 14525 sed -n \
14526 "s/'/'\\\\''/g;
14527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 14528 ;; #(
b30fcfae 14529 *)
14530 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 14531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 14532 ;;
cd9a469c 14533 esac |
14534 sort
14535) |
b30fcfae 14536 sed '
cd9a469c 14537 /^ac_cv_env_/b end
b30fcfae 14538 t clear
cd9a469c 14539 :clear
b30fcfae 14540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14541 t end
cd9a469c 14542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14543 :end' >>confcache
14544if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14545 if test -w "$cache_file"; then
14546 test "x$cache_file" != "x/dev/null" &&
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14548$as_echo "$as_me: updating cache $cache_file" >&6;}
b30fcfae 14549 cat confcache >$cache_file
71ab34df 14550 else
cd9a469c 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14552$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 14553 fi
805e22b2 14554fi
71ab34df 14555rm -f confcache
a8298541 14556
71ab34df 14557test "x$prefix" = xNONE && prefix=$ac_default_prefix
14558# Let make expand exec_prefix.
14559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 14560
71ab34df 14561# Transform confdefs.h into DEFS.
14562# Protect against shell expansion while executing Makefile rules.
14563# Protect against Makefile macro expansion.
b30fcfae 14564#
14565# If the first sed substitution is executed (which looks for macros that
cd9a469c 14566# take arguments), then branch to the quote section. Otherwise,
b30fcfae 14567# look for a macro that doesn't take arguments.
cd9a469c 14568ac_script='
14569:mline
14570/\\$/{
14571 N
14572 s,\\\n,,
14573 b mline
14574}
b30fcfae 14575t clear
cd9a469c 14576:clear
14577s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14578t quote
cd9a469c 14579s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14580t quote
cd9a469c 14581b any
14582:quote
14583s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14584s/\[/\\&/g
14585s/\]/\\&/g
14586s/\$/$$/g
14587H
14588:any
14589${
14590 g
14591 s/^\n//
14592 s/\n/ /g
14593 p
14594}
14595'
14596DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 14597
14598
14599ac_libobjs=
14600ac_ltlibobjs=
14601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14602 # 1. Remove the extension, and $U if already installed.
cd9a469c 14603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14606 # will be set to the directory where LIBOBJS objects are built.
14607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 14609done
14610LIBOBJS=$ac_libobjs
a4af6a58 14611
b30fcfae 14612LTLIBOBJS=$ac_ltlibobjs
a83ffacf 14613
ae48753c 14614
b30fcfae 14615
14616: ${CONFIG_STATUS=./config.status}
cd9a469c 14617ac_write_fail=0
b30fcfae 14618ac_clean_files_save=$ac_clean_files
14619ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 14620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14622as_write_fail=0
14623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 14624#! $SHELL
14625# Generated by $as_me.
71ab34df 14626# Run this file to recreate the current configuration.
71ab34df 14627# Compiler output produced by configure, useful for debugging
b30fcfae 14628# configure, is in config.log if it exists.
a83ffacf 14629
b30fcfae 14630debug=false
14631ac_cs_recheck=false
14632ac_cs_silent=false
b30fcfae 14633
cd9a469c 14634SHELL=\${CONFIG_SHELL-$SHELL}
14635export SHELL
14636_ASEOF
14637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14638## -------------------- ##
14639## M4sh Initialization. ##
14640## -------------------- ##
14641
14642# Be more Bourne compatible
14643DUALCASE=1; export DUALCASE # for MKS sh
14644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 14645 emulate sh
14646 NULLCMD=:
cd9a469c 14647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 14648 # is contrary to our usage. Disable this feature.
14649 alias -g '${1+"$@"}'='"$@"'
cd9a469c 14650 setopt NO_GLOB_SUBST
14651else
14652 case `(set -o) 2>/dev/null` in #(
14653 *posix*) :
14654 set -o posix ;; #(
14655 *) :
14656 ;;
14657esac
b30fcfae 14658fi
b30fcfae 14659
cd9a469c 14660
14661as_nl='
14662'
14663export as_nl
14664# Printing a long string crashes Solaris 7 /usr/bin/printf.
14665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14668# Prefer a ksh shell builtin over an external printf program on Solaris,
14669# but without wasting forks for bash or zsh.
14670if test -z "$BASH_VERSION$ZSH_VERSION" \
14671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14672 as_echo='print -r --'
14673 as_echo_n='print -rn --'
14674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14675 as_echo='printf %s\n'
14676 as_echo_n='printf %s'
14677else
14678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14680 as_echo_n='/usr/ucb/echo -n'
14681 else
14682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14683 as_echo_n_body='eval
14684 arg=$1;
14685 case $arg in #(
14686 *"$as_nl"*)
14687 expr "X$arg" : "X\\(.*\\)$as_nl";
14688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14689 esac;
14690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14691 '
14692 export as_echo_n_body
14693 as_echo_n='sh -c $as_echo_n_body as_echo'
14694 fi
14695 export as_echo_body
14696 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 14697fi
14698
cd9a469c 14699# The user is always right.
14700if test "${PATH_SEPARATOR+set}" != set; then
14701 PATH_SEPARATOR=:
14702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14704 PATH_SEPARATOR=';'
14705 }
14706fi
14707
14708
14709# IFS
14710# We need space, tab and new line, in precisely that order. Quoting is
14711# there to prevent editors from complaining about space-tab.
14712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14713# splitting by setting IFS to empty value.)
14714IFS=" "" $as_nl"
14715
14716# Find who we are. Look in the path if we contain no directory separator.
14717case $0 in #((
14718 *[\\/]* ) as_myself=$0 ;;
14719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720for as_dir in $PATH
14721do
14722 IFS=$as_save_IFS
14723 test -z "$as_dir" && as_dir=.
14724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14725 done
14726IFS=$as_save_IFS
14727
14728 ;;
14729esac
14730# We did not find ourselves, most probably we were run as `sh COMMAND'
14731# in which case we are not to be found in the path.
14732if test "x$as_myself" = x; then
14733 as_myself=$0
14734fi
14735if test ! -f "$as_myself"; then
14736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14737 exit 1
14738fi
b30fcfae 14739
cd9a469c 14740# Unset variables that we do not need and which cause bugs (e.g. in
14741# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14742# suppresses any "Segmentation fault" message there. '((' could
14743# trigger a bug in pdksh 5.2.14.
14744for as_var in BASH_ENV ENV MAIL MAILPATH
14745do eval test x\${$as_var+set} = xset \
14746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14747done
b30fcfae 14748PS1='$ '
14749PS2='> '
14750PS4='+ '
14751
14752# NLS nuisances.
cd9a469c 14753LC_ALL=C
14754export LC_ALL
14755LANGUAGE=C
14756export LANGUAGE
14757
14758# CDPATH.
14759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14760
14761
14762# as_fn_error ERROR [LINENO LOG_FD]
14763# ---------------------------------
14764# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766# script with status $?, using 1 if that was 0.
14767as_fn_error ()
14768{
14769 as_status=$?; test $as_status -eq 0 && as_status=1
14770 if test "$3"; then
14771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b30fcfae 14773 fi
cd9a469c 14774 $as_echo "$as_me: error: $1" >&2
14775 as_fn_exit $as_status
14776} # as_fn_error
14777
14778
14779# as_fn_set_status STATUS
14780# -----------------------
14781# Set $? to STATUS, without forking.
14782as_fn_set_status ()
14783{
14784 return $1
14785} # as_fn_set_status
14786
14787# as_fn_exit STATUS
14788# -----------------
14789# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14790as_fn_exit ()
14791{
14792 set +e
14793 as_fn_set_status $1
14794 exit $1
14795} # as_fn_exit
14796
14797# as_fn_unset VAR
14798# ---------------
14799# Portably unset VAR.
14800as_fn_unset ()
14801{
14802 { eval $1=; unset $1;}
14803}
14804as_unset=as_fn_unset
14805# as_fn_append VAR VALUE
14806# ----------------------
14807# Append the text in VALUE to the end of the definition contained in VAR. Take
14808# advantage of any shell optimizations that allow amortized linear growth over
14809# repeated appends, instead of the typical quadratic growth present in naive
14810# implementations.
14811if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812 eval 'as_fn_append ()
14813 {
14814 eval $1+=\$2
14815 }'
14816else
14817 as_fn_append ()
14818 {
14819 eval $1=\$$1\$2
14820 }
14821fi # as_fn_append
14822
14823# as_fn_arith ARG...
14824# ------------------
14825# Perform arithmetic evaluation on the ARGs, and store the result in the
14826# global $as_val. Take advantage of shells that can avoid forks. The arguments
14827# must be portable across $(()) and expr.
14828if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829 eval 'as_fn_arith ()
14830 {
14831 as_val=$(( $* ))
14832 }'
14833else
14834 as_fn_arith ()
14835 {
14836 as_val=`expr "$@" || test $? -eq 1`
14837 }
14838fi # as_fn_arith
14839
b30fcfae 14840
cd9a469c 14841if expr a : '\(a\)' >/dev/null 2>&1 &&
14842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 14843 as_expr=expr
14844else
14845 as_expr=false
14846fi
14847
cd9a469c 14848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 14849 as_basename=basename
14850else
14851 as_basename=false
14852fi
14853
cd9a469c 14854if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14855 as_dirname=dirname
14856else
14857 as_dirname=false
14858fi
b30fcfae 14859
cd9a469c 14860as_me=`$as_basename -- "$0" ||
b30fcfae 14861$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862 X"$0" : 'X\(//\)$' \| \
cd9a469c 14863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14864$as_echo X/"$0" |
14865 sed '/^.*\/\([^/][^/]*\)\/*$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\/\(\/\/\)$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\/\(\/\).*/{
14874 s//\1/
14875 q
14876 }
14877 s/.*/./; q'`
5084f823 14878
5084f823 14879# Avoid depending upon Character Ranges.
14880as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883as_cr_digits='0123456789'
14884as_cr_alnum=$as_cr_Letters$as_cr_digits
14885
cd9a469c 14886ECHO_C= ECHO_N= ECHO_T=
14887case `echo -n x` in #(((((
14888-n*)
14889 case `echo 'xy\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14891 xy) ECHO_C='\c';;
14892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14893 ECHO_T=' ';;
14894 esac;;
14895*)
14896 ECHO_N='-n';;
b30fcfae 14897esac
14898
cd9a469c 14899rm -f conf$$ conf$$.exe conf$$.file
14900if test -d conf$$.dir; then
14901 rm -f conf$$.dir/conf$$.file
b30fcfae 14902else
cd9a469c 14903 rm -f conf$$.dir
14904 mkdir conf$$.dir 2>/dev/null
b30fcfae 14905fi
cd9a469c 14906if (echo >conf$$.file) 2>/dev/null; then
14907 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 14908 as_ln_s='ln -s'
cd9a469c 14909 # ... but there are two gotchas:
14910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912 # In both cases, we have to default to `cp -p'.
14913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14914 as_ln_s='cp -p'
14915 elif ln conf$$.file conf$$ 2>/dev/null; then
14916 as_ln_s=ln
14917 else
14918 as_ln_s='cp -p'
5084f823 14919 fi
b30fcfae 14920else
14921 as_ln_s='cp -p'
14922fi
cd9a469c 14923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924rmdir conf$$.dir 2>/dev/null
14925
14926
14927# as_fn_mkdir_p
14928# -------------
14929# Create "$as_dir" as a directory, including parents if necessary.
14930as_fn_mkdir_p ()
14931{
14932
14933 case $as_dir in #(
14934 -*) as_dir=./$as_dir;;
14935 esac
14936 test -d "$as_dir" || eval $as_mkdir_p || {
14937 as_dirs=
14938 while :; do
14939 case $as_dir in #(
14940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941 *) as_qdir=$as_dir;;
14942 esac
14943 as_dirs="'$as_qdir' $as_dirs"
14944 as_dir=`$as_dirname -- "$as_dir" ||
14945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$as_dir" : 'X\(//\)[^/]' \| \
14947 X"$as_dir" : 'X\(//\)$' \| \
14948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949$as_echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)[^/].*/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\/\)$/{
14959 s//\1/
14960 q
14961 }
14962 /^X\(\/\).*/{
14963 s//\1/
14964 q
14965 }
14966 s/.*/./; q'`
14967 test -d "$as_dir" && break
14968 done
14969 test -z "$as_dirs" || eval "mkdir $as_dirs"
14970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14971
b30fcfae 14972
cd9a469c 14973} # as_fn_mkdir_p
b30fcfae 14974if mkdir -p . 2>/dev/null; then
cd9a469c 14975 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 14976else
14977 test -d ./-p && rmdir ./-p
14978 as_mkdir_p=false
14979fi
14980
cd9a469c 14981if test -x / >/dev/null 2>&1; then
14982 as_test_x='test -x'
14983else
14984 if ls -dL / >/dev/null 2>&1; then
14985 as_ls_L_option=L
14986 else
14987 as_ls_L_option=
14988 fi
14989 as_test_x='
14990 eval sh -c '\''
14991 if test -d "$1"; then
14992 test -d "$1/.";
14993 else
14994 case $1 in #(
14995 -*)set "./$1";;
14996 esac;
14997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14998 ???[sx]*):;;*)false;;esac;fi
14999 '\'' sh
15000 '
15001fi
15002as_executable_p=$as_test_x
b30fcfae 15003
15004# Sed expression to map a string onto a valid CPP name.
15005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15006
15007# Sed expression to map a string onto a valid variable name.
15008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15009
15010
b30fcfae 15011exec 6>&1
cd9a469c 15012## ----------------------------------- ##
15013## Main body of $CONFIG_STATUS script. ##
15014## ----------------------------------- ##
15015_ASEOF
15016test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15017
15018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 15020# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 15021# values after options handling.
15022ac_log="
b30fcfae 15023This file was extended by $as_me, which was
cd9a469c 15024generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 15025
15026 CONFIG_FILES = $CONFIG_FILES
15027 CONFIG_HEADERS = $CONFIG_HEADERS
15028 CONFIG_LINKS = $CONFIG_LINKS
15029 CONFIG_COMMANDS = $CONFIG_COMMANDS
15030 $ $0 $@
15031
cd9a469c 15032on `(hostname || uname -n) 2>/dev/null | sed 1q`
15033"
15034
b30fcfae 15035_ACEOF
15036
cd9a469c 15037case $ac_config_files in *"
15038"*) set x $ac_config_files; shift; ac_config_files=$*;;
15039esac
b30fcfae 15040
5084f823 15041
5084f823 15042
cd9a469c 15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044# Files that config.status was made for.
15045config_files="$ac_config_files"
b30fcfae 15046
cd9a469c 15047_ACEOF
5084f823 15048
cd9a469c 15049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15050ac_cs_usage="\
cd9a469c 15051\`$as_me' instantiates files and other configuration actions
15052from templates according to the current configuration. Unless the files
15053and actions are specified as TAGs, all are instantiated by default.
b30fcfae 15054
cd9a469c 15055Usage: $0 [OPTION]... [TAG]...
b30fcfae 15056
15057 -h, --help print this help, then exit
cd9a469c 15058 -V, --version print version number and configuration settings, then exit
15059 -q, --quiet, --silent
15060 do not print progress messages
b30fcfae 15061 -d, --debug don't remove temporary files
15062 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 15063 --file=FILE[:TEMPLATE]
15064 instantiate the configuration file FILE
b30fcfae 15065
15066Configuration files:
15067$config_files
15068
cd9a469c 15069Report bugs to the package provider."
5084f823 15070
cd9a469c 15071_ACEOF
15072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15073ac_cs_version="\\
15074config.status
cd9a469c 15075configured by $0, generated by GNU Autoconf 2.64,
15076 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 15077
cd9a469c 15078Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 15079This config.status script is free software; the Free Software Foundation
15080gives unlimited permission to copy, distribute and modify it."
cd9a469c 15081
15082ac_pwd='$ac_pwd'
15083srcdir='$srcdir'
15084INSTALL='$INSTALL'
b181f265 15085AWK='$AWK'
cd9a469c 15086test -n "\$AWK" || AWK=awk
b30fcfae 15087_ACEOF
15088
cd9a469c 15089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090# The default lists apply if the user does not specify any file.
b30fcfae 15091ac_need_defaults=:
15092while test $# != 0
b1660f25 15093do
b30fcfae 15094 case $1 in
15095 --*=*)
cd9a469c 15096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 15098 ac_shift=:
15099 ;;
cd9a469c 15100 *)
b30fcfae 15101 ac_option=$1
15102 ac_optarg=$2
15103 ac_shift=shift
15104 ;;
b30fcfae 15105 esac
15106
15107 case $ac_option in
15108 # Handling of the options.
71ab34df 15109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 15110 ac_cs_recheck=: ;;
cd9a469c 15111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15112 $as_echo "$ac_cs_version"; exit ;;
15113 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 15114 debug=: ;;
15115 --file | --fil | --fi | --f )
15116 $ac_shift
cd9a469c 15117 case $ac_optarg in
15118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15119 esac
15120 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 15121 ac_need_defaults=false;;
cd9a469c 15122 --he | --h | --help | --hel | -h )
15123 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 15124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15126 ac_cs_silent=: ;;
15127
15128 # This is an error.
cd9a469c 15129 -*) as_fn_error "unrecognized option: \`$1'
15130Try \`$0 --help' for more information." ;;
b30fcfae 15131
cd9a469c 15132 *) as_fn_append ac_config_targets " $1"
15133 ac_need_defaults=false ;;
b30fcfae 15134
a83ffacf 15135 esac
b30fcfae 15136 shift
a83ffacf 15137done
15138
b30fcfae 15139ac_configure_extra_args=
a83ffacf 15140
b30fcfae 15141if $ac_cs_silent; then
15142 exec 6>/dev/null
15143 ac_configure_extra_args="$ac_configure_extra_args --silent"
15144fi
a83ffacf 15145
b30fcfae 15146_ACEOF
cd9a469c 15147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 15148if \$ac_cs_recheck; then
cd9a469c 15149 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15150 shift
15151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15152 CONFIG_SHELL='$SHELL'
15153 export CONFIG_SHELL
15154 exec "\$@"
b30fcfae 15155fi
15156
15157_ACEOF
cd9a469c 15158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159exec 5>>config.log
15160{
15161 echo
15162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15163## Running $as_me. ##
15164_ASBOX
15165 $as_echo "$ac_log"
15166} >&5
b30fcfae 15167
cd9a469c 15168_ACEOF
15169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 15170#
15171# INIT-COMMANDS
15172#
15173extrasub_build="$extrasub_build"
15174 extrasub_host="$extrasub_host"
15175 extrasub_target="$extrasub_target"
15176
cd9a469c 15177_ACEOF
b30fcfae 15178
cd9a469c 15179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 15180
cd9a469c 15181# Handling of arguments.
b30fcfae 15182for ac_config_target in $ac_config_targets
15183do
cd9a469c 15184 case $ac_config_target in
15185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15186
15187 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 15188 esac
15189done
15190
cd9a469c 15191
b30fcfae 15192# If the user did not use the arguments to specify the items to instantiate,
15193# then the envvar interface is used. Set only those that are not.
15194# We use the long form for the default assignment because of an extremely
15195# bizarre bug on SunOS 4.1.3.
15196if $ac_need_defaults; then
15197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15198fi
15199
15200# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 15201# simply because there is no reason against having it here, and in addition,
b30fcfae 15202# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 15203# Hook for its removal unless debugging.
15204# Note that there is a small window in which the directory will not be cleaned:
15205# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 15206$debug ||
15207{
cd9a469c 15208 tmp=
15209 trap 'exit_status=$?
15210 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15211' 0
15212 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 15213}
b30fcfae 15214# Create a (secure) tmp directory for tmp files.
15215
15216{
cd9a469c 15217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b30fcfae 15218 test -n "$tmp" && test -d "$tmp"
15219} ||
15220{
cd9a469c 15221 tmp=./conf$$-$RANDOM
15222 (umask 077 && mkdir "$tmp")
15223} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15224
15225# Set up the scripts for CONFIG_FILES section.
15226# No need to generate them if there are no CONFIG_FILES.
15227# This happens for instance with `./config.status config.h'.
15228if test -n "$CONFIG_FILES"; then
15229
15230if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15231 ac_cs_awk_getline=:
15232 ac_cs_awk_pipe_init=
15233 ac_cs_awk_read_file='
15234 while ((getline aline < (F[key])) > 0)
15235 print(aline)
15236 close(F[key])'
15237 ac_cs_awk_pipe_fini=
15238else
15239 ac_cs_awk_getline=false
15240 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15241 ac_cs_awk_read_file='
15242 print "|#_!!_#|"
15243 print "cat " F[key] " &&"
15244 '$ac_cs_awk_pipe_init
15245 # The final `:' finishes the AND list.
15246 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15247fi
15248ac_cr=`echo X | tr X '\015'`
15249# On cygwin, bash can eat \r inside `` if the user requested igncr.
15250# But we know of no other shell where ac_cr would be empty at this
15251# point, so we can use a bashism as a fallback.
15252if test "x$ac_cr" = x; then
15253 eval ac_cr=\$\'\\r\'
15254fi
15255ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15256if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15257 ac_cs_awk_cr='\r'
15258else
15259 ac_cs_awk_cr=$ac_cr
15260fi
15261
15262echo 'BEGIN {' >"$tmp/subs1.awk" &&
15263_ACEOF
15264
15265# Create commands to substitute file output variables.
b30fcfae 15266{
cd9a469c 15267 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15268 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15269 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15270 echo "_ACAWK" &&
15271 echo "_ACEOF"
15272} >conf$$files.sh &&
15273. ./conf$$files.sh ||
15274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15275rm -f conf$$files.sh
b30fcfae 15276
cd9a469c 15277{
15278 echo "cat >conf$$subs.awk <<_ACEOF" &&
15279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15280 echo "_ACEOF"
15281} >conf$$subs.sh ||
15282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15283ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15284ac_delim='%!_!# '
15285for ac_last_try in false false false false false :; do
15286 . ./conf$$subs.sh ||
15287 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15288
15289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15290 if test $ac_delim_n = $ac_delim_num; then
15291 break
15292 elif $ac_last_try; then
15293 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15294 else
15295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15296 fi
15297done
15298rm -f conf$$subs.sh
15299
15300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15301cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5084f823 15302_ACEOF
cd9a469c 15303sed -n '
15304h
15305s/^/S["/; s/!.*/"]=/
15306p
15307g
15308s/^[^!]*!//
15309:repl
15310t repl
15311s/'"$ac_delim"'$//
15312t delim
15313:nl
15314h
15315s/\(.\{148\}\).*/\1/
15316t more1
15317s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15318p
15319n
15320b repl
15321:more1
15322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15323p
15324g
15325s/.\{148\}//
15326t nl
15327:delim
15328h
15329s/\(.\{148\}\).*/\1/
15330t more2
15331s/["\\]/\\&/g; s/^/"/; s/$/"/
15332p
15333b
15334:more2
15335s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15336p
15337g
15338s/.\{148\}//
15339t delim
15340' <conf$$subs.awk | sed '
15341/^[^""]/{
15342 N
15343 s/\n//
15344}
15345' >>$CONFIG_STATUS || ac_write_fail=1
15346rm -f conf$$subs.awk
15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348_ACAWK
15349cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15350 for (key in S) S_is_set[key] = 1
15351 FS = "\a"
15352 \$ac_cs_awk_pipe_init
15353}
15354{
15355 line = $ 0
15356 nfields = split(line, field, "@")
15357 substed = 0
15358 len = length(field[1])
15359 for (i = 2; i < nfields; i++) {
15360 key = field[i]
15361 keylen = length(key)
15362 if (S_is_set[key]) {
15363 value = S[key]
15364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15365 len += length(value) + length(field[++i])
15366 substed = 1
15367 } else
15368 len += 1 + keylen
15369 }
15370 if (nfields == 3 && !substed) {
15371 key = field[2]
15372 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15373 \$ac_cs_awk_read_file
15374 next
15375 }
15376 }
15377 print line
15378}
15379\$ac_cs_awk_pipe_fini
15380_ACAWK
15381_ACEOF
15382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15385else
15386 cat
15387fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15388 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15389_ACEOF
15390
15391# VPATH may cause trouble with some makes, so we remove $(srcdir),
15392# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15393# trailing colons and then remove the whole line if VPATH becomes empty
15394# (actually we leave an empty line to preserve line numbers).
15395if test "x$srcdir" = x.; then
15396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15397s/:*\$(srcdir):*/:/
15398s/:*\${srcdir}:*/:/
15399s/:*@srcdir@:*/:/
15400s/^\([^=]*=[ ]*\):*/\1/
15401s/:*$//
15402s/^[^=]*=[ ]*$//
15403}'
15404fi
5084f823 15405
cd9a469c 15406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407fi # test -n "$CONFIG_FILES"
5084f823 15408
b30fcfae 15409
cd9a469c 15410eval set X " :F $CONFIG_FILES "
15411shift
15412for ac_tag
15413do
15414 case $ac_tag in
15415 :[FHLC]) ac_mode=$ac_tag; continue;;
15416 esac
15417 case $ac_mode$ac_tag in
15418 :[FHL]*:*);;
15419 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15420 :[FH]-) ac_tag=-:-;;
15421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15422 esac
15423 ac_save_IFS=$IFS
15424 IFS=:
15425 set x $ac_tag
15426 IFS=$ac_save_IFS
15427 shift
15428 ac_file=$1
15429 shift
a8298541 15430
cd9a469c 15431 case $ac_mode in
15432 :L) ac_source=$1;;
15433 :[FH])
15434 ac_file_inputs=
15435 for ac_f
15436 do
15437 case $ac_f in
15438 -) ac_f="$tmp/stdin";;
15439 *) # Look for the file first in the build tree, then in the source tree
15440 # (if the path is not absolute). The absolute path cannot be DOS-style,
15441 # because $ac_f cannot contain `:'.
15442 test -f "$ac_f" ||
15443 case $ac_f in
15444 [\\/$]*) false;;
15445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15446 esac ||
15447 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15448 esac
15449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15450 as_fn_append ac_file_inputs " '$ac_f'"
15451 done
b30fcfae 15452
cd9a469c 15453 # Let's still pretend it is `configure' which instantiates (i.e., don't
15454 # use $as_me), people would be surprised to read:
15455 # /* config.h. Generated by config.status. */
15456 configure_input='Generated from '`
15457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15458 `' by configure.'
15459 if test x"$ac_file" != x-; then
15460 configure_input="$ac_file. $configure_input"
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15462$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 15463 fi
cd9a469c 15464 # Neutralize special characters interpreted by sed in replacement strings.
15465 case $configure_input in #(
15466 *\&* | *\|* | *\\* )
15467 ac_sed_conf_input=`$as_echo "$configure_input" |
15468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15469 *) ac_sed_conf_input=$configure_input;;
15470 esac
570af75a 15471
cd9a469c 15472 case $ac_tag in
15473 *:-:* | *:-) cat >"$tmp/stdin" \
15474 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15475 esac
15476 ;;
570af75a 15477 esac
15478
cd9a469c 15479 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 15480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15481 X"$ac_file" : 'X\(//\)[^/]' \| \
15482 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 15483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15484$as_echo X"$ac_file" |
15485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15486 s//\1/
15487 q
15488 }
15489 /^X\(\/\/\)[^/].*/{
15490 s//\1/
15491 q
15492 }
15493 /^X\(\/\/\)$/{
15494 s//\1/
15495 q
15496 }
15497 /^X\(\/\).*/{
15498 s//\1/
15499 q
15500 }
15501 s/.*/./; q'`
15502 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 15503 ac_builddir=.
a83ffacf 15504
cd9a469c 15505case "$ac_dir" in
15506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15507*)
15508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15509 # A ".." for each directory in $ac_dir_suffix.
15510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15511 case $ac_top_builddir_sub in
15512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15514 esac ;;
15515esac
15516ac_abs_top_builddir=$ac_pwd
15517ac_abs_builddir=$ac_pwd$ac_dir_suffix
15518# for backward compatibility:
15519ac_top_builddir=$ac_top_build_prefix
b30fcfae 15520
15521case $srcdir in
cd9a469c 15522 .) # We are building in place.
b30fcfae 15523 ac_srcdir=.
cd9a469c 15524 ac_top_srcdir=$ac_top_builddir_sub
15525 ac_abs_top_srcdir=$ac_pwd ;;
15526 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 15527 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 15528 ac_top_srcdir=$srcdir
15529 ac_abs_top_srcdir=$srcdir ;;
15530 *) # Relative name.
15531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15532 ac_top_srcdir=$ac_top_build_prefix$srcdir
15533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 15534esac
cd9a469c 15535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 15536
a83ffacf 15537
cd9a469c 15538 case $ac_mode in
15539 :F)
15540 #
15541 # CONFIG_FILE
15542 #
b30fcfae 15543
15544 case $INSTALL in
15545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 15546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 15547 esac
cd9a469c 15548_ACEOF
570af75a 15549
cd9a469c 15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551# If the template does not know about datarootdir, expand it.
15552# FIXME: This hack should be removed a few years after 2.60.
15553ac_datarootdir_hack=; ac_datarootdir_seen=
15554ac_sed_dataroot='
15555/datarootdir/ {
15556 p
15557 q
15558}
15559/@datadir@/p
15560/@docdir@/p
15561/@infodir@/p
15562/@localedir@/p
15563/@mandir@/p'
15564case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15565*datarootdir*) ac_datarootdir_seen=yes;;
15566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15568$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 15569_ACEOF
cd9a469c 15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 ac_datarootdir_hack='
15572 s&@datadir@&$datadir&g
15573 s&@docdir@&$docdir&g
15574 s&@infodir@&$infodir&g
15575 s&@localedir@&$localedir&g
15576 s&@mandir@&$mandir&g
15577 s&\\\${datarootdir}&$datarootdir&g' ;;
15578esac
15579_ACEOF
15580
15581# Neutralize VPATH when `$srcdir' = `.'.
15582# Shell code in configure.ac might set extrasub.
15583# FIXME: do we really want to maintain this feature?
15584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585ac_sed_extra="$ac_vpsub
b30fcfae 15586$extrasub
15587_ACEOF
cd9a469c 15588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15589:t
15590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 15591s|@configure_input@|$ac_sed_conf_input|;t t
15592s&@top_builddir@&$ac_top_builddir_sub&;t t
15593s&@top_build_prefix@&$ac_top_build_prefix&;t t
15594s&@srcdir@&$ac_srcdir&;t t
15595s&@abs_srcdir@&$ac_abs_srcdir&;t t
15596s&@top_srcdir@&$ac_top_srcdir&;t t
15597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15598s&@builddir@&$ac_builddir&;t t
15599s&@abs_builddir@&$ac_abs_builddir&;t t
15600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15601s&@INSTALL@&$ac_INSTALL&;t t
15602$ac_datarootdir_hack
15603"
15604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15605if $ac_cs_awk_getline; then
15606 $AWK -f "$tmp/subs.awk"
15607else
15608 $AWK -f "$tmp/subs.awk" | $SHELL
15609fi >$tmp/out \
15610 || as_fn_error "could not create $ac_file" "$LINENO" 5
15611
15612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15616which seems to be undefined. Please make sure it is defined." >&5
15617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618which seems to be undefined. Please make sure it is defined." >&2;}
15619
15620 rm -f "$tmp/stdin"
15621 case $ac_file in
15622 -) cat "$tmp/out" && rm -f "$tmp/out";;
15623 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15624 esac \
15625 || as_fn_error "could not create $ac_file" "$LINENO" 5
15626 ;;
570af75a 15627
570af75a 15628
a8298541 15629
cd9a469c 15630 esac
15631
8bb79148 15632
15633 case $ac_file$ac_mode in
15634 "Makefile":F) sed "$extrasub_build" Makefile |
15635 sed "$extrasub_host" |
15636 sed "$extrasub_target" > mf$$
15637 mv -f mf$$ Makefile ;;
15638
15639 esac
cd9a469c 15640done # for ac_tag
15641
15642
15643as_fn_exit 0
b30fcfae 15644_ACEOF
b30fcfae 15645ac_clean_files=$ac_clean_files_save
15646
cd9a469c 15647test $ac_write_fail = 0 ||
15648 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15649
b30fcfae 15650
15651# configure is writing to config.log, and then calls config.status.
15652# config.status does its own redirection, appending to config.log.
15653# Unfortunately, on DOS this fails, as config.log is still kept open
15654# by configure, so config.status won't be able to write to it; its
15655# output is simply discarded. So we exec the FD to /dev/null,
15656# effectively closing config.log, so it can be properly (re)opened and
15657# appended to by config.status. When coming back to configure, we
15658# need to make the FD available again.
15659if test "$no_create" != yes; then
15660 ac_cs_success=:
15661 ac_config_status_args=
15662 test "$silent" = yes &&
15663 ac_config_status_args="$ac_config_status_args --quiet"
15664 exec 5>/dev/null
15665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15666 exec 5>>config.log
15667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15668 # would make configure fail if this is the last instruction.
cd9a469c 15669 $ac_cs_success || as_fn_exit $?
15670fi
15671if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15673$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 15674fi
a8298541 15675