]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR tree-optimization/59038 (r204398 causes 186.crafty init.c to be miscompiled)
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
632e2a07 583GOC_FOR_TARGET
5213506e
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e
RW
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
aae29963 626target_configdirs
5213506e 627configdirs
5213506e 628build_configdirs
5213506e
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
ffedf511
RW
636target_configargs
637host_configargs
638build_configargs
e12c4094 639BUILD_CONFIG
6f57bdf6 640LDFLAGS_FOR_TARGET
5213506e
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
d7f09764 646extra_host_libiberty_configure_flags
5213506e
RW
647clooginc
648clooglibs
33ad93b9 649islinc
5213506e 650poststage1_ldflags
ed2eaa9f 651poststage1_libs
5213506e 652stage1_ldflags
0b21f5d3 653stage1_libs
0ff2d841 654extra_isl_gmp_configure_flags
5213506e
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
a4a2c37d 673EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
87264276
PB
678AWK
679SED
5213506e
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
21539e2e 748enable_ld
87e6d9dc
TB
749enable_libquadmath
750enable_libquadmath_support
5213506e
RW
751enable_libada
752enable_libssp
1873ec0c 753enable_libstdcxx
a4a2c37d 754enable_static_libjava
ff3ac0f4 755enable_bootstrap
5213506e
RW
756with_mpc
757with_mpc_include
758with_mpc_lib
759with_mpfr_dir
760with_mpfr
761with_mpfr_include
762with_mpfr_lib
763with_gmp_dir
764with_gmp
765with_gmp_include
766with_gmp_lib
767with_host_libstdcxx
5213506e 768with_stage1_libs
0b21f5d3 769with_stage1_ldflags
5213506e 770with_boot_libs
ed2eaa9f 771with_boot_ldflags
625afa23 772with_cloog
33ad93b9
RG
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
5213506e
RW
777with_cloog_include
778with_cloog_lib
779enable_cloog_version_check
d7f09764 780enable_lto
5213506e
RW
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
5646b7b9 785with_build_config
5213506e
RW
786enable_serial_configure
787with_build_time_tools
788enable_maintainer_mode
789enable_stage1_checking
790enable_werror
459260ec 791enable_host_shared
5213506e
RW
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CXX
802CXXFLAGS
803CCC
ffedf511
RW
804build_configargs
805host_configargs
806target_configargs
5213506e
RW
807AR
808AS
809DLLTOOL
810LD
811LIPO
812NM
813RANLIB
814STRIP
815WINDRES
816WINDMC
817OBJCOPY
818OBJDUMP
e7a82751 819READELF
5213506e
RW
820CC_FOR_TARGET
821CXX_FOR_TARGET
822GCC_FOR_TARGET
823GCJ_FOR_TARGET
824GFORTRAN_FOR_TARGET
632e2a07 825GOC_FOR_TARGET
5213506e
RW
826AR_FOR_TARGET
827AS_FOR_TARGET
828DLLTOOL_FOR_TARGET
829LD_FOR_TARGET
830LIPO_FOR_TARGET
831NM_FOR_TARGET
832OBJDUMP_FOR_TARGET
833RANLIB_FOR_TARGET
e7a82751 834READELF_FOR_TARGET
5213506e
RW
835STRIP_FOR_TARGET
836WINDRES_FOR_TARGET
837WINDMC_FOR_TARGET'
838
671aa708
NN
839
840# Initialize some variables set by options.
1c710c3c
DJ
841ac_init_help=
842ac_init_version=false
5213506e
RW
843ac_unrecognized_opts=
844ac_unrecognized_sep=
671aa708
NN
845# The variables have the same names as the options, with
846# dashes changed to underlines.
1c710c3c 847cache_file=/dev/null
671aa708 848exec_prefix=NONE
671aa708 849no_create=
671aa708
NN
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
671aa708
NN
858verbose=
859x_includes=NONE
860x_libraries=NONE
1c710c3c
DJ
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 867# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
5213506e
RW
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
671aa708
NN
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
671aa708
NN
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
5213506e
RW
878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
79c06341 887
671aa708 888ac_prev=
5213506e 889ac_dashdash=
671aa708
NN
890for ac_option
891do
671aa708
NN
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
5213506e 894 eval $ac_prev=\$ac_option
671aa708
NN
895 ac_prev=
896 continue
897 fi
79c06341 898
5213506e
RW
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
671aa708
NN
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
5213506e
RW
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
671aa708
NN
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 913 bindir=$ac_optarg ;;
671aa708
NN
914
915 -build | --build | --buil | --bui | --bu)
1c710c3c 916 ac_prev=build_alias ;;
671aa708 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 918 build_alias=$ac_optarg ;;
671aa708
NN
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
671aa708 929
5213506e 930 -datadir | --datadir | --datadi | --datad)
671aa708 931 ac_prev=datadir ;;
5213506e 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 933 datadir=$ac_optarg ;;
671aa708 934
5213506e
RW
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
671aa708 942 -disable-* | --disable-*)
5213506e 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 944 # Reject names that are not valid shell variable names.
5213506e
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
671aa708
NN
967
968 -enable-* | --enable-*)
5213506e 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 970 # Reject names that are not valid shell variable names.
5213506e
RW
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
2aeb72e9 981 esac
5213506e 982 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
1c710c3c 991 exec_prefix=$ac_optarg ;;
671aa708
NN
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
1c710c3c
DJ
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
671aa708
NN
1003
1004 -host | --host | --hos | --ho)
1c710c3c 1005 ac_prev=host_alias ;;
671aa708 1006 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1007 host_alias=$ac_optarg ;;
671aa708 1008
5213506e
RW
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
671aa708
NN
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1020 includedir=$ac_optarg ;;
671aa708
NN
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1025 infodir=$ac_optarg ;;
671aa708
NN
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1030 libdir=$ac_optarg ;;
671aa708
NN
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1037 libexecdir=$ac_optarg ;;
671aa708 1038
5213506e
RW
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
671aa708 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1045 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1049 localstatedir=$ac_optarg ;;
671aa708
NN
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1054 mandir=$ac_optarg ;;
671aa708
NN
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1061 | --no-cr | --no-c | -n)
671aa708
NN
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1075 oldincludedir=$ac_optarg ;;
671aa708
NN
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1080 prefix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1087 program_prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1094 program_suffix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1111 program_transform_name=$ac_optarg ;;
671aa708 1112
5213506e
RW
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
671aa708
NN
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1c710c3c 1131 sbindir=$ac_optarg ;;
671aa708
NN
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1c710c3c 1142 sharedstatedir=$ac_optarg ;;
671aa708
NN
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1c710c3c 1147 site=$ac_optarg ;;
671aa708
NN
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1152 srcdir=$ac_optarg ;;
671aa708
NN
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1159 sysconfdir=$ac_optarg ;;
671aa708
NN
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1162 ac_prev=target_alias ;;
671aa708 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1164 target_alias=$ac_optarg ;;
671aa708
NN
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1c710c3c
DJ
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
671aa708
NN
1171
1172 -with-* | --with-*)
5213506e 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1174 # Reject names that are not valid shell variable names.
5213506e
RW
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181"with_$ac_useropt"
1182"*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
2aeb72e9 1185 esac
5213506e 1186 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1187
1188 -without-* | --without-*)
5213506e 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1190 # Reject names that are not valid shell variable names.
5213506e
RW
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
671aa708
NN
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1213 x_includes=$ac_optarg ;;
671aa708
NN
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1220 x_libraries=$ac_optarg ;;
671aa708 1221
5213506e
RW
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information."
671aa708
NN
1224 ;;
1225
1c710c3c
DJ
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
5213506e
RW
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1234 export $ac_envvar ;;
1235
671aa708 1236 *)
1c710c3c 1237 # FIXME: should be removed in autoconf 3.0.
5213506e 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
1c710c3c 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1249 as_fn_error "missing argument to $ac_option"
af71363e 1250fi
af71363e 1251
5213506e
RW
1252if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1257 esac
5213506e 1258fi
2aeb72e9 1259
5213506e
RW
1260# Check all directory arguments for consistency.
1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
2aeb72e9 1265do
5213506e
RW
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
2aeb72e9 1274 case $ac_val in
5213506e
RW
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1277 esac
5213506e 1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1279done
1280
1c710c3c
DJ
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
0b0dc272 1287
1c710c3c
DJ
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
5213506e 1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
671aa708 1303
671aa708 1304
5213506e
RW
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
671aa708
NN
1313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
5213506e
RW
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
671aa708 1340 srcdir=$ac_confdir
5213506e 1341 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
5213506e
RW
1347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350fi
1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
87841584
AM
1365case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369esac
ac9e6043
RW
1370ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
5213506e
RW
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1c710c3c
DJ
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1c710c3c
DJ
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1408 [$ac_default_prefix]
1c710c3c 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1410 [PREFIX]
1c710c3c
DJ
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
5213506e
RW
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459Optional Features:
5213506e 1460 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
30b74385
RW
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1873ec0c 1470 --disable-libstdcxx do not build libstdc++-v3 directory
a4a2c37d
MK
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
ff3ac0f4 1473 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1474 --disable-isl-version-check
1475 disable check for ISL version
d32ef397
AS
1476 --disable-cloog-version-check
1477 disable check for CLooG version
d7f09764 1478 --enable-lto enable link time optimization support
33e39b66
AS
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1483 Objective-C runtime
30b74385 1484 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1487 sub-packages
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1493 compiler
1c710c3c 1494 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1495 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1c710c3c 1510 --with-mpfr-include=PATH
30b74385
RW
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
30b74385
RW
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
0b21f5d3 1522 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
33e39b66
AS
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
625afa23
RG
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
33ad93b9 1532 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1533 package. Equivalent to
33ad93b9
RG
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
30b74385 1542 --with-build-sysroot=SYSROOT
1c710c3c 1543 use sysroot as the system root during the build
c8aea42c 1544 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
30b74385 1548 --with-build-time-tools=PATH
1c710c3c 1549 use given path to find target tools during the build
1c710c3c
DJ
1550
1551Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
5213506e
RW
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
ffedf511
RW
1561 build_configargs
1562 additional configure arguments for build directories
1563 host_configargs
1564 additional configure arguments for host directories
1565 target_configargs
1566 additional configure arguments for target directories
278a7a38
AO
1567 AR AR for the host
1568 AS AS for the host
1569 DLLTOOL DLLTOOL for the host
1570 LD LD for the host
1571 LIPO LIPO for the host
1572 NM NM for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
901119ae 1576 WINDMC WINDMC for the host
278a7a38
AO
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
e7a82751 1579 READELF READELF for the host
278a7a38
AO
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
632e2a07
ILT
1590 GOC_FOR_TARGET
1591 GOC for the target
278a7a38
AO
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
e7a82751
RM
1608 READELF_FOR_TARGET
1609 READELF for the target
278a7a38
AO
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
901119ae
KT
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1c710c3c
DJ
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
5213506e 1620Report bugs to the package provider.
1c710c3c 1621_ACEOF
5213506e 1622ac_status=$?
1c710c3c
DJ
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1c710c3c 1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1c710c3c
DJ
1631 ac_builddir=.
1632
5213506e
RW
1633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1648
1649case $srcdir in
5213506e 1650 .) # We are building in place.
1c710c3c 1651 ac_srcdir=.
5213506e
RW
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1655 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1662esac
5213506e
RW
1663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1673 else
5213506e
RW
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1677 done
1678fi
1679
5213506e 1680test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1681if $ac_init_version; then
1682 cat <<\_ACEOF
5213506e
RW
1683configure
1684generated by GNU Autoconf 2.64
1c710c3c 1685
5213506e 1686Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
5213506e 1690 exit
0b0dc272 1691fi
5213506e
RW
1692
1693## ------------------------ ##
1694## Autoconf initialization. ##
1695## ------------------------ ##
1696
1697# ac_fn_c_try_compile LINENO
1698# --------------------------
1699# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_compile ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733} # ac_fn_c_try_compile
1734
1735# ac_fn_cxx_try_compile LINENO
1736# ----------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_cxx_try_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771} # ac_fn_cxx_try_compile
1772
0b21f5d3
EB
1773# ac_fn_cxx_try_link LINENO
1774# -------------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_cxx_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817} # ac_fn_cxx_try_link
1818
5213506e
RW
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849else
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1862
1863} # ac_fn_c_try_link
33ad93b9
RG
1864
1865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 return $ac_retval
1904
1905} # ac_fn_c_try_run
5213506e 1906cat >config.log <<_ACEOF
1c710c3c
DJ
1907This file contains any messages produced by compilers while
1908running configure, to aid debugging if configure makes a mistake.
1909
1910It was created by $as_me, which was
5213506e 1911generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1912
1913 $ $0 $@
1914
1915_ACEOF
5213506e 1916exec 5>>config.log
1c710c3c
DJ
1917{
1918cat <<_ASUNAME
1919## --------- ##
1920## Platform. ##
1921## --------- ##
1922
1923hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1935/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1936/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940_ASUNAME
1941
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
5213506e
RW
1947 $as_echo "PATH: $as_dir"
1948 done
1949IFS=$as_save_IFS
1c710c3c
DJ
1950
1951} >&5
1952
1953cat >&5 <<_ACEOF
1954
1955
1956## ----------- ##
1957## Core tests. ##
1958## ----------- ##
1959
1960_ACEOF
1961
1962
1963# Keep a trace of the command line.
1964# Strip out --no-create and --no-recursion so they do not pile up.
1965# Strip out --silent because we don't want to record it for future runs.
1966# Also quote any args containing shell meta-characters.
1967# Make two passes to allow for proper duplicate-argument suppression.
1968ac_configure_args=
1969ac_configure_args0=
1970ac_configure_args1=
1c710c3c
DJ
1971ac_must_keep_next=false
1972for ac_pass in 1 2
1973do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
5213506e
RW
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1983 esac
1984 case $ac_pass in
5213506e 1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1986 2)
5213506e 1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
5213506e 2003 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2004 ;;
2005 esac
2006 done
2007done
5213506e
RW
2008{ ac_configure_args0=; unset ac_configure_args0;}
2009{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2010
2011# When interrupted or exit'd, cleanup temporary files, and complete
2012# config.log. We remove comments because anyway the quotes in there
2013# would cause problems or look ugly.
5213506e
RW
2014# WARNING: Use '\'' to represent an apostrophe within the trap.
2015# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2016trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 cat <<\_ASBOX
2022## ---------------- ##
2023## Cache variables. ##
2024## ---------------- ##
2025_ASBOX
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2028(
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
1c710c3c 2044 (set) 2>&1 |
5213506e
RW
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
1c710c3c 2047 sed -n \
5213506e
RW
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
1c710c3c 2051 *)
5213506e 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2053 ;;
5213506e
RW
2054 esac |
2055 sort
2056)
1c710c3c
DJ
2057 echo
2058
2059 cat <<\_ASBOX
2060## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##
2063_ASBOX
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
5213506e
RW
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 cat <<\_ASBOX
5213506e
RW
2077## ------------------- ##
2078## File substitutions. ##
2079## ------------------- ##
1c710c3c
DJ
2080_ASBOX
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
5213506e
RW
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 cat <<\_ASBOX
2095## ----------- ##
2096## confdefs.h. ##
2097## ----------- ##
2098_ASBOX
2099 echo
5213506e 2100 cat confdefs.h
1c710c3c
DJ
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
5213506e
RW
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
1c710c3c 2106 } >&5
5213506e
RW
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2109 exit $exit_status
5213506e 2110' 0
1c710c3c 2111for ac_signal in 1 2 13 15; do
5213506e 2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
1c710c3c
DJ
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
1c710c3c
DJ
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
0b0dc272 2134
1c710c3c
DJ
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
1c710c3c
DJ
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
5213506e
RW
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
1c710c3c
DJ
2147
2148# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2160fi
5213506e
RW
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163 test "x$ac_site_file" = xNONE && continue
671aa708 2164 if test -r "$ac_site_file"; then
5213506e
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2167 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2168 . "$ac_site_file"
2169 fi
2170done
2171
2172if test -r "$cache_file"; then
1c710c3c
DJ
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
5213506e
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2178 case $cache_file in
5213506e
RW
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
1c710c3c
DJ
2181 esac
2182 fi
671aa708 2183else
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2186 >$cache_file
2187fi
2188
2189# Check that the precious variables saved in the cache have kept the same
2190# value.
2191ac_cache_corrupted=false
5213506e 2192for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2197 case $ac_old_set,$ac_new_set in
2198 set,)
5213506e
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2201 ac_cache_corrupted=: ;;
2202 ,set)
5213506e
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
5213506e 2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2236 esac
2237 fi
2238done
2239if $ac_cache_corrupted; then
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2245fi
5213506e
RW
2246## -------------------- ##
2247## Main body of script. ##
2248## -------------------- ##
671aa708 2249
2aeb72e9
DD
2250ac_ext=c
2251ac_cpp='$CPP $CPPFLAGS'
2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
1c710c3c
DJ
2256
2257
2258
1c710c3c
DJ
2259
2260
0115d4a3 2261
1c710c3c 2262
ad33ff57
RW
2263
2264progname=$0
2265# if PWD already has a value, it is probably wrong.
2266if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2267
2268# Export original configure arguments for use by sub-configures.
2269# Quote arguments with shell meta charatcers.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=
2271set -- "$progname" "$@"
2272for ac_arg
2273do
2274 case "$ac_arg" in
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2279 *) ;;
2280 esac
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2283done
2284if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2286fi
2287# Remove the initial space we just introduced and, as these will be
2288# expanded by make, quote '$'.
2289TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2290
1c710c3c
DJ
2291
2292# Find the build, host, and target systems.
671aa708 2293ac_aux_dir=
5213506e
RW
2294for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2299 break 2
2300 fi
2301 done
671aa708
NN
2302done
2303if test -z "$ac_aux_dir"; then
5213506e 2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2305fi
5213506e
RW
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
671aa708 2315
1c710c3c 2316# Make sure we can run config.sub.
5213506e
RW
2317$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2319
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321$as_echo_n "checking build system type... " >&6; }
2322if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324else
2325 ac_build_alias=$build_alias
2326test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2332
2333fi
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335$as_echo "$ac_cv_build" >&6; }
2336case $ac_cv_build in
2337*-*-*) ;;
2338*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2339esac
1c710c3c 2340build=$ac_cv_build
5213506e
RW
2341ac_save_IFS=$IFS; IFS='-'
2342set x $ac_cv_build
2343shift
2344build_cpu=$1
2345build_vendor=$2
2346shift; shift
2347# Remember, the first character of IFS is used to create $*,
2348# except with old shells:
2349build_os=$*
2350IFS=$ac_save_IFS
2351case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2352
671aa708 2353
1c710c3c
DJ
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2357esac
2358
2359
af71363e 2360
1c710c3c
DJ
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2364esac
2365
af71363e 2366
1c710c3c
DJ
2367
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2371esac
2372
af71363e 2373
1c710c3c
DJ
2374
2375
2376test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
1c710c3c 2379 program_transform_name=s,y,y,
af71363e 2380
5213506e
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
2383if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
af71363e 2385else
5213506e
RW
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391fi
1c710c3c 2392
af71363e 2393fi
5213506e
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395$as_echo "$ac_cv_host" >&6; }
2396case $ac_cv_host in
2397*-*-*) ;;
2398*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399esac
1c710c3c 2400host=$ac_cv_host
5213506e
RW
2401ac_save_IFS=$IFS; IFS='-'
2402set x $ac_cv_host
2403shift
2404host_cpu=$1
2405host_vendor=$2
2406shift; shift
2407# Remember, the first character of IFS is used to create $*,
2408# except with old shells:
2409host_os=$*
2410IFS=$ac_save_IFS
2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2412
2413
5213506e
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415$as_echo_n "checking target system type... " >&6; }
2416if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
1c710c3c 2418else
5213506e
RW
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424fi
1c710c3c
DJ
2425
2426fi
5213506e
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428$as_echo "$ac_cv_target" >&6; }
2429case $ac_cv_target in
2430*-*-*) ;;
2431*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432esac
1c710c3c 2433target=$ac_cv_target
5213506e
RW
2434ac_save_IFS=$IFS; IFS='-'
2435set x $ac_cv_target
2436shift
2437target_cpu=$1
2438target_vendor=$2
2439shift; shift
2440# Remember, the first character of IFS is used to create $*,
2441# except with old shells:
2442target_os=$*
2443IFS=$ac_save_IFS
2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2445
2446
2447# The aliases save the names the user supplied, while $host etc.
2448# will get canonicalized.
2449test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
5213506e 2453
671aa708 2454test "$program_prefix" != NONE &&
5213506e 2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2456# Use a double $ so make ignores it.
2457test "$program_suffix" != NONE &&
5213506e
RW
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459# Double any \ or $.
1c710c3c 2460# By default was `s,x,x', remove it if useless.
5213506e
RW
2461ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2463
671aa708
NN
2464
2465
775956d0
NN
2466# Get 'install' or 'install-sh' and its variants.
2467# Find a good install program. We prefer a C program (faster),
2468# so one script is as good as another. But avoid the broken or
2469# incompatible versions:
2470# SysV /etc/install, /usr/sbin/install
2471# SunOS /usr/etc/install
2472# IRIX /sbin/install
2473# AIX /bin/install
1c710c3c 2474# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2478# OS/2's system install, which has a completely different semantic
775956d0 2479# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2480# Reject install programs that cannot install multiple files.
5213506e
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2483if test -z "$INSTALL"; then
5213506e
RW
2484if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2486else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
5213506e
RW
2492 # Account for people who put trailing slashes in PATH elements.
2493case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
1c710c3c 2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2505 if test $ac_prog = install &&
1c710c3c 2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2507 # AIX install. It has an incompatible calling convention.
2508 :
1c710c3c
DJ
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
775956d0 2513 else
38d24731
RW
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
775956d0
NN
2526 fi
2527 fi
2528 done
1c710c3c
DJ
2529 done
2530 ;;
2531esac
5213506e
RW
2532
2533 done
2534IFS=$as_save_IFS
1c710c3c 2535
38d24731 2536rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2537
2538fi
2539 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2540 INSTALL=$ac_cv_path_install
775956d0 2541 else
38d24731
RW
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
775956d0 2544 # break other packages using the cache if that directory is
38d24731 2545 # removed, or if the value is a relative name.
1c710c3c 2546 INSTALL=$ac_install_sh
775956d0
NN
2547 fi
2548fi
5213506e
RW
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550$as_echo "$INSTALL" >&6; }
775956d0
NN
2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
1c710c3c 2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
5213506e
RW
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561$as_echo_n "checking whether ln works... " >&6; }
2562if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
ad6717df
PB
2564else
2565 rm -f conftestdata_t
2566echo >conftestdata_f
2567if ln conftestdata_f conftestdata_t 2>/dev/null
2568then
2569 acx_cv_prog_LN=ln
2570else
2571 acx_cv_prog_LN=no
2572fi
2573rm -f conftestdata_f conftestdata_t
2574
2575fi
2576if test $acx_cv_prog_LN = no; then
2577 LN="cp"
5213506e
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579$as_echo "no, using $LN" >&6; }
ad6717df
PB
2580else
2581 LN="$acx_cv_prog_LN"
5213506e
RW
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583$as_echo "yes" >&6; }
ad6717df
PB
2584fi
2585
5213506e
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2588LN_S=$as_ln_s
2589if test "$LN_S" = "ln -s"; then
5213506e
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591$as_echo "yes" >&6; }
fb0103e5 2592else
5213506e
RW
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2595fi
2596
87264276
PB
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601else
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2605 done
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620# Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622case `"$ac_path_SED" --version 2>&1` in
2623*GNU*)
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2625*)
2626 ac_count=0
2627 $as_echo_n 0123456789 >"conftest.in"
2628 while :
2629 do
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2641 fi
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2644 done
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2646esac
2647
2648 $ac_path_SED_found && break 3
2649 done
2650 done
2651 done
2652IFS=$as_save_IFS
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2655 fi
2656else
2657 ac_cv_path_SED=$SED
2658fi
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662$as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2664 rm -f conftest.sed
2665
2666for ac_prog in gawk mawk nawk awk
2667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671$as_echo_n "checking for $ac_word... " >&6; }
2672if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690 done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695AWK=$ac_cv_prog_AWK
2696if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698$as_echo "$AWK" >&6; }
2699else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
2702fi
2703
2704
2705 test -n "$AWK" && break
2706done
2707
775956d0 2708
ee6a22df
L
2709srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2710
2711# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2712# a relative path.
2713if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2715fi
2716
671aa708
NN
2717# Set srcdir to "." if that's what it is.
2718# This is important for multilib support.
2719pwd=`${PWDCMD-pwd}`
671aa708
NN
2720if test "${pwd}" = "${srcpwd}" ; then
2721 srcdir=.
79c06341
JL
2722fi
2723
671aa708 2724topsrcdir=$srcpwd
5d4a5ee6 2725
671aa708 2726extra_host_args=
afabd8e6 2727
671aa708
NN
2728### To add a new directory to the tree, first choose whether it is a target
2729### or a host dependent tool. Then put it into the appropriate list
2730### (library or tools, host or target), doing a dependency sort.
79c06341 2731
1c710c3c 2732# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2733# configdirs, or target_configdirs; see the serialization section below.
79c06341 2734
1c710c3c
DJ
2735# Dependency sorting is only needed when *configuration* must be done in
2736# a particular order. In all cases a dependency should be specified in
671aa708 2737# the Makefile, whether or not it's implicitly specified here.
79c06341 2738
671aa708
NN
2739# Double entries in build_configdirs, configdirs, or target_configdirs may
2740# cause circular dependencies and break everything horribly.
79c06341 2741
23f6b2f9
PB
2742# these library is used by various programs built for the build
2743# environment
2744#
2745build_libs="build-libiberty"
2746
2747# these tools are built for the build environment
85bfb75e 2748build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2749
671aa708
NN
2750# these libraries are used by various programs built for the host environment
2751#
eff02e4f 2752host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2753
671aa708
NN
2754# these tools are built for the host environment
2755# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756# know that we are building the simulator.
2757# binutils, gas and ld appear in that order because it makes sense to run
2758# "make check" in that particular order.
38e3d868 2759# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2760host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2761
2762# libgcj represents the runtime libraries only used by gcj.
2763libgcj="target-libffi \
671aa708 2764 target-zlib \
671aa708
NN
2765 target-libjava"
2766
2767# these libraries are built for the target environment, and are built after
2768# the host libraries and the host tools (which may be a cross compiler)
8499116a 2769# Note that libiberty is not a target library.
291f172e 2770target_libraries="target-libgcc \
eff02e4f 2771 target-libbacktrace \
671aa708
NN
2772 target-libgloss \
2773 target-newlib \
6d3b5aea 2774 target-libgomp \
3038054c 2775 target-libcilkrts \
48310492 2776 target-libatomic \
0a35513e 2777 target-libitm \
cb543528 2778 target-libstdc++-v3 \
f35db108 2779 target-libsanitizer \
2077db1b 2780 target-libvtv \
77008252 2781 target-libssp \
1ec601bf 2782 target-libquadmath \
6de9cd9a 2783 target-libgfortran \
7cd0cf9c 2784 target-boehm-gc \
77d187bc 2785 ${libgcj} \
d9cdb878 2786 target-libobjc \
632e2a07
ILT
2787 target-libada \
2788 target-libgo"
671aa708 2789
4dbda6f0
NN
2790# these tools are built using the target libraries, and are intended to
2791# run only in the target environment
671aa708 2792#
4dbda6f0 2793# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2794# list belongs in this list.
671aa708 2795#
85bfb75e 2796target_tools="target-rda"
79c06341 2797
671aa708 2798################################################################################
79c06341 2799
671aa708
NN
2800## All tools belong in one of the four categories, and are assigned above
2801## We assign ${configdirs} this way to remove all embedded newlines. This
2802## is important because configure will choke if they ever get through.
2803## ${configdirs} is directories we build using the host tools.
2804## ${target_configdirs} is directories we build using the target tools.
671aa708 2805configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2806target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2807build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2808
ac9e6043
RW
2809
2810
671aa708 2811################################################################################
79c06341 2812
671aa708 2813srcname="gnu development package"
79c06341 2814
671aa708
NN
2815# This gets set non-empty for some net releases of packages.
2816appdirs=""
79c06341 2817
671aa708
NN
2818# Define is_cross_compiler to save on calls to 'test'.
2819is_cross_compiler=
2820if test x"${host}" = x"${target}" ; then
2821 is_cross_compiler=no
79c06341 2822else
671aa708 2823 is_cross_compiler=yes
1c710c3c 2824fi
79c06341 2825
b4acb5ef 2826# Find the build and target subdir names.
8b87bb96 2827
2e9e6f68
DJ
2828# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2829# have matching libraries, they should use host libraries: Makefile.tpl
2830# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2831# However, they still use the build modules, because the corresponding
2832# host modules (e.g. bison) are only built for the host when bootstrap
2833# finishes. So:
2834# - build_subdir is where we find build modules, and never changes.
2835# - build_libsubdir is where we find build libraries, and can be overridden.
2836
2837# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2838build_subdir="build-${build_noncanonical}"
1c710c3c 2839
5213506e
RW
2840# Check whether --with-build-libsubdir was given.
2841if test "${with_build_libsubdir+set}" = set; then :
2842 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2843else
2844 build_libsubdir="$build_subdir"
5213506e
RW
2845fi
2846
215c351a
PB
2847# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2848if ( test $srcdir = . && test -d gcc ) \
2849 || test -d $srcdir/../host-${host_noncanonical}; then
2850 host_subdir="host-${host_noncanonical}"
2851else
2852 host_subdir=.
2853fi
8b87bb96
NN
2854# No prefix.
2855target_subdir=${target_noncanonical}
1c710c3c 2856
0db770bd
RW
2857# Be sure to cover against remnants of an in-tree build.
2858if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2859 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2860Use a pristine source tree when building in a separate tree" "$LINENO" 5
2861fi
79c06341 2862
671aa708
NN
2863# Skipdirs are removed silently.
2864skipdirs=
2865# Noconfigdirs are removed loudly.
2866noconfigdirs=""
79c06341 2867
671aa708
NN
2868use_gnu_ld=
2869# Make sure we don't let GNU ld be added if we didn't want it.
2870if test x$with_gnu_ld = xno ; then
2871 use_gnu_ld=no
5afab7ad 2872 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2873fi
2874
671aa708
NN
2875use_gnu_as=
2876# Make sure we don't let GNU as be added if we didn't want it.
2877if test x$with_gnu_as = xno ; then
2878 use_gnu_as=no
2879 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2880fi
2881
d7f09764
DN
2882use_included_zlib=
2883# Make sure we don't let ZLIB be added if we didn't want it.
2884if test x$with_system_zlib = xyes ; then
2885 use_included_zlib=no
2886 noconfigdirs="$noconfigdirs zlib"
2887fi
2888
1c710c3c 2889# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2890# it's not even worth trying to configure, much less build, that tool.
79c06341 2891
671aa708
NN
2892case ${with_x} in
2893 yes | "") ;; # the default value for this tree is that X11 is available
2894 no)
b4f96efe 2895 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2896 # We won't be able to build gdbtk without X.
1c710c3c 2897 enable_gdbtk=no
671aa708
NN
2898 ;;
2899 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2900esac
79c06341 2901
1bcce263 2902# Some are only suitable for cross toolchains.
671aa708
NN
2903# Remove these if host=target.
2904cross_only="target-libgloss target-newlib target-opcodes"
2905
2906case $is_cross_compiler in
2907 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2908esac
79c06341 2909
671aa708
NN
2910# If both --with-headers and --with-libs are specified, default to
2911# --without-newlib.
ee6a22df
L
2912if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2913 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2914 if test x"${with_newlib}" = x ; then
2915 with_newlib=no
2916 fi
79c06341
JL
2917fi
2918
671aa708
NN
2919# Recognize --with-newlib/--without-newlib.
2920case ${with_newlib} in
2921 no) skipdirs="${skipdirs} target-newlib" ;;
2922 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2923esac
79c06341 2924
21539e2e
MK
2925# Handle --enable-gold, --enable-ld.
2926# --disable-gold [--enable-ld]
2927# Build only ld. Default option.
9580395f
L
2928# --enable-gold [--enable-ld]
2929# Build both gold and ld. Install gold as "ld.gold", install ld
2930# as "ld.bfd" and "ld".
2931# --enable-gold=default [--enable-ld]
21539e2e
MK
2932# Build both gold and ld. Install gold as "ld.gold" and "ld",
2933# install ld as "ld.bfd".
2934# --enable-gold[=default] --disable-ld
2935# Build only gold, which is then installed as both "ld.gold" and "ld".
2936# --enable-gold --enable-ld=default
9580395f
L
2937# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2938# and ld.bfd).
21539e2e
MK
2939# In other words, ld is default
2940# --enable-gold=default --enable-ld=default
2941# Error.
2942
2943default_ld=
5213506e
RW
2944# Check whether --enable-gold was given.
2945if test "${enable_gold+set}" = set; then :
2946 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2947else
2948 ENABLE_GOLD=no
5213506e
RW
2949fi
2950
21539e2e
MK
2951case "${ENABLE_GOLD}" in
2952 yes|default)
38e3d868
RM
2953 # Check for ELF target.
2954 is_elf=no
2955 case "${target}" in
2956 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2957 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2958 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2959 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2960 case "${target}" in
2961 *-*-linux*aout* | *-*-linux*oldld*)
2962 ;;
2963 *)
2964 is_elf=yes
2965 ;;
2966 esac
2967 esac
2968
2969 if test "$is_elf" = "yes"; then
2970 # Check for target supported by gold.
5afab7ad 2971 case "${target}" in
8750dfc5 2972 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2973 configdirs="$configdirs gold"
2974 if test x${ENABLE_GOLD} = xdefault; then
2975 default_ld=gold
2976 fi
38e3d868 2977 ENABLE_GOLD=yes
5afab7ad
ILT
2978 ;;
2979 esac
38e3d868
RM
2980 fi
2981 ;;
2982 no)
2983 ;;
2984 *)
2985 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2986 ;;
21539e2e
MK
2987esac
2988
2989# Check whether --enable-ld was given.
2990if test "${enable_ld+set}" = set; then :
2991 enableval=$enable_ld; ENABLE_LD=$enableval
2992else
2993 ENABLE_LD=yes
2994fi
2995
2996
2997case "${ENABLE_LD}" in
2998 default)
9580395f 2999 if test x${default_ld} != x; then
21539e2e
MK
3000 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3001 fi
3002 ;;
3003 yes)
3004 ;;
3005 no)
3006 if test x${ENABLE_GOLD} != xyes; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3008$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3009 fi
3010 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3011 ;;
3012 *)
3013 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3014 ;;
3015esac
5afab7ad 3016
671aa708 3017# Configure extra directories which are host specific
79c06341 3018
671aa708
NN
3019case "${host}" in
3020 *-cygwin*)
3021 configdirs="$configdirs libtermcap" ;;
3022esac
79c06341 3023
4fab7234
HPN
3024# A target can indicate whether a language isn't supported for some reason.
3025# Only spaces may be used in this macro; not newlines or tabs.
3026unsupported_languages=
3027
1c710c3c 3028# Remove more programs from consideration, based on the host or
671aa708
NN
3029# target this usually means that a port of the program doesn't
3030# exist yet.
ec8d6ddc 3031
671aa708 3032case "${host}" in
111eeb6e 3033 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3034 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3035 ;;
671aa708 3036esac
ec8d6ddc 3037
6de9cd9a 3038
87e6d9dc
TB
3039# Check whether --enable-libquadmath was given.
3040if test "${enable_libquadmath+set}" = set; then :
3041 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3042else
3043 ENABLE_LIBQUADMATH=yes
3044fi
3045
3046if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3047 noconfigdirs="$noconfigdirs target-libquadmath"
3048fi
3049
3050
3051# Check whether --enable-libquadmath-support was given.
3052if test "${enable_libquadmath_support+set}" = set; then :
3053 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3054else
3055 ENABLE_LIBQUADMATH_SUPPORT=yes
3056fi
3057
3058enable_libquadmath_support=
3059if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3060 enable_libquadmath_support=no
3061fi
3062
3063
5213506e
RW
3064# Check whether --enable-libada was given.
3065if test "${enable_libada+set}" = set; then :
3066 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3067else
3068 ENABLE_LIBADA=yes
5213506e
RW
3069fi
3070
d9cdb878 3071if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3072 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3073fi
3074
5213506e
RW
3075# Check whether --enable-libssp was given.
3076if test "${enable_libssp+set}" = set; then :
3077 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3078else
3079 ENABLE_LIBSSP=yes
5213506e
RW
3080fi
3081
ef0087a7 3082
1873ec0c
L
3083# Check whether --enable-libstdcxx was given.
3084if test "${enable_libstdcxx+set}" = set; then :
3085 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3086else
3087 ENABLE_LIBSTDCXX=default
3088fi
3089
3090if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3091 noconfigdirs="$noconfigdirs libstdc++-v3"
3092fi
3093
671aa708
NN
3094# Save it here so that, even in case of --enable-libgcj, if the Java
3095# front-end isn't enabled, we still get libgcj disabled.
3096libgcj_saved=$libgcj
3097case $enable_libgcj in
3098yes)
3099 # If we reset it here, it won't get added to noconfigdirs in the
3100 # target-specific build rules, so it will be forcibly enabled
3101 # (unless the Java language itself isn't enabled).
3102 libgcj=
3103 ;;
3104no)
3105 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3106 # Don't disable libffi, though, other languages use it.
3107 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3108 # Clear libgcj_saved so that even if java is enabled libffi won't be
3109 # built.
3110 libgcj_saved=
671aa708
NN
3111 ;;
3112esac
ec8d6ddc 3113
a4a2c37d
MK
3114# Check whether --enable-static-libjava was given.
3115if test "${enable_static_libjava+set}" = set; then :
3116 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3117else
3118 ENABLE_STATIC_LIBJAVA=no
3119fi
3120
3121enable_static_libjava=
3122if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3123 enable_static_libjava=yes
3124fi
3125
3126if test x$enable_static_libjava != xyes ; then
3127 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3128fi
3129
6de9cd9a 3130
27079765
AH
3131# Disable libgomp on non POSIX hosted systems.
3132if test x$enable_libgomp = x ; then
953ff289
DN
3133 # Enable libgomp by default on hosted POSIX systems.
3134 case "${target}" in
416ac4d4 3135 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3136 ;;
8c6d158a 3137 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3138 ;;
b24513a1 3139 *-*-solaris2* | *-*-hpux11*)
953ff289 3140 ;;
cac90078 3141 *-*-darwin* | *-*-aix*)
953ff289
DN
3142 ;;
3143 *)
3144 noconfigdirs="$noconfigdirs target-libgomp"
3145 ;;
3146 esac
27079765 3147fi
953ff289 3148
48310492
RH
3149# Disable libatomic on unsupported systems.
3150if test -d ${srcdir}/libatomic; then
3151 if test x$enable_libatomic = x; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3153$as_echo_n "checking for libatomic support... " >&6; }
3154 if (srcdir=${srcdir}/libatomic; \
3155 . ${srcdir}/configure.tgt; \
3156 test -n "$UNSUPPORTED")
3157 then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160 noconfigdirs="$noconfigdirs target-libatomic"
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163$as_echo "yes" >&6; }
3164 fi
3165 fi
3166fi
3167
3038054c
BI
3168# Disable libcilkrts on unsupported systems.
3169if test -d ${srcdir}/libcilkrts; then
3170 if test x$enable_libcilkrts = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3172$as_echo_n "checking for libcilkrts support... " >&6; }
3173 if (srcdir=${srcdir}/libcilkrts; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libcilkrts"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
e948157d
RH
3187# Disable libitm on unsupported systems.
3188if test -d ${srcdir}/libitm; then
3189 if test x$enable_libitm = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3191$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3192 if (srcdir=${srcdir}/libitm; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3197$as_echo "no" >&6; }
e948157d
RH
3198 noconfigdirs="$noconfigdirs target-libitm"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3201$as_echo "yes" >&6; }
e948157d
RH
3202 fi
3203 fi
0a35513e
AH
3204fi
3205
93bf5390
RH
3206# Disable libsanitizer on unsupported systems.
3207if test -d ${srcdir}/libsanitizer; then
3208 if test x$enable_libsanitizer = x; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3210$as_echo_n "checking for libsanitizer support... " >&6; }
3211 if (srcdir=${srcdir}/libsanitizer; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-libsanitizer"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
2077db1b
CT
3225# Disable libvtv on unsupported systems.
3226if test -d ${srcdir}/libvtv; then
3227 if test x$enable_libvtv = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3229$as_echo_n "checking for libvtv support... " >&6; }
3230 if (srcdir=${srcdir}/libvtv; \
3231 . ${srcdir}/configure.tgt; \
1e74b850 3232 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libvtv"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239$as_echo "yes" >&6; }
3240 fi
3241 fi
3242fi
3243
d91491e5
SE
3244# Disable libquadmath for some systems.
3245case "${target}" in
e7fae550
DE
3246 avr-*-*)
3247 noconfigdirs="$noconfigdirs target-libquadmath"
3248 ;;
d91491e5
SE
3249 # libquadmath is unused on AIX and libquadmath build process use of
3250 # LD_LIBRARY_PATH can break AIX bootstrap.
3251 powerpc-*-aix* | rs6000-*-aix*)
3252 noconfigdirs="$noconfigdirs target-libquadmath"
3253 ;;
3254esac
3255
1e9e0e23
JM
3256# Disable libssp for some systems.
3257case "${target}" in
3258 avr-*-*)
b318fb4b 3259 # No hosted I/O support.
1e9e0e23
JM
3260 noconfigdirs="$noconfigdirs target-libssp"
3261 ;;
3262 powerpc-*-aix* | rs6000-*-aix*)
3263 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3264 ;;
3265 rl78-*-*)
7cb62ef1
EB
3266 # libssp uses a misaligned load to trigger a fault, but the RL78
3267 # doesn't fault for those - instead, it gives a build-time error
3268 # for explicit misaligned loads.
85b8555e 3269 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3270 ;;
1e9e0e23
JM
3271esac
3272
1e9e0e23 3273# Disable libstdc++-v3 for some systems.
1873ec0c
L
3274# Allow user to override this if they pass --enable-libstdc++-v3
3275if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3276 case "${target}" in
3277 *-*-vxworks*)
3278 # VxWorks uses the Dinkumware C++ library.
3279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3280 ;;
3281 arm*-wince-pe*)
3282 # the C++ libraries don't build on top of CE's C libraries
3283 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3284 ;;
3285 avr-*-*)
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3287 ;;
3288 esac
3289fi
1e9e0e23
JM
3290
3291# Disable Fortran for some systems.
3292case "${target}" in
3293 mmix-*-*)
3294 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3295 unsupported_languages="$unsupported_languages fortran"
3296 ;;
3297esac
3298
80f81134 3299# Disable Java if libffi is not supported.
2909494b 3300case "${target}" in
eb7062cf
AS
3301 aarch64-*-*)
3302 ;;
80f81134
JM
3303 alpha*-*-*)
3304 ;;
3305 arm*-*-*)
3306 ;;
3307 cris-*-*)
3308 ;;
3309 frv-*-*)
3310 ;;
3311 hppa*-*-linux*)
3312 ;;
3313 hppa*-*-hpux*)
3314 ;;
3315 i?86-*-*)
3316 ;;
3317 ia64*-*-*)
3318 ;;
3319 m32r*-*-*)
3320 ;;
3321 m68k-*-*)
3322 ;;
b24513a1 3323 mips*-*-rtems*)
80f81134
JM
3324 ;;
3325 mips*-*-linux*)
3326 ;;
3327 powerpc*-*-linux*)
3328 ;;
3329 powerpc-*-darwin*)
3330 ;;
3331 powerpc-*-aix* | rs6000-*-aix*)
3332 ;;
3333 powerpc-*-freebsd*)
3334 ;;
3335 powerpc64-*-freebsd*)
3336 ;;
3337 powerpc*-*-rtems*)
2909494b 3338 ;;
80f81134
JM
3339 s390-*-* | s390x-*-*)
3340 ;;
3341 sh-*-* | sh[34]*-*-*)
3342 ;;
3343 sh64-*-* | sh5*-*-*)
3344 ;;
3345 sparc*-*-*)
3346 ;;
3347 x86_64-*-*)
3348 ;;
3349 *-*-*)
3350 unsupported_languages="$unsupported_languages java"
3351 ;;
3352esac
3353
3354# Disable Java, libgcj or related libraries for some systems.
3355case "${target}" in
2909494b
JM
3356 powerpc-*-darwin*)
3357 ;;
3358 i[3456789]86-*-darwin*)
3359 ;;
3360 x86_64-*-darwin[912]*)
3361 ;;
3362 *-*-darwin*)
3363 noconfigdirs="$noconfigdirs ${libgcj}"
3364 ;;
2909494b
JM
3365 *-*-netware*)
3366 noconfigdirs="$noconfigdirs ${libgcj}"
3367 ;;
3368 *-*-rtems*)
3369 noconfigdirs="$noconfigdirs ${libgcj}"
3370 ;;
3371 *-*-tpf*)
3372 noconfigdirs="$noconfigdirs ${libgcj}"
3373 ;;
3374 *-*-uclinux*)
3375 noconfigdirs="$noconfigdirs ${libgcj}"
3376 ;;
3377 *-*-vxworks*)
3378 noconfigdirs="$noconfigdirs ${libgcj}"
3379 ;;
2909494b
JM
3380 alpha*-*-*vms*)
3381 noconfigdirs="$noconfigdirs ${libgcj}"
3382 ;;
80f81134 3383 arm-wince-pe)
2909494b
JM
3384 noconfigdirs="$noconfigdirs ${libgcj}"
3385 ;;
2909494b
JM
3386 arm*-*-symbianelf*)
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ;;
2909494b 3389 bfin-*-*)
2909494b
JM
3390 noconfigdirs="$noconfigdirs target-boehm-gc"
3391 ;;
2909494b
JM
3392 cris-*-* | crisv32-*-*)
3393 unsupported_languages="$unsupported_languages java"
3394 case "${target}" in
3395 *-*-linux*)
3396 ;;
3397 *) # See PR46792 regarding target-libffi.
3398 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3399 esac
3400 ;;
2909494b
JM
3401 hppa*64*-*-linux*)
3402 # In this case, it's because the hppa64-linux target is for
3403 # the kernel only at this point and has no libc, and thus no
3404 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3405 unsupported_languages="$unsupported_languages java"
2909494b 3406 ;;
fddf9ee7 3407 hppa*64*-*-hpux*)
2909494b
JM
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3409 ;;
3410 hppa*-hp-hpux11*)
3411 ;;
fddf9ee7 3412 hppa*-*-hpux*)
2909494b
JM
3413 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3414 # build on HP-UX 10.20.
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 ;;
2909494b
JM
3417 ia64*-*-*vms*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3419 ;;
2909494b
JM
3420 i[3456789]86-w64-mingw*)
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3422 ;;
3423 i[3456789]86-*-mingw*)
3424 noconfigdirs="$noconfigdirs ${libgcj}"
3425 ;;
3426 x86_64-*-mingw*)
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3428 ;;
2909494b
JM
3429 mmix-*-*)
3430 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3431 ;;
3432 powerpc-*-aix*)
3433 # copied from rs6000-*-* entry
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
2909494b
JM
3436 rs6000-*-aix*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3438 ;;
2909494b
JM
3439 *-*-lynxos*)
3440 noconfigdirs="$noconfigdirs ${libgcj}"
3441 ;;
2909494b
JM
3442esac
3443
cdbc9e92
ILT
3444# Disable libgo for some systems where it is known to not work.
3445# For testing, you can easily override this with --enable-libgo.
3446if test x$enable_libgo = x; then
3447 case "${target}" in
3448 *-*-darwin*)
3449 # PR 46986
3450 noconfigdirs="$noconfigdirs target-libgo"
3451 ;;
3452 *-*-cygwin* | *-*-mingw*)
3453 noconfigdirs="$noconfigdirs target-libgo"
3454 ;;
3455 *-*-aix*)
3456 noconfigdirs="$noconfigdirs target-libgo"
3457 ;;
3458 esac
3459fi
3460
c03353e2
RIL
3461# Default libgloss CPU subdirectory.
3462libgloss_dir="$target_cpu"
6de9cd9a 3463
fbcf0dca
JM
3464case "${target}" in
3465 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3466 libgloss_dir=wince
3467 ;;
4dddfc74
YZ
3468 aarch64*-*-* )
3469 libgloss_dir=aarch64
3470 ;;
fbcf0dca
JM
3471 arm*-*-*)
3472 libgloss_dir=arm
3473 ;;
3474 cris-*-* | crisv32-*-*)
3475 libgloss_dir=cris
3476 ;;
3477 hppa*-*-*)
3478 libgloss_dir=pa
3479 ;;
3480 i[3456789]86-*-*)
3481 libgloss_dir=i386
3482 ;;
3483 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3484 libgloss_dir=m68hc11
3485 ;;
3486 m68*-*-* | fido-*-*)
3487 libgloss_dir=m68k
3488 ;;
3489 mips*-*-*)
3490 libgloss_dir=mips
3491 ;;
3492 powerpc*-*-*)
3493 libgloss_dir=rs6000
3494 ;;
3495 sparc*-*-*)
3496 libgloss_dir=sparc
3497 ;;
3498esac
3499
6a789d5e 3500# Disable newlib and libgloss for various target OSes.
671aa708 3501case "${target}" in
6a789d5e
JM
3502 alpha*-dec-osf*)
3503 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3504 ;;
3505 i[3456789]86-*-linux*)
3506 # This section makes it possible to build newlib natively on linux.
3507 # If we are using a cross compiler then don't configure newlib.
3508 if test x${is_cross_compiler} != xno ; then
3509 noconfigdirs="$noconfigdirs target-newlib"
3510 fi
3511 noconfigdirs="$noconfigdirs target-libgloss"
3512 # If we are not using a cross compiler, do configure newlib.
3513 # Note however, that newlib will only be configured in this situation
3514 # if the --with-newlib option has been given, because otherwise
3515 # 'target-newlib' will appear in skipdirs.
3516 ;;
3517 i[3456789]86-*-rdos*)
3518 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3519 ;;
3520 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3522 ;;
3523 sparc-*-sunos4*)
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 ;;
3526 *-*-aix*)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 ;;
3529 *-*-beos*)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 ;;
671aa708 3532 *-*-chorusos)
0036370f 3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3534 ;;
6a789d5e
JM
3535 *-*-dragonfly*)
3536 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3537 ;;
3538 *-*-freebsd*)
3539 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 ;;
3541 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 ;;
3544 *-*-lynxos*)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 ;;
3547 *-*-mingw*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 ;;
3550 *-*-netbsd*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3552 ;;
3553 *-*-netware*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 ;;
3556 *-*-tpf*)
3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 ;;
3559 *-*-uclinux*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 ;;
3562 *-*-vxworks*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 ;;
3565esac
3566
3567case "${target}" in
3568 *-*-chorusos)
3569 ;;
75eeae1a 3570 powerpc-*-darwin*)
e1514c3f 3571 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3572 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3573 ;;
354ebf88
RW
3574 i[3456789]86-*-darwin*)
3575 noconfigdirs="$noconfigdirs ld gprof"
3576 noconfigdirs="$noconfigdirs sim target-rda"
3577 ;;
3578 x86_64-*-darwin[912]*)
0db3a858
TG
3579 noconfigdirs="$noconfigdirs ld gas gprof"
3580 noconfigdirs="$noconfigdirs sim target-rda"
3581 ;;
42c1cd8a
AT
3582 *-*-darwin*)
3583 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3584 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3585 ;;
8c6d158a 3586 *-*-dragonfly*)
8c6d158a 3587 ;;
c3f84f61 3588 *-*-freebsd*)
6de9cd9a
DN
3589 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3590 && test -f /usr/local/include/gmp.h; then
3591 with_gmp=/usr/local
3592 fi
6de9cd9a 3593 ;;
ef4e7569
US
3594 *-*-kaos*)
3595 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3596 noconfigdirs="$noconfigdirs target-libgloss"
3597 ;;
671aa708 3598 *-*-netbsd*)
671aa708 3599 ;;
61fec9ff 3600 *-*-netware*)
671aa708
NN
3601 ;;
3602 *-*-rtems*)
2909494b 3603 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3604 ;;
a8ba31f2
EC
3605 # The tpf target doesn't support gdb yet.
3606 *-*-tpf*)
6a789d5e 3607 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3608 ;;
5785c0ed 3609 *-*-uclinux*)
6a789d5e 3610 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3611 ;;
671aa708 3612 *-*-vxworks*)
671aa708
NN
3613 ;;
3614 alpha*-dec-osf*)
3615 # ld works, but does not support shared libraries.
671aa708 3616 # gas doesn't generate exception information.
6a789d5e 3617 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3618 ;;
3619 alpha*-*-*vms*)
2909494b 3620 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3621 ;;
671aa708
NN
3622 alpha*-*-*)
3623 # newlib is not 64 bit ready
2909494b 3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3625 ;;
671aa708 3626 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3627 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3628 ;;
53426f6c 3629 arc-*-*|arceb-*-*)
ebb9f8b0 3630 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3631 ;;
671aa708 3632 arm-*-pe*)
2909494b 3633 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3634 ;;
671aa708 3635 arm-*-riscix*)
0036370f 3636 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3637 ;;
b588ae30
GJL
3638 avr-*-rtems*)
3639 ;;
3640 avr-*-*)
3641 if test x${with_avrlibc} != xno; then
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 fi
3644 ;;
671aa708 3645 c4x-*-* | tic4x-*-*)
0036370f 3646 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3647 ;;
0036370f
JM
3648 tic54x-*-*)
3649 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3650 ;;
671aa708 3651 d10v-*-*)
0036370f 3652 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3653 ;;
3654 d30v-*-*)
0036370f 3655 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3656 ;;
3657 fr30-*-elf*)
2909494b 3658 noconfigdirs="$noconfigdirs gdb"
671aa708 3659 ;;
55f2d967 3660 moxie-*-*)
55f2d967
AG
3661 noconfigdirs="$noconfigdirs gprof"
3662 ;;
671aa708 3663 h8300*-*-*)
2909494b 3664 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3665 ;;
3666 h8500-*-*)
0036370f 3667 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3668 ;;
ee6a22df 3669 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3670 ;;
4569f85e 3671 hppa*64*-*-linux*)
671aa708 3672 ;;
56f8587a 3673 hppa*-*-linux*)
3e732ba0 3674 ;;
671aa708 3675 hppa*-*-*elf* | \
671aa708
NN
3676 hppa*-*-lites* | \
3677 hppa*-*-openbsd* | \
3678 hppa*64*-*-*)
671aa708 3679 ;;
2a332582 3680 hppa*-hp-hpux11*)
1bcce263 3681 noconfigdirs="$noconfigdirs ld"
2a332582 3682 ;;
c03353e2 3683 hppa*-*-pro*)
c03353e2 3684 ;;
671aa708 3685 hppa*-*-*)
2909494b 3686 noconfigdirs="$noconfigdirs ld"
671aa708 3687 ;;
fb87ad5d 3688 i960-*-*)
0036370f 3689 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3690 ;;
671aa708
NN
3691 ia64*-*-elf*)
3692 # No gdb support yet.
1bcce263 3693 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3694 ;;
3695 ia64*-**-hpux*)
5a2931d1 3696 # No ld support yet.
2909494b 3697 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3698 ;;
52535a64 3699 ia64*-*-*vms*)
091fe9ca
TG
3700 # No ld support yet.
3701 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3702 ;;
ef4c4300 3703 i[3456789]86-w64-mingw*)
ef4c4300
KT
3704 ;;
3705 i[3456789]86-*-mingw*)
b91f0a41 3706 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3707 ;;
671aa708
NN
3708 *-*-cygwin*)
3709 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3710 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3711 # always build newlib if winsup directory is present.
b91f0a41 3712 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3713 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3714 elif test -d "$srcdir/newlib"; then
b91f0a41 3715 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3716 fi
1c710c3c 3717 ;;
f2a0e225 3718 i[3456789]86-*-pe)
ebb9f8b0 3719 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3720 ;;
f2a0e225 3721 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3722 # The linker does not yet know about weak symbols in COFF,
3723 # and is not configured to handle mixed ELF and COFF.
0036370f 3724 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3725 ;;
f2a0e225 3726 i[3456789]86-*-sco*)
0036370f 3727 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3728 ;;
fbdd5d87 3729 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3730 noconfigdirs="$noconfigdirs target-libgloss"
3731 ;;
f2a0e225 3732 i[3456789]86-*-sysv4*)
0036370f 3733 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3734 ;;
f2a0e225 3735 i[3456789]86-*-beos*)
6a789d5e 3736 noconfigdirs="$noconfigdirs gdb"
3aa83176 3737 ;;
d1f8db0c 3738 i[3456789]86-*-rdos*)
6a789d5e 3739 noconfigdirs="$noconfigdirs gdb"
c03353e2 3740 ;;
671aa708 3741 mmix-*-*)
2909494b 3742 noconfigdirs="$noconfigdirs gdb"
671aa708 3743 ;;
ab34901f 3744 mt-*-*)
79dd769c
AH
3745 noconfigdirs="$noconfigdirs sim"
3746 ;;
671aa708
NN
3747 powerpc-*-aix*)
3748 # copied from rs6000-*-* entry
6a789d5e 3749 noconfigdirs="$noconfigdirs gprof"
671aa708 3750 ;;
4569f85e 3751 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3752 target_configdirs="$target_configdirs target-winsup"
0036370f 3753 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3754 # always build newlib.
3755 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3756 ;;
3757 # This is temporary until we can link against shared libraries
3758 powerpcle-*-solaris*)
0036370f 3759 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3760 ;;
3761 powerpc-*-beos*)
6a789d5e 3762 noconfigdirs="$noconfigdirs gdb"
671aa708 3763 ;;
671aa708 3764 rs6000-*-lynxos*)
6a789d5e 3765 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3766 ;;
3767 rs6000-*-aix*)
6a789d5e 3768 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3769 ;;
3770 rs6000-*-*)
2909494b 3771 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3772 ;;
3773 m68k-apollo-*)
0036370f 3774 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3775 ;;
ca9fe997 3776 microblaze*)
2909494b 3777 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3778 ;;
d91491e5 3779 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3780 if test x$with_newlib = xyes; then
3781 noconfigdirs="$noconfigdirs gprof"
3782 fi
d9dced13 3783 ;;
671aa708 3784 mips*-*-irix5*)
0036370f 3785 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3786 ;;
3787 mips*-*-irix6*)
2909494b 3788 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3789 ;;
671aa708 3790 mips*-*-bsd*)
bc98bcc4 3791 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3792 ;;
671aa708 3793 mips*-*-linux*)
671aa708 3794 ;;
bc98bcc4
JBG
3795 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3796 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3797 noconfigdirs="$noconfigdirs ld gas gprof"
3798 ;;
671aa708 3799 mips*-*-*)
2909494b 3800 noconfigdirs="$noconfigdirs gprof"
671aa708 3801 ;;
669f01d8 3802 sh-*-* | sh64-*-*)
ea2002ba
CB
3803 case "${target}" in
3804 sh*-*-elf)
2909494b 3805 ;;
ea2002ba 3806 *)
2909494b 3807 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3808 esac
671aa708 3809 ;;
671aa708 3810 sparc-*-sunos4*)
6a789d5e 3811 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3812 use_gnu_ld=no
3813 fi
3814 ;;
b42f0d7e 3815 tic6x-*-*)
0d557ff8 3816 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3817 ;;
db1d217c
WL
3818 tilepro-*-* | tilegx-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3820 ;;
671aa708 3821 v810-*-*)
0036370f 3822 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3823 ;;
3824 vax-*-*)
2909494b 3825 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3826 ;;
671aa708 3827esac
79c06341 3828
671aa708
NN
3829# If we aren't building newlib, then don't build libgloss, since libgloss
3830# depends upon some newlib header files.
3831case "${noconfigdirs}" in
3832 *target-libgloss*) ;;
3833 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3834esac
3835
671aa708 3836# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3837host_makefile_frag=/dev/null
3838if test -d ${srcdir}/config ; then
3839case "${host}" in
f2a0e225 3840 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3841 host_makefile_frag="config/mh-djgpp"
3842 ;;
3843 *-cygwin*)
2a79c47f 3844
5213506e
RW
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3846$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3847echo a >cygwin-cat-check
e25a8c82 3848if test `cat cygwin-cat-check` = a ; then
2a79c47f 3849 rm cygwin-cat-check
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851$as_echo "yes" >&6; }
2a79c47f
NC
3852else
3853 rm cygwin-cat-check
5213506e
RW
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3857 Please either mount the build directory in binary mode or run the following
3858 commands before running any configure script:
3859set -o igncr
3860export SHELLOPTS
5213506e 3861 " "$LINENO" 5
2a79c47f
NC
3862fi
3863
671aa708
NN
3864 host_makefile_frag="config/mh-cygwin"
3865 ;;
c53a18d3 3866 *-mingw*)
1f5a6b84 3867 host_makefile_frag="config/mh-mingw"
95af8923 3868 ;;
efd41714 3869 hppa*-hp-hpux10*)
efd41714 3870 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3871 ;;
111eeb6e 3872 hppa*-hp-hpux*)
efd41714
PB
3873 host_makefile_frag="config/mh-pa"
3874 ;;
3875 hppa*-*)
3876 host_makefile_frag="config/mh-pa"
3877 ;;
d8ed14ce
IS
3878 *-*-darwin*)
3879 host_makefile_frag="config/mh-darwin"
be8fff81 3880 ;;
d19bca38
PB
3881 powerpc-*-aix*)
3882 host_makefile_frag="config/mh-ppc-aix"
3883 ;;
3884 rs6000-*-aix*)
3885 host_makefile_frag="config/mh-ppc-aix"
3886 ;;
671aa708
NN
3887esac
3888fi
3889
55ffb5ed 3890if test "${build}" != "${host}" ; then
0999159b
PB
3891 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3892 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3893 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3894 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3895 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3896 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3897 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3898 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3899 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3900 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3901 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3902 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3903 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3904else
3905 AR_FOR_BUILD="\$(AR)"
3906 AS_FOR_BUILD="\$(AS)"
fb0103e5 3907 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3908 CXX_FOR_BUILD="\$(CXX)"
3909 GCJ_FOR_BUILD="\$(GCJ)"
3910 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3911 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3912 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3913 LD_FOR_BUILD="\$(LD)"
3914 NM_FOR_BUILD="\$(NM)"
3915 RANLIB_FOR_BUILD="\$(RANLIB)"
3916 WINDRES_FOR_BUILD="\$(WINDRES)"
3917 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3918fi
3919
3920ac_ext=c
1c710c3c
DJ
3921ac_cpp='$CPP $CPPFLAGS'
3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925if test -n "$ac_tool_prefix"; then
3926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3927set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
3930if test "${ac_cv_prog_CC+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3932else
3933 if test -n "$CC"; then
3934 ac_cv_prog_CC="$CC" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
5213506e
RW
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3945 break 2
3946 fi
3947done
5213506e
RW
3948 done
3949IFS=$as_save_IFS
1c710c3c
DJ
3950
3951fi
3952fi
3953CC=$ac_cv_prog_CC
3954if test -n "$CC"; then
5213506e
RW
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956$as_echo "$CC" >&6; }
1c710c3c 3957else
5213506e
RW
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
1c710c3c
DJ
3960fi
3961
5213506e 3962
1c710c3c
DJ
3963fi
3964if test -z "$ac_cv_prog_CC"; then
3965 ac_ct_CC=$CC
fb0103e5
RG
3966 # Extract the first word of "gcc", so it can be a program name with args.
3967set dummy gcc; ac_word=$2
5213506e
RW
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969$as_echo_n "checking for $ac_word... " >&6; }
3970if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3972else
3973 if test -n "$ac_ct_CC"; then
3974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3975else
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
5213506e
RW
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3983 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3985 break 2
3986 fi
3987done
5213506e
RW
3988 done
3989IFS=$as_save_IFS
1c710c3c
DJ
3990
3991fi
3992fi
3993ac_ct_CC=$ac_cv_prog_ac_ct_CC
3994if test -n "$ac_ct_CC"; then
5213506e
RW
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3996$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3997else
5213506e
RW
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999$as_echo "no" >&6; }
1c710c3c
DJ
4000fi
4001
5213506e
RW
4002 if test "x$ac_ct_CC" = x; then
4003 CC=""
4004 else
4005 case $cross_compiling:$ac_tool_warned in
4006yes:)
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4009ac_tool_warned=yes ;;
4010esac
4011 CC=$ac_ct_CC
4012 fi
1c710c3c
DJ
4013else
4014 CC="$ac_cv_prog_CC"
4015fi
4016
4017if test -z "$CC"; then
5213506e
RW
4018 if test -n "$ac_tool_prefix"; then
4019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4020set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022$as_echo_n "checking for $ac_word... " >&6; }
4023if test "${ac_cv_prog_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4025else
4026 if test -n "$CC"; then
4027 ac_cv_prog_CC="$CC" # Let the user override the test.
4028else
1c710c3c
DJ
4029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH
4031do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
5213506e
RW
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4036 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4038 break 2
4039 fi
4040done
5213506e
RW
4041 done
4042IFS=$as_save_IFS
1c710c3c 4043
0b0dc272 4044fi
0b0dc272 4045fi
1c710c3c 4046CC=$ac_cv_prog_CC
af71363e 4047if test -n "$CC"; then
5213506e
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049$as_echo "$CC" >&6; }
2aeb72e9 4050else
5213506e
RW
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052$as_echo "no" >&6; }
2aeb72e9
DD
4053fi
4054
2aeb72e9 4055
5213506e 4056 fi
1c710c3c 4057fi
55ffb5ed
NN
4058if test -z "$CC"; then
4059 # Extract the first word of "cc", so it can be a program name with args.
4060set dummy cc; ac_word=$2
5213506e
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if test "${ac_cv_prog_CC+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4065else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068else
0b0dc272 4069 ac_prog_rejected=no
1c710c3c
DJ
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
5213506e
RW
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4078 ac_prog_rejected=yes
4079 continue
4080 fi
4081 ac_cv_prog_CC="cc"
5213506e 4082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4083 break 2
4084 fi
4085done
5213506e
RW
4086 done
4087IFS=$as_save_IFS
1c710c3c 4088
55ffb5ed
NN
4089if test $ac_prog_rejected = yes; then
4090 # We found a bogon in the path, so make sure we never use it.
4091 set dummy $ac_cv_prog_CC
4092 shift
1c710c3c 4093 if test $# != 0; then
55ffb5ed
NN
4094 # We chose a different compiler from the bogus one.
4095 # However, it has the same basename, so the bogon will be chosen
4096 # first if we set CC to just the basename; use the full file name.
4097 shift
1c710c3c 4098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4099 fi
4100fi
4101fi
4102fi
1c710c3c 4103CC=$ac_cv_prog_CC
55ffb5ed 4104if test -n "$CC"; then
5213506e
RW
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106$as_echo "$CC" >&6; }
55ffb5ed 4107else
5213506e
RW
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
55ffb5ed
NN
4110fi
4111
5213506e 4112
1c710c3c
DJ
4113fi
4114if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
5213506e 4116 for ac_prog in cl.exe
1c710c3c
DJ
4117 do
4118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if test "${ac_cv_prog_CC+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4124else
4125 if test -n "$CC"; then
4126 ac_cv_prog_CC="$CC" # Let the user override the test.
4127else
1c710c3c
DJ
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
5213506e
RW
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4137 break 2
4138 fi
4139done
5213506e
RW
4140 done
4141IFS=$as_save_IFS
1c710c3c 4142
55ffb5ed
NN
4143fi
4144fi
1c710c3c 4145CC=$ac_cv_prog_CC
55ffb5ed 4146if test -n "$CC"; then
5213506e
RW
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148$as_echo "$CC" >&6; }
a4b9e93e 4149else
5213506e
RW
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
fb0103e5 4152fi
af71363e 4153
5213506e 4154
1c710c3c
DJ
4155 test -n "$CC" && break
4156 done
af71363e 4157fi
1c710c3c
DJ
4158if test -z "$CC"; then
4159 ac_ct_CC=$CC
5213506e 4160 for ac_prog in cl.exe
1c710c3c
DJ
4161do
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163set dummy $ac_prog; ac_word=$2
5213506e
RW
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
0b0dc272 4168else
1c710c3c
DJ
4169 if test -n "$ac_ct_CC"; then
4170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4171else
1c710c3c
DJ
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
5213506e
RW
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4179 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4181 break 2
4182 fi
4183done
5213506e
RW
4184 done
4185IFS=$as_save_IFS
1c710c3c 4186
af71363e
AS
4187fi
4188fi
1c710c3c
DJ
4189ac_ct_CC=$ac_cv_prog_ac_ct_CC
4190if test -n "$ac_ct_CC"; then
5213506e
RW
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4192$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4193else
5213506e
RW
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195$as_echo "no" >&6; }
af71363e 4196fi
0b0dc272 4197
5213506e 4198
1c710c3c
DJ
4199 test -n "$ac_ct_CC" && break
4200done
4201
5213506e
RW
4202 if test "x$ac_ct_CC" = x; then
4203 CC=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206yes:)
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209ac_tool_warned=yes ;;
4210esac
4211 CC=$ac_ct_CC
4212 fi
1c710c3c
DJ
4213fi
4214
4215fi
4216
4217
5213506e
RW
4218test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220as_fn_error "no acceptable C compiler found in \$PATH
4221See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4222
4223# Provide some information about the compiler.
5213506e
RW
4224$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4225set X $ac_compile
4226ac_compiler=$2
4227for ac_option in --version -v -V -qversion; do
4228 { { ac_try="$ac_compiler $ac_option >&5"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234$as_echo "$ac_try_echo"; } >&5
4235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4236 ac_status=$?
5213506e
RW
4237 if test -s conftest.err; then
4238 sed '10a\
4239... rest of stderr output deleted ...
4240 10q' conftest.err >conftest.er1
4241 cat conftest.er1 >&5
4242 rm -f conftest.er1 conftest.err
4243 fi
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4246done
1c710c3c 4247
5213506e 4248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4249/* end confdefs.h. */
4250
4251int
4252main ()
4253{
4254
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259ac_clean_files_save=$ac_clean_files
5213506e 4260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4261# Try to create an executable without -o first, disregard a.out.
4262# It will help us diagnose broken compilers, and finding out an intuition
4263# of exeext.
5213506e
RW
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4265$as_echo_n "checking for C compiler default output file name... " >&6; }
4266ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4267
4268# The possible output files:
4269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4270
4271ac_rmfiles=
4272for ac_file in $ac_files
4273do
4274 case $ac_file in
4275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4277 esac
4278done
4279rm -f $ac_rmfiles
4280
4281if { { ac_try="$ac_link_default"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287$as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_link_default") 2>&5
1c710c3c 4289 ac_status=$?
5213506e
RW
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; then :
4292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4293# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4294# in a Makefile. We should not override ac_cv_exeext if it was cached,
4295# so that the user can short-circuit this test for compilers unknown to
4296# Autoconf.
4297for ac_file in $ac_files ''
1c710c3c
DJ
4298do
4299 test -f "$ac_file" || continue
4300 case $ac_file in
5213506e 4301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4302 ;;
4303 [ab].out )
4304 # We found the default executable, but exeext='' is most
4305 # certainly right.
4306 break;;
4307 *.* )
5213506e
RW
4308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4309 then :; else
4310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4311 fi
4312 # We set ac_cv_exeext here because the later test for it is not
4313 # safe: cross compilers may not add the suffix if given an `-o'
4314 # argument, so we may need to know it at that point already.
4315 # Even if this section looks crufty: it has the advantage of
4316 # actually working.
1c710c3c
DJ
4317 break;;
4318 * )
4319 break;;
4320 esac
4321done
5213506e
RW
4322test "$ac_cv_exeext" = no && ac_cv_exeext=
4323
1c710c3c 4324else
5213506e
RW
4325 ac_file=''
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4328$as_echo "$ac_file" >&6; }
4329if test -z "$ac_file"; then :
4330 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
5213506e
RW
4333{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335{ as_fn_set_status 77
4336as_fn_error "C compiler cannot create executables
4337See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4338fi
1c710c3c 4339ac_exeext=$ac_cv_exeext
1c710c3c 4340
5213506e 4341# Check that the compiler produces executables we can run. If not, either
1c710c3c 4342# the compiler is broken, or we cross compile.
5213506e
RW
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4344$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4345# If not cross compiling, check that we can run a simple program.
4346if test "$cross_compiling" != yes; then
4347 if { ac_try='./$ac_file'
5213506e
RW
4348 { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
1c710c3c 4355 ac_status=$?
5213506e
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; }; then
1c710c3c
DJ
4358 cross_compiling=no
4359 else
4360 if test "$cross_compiling" = maybe; then
4361 cross_compiling=yes
4362 else
5213506e
RW
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365as_fn_error "cannot run C compiled programs.
1c710c3c 4366If you meant to cross compile, use \`--host'.
5213506e 4367See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4368 fi
4369 fi
4370fi
5213506e
RW
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372$as_echo "yes" >&6; }
1c710c3c 4373
5213506e 4374rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4375ac_clean_files=$ac_clean_files_save
5213506e 4376# Check that the compiler produces executables we can run. If not, either
1c710c3c 4377# the compiler is broken, or we cross compile.
5213506e
RW
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4379$as_echo_n "checking whether we are cross compiling... " >&6; }
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4381$as_echo "$cross_compiling" >&6; }
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4384$as_echo_n "checking for suffix of executables... " >&6; }
4385if { { ac_try="$ac_link"
4386case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_link") 2>&5
1c710c3c 4393 ac_status=$?
5213506e
RW
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then :
1c710c3c
DJ
4396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4398# work properly (i.e., refer to `conftest.exe'), while it won't with
4399# `rm'.
4400for ac_file in conftest.exe conftest conftest.*; do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
5213506e 4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4405 break;;
4406 * ) break;;
4407 esac
4408done
af71363e 4409else
5213506e
RW
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412as_fn_error "cannot compute suffix of executables: cannot compile and link
4413See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4414fi
1c710c3c 4415rm -f conftest$ac_cv_exeext
5213506e
RW
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4417$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4418
4419rm -f conftest.$ac_ext
4420EXEEXT=$ac_cv_exeext
4421ac_exeext=$EXEEXT
5213506e
RW
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4423$as_echo_n "checking for suffix of object files... " >&6; }
4424if test "${ac_cv_objext+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
1c710c3c 4426else
5213506e 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438rm -f conftest.o conftest.obj
5213506e
RW
4439if { { ac_try="$ac_compile"
4440case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445$as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compile") 2>&5
1c710c3c 4447 ac_status=$?
5213506e
RW
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 for ac_file in conftest.o conftest.obj conftest.*; do
4451 test -f "$ac_file" || continue;
1c710c3c 4452 case $ac_file in
5213506e 4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4455 break;;
4456 esac
4457done
4458else
5213506e 4459 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
5213506e
RW
4462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464as_fn_error "cannot compute suffix of object files: cannot compile
4465See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4466fi
1c710c3c
DJ
4467rm -f conftest.$ac_cv_objext conftest.$ac_ext
4468fi
5213506e
RW
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4470$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4471OBJEXT=$ac_cv_objext
4472ac_objext=$OBJEXT
5213506e
RW
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4475if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
1c710c3c 4477else
5213506e 4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4479/* end confdefs.h. */
4480
4481int
4482main ()
4483{
4484#ifndef __GNUC__
4485 choke me
4486#endif
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
5213506e 4492if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4493 ac_compiler_gnu=yes
4494else
5213506e 4495 ac_compiler_gnu=no
1c710c3c 4496fi
5213506e 4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4498ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500fi
5213506e
RW
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503if test $ac_compiler_gnu = yes; then
4504 GCC=yes
4505else
4506 GCC=
4507fi
1c710c3c
DJ
4508ac_test_CFLAGS=${CFLAGS+set}
4509ac_save_CFLAGS=$CFLAGS
5213506e
RW
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4511$as_echo_n "checking whether $CC accepts -g... " >&6; }
4512if test "${ac_cv_prog_cc_g+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514else
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 ac_cv_prog_cc_g=no
4518 CFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4520/* end confdefs.h. */
4521
4522int
4523main ()
4524{
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
5213506e 4530if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4531 ac_cv_prog_cc_g=yes
4532else
5213506e
RW
4533 CFLAGS=""
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536
4537int
4538main ()
4539{
4540
4541 ;
4542 return 0;
4543}
4544_ACEOF
4545if ac_fn_c_try_compile "$LINENO"; then :
4546
4547else
4548 ac_c_werror_flag=$ac_save_c_werror_flag
4549 CFLAGS="-g"
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
af71363e 4552
5213506e
RW
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_cv_prog_cc_g=yes
4563fi
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4565fi
5213506e 4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4567fi
5213506e
RW
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_c_werror_flag=$ac_save_c_werror_flag
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4572$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4573if test "$ac_test_CFLAGS" = set; then
1c710c3c 4574 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4575elif test $ac_cv_prog_cc_g = yes; then
4576 if test "$GCC" = yes; then
4577 CFLAGS="-g -O2"
4578 else
4579 CFLAGS="-g"
4580 fi
4581else
4582 if test "$GCC" = yes; then
4583 CFLAGS="-O2"
4584 else
4585 CFLAGS=
4586 fi
4587fi
5213506e
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4590if test "${ac_cv_prog_cc_c89+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
1c710c3c 4592else
5213506e 4593 ac_cv_prog_cc_c89=no
1c710c3c 4594ac_save_CC=$CC
5213506e 4595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4596/* end confdefs.h. */
4597#include <stdarg.h>
4598#include <stdio.h>
4599#include <sys/types.h>
4600#include <sys/stat.h>
4601/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4602struct buf { int x; };
4603FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604static char *e (p, i)
4605 char **p;
4606 int i;
4607{
4608 return p[i];
4609}
4610static char *f (char * (*g) (char **, int), char **p, ...)
4611{
4612 char *s;
4613 va_list v;
4614 va_start (v,p);
4615 s = g (p, va_arg (v,int));
4616 va_end (v);
4617 return s;
4618}
4619
4620/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4621 function prototypes and stuff, but not '\xHH' hex character constants.
4622 These don't provoke an error unfortunately, instead are silently treated
5213506e 4623 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4625 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4626 that's true only with -std. */
1c710c3c
DJ
4627int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4628
5213506e
RW
4629/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630 inside strings and character constants. */
4631#define FOO(x) 'x'
4632int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4633
1c710c3c
DJ
4634int test (int i, double x);
4635struct s1 {int (*f) (int a);};
4636struct s2 {int (*f) (double a);};
4637int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4638int argc;
4639char **argv;
4640int
4641main ()
4642{
4643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4644 ;
4645 return 0;
4646}
4647_ACEOF
5213506e
RW
4648for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4650do
4651 CC="$ac_save_CC $ac_arg"
5213506e
RW
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4654fi
5213506e
RW
4655rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4657done
5213506e 4658rm -f conftest.$ac_ext
1c710c3c
DJ
4659CC=$ac_save_CC
4660
4661fi
5213506e
RW
4662# AC_CACHE_VAL
4663case "x$ac_cv_prog_cc_c89" in
4664 x)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666$as_echo "none needed" >&6; } ;;
4667 xno)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669$as_echo "unsupported" >&6; } ;;
1c710c3c 4670 *)
5213506e
RW
4671 CC="$CC $ac_cv_prog_cc_c89"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4674esac
5213506e 4675if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4676
2aeb72e9
DD
4677fi
4678
2aeb72e9
DD
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
5213506e 4685ac_ext=cpp
2aeb72e9
DD
4686ac_cpp='$CXXCPP $CPPFLAGS'
4687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4690if test -z "$CXX"; then
4691 if test -n "$CCC"; then
4692 CXX=$CCC
4693 else
4694 if test -n "$ac_tool_prefix"; then
4695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4696 do
4697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700$as_echo_n "checking for $ac_word... " >&6; }
4701if test "${ac_cv_prog_CXX+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4703else
4704 if test -n "$CXX"; then
4705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
5213506e
RW
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4716 break 2
4717 fi
4718done
5213506e
RW
4719 done
4720IFS=$as_save_IFS
55ffb5ed 4721
c3a86da9
DJ
4722fi
4723fi
4724CXX=$ac_cv_prog_CXX
4725if test -n "$CXX"; then
5213506e
RW
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4727$as_echo "$CXX" >&6; }
c3a86da9 4728else
5213506e
RW
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
c3a86da9
DJ
4731fi
4732
5213506e 4733
c3a86da9
DJ
4734 test -n "$CXX" && break
4735 done
4736fi
4737if test -z "$CXX"; then
4738 ac_ct_CXX=$CXX
5213506e 4739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4740do
4741 # Extract the first word of "$ac_prog", so it can be a program name with args.
4742set dummy $ac_prog; ac_word=$2
5213506e
RW
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744$as_echo_n "checking for $ac_word... " >&6; }
4745if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4747else
4748 if test -n "$ac_ct_CXX"; then
4749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
5213506e
RW
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4758 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4760 break 2
4761 fi
4762done
5213506e
RW
4763 done
4764IFS=$as_save_IFS
c3a86da9
DJ
4765
4766fi
4767fi
4768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4769if test -n "$ac_ct_CXX"; then
5213506e
RW
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4771$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4772else
5213506e
RW
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
c3a86da9
DJ
4775fi
4776
5213506e 4777
c3a86da9
DJ
4778 test -n "$ac_ct_CXX" && break
4779done
c3a86da9 4780
5213506e
RW
4781 if test "x$ac_ct_CXX" = x; then
4782 CXX="g++"
4783 else
4784 case $cross_compiling:$ac_tool_warned in
4785yes:)
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788ac_tool_warned=yes ;;
4789esac
4790 CXX=$ac_ct_CXX
4791 fi
c3a86da9
DJ
4792fi
4793
5213506e
RW
4794 fi
4795fi
c3a86da9 4796# Provide some information about the compiler.
5213506e
RW
4797$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4798set X $ac_compile
4799ac_compiler=$2
4800for ac_option in --version -v -V -qversion; do
4801 { { ac_try="$ac_compiler $ac_option >&5"
4802case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805esac
4806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807$as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4809 ac_status=$?
5213506e
RW
4810 if test -s conftest.err; then
4811 sed '10a\
4812... rest of stderr output deleted ...
4813 10q' conftest.err >conftest.er1
4814 cat conftest.er1 >&5
4815 rm -f conftest.er1 conftest.err
4816 fi
4817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818 test $ac_status = 0; }
4819done
c3a86da9 4820
5213506e
RW
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4822$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4823if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
c3a86da9 4825else
5213506e 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4827/* end confdefs.h. */
4828
4829int
4830main ()
4831{
4832#ifndef __GNUC__
4833 choke me
4834#endif
4835
4836 ;
4837 return 0;
4838}
4839_ACEOF
5213506e 4840if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4841 ac_compiler_gnu=yes
4842else
5213506e 4843 ac_compiler_gnu=no
c3a86da9 4844fi
5213506e 4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4846ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4847
4848fi
5213506e
RW
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4850$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4851if test $ac_compiler_gnu = yes; then
4852 GXX=yes
4853else
4854 GXX=
4855fi
c3a86da9
DJ
4856ac_test_CXXFLAGS=${CXXFLAGS+set}
4857ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4859$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4860if test "${ac_cv_prog_cxx_g+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862else
4863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4864 ac_cxx_werror_flag=yes
4865 ac_cv_prog_cxx_g=no
4866 CXXFLAGS="-g"
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4868/* end confdefs.h. */
4869
4870int
4871main ()
4872{
4873
4874 ;
4875 return 0;
4876}
4877_ACEOF
5213506e 4878if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4879 ac_cv_prog_cxx_g=yes
4880else
5213506e
RW
4881 CXXFLAGS=""
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4883/* end confdefs.h. */
5213506e 4884
c3a86da9
DJ
4885int
4886main ()
4887{
5213506e 4888
c3a86da9
DJ
4889 ;
4890 return 0;
4891}
4892_ACEOF
5213506e 4893if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4894
5213506e
RW
4895else
4896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4897 CXXFLAGS="-g"
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4899/* end confdefs.h. */
5213506e 4900
c3a86da9
DJ
4901int
4902main ()
4903{
5213506e 4904
c3a86da9
DJ
4905 ;
4906 return 0;
4907}
4908_ACEOF
5213506e
RW
4909if ac_fn_cxx_try_compile "$LINENO"; then :
4910 ac_cv_prog_cxx_g=yes
11a67599 4911fi
5213506e
RW
4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913fi
4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4918fi
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4920$as_echo "$ac_cv_prog_cxx_g" >&6; }
4921if test "$ac_test_CXXFLAGS" = set; then
4922 CXXFLAGS=$ac_save_CXXFLAGS
4923elif test $ac_cv_prog_cxx_g = yes; then
4924 if test "$GXX" = yes; then
4925 CXXFLAGS="-g -O2"
4926 else
4927 CXXFLAGS="-g"
4928 fi
4929else
4930 if test "$GXX" = yes; then
4931 CXXFLAGS="-O2"
4932 else
4933 CXXFLAGS=
4934 fi
c3a86da9 4935fi
c3a86da9
DJ
4936ac_ext=c
4937ac_cpp='$CPP $CPPFLAGS'
4938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941
4942
4943# We must set the default linker to the linker used by gcc for the correct
4944# operation of libtool. If LD is not defined and we are using gcc, try to
4945# set the LD default to the ld used by gcc.
4946if test -z "$LD"; then
4947 if test "$GCC" = yes; then
4948 case $build in
4949 *-*-mingw*)
4950 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4951 *)
4952 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4953 esac
4954 case $gcc_prog_ld in
4955 # Accept absolute paths.
4956 [\\/]* | [A-Za-z]:[\\/]*)
4957 LD="$gcc_prog_ld" ;;
4958 esac
4959 fi
23f6b2f9
PB
4960fi
4961
0b21f5d3
EB
4962# Check whether -static-libstdc++ -static-libgcc is supported.
4963have_static_libs=no
4964if test "$GCC" = yes; then
4965 saved_LDFLAGS="$LDFLAGS"
4966
4967 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4969$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4970 ac_ext=cpp
4971ac_cpp='$CXXCPP $CPPFLAGS'
4972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4975
4976
4977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h. */
0d6414b2
EB
4979
4980#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4981#error -static-libstdc++ not implemented
4982#endif
0b21f5d3
EB
4983int main() {}
4984_ACEOF
4985if ac_fn_cxx_try_link "$LINENO"; then :
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4987$as_echo "yes" >&6; }; have_static_libs=yes
4988else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992rm -f core conftest.err conftest.$ac_objext \
4993 conftest$ac_exeext conftest.$ac_ext
4994 ac_ext=c
4995ac_cpp='$CPP $CPPFLAGS'
4996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
5001 LDFLAGS="$saved_LDFLAGS"
5002fi
5003
23f6b2f9
PB
5004
5005
55ffb5ed 5006
1c710c3c
DJ
5007if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5009set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
5012if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5014else
5015 if test -n "$GNATBIND"; then
5016 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5017else
1c710c3c
DJ
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5213506e
RW
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5025 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5027 break 2
5028 fi
5029done
5213506e
RW
5030 done
5031IFS=$as_save_IFS
1c710c3c 5032
55ffb5ed
NN
5033fi
5034fi
1c710c3c 5035GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5036if test -n "$GNATBIND"; then
5213506e
RW
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5038$as_echo "$GNATBIND" >&6; }
55ffb5ed 5039else
5213506e
RW
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
55ffb5ed
NN
5042fi
5043
5213506e 5044
1c710c3c 5045fi
55ffb5ed 5046if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5047 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5048 # Extract the first word of "gnatbind", so it can be a program name with args.
5049set dummy gnatbind; ac_word=$2
5213506e
RW
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
55ffb5ed 5054else
1c710c3c
DJ
5055 if test -n "$ac_ct_GNATBIND"; then
5056 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5057else
1c710c3c
DJ
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5213506e
RW
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5065 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5067 break 2
5068 fi
5069done
5213506e
RW
5070 done
5071IFS=$as_save_IFS
1c710c3c 5072
55ffb5ed
NN
5073fi
5074fi
1c710c3c
DJ
5075ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5076if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5078$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5079else
5213506e
RW
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
55ffb5ed
NN
5082fi
5083
5213506e
RW
5084 if test "x$ac_ct_GNATBIND" = x; then
5085 GNATBIND="no"
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088yes:)
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091ac_tool_warned=yes ;;
5092esac
5093 GNATBIND=$ac_ct_GNATBIND
5094 fi
55ffb5ed 5095else
1c710c3c 5096 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5097fi
5098
1c710c3c
DJ
5099if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5101set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5305be7e
RG
5106else
5107 if test -n "$GNATMAKE"; then
5108 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5109else
1c710c3c
DJ
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5213506e
RW
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5117 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5119 break 2
5120 fi
5121done
5213506e
RW
5122 done
5123IFS=$as_save_IFS
1c710c3c 5124
5305be7e
RG
5125fi
5126fi
1c710c3c 5127GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5128if test -n "$GNATMAKE"; then
5213506e
RW
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5130$as_echo "$GNATMAKE" >&6; }
5305be7e 5131else
5213506e
RW
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5305be7e
RG
5134fi
5135
5213506e 5136
1c710c3c 5137fi
5305be7e 5138if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5139 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5140 # Extract the first word of "gnatmake", so it can be a program name with args.
5141set dummy gnatmake; ac_word=$2
5213506e
RW
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
5144if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5305be7e 5146else
1c710c3c
DJ
5147 if test -n "$ac_ct_GNATMAKE"; then
5148 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5149else
1c710c3c
DJ
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5213506e
RW
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5157 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5159 break 2
5160 fi
5161done
5213506e
RW
5162 done
5163IFS=$as_save_IFS
1c710c3c 5164
5305be7e
RG
5165fi
5166fi
1c710c3c
DJ
5167ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5168if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5170$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5171else
5213506e
RW
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5305be7e
RG
5174fi
5175
5213506e
RW
5176 if test "x$ac_ct_GNATMAKE" = x; then
5177 GNATMAKE="no"
5178 else
5179 case $cross_compiling:$ac_tool_warned in
5180yes:)
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183ac_tool_warned=yes ;;
5184esac
5185 GNATMAKE=$ac_ct_GNATMAKE
5186 fi
5305be7e 5187else
1c710c3c 5188 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5189fi
5190
5213506e
RW
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5192$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5193if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5195else
5196 cat >conftest.adb <<EOF
5197procedure conftest is begin null; end conftest;
5198EOF
5199acx_cv_cc_gcc_supports_ada=no
5200# There is a bug in old released versions of GCC which causes the
5201# driver to exit successfully when the appropriate language module
5202# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5203# Therefore we must check for the error message as well as an
5204# unsuccessful exit.
1db673ca
RO
5205# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5206# given a .adb file, but produce no object file. So we must check
5207# if an object file was really produced to guard against this.
55ffb5ed 5208errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5209if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5210 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5211fi
5212rm -f conftest.*
5213fi
5213506e
RW
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5215$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5216
7cb62ef1 5217if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5218 have_gnat=yes
5219else
5220 have_gnat=no
5221fi
5222
5213506e
RW
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5224$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5225if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
a76494aa
PB
5227else
5228 echo abfoo >t1
5229 echo cdfoo >t2
5230 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5231 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5232 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5233 :
5234 else
5235 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5236 fi
5237 fi
a76494aa
PB
5238 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5239 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5240 :
a76494aa
PB
5241 else
5242 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5243 fi
5244 fi
5245 rm t1 t2
5246
5247fi
5213506e
RW
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5249$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5250do_compare="$gcc_cv_prog_cmp_skip"
5251
5252
55ffb5ed 5253
ff3ac0f4
ILT
5254# Check whether --enable-bootstrap was given.
5255if test "${enable_bootstrap+set}" = set; then :
5256 enableval=$enable_bootstrap;
5257else
5258 enable_bootstrap=default
5259fi
5260
5261
5262# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5263if test -r $srcdir/gcc/configure; then
5264 have_compiler=yes
5265else
5266 have_compiler=no
5267fi
ff3ac0f4
ILT
5268
5269case "$have_compiler:$host:$target:$enable_bootstrap" in
5270 *:*:*:no) ;;
5271
5272 # Default behavior. Enable bootstrap if we have a compiler
5273 # and we are in a native configuration.
5274 yes:$build:$build:default)
5275 enable_bootstrap=yes ;;
5276
5277 *:*:*:default)
5278 enable_bootstrap=no ;;
5279
5280 # We have a compiler and we are in a native configuration, bootstrap is ok
5281 yes:$build:$build:yes)
5282 ;;
5283
5284 # Other configurations, but we have a compiler. Assume the user knows
5285 # what he's doing.
5286 yes:*:*:yes)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5288$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5289 ;;
5290
5291 # No compiler: if they passed --enable-bootstrap explicitly, fail
5292 no:*:*:yes)
5293 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5294
5295 # Fail if wrong command line
5296 *)
5297 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5298 ;;
5299esac
5300
592c90ff
KG
5301# Used for setting $lt_cv_objdir
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5303$as_echo_n "checking for objdir... " >&6; }
5304if test "${lt_cv_objdir+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306else
5307 rm -f .libs 2>/dev/null
5308mkdir .libs 2>/dev/null
5309if test -d .libs; then
5310 lt_cv_objdir=.libs
5311else
5312 # MS-DOS does not allow filenames that begin with a dot.
5313 lt_cv_objdir=_libs
5314fi
5315rmdir .libs 2>/dev/null
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5318$as_echo "$lt_cv_objdir" >&6; }
5319objdir=$lt_cv_objdir
5320
5321
5322
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define LT_OBJDIR "$lt_cv_objdir/"
5327_ACEOF
5328
5329
5330
acd26225 5331# Check for GMP, MPFR and MPC
3a5729ea 5332gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5333gmpinc=
e69bf64b 5334have_gmp=no
acd26225
KG
5335
5336# Specify a location for mpc
5337# check for this first so it ends up on the link line before mpfr.
5338
5213506e
RW
5339# Check whether --with-mpc was given.
5340if test "${with_mpc+set}" = set; then :
5341 withval=$with_mpc;
5342fi
acd26225 5343
acd26225 5344
9965e3cd 5345# Check whether --with-mpc-include was given.
5213506e
RW
5346if test "${with_mpc_include+set}" = set; then :
5347 withval=$with_mpc_include;
5348fi
acd26225 5349
acd26225 5350
9965e3cd 5351# Check whether --with-mpc-lib was given.
5213506e
RW
5352if test "${with_mpc_lib+set}" = set; then :
5353 withval=$with_mpc_lib;
5354fi
acd26225 5355
acd26225
KG
5356
5357if test "x$with_mpc" != x; then
3a5729ea
KG
5358 gmplibs="-L$with_mpc/lib $gmplibs"
5359 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5360fi
5361if test "x$with_mpc_include" != x; then
3a5729ea 5362 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5363fi
5364if test "x$with_mpc_lib" != x; then
3a5729ea 5365 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5366fi
5367if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5368 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5369 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5370 # Do not test the mpc version. Assume that it is sufficient, since
5371 # it is in the source tree, and the library has not been built yet
5372 # but it would be included on the link line in the version check below
5373 # hence making the test fail.
3a5729ea 5374 have_gmp=yes
acd26225 5375fi
e69bf64b 5376
bebf829d
PB
5377# Specify a location for mpfr
5378# check for this first so it ends up on the link line before gmp.
1c710c3c 5379
5213506e
RW
5380# Check whether --with-mpfr-dir was given.
5381if test "${with_mpfr_dir+set}" = set; then :
5382 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5383Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5384fi
5385
bebf829d
PB
5386
5387
5213506e
RW
5388# Check whether --with-mpfr was given.
5389if test "${with_mpfr+set}" = set; then :
5390 withval=$with_mpfr;
5391fi
1c710c3c 5392
bebf829d 5393
9965e3cd 5394# Check whether --with-mpfr-include was given.
5213506e
RW
5395if test "${with_mpfr_include+set}" = set; then :
5396 withval=$with_mpfr_include;
5397fi
1c710c3c 5398
8a877c9c 5399
9965e3cd 5400# Check whether --with-mpfr-lib was given.
5213506e
RW
5401if test "${with_mpfr_lib+set}" = set; then :
5402 withval=$with_mpfr_lib;
5403fi
8a877c9c 5404
bebf829d
PB
5405
5406if test "x$with_mpfr" != x; then
5407 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5408 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5409fi
8a877c9c 5410if test "x$with_mpfr_include" != x; then
3a5729ea 5411 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5412fi
5413if test "x$with_mpfr_lib" != x; then
5414 gmplibs="-L$with_mpfr_lib $gmplibs"
5415fi
e69bf64b 5416if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5417 # MPFR v3.1.0 moved the sources into a src sub-directory.
5418 if test -d ${srcdir}/mpfr/src; then
5419 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5420 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5421 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5422 else
5423 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5424 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5425 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5426 fi
e69bf64b
PB
5427 # Do not test the mpfr version. Assume that it is sufficient, since
5428 # it is in the source tree, and the library has not been built yet
5429 # but it would be included on the link line in the version check below
5430 # hence making the test fail.
5431 have_gmp=yes
5432fi
bebf829d 5433
6de9cd9a 5434# Specify a location for gmp
1c710c3c 5435
5213506e
RW
5436# Check whether --with-gmp-dir was given.
5437if test "${with_gmp_dir+set}" = set; then :
5438 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5439Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5440fi
5441
6de9cd9a 5442
6de9cd9a 5443
5213506e
RW
5444# Check whether --with-gmp was given.
5445if test "${with_gmp+set}" = set; then :
5446 withval=$with_gmp;
5447fi
1c710c3c 5448
6de9cd9a 5449
9965e3cd 5450# Check whether --with-gmp-include was given.
5213506e
RW
5451if test "${with_gmp_include+set}" = set; then :
5452 withval=$with_gmp_include;
5453fi
1c710c3c 5454
8a877c9c 5455
9965e3cd 5456# Check whether --with-gmp-lib was given.
5213506e
RW
5457if test "${with_gmp_lib+set}" = set; then :
5458 withval=$with_gmp_lib;
5459fi
8a877c9c
KG
5460
5461
6de9cd9a 5462
bebf829d
PB
5463if test "x$with_gmp" != x; then
5464 gmplibs="-L$with_gmp/lib $gmplibs"
5465 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5466fi
8a877c9c
KG
5467if test "x$with_gmp_include" != x; then
5468 gmpinc="-I$with_gmp_include $gmpinc"
5469fi
5470if test "x$with_gmp_lib" != x; then
5471 gmplibs="-L$with_gmp_lib $gmplibs"
5472fi
e69bf64b 5473if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5474 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5475 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5476 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5477 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5478 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5479 # Do not test the gmp version. Assume that it is sufficient, since
5480 # it is in the source tree, and the library has not been built yet
5481 # but it would be included on the link line in the version check below
5482 # hence making the test fail.
5483 have_gmp=yes
5484fi
6de9cd9a 5485
d943d7c4 5486if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5487 have_gmp=yes
5488 saved_CFLAGS="$CFLAGS"
5489 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5490 # Check for the recommended and required versions of GMP.
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5492$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5493
5494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5495/* end confdefs.h. */
5496#include "gmp.h"
5497int
5498main ()
5499{
5500
5501 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5502 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5503 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5504 choke me
5505 #endif
5506
5507 ;
5508 return 0;
5509}
5510_ACEOF
5511if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5513/* end confdefs.h. */
362c6d2f 5514#include <gmp.h>
1c710c3c
DJ
5515int
5516main ()
5517{
6de9cd9a 5518
362c6d2f
KG
5519 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5520 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5521 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5522 choke me
5523 #endif
1c710c3c
DJ
5524
5525 ;
5526 return 0;
5527}
5528_ACEOF
5213506e
RW
5529if ac_fn_c_try_compile "$LINENO"; then :
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531$as_echo "yes" >&6; }
362c6d2f
KG
5532else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5534$as_echo "buggy but acceptable" >&6; }
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5537else
5213506e
RW
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5540fi
5213506e 5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5542
acd26225 5543 # If we have GMP, check the MPFR version.
e69bf64b 5544 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5545 # Check for the recommended and required versions of MPFR.
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5547$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5549/* end confdefs.h. */
70ec446f 5550#include <gmp.h>
e69bf64b 5551 #include <mpfr.h>
1c710c3c
DJ
5552int
5553main ()
5554{
e48d66a9 5555
f7d6bc01 5556 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5557 choke me
5558 #endif
1c710c3c
DJ
5559
5560 ;
5561 return 0;
5562}
5563_ACEOF
5213506e
RW
5564if ac_fn_c_try_compile "$LINENO"; then :
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5566/* end confdefs.h. */
a3993f33 5567#include <gmp.h>
e69bf64b 5568 #include <mpfr.h>
1c710c3c
DJ
5569int
5570main ()
5571{
a3993f33 5572
362c6d2f 5573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5574 choke me
5575 #endif
acd26225
KG
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5213506e
RW
5581if ac_fn_c_try_compile "$LINENO"; then :
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5583$as_echo "yes" >&6; }
acd26225 5584else
5213506e
RW
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5586$as_echo "buggy but acceptable" >&6; }
acd26225 5587fi
5213506e 5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5589else
5213506e
RW
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }; have_gmp=no
acd26225 5592fi
5213506e 5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5594 fi
5595
5596 # Check for the MPC header version.
3a5729ea 5597 if test x"$have_gmp" = xyes ; then
362c6d2f 5598 # Check for the recommended and required versions of MPC.
5213506e
RW
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5600$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5602/* end confdefs.h. */
5603#include <mpc.h>
5604int
5605main ()
5606{
5607
362c6d2f
KG
5608 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5609 choke me
5610 #endif
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619#include <mpc.h>
5620int
5621main ()
5622{
5623
5624 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630}
5631_ACEOF
5213506e
RW
5632if ac_fn_c_try_compile "$LINENO"; then :
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5634$as_echo "yes" >&6; }
362c6d2f
KG
5635else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5637$as_echo "buggy but acceptable" >&6; }
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5640else
5213506e 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5642$as_echo "no" >&6; }; have_gmp=no
acd26225 5643fi
5213506e 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5645 fi
5646
5647 # Now check the MPFR library.
5648 if test x"$have_gmp" = xyes; then
5649 saved_LIBS="$LIBS"
5650 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5652$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5654/* end confdefs.h. */
3a5729ea 5655#include <mpc.h>
acd26225
KG
5656int
5657main ()
5658{
5659
5660 mpfr_t n;
5661 mpfr_t x;
3a5729ea 5662 mpc_t c;
acd26225
KG
5663 int t;
5664 mpfr_init (n);
5665 mpfr_init (x);
5666 mpfr_atan2 (n, n, x, GMP_RNDN);
5667 mpfr_erfc (n, x, GMP_RNDN);
5668 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5669 mpfr_clear(n);
5670 mpfr_clear(x);
5671 mpc_init2 (c, 53);
5672 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5673 mpc_cosh (c, c, MPC_RNDNN);
5674 mpc_pow (c, c, c, MPC_RNDNN);
5675 mpc_acosh (c, c, MPC_RNDNN);
5676 mpc_clear (c);
1c710c3c
DJ
5677
5678 ;
5679 return 0;
5680}
5681_ACEOF
5213506e
RW
5682if ac_fn_c_try_link "$LINENO"; then :
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684$as_echo "yes" >&6; }
1c710c3c 5685else
5213506e
RW
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5688fi
5213506e
RW
5689rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5691 LIBS="$saved_LIBS"
5692 fi
5693
e69bf64b 5694 CFLAGS="$saved_CFLAGS"
6de9cd9a 5695
362c6d2f
KG
5696# The library versions listed in the error message below should match
5697# the HARD-minimums enforced above.
e69bf64b 5698 if test x$have_gmp != xyes; then
f7d6bc01 5699 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5700Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5701their locations. Source code for these libraries can be found at
5702their respective hosting sites as well as at
5703ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5704http://gcc.gnu.org/install/prerequisites.html for additional info. If
5705you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5706make sure that you have installed both the libraries and the header
5707files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5708 fi
70ec446f
KG
5709fi
5710
acd26225
KG
5711# Flags needed for both GMP, MPFR and/or MPC.
5712
5713
6de9cd9a
DN
5714
5715
5716
9e3eba15 5717
0ff2d841 5718
f38095f3
JM
5719# Allow host libstdc++ to be specified for static linking with PPL.
5720
5213506e
RW
5721# Check whether --with-host-libstdcxx was given.
5722if test "${with_host_libstdcxx+set}" = set; then :
5723 withval=$with_host_libstdcxx;
5724fi
f38095f3 5725
f38095f3
JM
5726
5727case $with_host_libstdcxx in
5728 no|yes)
5213506e 5729 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5730 ;;
5731esac
f8bf9252 5732
0b21f5d3 5733# Libraries to use for stage1 or when not bootstrapping.
00020c16 5734
0b21f5d3
EB
5735# Check whether --with-stage1-libs was given.
5736if test "${with_stage1_libs+set}" = set; then :
5737 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5738 stage1_libs=
00020c16 5739 else
0b21f5d3 5740 stage1_libs=$withval
00020c16
ILT
5741 fi
5742else
0b21f5d3 5743 stage1_libs=$with_host_libstdcxx
5213506e
RW
5744fi
5745
00020c16
ILT
5746
5747
0b21f5d3 5748# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5749
0b21f5d3
EB
5750# Check whether --with-stage1-ldflags was given.
5751if test "${with_stage1_ldflags+set}" = set; then :
5752 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5753 stage1_ldflags=
00020c16 5754 else
0b21f5d3 5755 stage1_ldflags=$withval
00020c16
ILT
5756 fi
5757else
0b21f5d3
EB
5758 stage1_ldflags=
5759 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5760 # if supported. But if the user explicitly specified the libraries to use,
5761 # trust that they are doing what they want.
5762 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5763 stage1_ldflags="-static-libstdc++ -static-libgcc"
5764 fi
5213506e
RW
5765fi
5766
00020c16
ILT
5767
5768
00020c16
ILT
5769# Libraries to use for stage2 and later builds. This defaults to the
5770# argument passed to --with-host-libstdcxx.
5771
5213506e
RW
5772# Check whether --with-boot-libs was given.
5773if test "${with_boot_libs+set}" = set; then :
5774 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5775 poststage1_libs=
5776 else
5777 poststage1_libs=$withval
5778 fi
5779else
00020c16 5780 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5781fi
5782
00020c16
ILT
5783
5784
ed2eaa9f
ILT
5785# Linker flags to use for stage2 and later builds.
5786
5787# Check whether --with-boot-ldflags was given.
5788if test "${with_boot_ldflags+set}" = set; then :
5789 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5790 poststage1_ldflags=
5791 else
5792 poststage1_ldflags=$withval
5793 fi
5794else
5795 poststage1_ldflags=
bec93d73
ILT
5796 # In stages 2 and 3, default to linking libstdc++ and libgcc
5797 # statically. But if the user explicitly specified the libraries to
5798 # use, trust that they are doing what they want.
5799 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5800 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5801 fi
5802fi
5803
5804
5805
625afa23
RG
5806# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5807# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5808# config/isl.m4
5809
5810
5811# Check whether --with-cloog was given.
5812if test "${with_cloog+set}" = set; then :
5813 withval=$with_cloog;
5814fi
f8bf9252
SP
5815
5816
33ad93b9
RG
5817# Check whether --with-isl was given.
5818if test "${with_isl+set}" = set; then :
5819 withval=$with_isl;
5213506e 5820fi
f8bf9252 5821
f8bf9252 5822
625afa23
RG
5823# Treat either --without-cloog or --without-isl as a request to disable
5824# GRAPHITE support and skip all following checks.
5825if test "x$with_isl" != "xno" &&
5826 test "x$with_cloog" != "xno"; then
5827 # Check for ISL
5828
5829
33ad93b9
RG
5830# Check whether --with-isl-include was given.
5831if test "${with_isl_include+set}" = set; then :
5832 withval=$with_isl_include;
5213506e
RW
5833fi
5834
f8bf9252 5835
33ad93b9
RG
5836# Check whether --with-isl-lib was given.
5837if test "${with_isl_lib+set}" = set; then :
5838 withval=$with_isl_lib;
5213506e 5839fi
f8bf9252 5840
f8bf9252 5841
33ad93b9
RG
5842 # Check whether --enable-isl-version-check was given.
5843if test "${enable_isl_version_check+set}" = set; then :
5844 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5845else
5846 ENABLE_ISL_CHECK=yes
7d32a440
SP
5847fi
5848
5849
33ad93b9
RG
5850 # Initialize isllibs and islinc.
5851 case $with_isl in
5852 no)
5853 isllibs=
5854 islinc=
5855 ;;
5856 "" | yes)
5857 ;;
5858 *)
5859 isllibs="-L$with_isl/lib"
5860 islinc="-I$with_isl/include"
5861 ;;
5862 esac
5863 if test "x${with_isl_include}" != x ; then
5864 islinc="-I$with_isl_include"
5865 fi
5866 if test "x${with_isl_lib}" != x; then
5867 isllibs="-L$with_isl_lib"
5868 fi
5869 if test "x${islinc}" = x && test "x${isllibs}" = x \
5870 && test -d ${srcdir}/isl; then
5871 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5872 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5873 ENABLE_ISL_CHECK=no
2869f0ff
RB
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5875$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5876 fi
7d32a440 5877
7d32a440 5878
7d32a440 5879
33ad93b9
RG
5880 if test "${ENABLE_ISL_CHECK}" = yes ; then
5881 _isl_saved_CFLAGS=$CFLAGS
5882 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5883 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5884
5885 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5886 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5887 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5890$as_echo_n "checking for version 0.10 of ISL... " >&6; }
2869f0ff 5891 if test "$cross_compiling" = yes; then :
2b2d7c53 5892 gcc_cv_isl=yes
33ad93b9
RG
5893else
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5895/* end confdefs.h. */
33ad93b9
RG
5896#include <isl/version.h>
5897 #include <string.h>
7d32a440
SP
5898int
5899main ()
5900{
8247e8b2
RG
5901if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5902 return 1;
5903
7d32a440
SP
5904 ;
5905 return 0;
5906}
5907_ACEOF
33ad93b9
RG
5908if ac_fn_c_try_run "$LINENO"; then :
5909 gcc_cv_isl=yes
d789184e 5910else
33ad93b9 5911 gcc_cv_isl=no
7d32a440 5912fi
33ad93b9
RG
5913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5914 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5915fi
33ad93b9 5916
2869f0ff 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
33ad93b9 5918$as_echo "$gcc_cv_isl" >&6; }
5213506e 5919
33ad93b9
RG
5920 CFLAGS=$_isl_saved_CFLAGS
5921 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5922 LIBS=$_isl_saved_LIBS
7d32a440 5923 fi
f8bf9252 5924
7d32a440 5925
d0ad394c
RB
5926 if test "${gcc_cv_isl}" = no ; then
5927
5928 if test "${ENABLE_ISL_CHECK}" = yes ; then
5929 _isl_saved_CFLAGS=$CFLAGS
5930 _isl_saved_LDFLAGS=$LDFLAGS
5931 _isl_saved_LIBS=$LIBS
5932
5933 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5934 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5935 LIBS="${_isl_saved_LIBS} -lisl"
d0ad394c
RB
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5938$as_echo_n "checking for version 0.11 of ISL... " >&6; }
2869f0ff 5939 if test "$cross_compiling" = yes; then :
d0ad394c
RB
5940 gcc_cv_isl=yes
5941else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h. */
5944#include <isl/version.h>
5945 #include <string.h>
5946int
5947main ()
5948{
5949if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5950 return 1;
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_run "$LINENO"; then :
5957 gcc_cv_isl=yes
5958else
5959 gcc_cv_isl=no
5960fi
5961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5962 conftest.$ac_objext conftest.beam conftest.$ac_ext
5963fi
5964
2869f0ff 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
d0ad394c
RB
5966$as_echo "$gcc_cv_isl" >&6; }
5967
5968 CFLAGS=$_isl_saved_CFLAGS
5969 LDFLAGS=$_isl_saved_LDFLAGS
5970 LIBS=$_isl_saved_LIBS
5971 fi
5972
5973
9847828b
RB
5974 if test "${gcc_cv_isl}" = no ; then
5975
5976 if test "${ENABLE_ISL_CHECK}" = yes ; then
5977 _isl_saved_CFLAGS=$CFLAGS
5978 _isl_saved_LDFLAGS=$LDFLAGS
5979 _isl_saved_LIBS=$LIBS
5980
5981 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5982 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5983 LIBS="${_isl_saved_LIBS} -lisl"
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5986$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5987 if test "$cross_compiling" = yes; then :
5988 gcc_cv_isl=yes
5989else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h. */
5992#include <isl/version.h>
5993 #include <string.h>
5994int
5995main ()
5996{
5997if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5998 return 1;
5999
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_run "$LINENO"; then :
6005 gcc_cv_isl=yes
6006else
6007 gcc_cv_isl=no
6008fi
6009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
6011fi
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6014$as_echo "$gcc_cv_isl" >&6; }
6015
6016 CFLAGS=$_isl_saved_CFLAGS
6017 LDFLAGS=$_isl_saved_LDFLAGS
6018 LIBS=$_isl_saved_LIBS
6019 fi
6020
6021
6022 fi
d0ad394c 6023 fi
f8bf9252 6024
f8bf9252 6025
33ad93b9
RG
6026
6027
33ad93b9
RG
6028 if test "x${with_isl}" = xno; then
6029 graphite_requested=no
6030 elif test "x${with_isl}" != x \
6031 || test "x${with_isl_include}" != x \
6032 || test "x${with_isl_lib}" != x ; then
6033 graphite_requested=yes
6034 else
6035 graphite_requested=no
7d32a440 6036 fi
d789184e 6037
d789184e
SP
6038
6039
33ad93b9
RG
6040 if test "${gcc_cv_isl}" = no ; then
6041 isllibs=
6042 islinc=
6043 fi
6044
6045 if test "${graphite_requested}" = yes \
6046 && test "x${isllibs}" = x \
6047 && test "x${islinc}" = x ; then
f8bf9252 6048
33ad93b9
RG
6049 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6050 fi
f8bf9252 6051
d32ef397 6052
d789184e 6053
625afa23
RG
6054 if test "x$gcc_cv_isl" != "xno"; then
6055 # Check for CLOOG
5213506e 6056
d789184e 6057
9965e3cd 6058# Check whether --with-cloog-include was given.
5213506e
RW
6059if test "${with_cloog_include+set}" = set; then :
6060 withval=$with_cloog_include;
6061fi
d789184e 6062
d789184e 6063
9965e3cd 6064# Check whether --with-cloog-lib was given.
5213506e
RW
6065if test "${with_cloog_lib+set}" = set; then :
6066 withval=$with_cloog_lib;
6067fi
d789184e 6068
d789184e 6069
d32ef397
AS
6070 # Check whether --enable-cloog-version-check was given.
6071if test "${enable_cloog_version_check+set}" = set; then :
6072 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6073else
6074 ENABLE_CLOOG_CHECK=yes
6075fi
6076
6077
6078 # Initialize clooglibs and clooginc.
6079 case $with_cloog in
6080 no)
6081 clooglibs=
6082 clooginc=
6083 ;;
6084 "" | yes)
6085 ;;
6086 *)
6087 clooglibs="-L$with_cloog/lib"
6088 clooginc="-I$with_cloog/include"
6089 ;;
6090 esac
6091 if test "x${with_cloog_include}" != x ; then
6092 clooginc="-I$with_cloog_include"
6093 fi
6094 if test "x${with_cloog_lib}" != x; then
6095 clooglibs="-L$with_cloog_lib"
6096 fi
2869f0ff 6097 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 6098 && test -d ${srcdir}/cloog; then
33ad93b9
RG
6099 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6100 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
2869f0ff
RB
6101 ENABLE_CLOOG_CHECK=no
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6103$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
ab4173cf 6104 fi
ad0abd3c 6105
33ad93b9 6106 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 6107 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
6108
6109
6110
6111
6112
6113 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6114 _cloog_saved_CFLAGS=$CFLAGS
6115 _cloog_saved_LDFLAGS=$LDFLAGS
6116
33ad93b9
RG
6117 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6118 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 6119
6886e444
RG
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6121$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
2869f0ff 6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 6123/* end confdefs.h. */
33ad93b9 6124#include "cloog/version.h"
f8bf9252
SP
6125int
6126main ()
6127{
d32ef397 6128#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
6129 || CLOOG_VERSION_MINOR != 17 \
6130 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
6131 choke me
6132 #endif
f8bf9252
SP
6133 ;
6134 return 0;
6135}
6136_ACEOF
0333b9a6 6137if ac_fn_c_try_compile "$LINENO"; then :
6886e444 6138 gcc_cv_cloog=yes
f8bf9252 6139else
6886e444 6140 gcc_cv_cloog=no
f8bf9252 6141fi
5213506e 6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6886e444 6144$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
6145
6146 CFLAGS=$_cloog_saved_CFLAGS
6147 LDFLAGS=$_cloog_saved_LDFLAGS
6148 fi
f8bf9252 6149
f8bf9252 6150
d0ad394c
RB
6151 if test "${gcc_cv_cloog}" = no ; then
6152
6153
6154
6155 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6156 _cloog_saved_CFLAGS=$CFLAGS
6157 _cloog_saved_LDFLAGS=$LDFLAGS
6158
6159 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6160 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6163$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
2869f0ff 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0ad394c
RB
6165/* end confdefs.h. */
6166#include "cloog/version.h"
6167int
6168main ()
6169{
6170#if CLOOG_VERSION_MAJOR != 0 \
6171 || CLOOG_VERSION_MINOR != 18 \
6172 || CLOOG_VERSION_REVISION < 0
6173 choke me
6174 #endif
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179if ac_fn_c_try_compile "$LINENO"; then :
6180 gcc_cv_cloog=yes
6181else
6182 gcc_cv_cloog=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
d0ad394c
RB
6186$as_echo "$gcc_cv_cloog" >&6; }
6187
6188 CFLAGS=$_cloog_saved_CFLAGS
6189 LDFLAGS=$_cloog_saved_LDFLAGS
6190 fi
6191
6192
6193 fi
f8bf9252
SP
6194
6195
d32ef397
AS
6196
6197
6198
6be7b668
JJ
6199 if test "x${with_cloog}" = xno; then
6200 graphite_requested=no
6201 elif test "x${with_cloog}" != x \
d32ef397
AS
6202 || test "x${with_cloog_include}" != x \
6203 || test "x${with_cloog_lib}" != x ; then
6204 graphite_requested=yes
6205 else
6206 graphite_requested=no
6207 fi
6208
6209
6210
6886e444 6211 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6212 clooglibs=
6213 clooginc=
6214 fi
6215
6216 if test "${graphite_requested}" = yes \
6217 && test "x${clooglibs}" = x \
6218 && test "x${clooginc}" = x ; then
6219
625afa23 6220 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6221 fi
6222
6223
625afa23 6224 fi
d32ef397
AS
6225fi
6226
32d024bf
RG
6227# If either the ISL or the CLooG check failed, disable builds of in-tree
6228# variants of both
625afa23
RG
6229if test "x$with_isl" = xno ||
6230 test "x$with_cloog" = xno ||
6231 test "x$gcc_cv_cloog" = xno ||
6232 test "x$gcc_cv_isl" = xno; then
32d024bf 6233 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6234 islinc=
6235 clooginc=
6236 clooglibs=
32d024bf
RG
6237fi
6238
625afa23
RG
6239
6240
6241
6242
6243
d7f09764
DN
6244# Check for LTO support.
6245# Check whether --enable-lto was given.
6246if test "${enable_lto+set}" = set; then :
6247 enableval=$enable_lto; enable_lto=$enableval
6248else
6249 enable_lto=yes; default_enable_lto=yes
6250fi
6251
6252
7413962d 6253
9a02962b
DK
6254
6255
6256target_elf=no
6257case $target in
6258 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6259 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6260 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6261 target_elf=no
6262 ;;
6263 *)
6264 target_elf=yes
6265 ;;
6266esac
6267
6268if test $target_elf = yes; then :
48215350
DK
6269 # ELF platforms build the lto-plugin always.
6270 build_lto_plugin=yes
9a02962b 6271
9a02962b
DK
6272else
6273 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6274 case $target in
2cd815e7 6275 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6276 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6277 *) enable_lto=no ;;
6278 esac
9a02962b 6279 else
db50fe7d
IS
6280 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6281 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6282 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6283 # warn during gcc/ subconfigure; unless you're bootstrapping with
6284 # -flto it won't be needed until after installation anyway.
6285 case $target in
1cd0b716 6286 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6287 *) if test x"$enable_lto" = x"yes"; then
6288 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6289 fi
6290 ;;
6291 esac
6292 fi
1cd0b716 6293 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6294 # Build it unless LTO was explicitly disabled.
1cd0b716 6295 case $target in
48215350 6296 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6297 *) ;;
6298 esac
48215350 6299
9a02962b
DK
6300fi
6301
d7f09764 6302
f8bf9252 6303
0823efed 6304# By default, C and C++ are the only stage 1 languages.
e1888513 6305stage1_languages=,c,
2805b53a 6306
00020c16 6307# Target libraries that we bootstrap.
ad1e5170 6308bootstrap_target_libs=,target-libgcc,
00020c16 6309
55ffb5ed
NN
6310# Figure out what language subdirectories are present.
6311# Look if the user specified --enable-languages="..."; if not, use
6312# the environment variable $LANGUAGES if defined. $LANGUAGES might
6313# go away some day.
6314# NB: embedded tabs in this IF block -- do not untabify
6315if test -d ${srcdir}/gcc; then
6316 if test x"${enable_languages+set}" != xset; then
6317 if test x"${LANGUAGES+set}" = xset; then
6318 enable_languages="${LANGUAGES}"
6319 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6320 else
6321 enable_languages=all
6322 fi
6323 else
6324 if test x"${enable_languages}" = x ||
6325 test x"${enable_languages}" = xyes;
6326 then
6327 echo configure.in: --enable-languages needs at least one language argument 1>&2
6328 exit 1
6329 fi
6330 fi
6331 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6332
7f26dfa3
FXC
6333 # 'f95' is the old name for the 'fortran' language. We issue a warning
6334 # and make the substitution.
6335 case ,${enable_languages}, in
6336 *,f95,*)
6337 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6338 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6339 ;;
6340 esac
6341
0823efed
DN
6342 # If bootstrapping, C++ must be enabled.
6343 case ",$enable_languages,:$enable_bootstrap" in
6344 *,c++,*:*) ;;
6345 *:yes)
ff3ac0f4
ILT
6346 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6347 enable_languages="${enable_languages},c++"
6348 else
0823efed 6349 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6350 fi
6351 ;;
6352 esac
6353
55ffb5ed
NN
6354 # First scan to see if an enabled language requires some other language.
6355 # We assume that a given config-lang.in will list all the language
6356 # front ends it requires, even if some are required indirectly.
6357 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6358 case ${lang_frag} in
6359 ..) ;;
6360 # The odd quoting in the next line works around
6361 # an apparent bug in bash 1.12 on linux.
6362 ${srcdir}/gcc/[*]/config-lang.in) ;;
6363 *)
69ecd18f
ILT
6364 # From the config-lang.in, get $language, $lang_requires, and
6365 # $lang_requires_boot_languages.
55ffb5ed
NN
6366 language=
6367 lang_requires=
69ecd18f 6368 lang_requires_boot_languages=
55ffb5ed 6369 . ${lang_frag}
69ecd18f 6370 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6371 case ,${enable_languages}, in
6372 *,$other,*) ;;
6373 *,all,*) ;;
6374 *,$language,*)
6375 echo " \`$other' language required by \`$language'; enabling" 1>&2
6376 enable_languages="${enable_languages},${other}"
6377 ;;
6378 esac
6379 done
69ecd18f
ILT
6380 for other in ${lang_requires_boot_languages} ; do
6381 if test "$other" != "c"; then
6382 case ,${enable_stage1_languages}, in
6383 *,$other,*) ;;
6384 *,all,*) ;;
6385 *)
6386 case ,${enable_languages}, in
6387 *,$language,*)
6388 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6389 enable_stage1_languages="$enable_stage1_languages,${other}"
6390 ;;
6391 esac
6392 ;;
6393 esac
6394 fi
6395 done
55ffb5ed
NN
6396 ;;
6397 esac
6398 done
6399
e1888513 6400 new_enable_languages=,c,
d7f09764
DN
6401
6402 # If LTO is enabled, add the LTO front end.
6403 extra_host_libiberty_configure_flags=
6404 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6405 case ,${enable_languages}, in
6406 *,lto,*) ;;
6407 *) enable_languages="${enable_languages},lto" ;;
6408 esac
1cd0b716 6409 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6410 configdirs="$configdirs lto-plugin"
6411 extra_host_libiberty_configure_flags=--enable-shared
6412 fi
6413 fi
6414
6415
55ffb5ed 6416 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6417 potential_languages=,c,
55ffb5ed 6418
4da3b0f8
ILT
6419 enabled_target_libs=
6420 disabled_target_libs=
6421
55ffb5ed
NN
6422 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6423 case ${lang_frag} in
6424 ..) ;;
6425 # The odd quoting in the next line works around
6426 # an apparent bug in bash 1.12 on linux.
6427 ${srcdir}/gcc/[*]/config-lang.in) ;;
6428 *)
1c710c3c 6429 # From the config-lang.in, get $language, $target_libs,
2805b53a 6430 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6431 language=
6432 target_libs=
6433 lang_dirs=
1546bb64 6434 subdir_requires=
e1888513
PB
6435 boot_language=no
6436 build_by_default=yes
55ffb5ed 6437 . ${lang_frag}
e1888513
PB
6438 if test x${language} = x; then
6439 echo "${lang_frag} doesn't set \$language." 1>&2
6440 exit 1
6441 fi
6442
78767fd9 6443 if test "$language" = "c++"; then
0823efed 6444 boot_language=yes
00020c16
ILT
6445 fi
6446
178f875a 6447 add_this_lang=no
e1888513
PB
6448 case ,${enable_languages}, in
6449 *,${language},*)
d4a10d0a
SB
6450 # Language was explicitly selected; include it
6451 # unless it is C, which is enabled by default.
6452 if test "$language" != "c"; then
6453 add_this_lang=yes
6454 fi
55ffb5ed 6455 ;;
e1888513
PB
6456 *,all,*)
6457 # 'all' was selected, select it if it is a default language
178f875a
JM
6458 if test "$language" != "c"; then
6459 add_this_lang=${build_by_default}
6460 fi
55ffb5ed
NN
6461 ;;
6462 esac
6de9cd9a 6463
1546bb64 6464 # Disable languages that need other directories if these aren't available.
95695ad3 6465 for i in $subdir_requires; do
b6348cb3 6466 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6467 case ,${enable_languages}, in
6468 *,${language},*)
6469 # Specifically requested language; tell them.
5213506e 6470 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6471 ;;
6472 *)
6473 # Silently disable.
e1888513 6474 add_this_lang=unsupported
1546bb64
PB
6475 ;;
6476 esac
6477 done
6478
e1888513
PB
6479 # Disable Ada if no preexisting GNAT is available.
6480 case ,${enable_languages},:${language}:${have_gnat} in
6481 *,${language},*:ada:no)
6482 # Specifically requested language; tell them.
5213506e 6483 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6484 ;;
6485 *:ada:no)
6486 # Silently disable.
6487 add_this_lang=unsupported
6488 ;;
6489 esac
6490
4fab7234
HPN
6491 # Disable a language that is unsupported by the target.
6492 case " $unsupported_languages " in
6493 *" $language "*)
e1888513 6494 add_this_lang=unsupported
4fab7234
HPN
6495 ;;
6496 esac
6497
6de9cd9a 6498 case $add_this_lang in
e1888513 6499 unsupported)
55ffb5ed 6500 # Remove language-dependent dirs.
4da3b0f8
ILT
6501 disabled_target_libs="$disabled_target_libs $target_libs"
6502 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6503 ;;
e1888513
PB
6504 no)
6505 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6506 disabled_target_libs="$disabled_target_libs $target_libs"
6507 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6508 potential_languages="${potential_languages}${language},"
6509 ;;
6510 yes)
6511 new_enable_languages="${new_enable_languages}${language},"
6512 potential_languages="${potential_languages}${language},"
2805b53a 6513 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6514 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6515 case "${boot_language}:,$enable_stage1_languages," in
6516 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6517 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6518 case ",$stage1_languages," in
6519 *,$language,* | ,yes, | ,all,) ;;
6520 *) stage1_languages="${stage1_languages}${language}," ;;
6521 esac
00020c16
ILT
6522 # We need to bootstrap any supporting libraries.
6523 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6524 ;;
6525 esac
6526 ;;
55ffb5ed
NN
6527 esac
6528 ;;
6529 esac
6530 done
6531
4da3b0f8
ILT
6532 # Add target libraries which are only needed for disabled languages
6533 # to noconfigdirs.
6534 if test -n "$disabled_target_libs"; then
6535 for dir in $disabled_target_libs; do
6536 case " $enabled_target_libs " in
6537 *" ${dir} "*) ;;
6538 *) noconfigdirs="$noconfigdirs $dir" ;;
6539 esac
6540 done
6541 fi
6542
5213506e
RW
6543 # Check whether --enable-stage1-languages was given.
6544if test "${enable_stage1_languages+set}" = set; then :
6545 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6546 ,no,|,,)
6547 # Set it to something that will have no effect in the loop below
6548 enable_stage1_languages=c ;;
6549 ,yes,)
6550 enable_stage1_languages=`echo $new_enable_languages | \
6551 sed -e "s/^,//" -e "s/,$//" ` ;;
6552 *,all,*)
6553 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6554 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6555 esac
6556
6557 # Add "good" languages from enable_stage1_languages to stage1_languages,
6558 # while "bad" languages go in missing_languages. Leave no duplicates.
6559 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6560 case $potential_languages in
6561 *,$i,*)
6562 case $stage1_languages in
6563 *,$i,*) ;;
6564 *) stage1_languages="$stage1_languages$i," ;;
6565 esac ;;
6566 *)
6567 case $missing_languages in
6568 *,$i,*) ;;
6569 *) missing_languages="$missing_languages$i," ;;
6570 esac ;;
6571 esac
6572 done
5213506e
RW
6573fi
6574
e1888513
PB
6575
6576 # Remove leading/trailing commas that were added for simplicity
6577 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6578 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6579 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6580 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6581
55ffb5ed 6582 if test "x$missing_languages" != x; then
5213506e 6583 as_fn_error "
0cf085e4 6584The following requested languages could not be built: ${missing_languages}
5213506e 6585Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6586 fi
55ffb5ed
NN
6587 if test "x$new_enable_languages" != "x$enable_languages"; then
6588 echo The following languages will be built: ${new_enable_languages}
e1888513 6589 enable_languages="$new_enable_languages"
55ffb5ed 6590 fi
e1888513 6591
1c710c3c 6592
b2eaac4a 6593 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6594fi
6595
27079765
AH
6596# Handle --disable-<component> generically.
6597for dir in $configdirs $build_configdirs $target_configdirs ; do
6598 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6599 varname=`echo $dirname | sed -e s/+/_/g`
6600 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6601 noconfigdirs="$noconfigdirs $dir"
6602 fi
6603done
6604
7cd0cf9c 6605# Check for Boehm's garbage collector
5213506e
RW
6606# Check whether --enable-objc-gc was given.
6607if test "${enable_objc_gc+set}" = set; then :
6608 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6609 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6610 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6611 ;;
6612esac
5213506e
RW
6613fi
6614
7cd0cf9c
DA
6615
6616# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6617case ,${enable_languages},:${enable_objc_gc} in
6618 *,objc,*:yes)
7cd0cf9c
DA
6619 # Keep target-boehm-gc if requested for Objective-C.
6620 ;;
7cd0cf9c 6621 *)
2a79fd67
DA
6622 # Otherwise remove target-boehm-gc depending on target-libjava.
6623 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6624 noconfigdirs="$noconfigdirs target-boehm-gc"
6625 fi
7cd0cf9c
DA
6626 ;;
6627esac
6628
2077db1b 6629# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 6630case ,${enable_languages}, in
9696698a 6631 *,c++,*) ;;
99776ebd 6632 *)
186bc287 6633 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6634 ;;
6635esac
6636
ee6a22df
L
6637# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6638# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6639# If we have the source for $noconfigdirs entries, add them to $notsupp.
6640
6641notsupp=""
6642for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6643 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6644 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6645 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6646 if test -r $srcdir/$dirname/configure ; then
6647 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6648 true
6649 else
6650 notsupp="$notsupp $dir"
6651 fi
6652 fi
6653 fi
ee6a22df
L
6654 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6655 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6656 if test -r $srcdir/$dirname/configure ; then
6657 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6658 true
6659 else
6660 notsupp="$notsupp $dir"
6661 fi
6662 fi
6663 fi
55ffb5ed
NN
6664 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6665 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6666 if test -r $srcdir/$dirname/configure ; then
6667 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6668 true
6669 else
6670 notsupp="$notsupp $dir"
6671 fi
6672 fi
6673 fi
6674done
6675
55ffb5ed
NN
6676# Quietly strip out all directories which aren't configurable in this tree.
6677# This relies on all configurable subdirectories being autoconfiscated, which
6678# is now the case.
23f6b2f9
PB
6679build_configdirs_all="$build_configdirs"
6680build_configdirs=
6681for i in ${build_configdirs_all} ; do
1c710c3c 6682 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6683 if test -f ${srcdir}/$j/configure ; then
6684 build_configdirs="${build_configdirs} $i"
6685 fi
6686done
6687
55ffb5ed
NN
6688configdirs_all="$configdirs"
6689configdirs=
6690for i in ${configdirs_all} ; do
6691 if test -f ${srcdir}/$i/configure ; then
6692 configdirs="${configdirs} $i"
6693 fi
6694done
23f6b2f9 6695
55ffb5ed
NN
6696target_configdirs_all="$target_configdirs"
6697target_configdirs=
6698for i in ${target_configdirs_all} ; do
1c710c3c 6699 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6700 if test -f ${srcdir}/$j/configure ; then
6701 target_configdirs="${target_configdirs} $i"
6702 fi
6703done
6704
6705# Produce a warning message for the subdirs we can't configure.
6706# This isn't especially interesting in the Cygnus tree, but in the individual
6707# FSF releases, it's important to let people know when their machine isn't
6708# supported by the one or two programs in a package.
6709
6710if test -n "${notsupp}" && test -z "${norecursion}" ; then
6711 # If $appdirs is non-empty, at least one of those directories must still
6712 # be configured, or we error out. (E.g., if the gas release supports a
6713 # specified target in some subdirs but not the gas subdir, we shouldn't
6714 # pretend that all is well.)
6715 if test -n "$appdirs" ; then
6716 for dir in $appdirs ; do
6717 if test -r $dir/Makefile.in ; then
6718 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6719 appdirs=""
6720 break
6721 fi
23f6b2f9 6722 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6723 appdirs=""
6724 break
6725 fi
6726 fi
6727 done
6728 if test -n "$appdirs" ; then
6729 echo "*** This configuration is not supported by this package." 1>&2
6730 exit 1
6731 fi
6732 fi
6733 # Okay, some application will build, or we don't care to check. Still
6734 # notify of subdirs not getting built.
6735 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6736 echo " ${notsupp}" 1>&2
6737 echo " (Any other directories should still work fine.)" 1>&2
6738fi
6739
6740case "$host" in
6741 *msdosdjgpp*)
6742 enable_gdbtk=no ;;
6743esac
6744
c3a86da9
DJ
6745# To find our prefix, in gcc_cv_tool_prefix.
6746
6747# The user is always right.
6748if test "${PATH_SEPARATOR+set}" != set; then
6749 echo "#! /bin/sh" >conf$$.sh
6750 echo "exit 0" >>conf$$.sh
6751 chmod +x conf$$.sh
6752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6753 PATH_SEPARATOR=';'
6754 else
6755 PATH_SEPARATOR=:
6756 fi
6757 rm -f conf$$.sh
6758fi
6759
6760
6761
6762if test "x$exec_prefix" = xNONE; then
6763 if test "x$prefix" = xNONE; then
6764 gcc_cv_tool_prefix=$ac_default_prefix
6765 else
6766 gcc_cv_tool_prefix=$prefix
6767 fi
6768else
6769 gcc_cv_tool_prefix=$exec_prefix
6770fi
6771
6772# If there is no compiler in the tree, use the PATH only. In any
6773# case, if there is no compiler in the tree nobody should use
6774# AS_FOR_TARGET and LD_FOR_TARGET.
6775if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6776 gcc_version=`cat $srcdir/gcc/BASE-VER`
6777 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6778 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6779 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6780 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6783else
6784 gcc_cv_tool_dirs=
6785fi
6786
6787if test x$build = x$target && test -n "$md_exec_prefix"; then
6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6789fi
6790
6791
6792
55ffb5ed
NN
6793copy_dirs=
6794
1c710c3c 6795
5213506e
RW
6796# Check whether --with-build-sysroot was given.
6797if test "${with_build_sysroot+set}" = set; then :
6798 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6799 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6800 fi
6801else
6802 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6803fi
526635cb
MM
6804
6805
c8aea42c 6806
5213506e
RW
6807
6808# Check whether --with-debug-prefix-map was given.
6809if test "${with_debug_prefix_map+set}" = set; then :
6810 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6811 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6812 for debug_map in $withval; do
6813 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6814 done
6815 fi
6816else
6817 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6818fi
6819
c8aea42c
PB
6820
6821
1c8bd6a3
PB
6822# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6823# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6824# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6825# We want to ensure that TARGET libraries (which we know are built with
6826# gcc) are built with "-O2 -g", so include those options when setting
6827# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6828if test "x$CFLAGS_FOR_TARGET" = x; then
6829 CFLAGS_FOR_TARGET=$CFLAGS
6830 case " $CFLAGS " in
6831 *" -O2 "*) ;;
bd8e704f 6832 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6833 esac
6834 case " $CFLAGS " in
6835 *" -g "* | *" -g3 "*) ;;
bd8e704f 6836 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6837 esac
6838fi
6839
6840
6841if test "x$CXXFLAGS_FOR_TARGET" = x; then
6842 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6843 case " $CXXFLAGS " in
6844 *" -O2 "*) ;;
bd8e704f 6845 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6846 esac
6847 case " $CXXFLAGS " in
6848 *" -g "* | *" -g3 "*) ;;
bd8e704f 6849 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6850 esac
6851fi
6852
6853
6f57bdf6
DK
6854
6855
55ffb5ed
NN
6856# Handle --with-headers=XXX. If the value is not "yes", the contents of
6857# the named directory are copied to $(tooldir)/sys-include.
6858if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6859 if test x${is_cross_compiler} = xno ; then
6860 echo 1>&2 '***' --with-headers is only supported when cross compiling
6861 exit 1
6862 fi
6863 if test x"${with_headers}" != xyes ; then
c3a86da9 6864 x=${gcc_cv_tool_prefix}
1c710c3c 6865 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6866 fi
6867fi
6868
6869# Handle --with-libs=XXX. If the value is not "yes", the contents of
6870# the name directories are copied to $(tooldir)/lib. Multiple directories
6871# are permitted.
6872if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6873 if test x${is_cross_compiler} = xno ; then
6874 echo 1>&2 '***' --with-libs is only supported when cross compiling
6875 exit 1
6876 fi
6877 if test x"${with_libs}" != xyes ; then
6878 # Copy the libraries in reverse order, so that files in the first named
6879 # library override files in subsequent libraries.
c3a86da9 6880 x=${gcc_cv_tool_prefix}
55ffb5ed 6881 for l in ${with_libs}; do
1c710c3c 6882 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6883 done
6884 fi
6885fi
6886
d7f09764 6887# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6888#
6889# This is done by determining whether or not the appropriate directory
6890# is available, and by checking whether or not specific configurations
6891# have requested that this magic not happen.
1c710c3c
DJ
6892#
6893# The command line options always override the explicit settings in
e8b05380
PB
6894# configure.in, and the settings in configure.in override this magic.
6895#
1c710c3c 6896# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6897# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6898# --without-gnu-ld options for the configure script. Similarly, if
6899# the default is to use the included zlib and you don't want to do that,
6900# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6901
6902if test x${use_gnu_as} = x &&
6903 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6904 with_gnu_as=yes
6905 extra_host_args="$extra_host_args --with-gnu-as"
6906fi
6907
6908if test x${use_gnu_ld} = x &&
5afab7ad 6909 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6910 with_gnu_ld=yes
6911 extra_host_args="$extra_host_args --with-gnu-ld"
6912fi
6913
d7f09764
DN
6914if test x${use_included_zlib} = x &&
6915 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6916 :
6917else
6918 with_system_zlib=yes
6919 extra_host_args="$extra_host_args --with-system-zlib"
6920fi
6921
e8b05380
PB
6922# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6923# can detect this case.
6924
6925if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6926 with_newlib=yes
6927 extra_host_args="$extra_host_args --with-newlib"
6928fi
6929
55ffb5ed
NN
6930# Handle ${copy_dirs}
6931set fnord ${copy_dirs}
6932shift
6933while test $# != 0 ; do
6934 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6935 :
6936 else
6937 echo Copying $1 to $2
6938
6939 # Use the install script to create the directory and all required
6940 # parent directories.
6941 if test -d $2 ; then
6942 :
6943 else
6944 echo >config.temp
6945 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6946 fi
6947
6948 # Copy the directory, assuming we have tar.
6949 # FIXME: Should we use B in the second tar? Not all systems support it.
6950 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6951
6952 # It is the responsibility of the user to correctly adjust all
6953 # symlinks. If somebody can figure out how to handle them correctly
6954 # here, feel free to add the code.
6955
6956 echo $1 > $2/COPIED
6957 fi
6958 shift; shift
6959done
6960
e8b05380
PB
6961# Determine a target-dependent exec_prefix that the installed
6962# gcc will search in. Keep this list sorted by triplet, with
6963# the *-*-osname triplets last.
6964md_exec_prefix=
6965case "${target}" in
30b74385 6966 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6967 md_exec_prefix=/dev/env/DJDIR/bin
6968 ;;
e8b05380 6969 *-*-hpux* | \
e8b05380 6970 *-*-nto-qnx* | \
6de66370 6971 *-*-solaris2*)
e8b05380
PB
6972 md_exec_prefix=/usr/ccs/bin
6973 ;;
6974esac
6975
671aa708
NN
6976extra_arflags_for_target=
6977extra_nmflags_for_target=
6978extra_ranlibflags_for_target=
6979target_makefile_frag=/dev/null
6980case "${target}" in
58e24147
AM
6981 spu-*-*)
6982 target_makefile_frag="config/mt-spu"
6983 ;;
d91491e5 6984 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6985 target_makefile_frag="config/mt-sde"
6986 ;;
1ec3b87b
RS
6987 mipsisa*-*-elfoabi*)
6988 target_makefile_frag="config/mt-mips-elfoabi"
6989 ;;
08d0963a
RS
6990 mips*-*-*linux* | mips*-*-gnu*)
6991 target_makefile_frag="config/mt-mips-gnu"
6992 ;;
416ac4d4 6993 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6994 target_makefile_frag="config/mt-gnu"
671aa708
NN
6995 ;;
6996 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6997 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6998 # commands to handle both 32-bit and 64-bit objects. These flags are
6999 # harmless if we're using GNU nm or ar.
7000 extra_arflags_for_target=" -X32_64"
7001 extra_nmflags_for_target=" -B -X32_64"
7002 ;;
671aa708
NN
7003esac
7004
7005alphaieee_frag=/dev/null
7006case $target in
7007 alpha*-*-*)
7008 # This just makes sure to use the -mieee option to build target libs.
7009 # This should probably be set individually by each library.
7010 alphaieee_frag="config/mt-alphaieee"
7011 ;;
7012esac
7013
7014# If --enable-target-optspace always use -Os instead of -O2 to build
7015# the target libraries, similarly if it is not specified, use -Os
7016# on selected platforms.
7017ospace_frag=/dev/null
7018case "${enable_target_optspace}:${target}" in
7019 yes:*)
7020 ospace_frag="config/mt-ospace"
7021 ;;
7022 :d30v-*)
7023 ospace_frag="config/mt-d30v"
7024 ;;
7025 :m32r-* | :d10v-* | :fr30-*)
7026 ospace_frag="config/mt-ospace"
7027 ;;
7028 no:* | :*)
7029 ;;
7030 *)
7031 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7032 ;;
7033esac
7034
671aa708
NN
7035# Some systems (e.g., one of the i386-aix systems the gas testers are
7036# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7037tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7038build_tooldir=${tooldir}
7039
671aa708
NN
7040# Create a .gdbinit file which runs the one in srcdir
7041# and tells GDB to look there for source files.
7042
7043if test -r ${srcdir}/.gdbinit ; then
7044 case ${srcdir} in
7045 .) ;;
7046 *) cat > ./.gdbinit <<EOF
7047# ${NO_EDIT}
7048dir ${srcdir}
7049dir .
7050source ${srcdir}/.gdbinit
7051EOF
7052 ;;
7053 esac
7054fi
7055
671aa708
NN
7056# Make sure that the compiler is able to generate an executable. If it
7057# can't, we are probably in trouble. We don't care whether we can run the
7058# executable--we might be using a cross compiler--we only care whether it
7059# can be created. At this point the main configure script has set CC.
7060we_are_ok=no
7061echo "int main () { return 0; }" > conftest.c
7062${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7063if test $? = 0 ; then
7064 if test -s conftest || test -s conftest.exe ; then
7065 we_are_ok=yes
7066 fi
1c710c3c 7067fi
671aa708
NN
7068case $we_are_ok in
7069 no)
7070 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7071 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7072 rm -f conftest*
7073 exit 1
7074 ;;
7075esac
7076rm -f conftest*
7077
d89f0ad6 7078# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7079case "${host}" in
7080 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7081 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7082 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7083 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7084esac
7085
d89f0ad6
AL
7086# On systems where the dynamic library environment variable is PATH,
7087# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7088# built executables to PATH.
7089if test "$RPATH_ENVVAR" = PATH; then
7090 GCC_SHLIB_SUBDIR=/shlib
7091else
7092 GCC_SHLIB_SUBDIR=
7093fi
7094
671aa708
NN
7095# Record target_configdirs and the configure arguments for target and
7096# build configuration in Makefile.
7097target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7098build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7099
ad1e5170
JR
7100# If we are building libgomp, bootstrap it.
7101if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7102 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7103fi
7104
ac8701fe
L
7105# If we are building libsanitizer, bootstrap it.
7106if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7107 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7108fi
7109
2077db1b
CT
7110# If we are building libvtv, bootstrap it.
7111if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7112 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7113fi
7114
671aa708
NN
7115# Determine whether gdb needs tk/tcl or not.
7116# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7117# and in that case we want gdb to be built without tk. Ugh!
7118# In fact I believe gdb is the *only* package directly dependent on tk,
7119# so we should be able to put the 'maybe's in unconditionally and
7120# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7121# 100% sure that that's safe though.
e914a571 7122
b4f96efe 7123gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7124case "$enable_gdbtk" in
7125 no)
7126 GDB_TK="" ;;
e914a571
AC
7127 yes)
7128 GDB_TK="${gdb_tk}" ;;
671aa708 7129 *)
e914a571
AC
7130 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7131 # distro. Eventually someone will fix this and move Insight, nee
7132 # gdbtk to a separate directory.
7133 if test -d ${srcdir}/gdb/gdbtk ; then
7134 GDB_TK="${gdb_tk}"
7135 else
7136 GDB_TK=""
7137 fi
7138 ;;
671aa708 7139esac
ef9db8d5
DJ
7140CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7141INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7142
60975492 7143# Strip out unwanted targets.
8b87bb96
NN
7144
7145# While at that, we remove Makefiles if we were started for recursive
7146# configuration, so that the top-level Makefile reconfigures them,
7147# like we used to do when configure itself was recursive.
8b87bb96 7148
3e54529c
RW
7149# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7150# but now we're fixing up the Makefile ourselves with the additional
7151# commands passed to AC_CONFIG_FILES. Use separate variables
7152# extrasub-{build,host,target} not because there is any reason to split
7153# the substitutions up that way, but only to remain below the limit of
7154# 99 commands in a script, for HP-UX sed.
7155# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7156
79cd2b23
RW
7157case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7158 yes:yes:*\ gold\ *:*,c++,*) ;;
7159 yes:yes:*\ gold\ *:*)
7160 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7161 ;;
7162esac
7163
ce521a9c 7164# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7165case $enable_bootstrap in
f516a7da 7166 yes)
e12c4094
AO
7167 bootstrap_suffix=bootstrap
7168 BUILD_CONFIG=bootstrap-debug
7169 ;;
f516a7da 7170 no)
e12c4094
AO
7171 bootstrap_suffix=no-bootstrap
7172 BUILD_CONFIG=
7173 ;;
f516a7da
PB
7174esac
7175
e12c4094
AO
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7177$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7178
7179
7180# Check whether --with-build-config was given.
7181if test "${with_build_config+set}" = set; then :
7182 withval=$with_build_config; case $with_build_config in
7183 yes) with_build_config= ;;
7184 no) with_build_config= BUILD_CONFIG= ;;
7185 esac
7186fi
7187
7188
e12c4094
AO
7189if test "x${with_build_config}" != x; then
7190 BUILD_CONFIG=$with_build_config
7191else
7192 case $BUILD_CONFIG in
7193 bootstrap-debug)
7194 if echo "int f (void) { return 0; }" > conftest.c &&
7195 ${CC} -c conftest.c &&
7196 mv conftest.o conftest.o.g0 &&
7197 ${CC} -c -g conftest.c &&
7198 mv conftest.o conftest.o.g &&
615c8ffa 7199 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7200 :
7201 else
7202 BUILD_CONFIG=
7203 fi
7204 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7205 ;;
7206 esac
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7209$as_echo "$BUILD_CONFIG" >&6; }
7210
7211
3e54529c 7212extrasub_build=
23f6b2f9 7213for module in ${build_configdirs} ; do
5607edfd
PB
7214 if test -z "${no_recursion}" \
7215 && test -f ${build_subdir}/${module}/Makefile; then
7216 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7217 rm -f ${build_subdir}/${module}/Makefile
7218 fi
3e54529c 7219 extrasub_build="$extrasub_build
5607edfd
PB
7220/^@if build-$module\$/d
7221/^@endif build-$module\$/d
7222/^@if build-$module-$bootstrap_suffix\$/d
7223/^@endif build-$module-$bootstrap_suffix\$/d"
7224done
3e54529c 7225extrasub_host=
5607edfd 7226for module in ${configdirs} ; do
a6fbc1e2 7227 if test -z "${no_recursion}"; then
f063a9ed 7228 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7229 if test -f ${file}; then
7230 echo 1>&2 "*** removing ${file} to force reconfigure"
7231 rm -f ${file}
7232 fi
7233 done
5607edfd 7234 fi
3e54529c 7235 extrasub_host="$extrasub_host
5607edfd
PB
7236/^@if $module\$/d
7237/^@endif $module\$/d
7238/^@if $module-$bootstrap_suffix\$/d
7239/^@endif $module-$bootstrap_suffix\$/d"
7240done
3e54529c 7241extrasub_target=
5607edfd
PB
7242for module in ${target_configdirs} ; do
7243 if test -z "${no_recursion}" \
7244 && test -f ${target_subdir}/${module}/Makefile; then
7245 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7246 rm -f ${target_subdir}/${module}/Makefile
7247 fi
00020c16
ILT
7248
7249 # We only bootstrap target libraries listed in bootstrap_target_libs.
7250 case $bootstrap_target_libs in
7251 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7252 *) target_bootstrap_suffix=no-bootstrap ;;
7253 esac
7254
3e54529c 7255 extrasub_target="$extrasub_target
5607edfd
PB
7256/^@if target-$module\$/d
7257/^@endif target-$module\$/d
00020c16
ILT
7258/^@if target-$module-$target_bootstrap_suffix\$/d
7259/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7260done
7261
3e54529c
RW
7262# Do the final fixup along with target modules.
7263extrasub_target="$extrasub_target
60975492 7264/^@if /,/^@endif /d"
671aa708
NN
7265
7266# Create the serialization dependencies. This uses a temporary file.
7267
5213506e
RW
7268# Check whether --enable-serial-configure was given.
7269if test "${enable_serial_configure+set}" = set; then :
7270 enableval=$enable_serial_configure;
7271fi
ade82b16
AO
7272
7273
bf1d3e81
NN
7274case ${enable_serial_configure} in
7275 yes)
7276 enable_serial_build_configure=yes
7277 enable_serial_host_configure=yes
7278 enable_serial_target_configure=yes
7279 ;;
7280esac
7281
671aa708
NN
7282# These force 'configure's to be done one at a time, to avoid problems
7283# with contention over a shared config.cache.
7284rm -f serdep.tmp
ade82b16 7285echo '# serdep.tmp' > serdep.tmp
671aa708 7286olditem=
bf1d3e81 7287test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7288for item in ${build_configdirs} ; do
7289 case ${olditem} in
7290 "") ;;
ade82b16 7291 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7292 esac
7293 olditem=${item}
7294done
7295olditem=
bf1d3e81 7296test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7297for item in ${configdirs} ; do
7298 case ${olditem} in
7299 "") ;;
ade82b16 7300 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7301 esac
7302 olditem=${item}
7303done
7304olditem=
bf1d3e81 7305test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7306for item in ${target_configdirs} ; do
7307 case ${olditem} in
7308 "") ;;
ade82b16 7309 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7310 esac
7311 olditem=${item}
7312done
7313serialization_dependencies=serdep.tmp
7314
7315
ade82b16 7316# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7317# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7318# might not want to pass down to subconfigures. The exception being
7319# --cache-file=/dev/null, which is used to turn off the use of cache
7320# files altogether, and which should be passed on to subconfigures.
7321# Also strip program-prefix, program-suffix, and program-transform-name,
7322# so that we can pass down a consistent program-transform-name.
1c710c3c 7323baseargs=
29a63921 7324tbaseargs=
1c710c3c
DJ
7325keep_next=no
7326skip_next=no
7327eval "set -- $ac_configure_args"
44bfc3ac
DJ
7328for ac_arg
7329do
1c710c3c
DJ
7330 if test X"$skip_next" = X"yes"; then
7331 skip_next=no
7332 continue
7333 fi
7334 if test X"$keep_next" = X"yes"; then
7335 case $ac_arg in
7336 *\'*)
7337 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7338 esac
7339 baseargs="$baseargs '$ac_arg'"
29a63921 7340 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7341 keep_next=no
7342 continue
7343 fi
7344
7345 # Handle separated arguments. Based on the logic generated by
7346 # autoconf 2.59.
7347 case $ac_arg in
7348 *=* | --config-cache | -C | -disable-* | --disable-* \
7349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7351 | -with-* | --with-* | -without-* | --without-* | --x)
7352 separate_arg=no
7353 ;;
7354 -*)
7355 separate_arg=yes
7356 ;;
7357 *)
7358 separate_arg=no
7359 ;;
7360 esac
7361
29a63921
AO
7362 skip_targ=no
7363 case $ac_arg in
7364
7365 --with-* | --without-*)
7366 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7367
7368 case $libopt in
7369 *[-_]include)
7370 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7371 ;;
7372 *[-_]lib)
7373 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7374 ;;
7375 *)
7376 lib=$libopt
7377 ;;
7378 esac
7379
7380
7381 case $lib in
33ad93b9 7382 mpc | mpfr | gmp | cloog)
29a63921
AO
7383 # If we're processing --with-$lib, --with-$lib-include or
7384 # --with-$lib-lib, for one of the libs above, and target is
7385 # different from host, don't pass the current argument to any
7386 # target library's configure.
7387 if test x$is_cross_compiler = xyes; then
7388 skip_targ=yes
7389 fi
7390 ;;
7391 esac
7392 ;;
7393 esac
7394
1c710c3c 7395 case "$ac_arg" in
f1a036e4
NC
7396 --cache-file=/dev/null | \
7397 -cache-file=/dev/null )
7398 # Handled here to avoid the test to skip args below.
7399 baseargs="$baseargs '$ac_arg'"
29a63921 7400 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7401 # Assert: $separate_arg should always be no.
7402 keep_next=$separate_arg
7403 ;;
1c710c3c
DJ
7404 --no*)
7405 continue
7406 ;;
7407 --c* | \
7408 --sr* | \
7409 --ho* | \
7410 --bu* | \
7411 --t* | \
7412 --program-* | \
7413 -cache_file* | \
7414 -srcdir* | \
7415 -host* | \
7416 -build* | \
7417 -target* | \
7418 -program-prefix* | \
7419 -program-suffix* | \
7420 -program-transform-name* )
7421 skip_next=$separate_arg
7422 continue
7423 ;;
7424 -*)
7425 # An option. Add it.
7426 case $ac_arg in
7427 *\'*)
7428 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7429 esac
7430 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7431 if test X"$skip_targ" = Xno; then
7432 tbaseargs="$tbaseargs '$ac_arg'"
7433 fi
1c710c3c
DJ
7434 keep_next=$separate_arg
7435 ;;
7436 *)
7437 # Either a variable assignment, or a nonopt (triplet). Don't
7438 # pass it down; let the Makefile handle this.
7439 continue
7440 ;;
7441 esac
7442done
7443# Remove the initial space we just introduced and, as these will be
7444# expanded by make, quote '$'.
7445baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7446
43bb47c2
DJ
7447# Add in --program-transform-name, after --program-prefix and
7448# --program-suffix have been applied to it. Autoconf has already
7449# doubled dollar signs and backslashes in program_transform_name; we want
7450# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7451# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7452# Also, because we want to override the logic in subdir configure scripts to
7453# choose program_transform_name, replace any s,x,x, with s,y,y,.
7454sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7455${program_transform_name}
7456EOF_SED
7457gcc_transform_name=`cat conftestsed.out`
7458rm -f conftestsed.out
7459baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7460tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7461if test "$silent" = yes; then
7462 baseargs="$baseargs --silent"
29a63921 7463 tbaseargs="$tbaseargs --silent"
d9acb717 7464fi
0115d4a3 7465baseargs="$baseargs --disable-option-checking"
29a63921 7466tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7467
ffedf511
RW
7468# Record and document user additions to sub configure arguments.
7469
7470
7471
7472
671aa708
NN
7473# For the build-side libraries, we just need to pretend we're native,
7474# and not use the same cache file. Multilibs are neither needed nor
7475# desired.
ffedf511 7476build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7477
7478# For host modules, accept cache file option, or specification as blank.
7479case "${cache_file}" in
7480"") # empty
7481 cache_file_option="" ;;
7482/* | [A-Za-z]:[\\/]* ) # absolute path
7483 cache_file_option="--cache-file=${cache_file}" ;;
7484*) # relative path
7485 cache_file_option="--cache-file=../${cache_file}" ;;
7486esac
7487
09438bde
NN
7488# Host dirs don't like to share a cache file either, horribly enough.
7489# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7490host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7491
29a63921 7492target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7493
7494# Passing a --with-cross-host argument lets the target libraries know
7495# whether they are being built with a cross-compiler or being built
7496# native. However, it would be better to use other mechanisms to make the
7497# sorts of decisions they want to make on this basis. Please consider
7498# this option to be deprecated. FIXME.
7499if test x${is_cross_compiler} = xyes ; then
1c710c3c 7500 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7501fi
7502
dc683a3f
RW
7503# Default to --enable-multilib.
7504if test x${enable_multilib} = x ; then
671aa708 7505 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7506fi
671aa708
NN
7507
7508# Pass --with-newlib if appropriate. Note that target_configdirs has
7509# changed from the earlier setting of with_newlib.
7510if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7511 target_configargs="--with-newlib ${target_configargs}"
7512fi
7513
6b9eb62c
NN
7514# Different target subdirs use different values of certain variables
7515# (notably CXX). Worse, multilibs use *lots* of different values.
7516# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7517# it doesn't automatically accept command-line overrides of them.
7518# This means it's not safe for target subdirs to share a cache file,
7519# which is disgusting, but there you have it. Hopefully this can be
7520# fixed in future. It's still worthwhile to use a cache file for each
7521# directory. I think.
7522
bebcd931
MS
7523# Pass the appropriate --build, --host, --target and --cache-file arguments.
7524# We need to pass --target, as newer autoconf's requires consistency
7525# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7526target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7527
671aa708
NN
7528FLAGS_FOR_TARGET=
7529case " $target_configdirs " in
7530 *" newlib "*)
7531 case " $target_configargs " in
7532 *" --with-newlib "*)
7533 case "$target" in
5d571eaa 7534 *-cygwin*)
443e6238 7535 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7536 ;;
671aa708
NN
7537 esac
7538
7539 # If we're not building GCC, don't discard standard headers.
7540 if test -d ${srcdir}/gcc; then
7541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7542
7543 if test "${build}" != "${host}"; then
7544 # On Canadian crosses, CC_FOR_TARGET will have already been set
7545 # by `configure', so we won't have an opportunity to add -Bgcc/
7546 # to it. This is right: we don't want to search that directory
7547 # for binaries, but we want the header files in there, so add
7548 # them explicitly.
0463992b 7549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7550
7551 # Someone might think of using the pre-installed headers on
7552 # Canadian crosses, in case the installed compiler is not fully
7553 # compatible with the compiler being built. In this case, it
7554 # would be better to flag an error than risking having
7555 # incompatible object files being constructed. We can't
7556 # guarantee that an error will be flagged, but let's hope the
7557 # compiler will do it, when presented with incompatible header
7558 # files.
7559 fi
7560 fi
7561
7562 case "${target}-${is_cross_compiler}" in
f2a0e225 7563 i[3456789]86-*-linux*-no)
671aa708
NN
7564 # Here host == target, so we don't need to build gcc,
7565 # so we don't want to discard standard headers.
7566 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7567 ;;
7568 *)
7569 # If we're building newlib, use its generic headers last, but search
7570 # for any libc-related directories first (so make it the last -B
7571 # switch).
7572 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7573
7574 # If we're building libgloss, find the startup file, simulator library
7575 # and linker script.
7576 case " $target_configdirs " in
7577 *" libgloss "*)
7578 # Look for startup file, simulator library and maybe linker script.
7579 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7580 # Look for libnosys.a in case the target needs it.
7581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7582 # Most targets have the linker script in the source directory.
7583 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7584 ;;
7585 esac
671aa708
NN
7586 ;;
7587 esac
7588 ;;
7589 esac
7590 ;;
7591esac
5d571eaa 7592
b91f0a41 7593case "$target" in
5d571eaa
OS
7594 x86_64-*mingw* | *-w64-mingw*)
7595 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7596 # however, use a symlink named 'mingw' in ${prefix} .
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7598 ;;
7599 *-mingw*)
7600 # MinGW can't be handled as Cygwin above since it does not use newlib.
7601 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'
7602 ;;
b91f0a41 7603esac
671aa708 7604
6691a79e
ME
7605# Allow the user to override the flags for
7606# our build compiler if desired.
f019adc1
MF
7607if test x"${build}" = x"${host}" ; then
7608 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7609 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7610 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7611fi
6691a79e 7612
671aa708
NN
7613# On Canadian crosses, we'll be searching the right directories for
7614# the previously-installed cross compiler, so don't bother to add
7615# flags for directories within the install tree of the compiler
7616# being built; programs in there won't even run.
7617if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7618 # Search for pre-installed headers if nothing else fits.
9124bc53 7619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7620fi
7621
7622if test "x${use_gnu_ld}" = x &&
7623 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7624 # Arrange for us to find uninstalled linker scripts.
215c351a 7625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7626fi
7627
e88a2c09
DD
7628# Search for other target-specific linker scripts and such.
7629case "${target}" in
3e19841a
PB
7630 mep*)
7631 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7632 ;;
e88a2c09
DD
7633esac
7634
671aa708 7635# Makefile fragments.
7b61653a
PE
7636for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7637do
7638 eval fragval=\$$frag
7639 if test $fragval != /dev/null; then
7640 eval $frag=${srcdir}/$fragval
7641 fi
7642done
671aa708
NN
7643
7644
7645
7646
7647
7648# Miscellanea: directories, flags, etc.
7649
7650
7651
7652
7653
7654
7655
d89f0ad6 7656
23f6b2f9 7657# Build module lists & subconfigure args.
671aa708
NN
7658
7659
7660
2abefe3d
PB
7661# Host module lists & subconfigure args.
7662
7663
7664
aae29963 7665
2abefe3d
PB
7666# Target module lists & subconfigure args.
7667
7668
7669
7670# Build tools.
7671
7672
7673
0999159b
PB
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
2abefe3d
PB
7688# Generate default definitions for YACC, M4, LEX and other programs that run
7689# on the build machine. These are used if the Makefile can't locate these
7690# programs in objdir.
7691MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7692
7693for ac_prog in 'bison -y' byacc yacc
7694do
1c710c3c 7695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7696set dummy $ac_prog; ac_word=$2
5213506e
RW
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if test "${ac_cv_prog_YACC+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
2abefe3d
PB
7701else
7702 if test -n "$YACC"; then
7703 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7704else
1c710c3c
DJ
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
5213506e
RW
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7712 ac_cv_prog_YACC="$ac_prog"
5213506e 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7714 break 2
7715 fi
7716done
5213506e
RW
7717 done
7718IFS=$as_save_IFS
1c710c3c 7719
2abefe3d
PB
7720fi
7721fi
1c710c3c 7722YACC=$ac_cv_prog_YACC
2abefe3d 7723if test -n "$YACC"; then
5213506e
RW
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7725$as_echo "$YACC" >&6; }
2abefe3d 7726else
5213506e
RW
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
2abefe3d
PB
7729fi
7730
5213506e 7731
1c710c3c 7732 test -n "$YACC" && break
2abefe3d
PB
7733done
7734test -n "$YACC" || YACC="$MISSING bison -y"
7735
7736case " $build_configdirs " in
7737 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7738esac
7739
7740for ac_prog in bison
7741do
1c710c3c 7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7743set dummy $ac_prog; ac_word=$2
5213506e
RW
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745$as_echo_n "checking for $ac_word... " >&6; }
7746if test "${ac_cv_prog_BISON+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
2abefe3d
PB
7748else
7749 if test -n "$BISON"; then
7750 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7751else
1c710c3c
DJ
7752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
5213506e
RW
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7759 ac_cv_prog_BISON="$ac_prog"
5213506e 7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7761 break 2
7762 fi
7763done
5213506e
RW
7764 done
7765IFS=$as_save_IFS
1c710c3c 7766
2abefe3d
PB
7767fi
7768fi
1c710c3c 7769BISON=$ac_cv_prog_BISON
2abefe3d 7770if test -n "$BISON"; then
5213506e
RW
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7772$as_echo "$BISON" >&6; }
2abefe3d 7773else
5213506e
RW
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
2abefe3d
PB
7776fi
7777
5213506e 7778
1c710c3c 7779 test -n "$BISON" && break
2abefe3d
PB
7780done
7781test -n "$BISON" || BISON="$MISSING bison"
7782
7783case " $build_configdirs " in
7784 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7785esac
7786
7787for ac_prog in gm4 gnum4 m4
7788do
1c710c3c 7789 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7790set dummy $ac_prog; ac_word=$2
5213506e
RW
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if test "${ac_cv_prog_M4+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
2abefe3d
PB
7795else
7796 if test -n "$M4"; then
7797 ac_cv_prog_M4="$M4" # Let the user override the test.
7798else
1c710c3c
DJ
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
5213506e
RW
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7806 ac_cv_prog_M4="$ac_prog"
5213506e 7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7808 break 2
7809 fi
7810done
5213506e
RW
7811 done
7812IFS=$as_save_IFS
1c710c3c 7813
2abefe3d
PB
7814fi
7815fi
1c710c3c 7816M4=$ac_cv_prog_M4
2abefe3d 7817if test -n "$M4"; then
5213506e
RW
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7819$as_echo "$M4" >&6; }
2abefe3d 7820else
5213506e
RW
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
2abefe3d
PB
7823fi
7824
5213506e 7825
1c710c3c 7826 test -n "$M4" && break
2abefe3d
PB
7827done
7828test -n "$M4" || M4="$MISSING m4"
7829
7830case " $build_configdirs " in
7831 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7832esac
7833
7834for ac_prog in flex lex
7835do
1c710c3c 7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7837set dummy $ac_prog; ac_word=$2
5213506e
RW
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if test "${ac_cv_prog_LEX+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
2abefe3d
PB
7842else
7843 if test -n "$LEX"; then
7844 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7845else
1c710c3c
DJ
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
5213506e
RW
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7853 ac_cv_prog_LEX="$ac_prog"
5213506e 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7855 break 2
7856 fi
7857done
5213506e
RW
7858 done
7859IFS=$as_save_IFS
1c710c3c 7860
2abefe3d
PB
7861fi
7862fi
1c710c3c 7863LEX=$ac_cv_prog_LEX
2abefe3d 7864if test -n "$LEX"; then
5213506e
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7866$as_echo "$LEX" >&6; }
2abefe3d 7867else
5213506e
RW
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
2abefe3d
PB
7870fi
7871
5213506e 7872
1c710c3c 7873 test -n "$LEX" && break
2abefe3d
PB
7874done
7875test -n "$LEX" || LEX="$MISSING flex"
7876
7877case " $build_configdirs " in
7878 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7879 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7880esac
7881
7882for ac_prog in flex
7883do
1c710c3c 7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7885set dummy $ac_prog; ac_word=$2
5213506e
RW
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887$as_echo_n "checking for $ac_word... " >&6; }
7888if test "${ac_cv_prog_FLEX+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
2abefe3d
PB
7890else
7891 if test -n "$FLEX"; then
7892 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7893else
1c710c3c
DJ
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
5213506e
RW
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7901 ac_cv_prog_FLEX="$ac_prog"
5213506e 7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7903 break 2
7904 fi
7905done
5213506e
RW
7906 done
7907IFS=$as_save_IFS
1c710c3c 7908
2abefe3d
PB
7909fi
7910fi
1c710c3c 7911FLEX=$ac_cv_prog_FLEX
2abefe3d 7912if test -n "$FLEX"; then
5213506e
RW
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7914$as_echo "$FLEX" >&6; }
2abefe3d 7915else
5213506e
RW
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
2abefe3d
PB
7918fi
7919
5213506e 7920
1c710c3c 7921 test -n "$FLEX" && break
2abefe3d
PB
7922done
7923test -n "$FLEX" || FLEX="$MISSING flex"
7924
7925case " $build_configdirs " in
7926 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7927esac
7928
7929for ac_prog in makeinfo
7930do
1c710c3c 7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7932set dummy $ac_prog; ac_word=$2
5213506e
RW
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
2abefe3d
PB
7937else
7938 if test -n "$MAKEINFO"; then
7939 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7940else
1c710c3c
DJ
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
5213506e
RW
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7948 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7950 break 2
7951 fi
7952done
5213506e
RW
7953 done
7954IFS=$as_save_IFS
1c710c3c 7955
2abefe3d
PB
7956fi
7957fi
1c710c3c 7958MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7959if test -n "$MAKEINFO"; then
5213506e
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7961$as_echo "$MAKEINFO" >&6; }
2abefe3d 7962else
5213506e
RW
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
2abefe3d
PB
7965fi
7966
5213506e 7967
1c710c3c 7968 test -n "$MAKEINFO" && break
2abefe3d
PB
7969done
7970test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7971
7972case " $build_configdirs " in
7973 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7974 *)
7975
d18ff35a 7976 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7977 # higher, else we use the "missing" dummy.
7978 if ${MAKEINFO} --version \
d18ff35a 7979 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7980 :
7981 else
7982 MAKEINFO="$MISSING makeinfo"
7983 fi
7984 ;;
7985
7986esac
671aa708 7987
2abefe3d 7988# FIXME: expect and dejagnu may become build tools?
671aa708 7989
2abefe3d
PB
7990for ac_prog in expect
7991do
1c710c3c 7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7993set dummy $ac_prog; ac_word=$2
5213506e
RW
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if test "${ac_cv_prog_EXPECT+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
2abefe3d
PB
7998else
7999 if test -n "$EXPECT"; then
8000 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8001else
1c710c3c
DJ
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
5213506e
RW
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8009 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8011 break 2
8012 fi
8013done
5213506e
RW
8014 done
8015IFS=$as_save_IFS
1c710c3c 8016
2abefe3d
PB
8017fi
8018fi
1c710c3c 8019EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8020if test -n "$EXPECT"; then
5213506e
RW
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8022$as_echo "$EXPECT" >&6; }
2abefe3d 8023else
5213506e
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
2abefe3d 8026fi
671aa708 8027
5213506e 8028
1c710c3c 8029 test -n "$EXPECT" && break
2abefe3d
PB
8030done
8031test -n "$EXPECT" || EXPECT="expect"
671aa708 8032
2abefe3d
PB
8033case " $configdirs " in
8034 *" expect "*)
8035 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8036 ;;
8037esac
671aa708 8038
2abefe3d
PB
8039for ac_prog in runtest
8040do
1c710c3c 8041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8042set dummy $ac_prog; ac_word=$2
5213506e
RW
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
2abefe3d
PB
8047else
8048 if test -n "$RUNTEST"; then
8049 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8050else
1c710c3c
DJ
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
5213506e
RW
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8058 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8060 break 2
8061 fi
8062done
5213506e
RW
8063 done
8064IFS=$as_save_IFS
1c710c3c 8065
2abefe3d
PB
8066fi
8067fi
1c710c3c 8068RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8069if test -n "$RUNTEST"; then
5213506e
RW
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8071$as_echo "$RUNTEST" >&6; }
2abefe3d 8072else
5213506e
RW
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
2abefe3d 8075fi
671aa708 8076
5213506e 8077
1c710c3c 8078 test -n "$RUNTEST" && break
2abefe3d
PB
8079done
8080test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8081
2abefe3d
PB
8082case " $configdirs " in
8083 *" dejagnu "*)
c394e891 8084 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8085 ;;
8086esac
671aa708
NN
8087
8088
671aa708 8089# Host tools.
ca9f4b81
AO
8090ncn_tool_prefix=
8091test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8092ncn_target_tool_prefix=
8093test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8094
278a7a38
AO
8095
8096
8097if test -n "$AR"; then
8098 ac_cv_prog_AR=$AR
8099elif test -n "$ac_cv_prog_AR"; then
8100 AR=$ac_cv_prog_AR
8101fi
8102
8103if test -n "$ac_cv_prog_AR"; then
8104 for ncn_progname in ar; do
8105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8106set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if test "${ac_cv_prog_AR+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
278a7a38
AO
8111else
8112 if test -n "$AR"; then
8113 ac_cv_prog_AR="$AR" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
5213506e
RW
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8122 ac_cv_prog_AR="${ncn_progname}"
5213506e 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8124 break 2
8125 fi
8126done
5213506e
RW
8127 done
8128IFS=$as_save_IFS
278a7a38
AO
8129
8130fi
8131fi
8132AR=$ac_cv_prog_AR
8133if test -n "$AR"; then
5213506e
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8135$as_echo "$AR" >&6; }
278a7a38 8136else
5213506e
RW
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
278a7a38
AO
8139fi
8140
5213506e 8141
278a7a38
AO
8142 done
8143fi
8144
8145for ncn_progname in ar; do
2693c0b0
PB
8146 if test -n "$ncn_tool_prefix"; then
8147 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8148set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150$as_echo_n "checking for $ac_word... " >&6; }
8151if test "${ac_cv_prog_AR+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8153else
8154 if test -n "$AR"; then
8155 ac_cv_prog_AR="$AR" # Let the user override the test.
8156else
1c710c3c
DJ
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
5213506e
RW
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8164 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8166 break 2
8167 fi
8168done
5213506e
RW
8169 done
8170IFS=$as_save_IFS
1c710c3c 8171
ca9f4b81
AO
8172fi
8173fi
1c710c3c 8174AR=$ac_cv_prog_AR
ca9f4b81 8175if test -n "$AR"; then
5213506e
RW
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8177$as_echo "$AR" >&6; }
ca9f4b81 8178else
5213506e
RW
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180$as_echo "no" >&6; }
ca9f4b81
AO
8181fi
8182
5213506e 8183
2693c0b0
PB
8184 fi
8185 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8187set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_AR+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
ca9f4b81 8192else
2693c0b0 8193 if test -n "$AR"; then
af71363e
AS
8194 ac_cv_prog_AR="$AR" # Let the user override the test.
8195else
1c710c3c
DJ
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
5213506e
RW
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8203 ac_cv_prog_AR="${ncn_progname}"
5213506e 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8205 break 2
8206 fi
8207done
5213506e
RW
8208 done
8209IFS=$as_save_IFS
1c710c3c 8210
ca9f4b81
AO
8211fi
8212fi
1c710c3c 8213AR=$ac_cv_prog_AR
2693c0b0 8214if test -n "$AR"; then
5213506e
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8216$as_echo "$AR" >&6; }
ca9f4b81 8217else
5213506e
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
ca9f4b81 8220fi
1c710c3c 8221
5213506e 8222
2693c0b0
PB
8223 fi
8224 test -n "$ac_cv_prog_AR" && break
8225done
8226
8227if test -z "$ac_cv_prog_AR" ; then
8228 set dummy ar
8229 if test $build = $host ; then
8230 AR="$2"
ca9f4b81 8231 else
2693c0b0 8232 AR="${ncn_tool_prefix}$2"
ca9f4b81 8233 fi
ca9f4b81
AO
8234fi
8235
278a7a38
AO
8236
8237
8238if test -n "$AS"; then
8239 ac_cv_prog_AS=$AS
8240elif test -n "$ac_cv_prog_AS"; then
8241 AS=$ac_cv_prog_AS
8242fi
8243
8244if test -n "$ac_cv_prog_AS"; then
8245 for ncn_progname in as; do
8246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8247set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_AS+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
278a7a38
AO
8252else
8253 if test -n "$AS"; then
8254 ac_cv_prog_AS="$AS" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
5213506e
RW
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8263 ac_cv_prog_AS="${ncn_progname}"
5213506e 8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8265 break 2
8266 fi
8267done
5213506e
RW
8268 done
8269IFS=$as_save_IFS
278a7a38
AO
8270
8271fi
8272fi
8273AS=$ac_cv_prog_AS
8274if test -n "$AS"; then
5213506e
RW
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8276$as_echo "$AS" >&6; }
278a7a38 8277else
5213506e
RW
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
278a7a38
AO
8280fi
8281
5213506e 8282
278a7a38
AO
8283 done
8284fi
8285
8286for ncn_progname in as; do
2693c0b0
PB
8287 if test -n "$ncn_tool_prefix"; then
8288 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8289set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291$as_echo_n "checking for $ac_word... " >&6; }
8292if test "${ac_cv_prog_AS+set}" = set; then :
8293 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8294else
8295 if test -n "$AS"; then
8296 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8297else
1c710c3c
DJ
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
5213506e
RW
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8305 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8307 break 2
8308 fi
8309done
5213506e
RW
8310 done
8311IFS=$as_save_IFS
1c710c3c 8312
ca9f4b81
AO
8313fi
8314fi
1c710c3c 8315AS=$ac_cv_prog_AS
ca9f4b81 8316if test -n "$AS"; then
5213506e
RW
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8318$as_echo "$AS" >&6; }
ca9f4b81 8319else
5213506e
RW
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321$as_echo "no" >&6; }
ca9f4b81
AO
8322fi
8323
5213506e 8324
2693c0b0
PB
8325 fi
8326 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8328set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330$as_echo_n "checking for $ac_word... " >&6; }
8331if test "${ac_cv_prog_AS+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
ca9f4b81 8333else
2693c0b0
PB
8334 if test -n "$AS"; then
8335 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8336else
1c710c3c
DJ
8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
5213506e
RW
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8344 ac_cv_prog_AS="${ncn_progname}"
5213506e 8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8346 break 2
8347 fi
8348done
5213506e
RW
8349 done
8350IFS=$as_save_IFS
1c710c3c 8351
ca9f4b81
AO
8352fi
8353fi
1c710c3c 8354AS=$ac_cv_prog_AS
2693c0b0 8355if test -n "$AS"; then
5213506e
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8357$as_echo "$AS" >&6; }
ca9f4b81 8358else
5213506e
RW
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360$as_echo "no" >&6; }
ca9f4b81 8361fi
1c710c3c 8362
5213506e 8363
2693c0b0
PB
8364 fi
8365 test -n "$ac_cv_prog_AS" && break
8366done
8367
8368if test -z "$ac_cv_prog_AS" ; then
8369 set dummy as
8370 if test $build = $host ; then
8371 AS="$2"
ca9f4b81 8372 else
2693c0b0 8373 AS="${ncn_tool_prefix}$2"
ca9f4b81 8374 fi
ca9f4b81
AO
8375fi
8376
278a7a38
AO
8377
8378
8379if test -n "$DLLTOOL"; then
8380 ac_cv_prog_DLLTOOL=$DLLTOOL
8381elif test -n "$ac_cv_prog_DLLTOOL"; then
8382 DLLTOOL=$ac_cv_prog_DLLTOOL
8383fi
8384
8385if test -n "$ac_cv_prog_DLLTOOL"; then
8386 for ncn_progname in dlltool; do
8387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390$as_echo_n "checking for $ac_word... " >&6; }
8391if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
278a7a38
AO
8393else
8394 if test -n "$DLLTOOL"; then
8395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8396else
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
5213506e
RW
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8404 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8406 break 2
8407 fi
8408done
5213506e
RW
8409 done
8410IFS=$as_save_IFS
278a7a38
AO
8411
8412fi
8413fi
8414DLLTOOL=$ac_cv_prog_DLLTOOL
8415if test -n "$DLLTOOL"; then
5213506e
RW
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8417$as_echo "$DLLTOOL" >&6; }
278a7a38 8418else
5213506e
RW
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420$as_echo "no" >&6; }
278a7a38
AO
8421fi
8422
5213506e 8423
278a7a38
AO
8424 done
8425fi
8426
8427for ncn_progname in dlltool; do
2693c0b0
PB
8428 if test -n "$ncn_tool_prefix"; then
8429 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8430set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432$as_echo_n "checking for $ac_word... " >&6; }
8433if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8435else
8436 if test -n "$DLLTOOL"; then
8437 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8438else
1c710c3c
DJ
8439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
5213506e
RW
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8446 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8448 break 2
8449 fi
8450done
5213506e
RW
8451 done
8452IFS=$as_save_IFS
1c710c3c 8453
ca9f4b81
AO
8454fi
8455fi
1c710c3c 8456DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8457if test -n "$DLLTOOL"; then
5213506e
RW
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8459$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8460else
5213506e
RW
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462$as_echo "no" >&6; }
ca9f4b81
AO
8463fi
8464
5213506e 8465
2693c0b0
PB
8466 fi
8467 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
ca9f4b81 8474else
2693c0b0
PB
8475 if test -n "$DLLTOOL"; then
8476 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8477else
1c710c3c
DJ
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
5213506e
RW
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8485 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8487 break 2
8488 fi
8489done
5213506e
RW
8490 done
8491IFS=$as_save_IFS
1c710c3c 8492
ca9f4b81
AO
8493fi
8494fi
1c710c3c 8495DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8496if test -n "$DLLTOOL"; then
5213506e
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8498$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8499else
5213506e
RW
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
ca9f4b81 8502fi
1c710c3c 8503
5213506e 8504
2693c0b0
PB
8505 fi
8506 test -n "$ac_cv_prog_DLLTOOL" && break
8507done
8508
8509if test -z "$ac_cv_prog_DLLTOOL" ; then
8510 set dummy dlltool
8511 if test $build = $host ; then
8512 DLLTOOL="$2"
ca9f4b81 8513 else
2693c0b0 8514 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8515 fi
ca9f4b81
AO
8516fi
8517
278a7a38
AO
8518
8519
8520if test -n "$LD"; then
8521 ac_cv_prog_LD=$LD
8522elif test -n "$ac_cv_prog_LD"; then
8523 LD=$ac_cv_prog_LD
8524fi
8525
8526if test -n "$ac_cv_prog_LD"; then
8527 for ncn_progname in ld; do
8528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8529set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531$as_echo_n "checking for $ac_word... " >&6; }
8532if test "${ac_cv_prog_LD+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
278a7a38
AO
8534else
8535 if test -n "$LD"; then
8536 ac_cv_prog_LD="$LD" # Let the user override the test.
8537else
8538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539for as_dir in $PATH
8540do
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
5213506e
RW
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8545 ac_cv_prog_LD="${ncn_progname}"
5213506e 8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8547 break 2
8548 fi
8549done
5213506e
RW
8550 done
8551IFS=$as_save_IFS
278a7a38
AO
8552
8553fi
8554fi
8555LD=$ac_cv_prog_LD
8556if test -n "$LD"; then
5213506e
RW
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8558$as_echo "$LD" >&6; }
278a7a38 8559else
5213506e
RW
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561$as_echo "no" >&6; }
278a7a38
AO
8562fi
8563
5213506e 8564
278a7a38
AO
8565 done
8566fi
8567
8568for ncn_progname in ld; do
2693c0b0
PB
8569 if test -n "$ncn_tool_prefix"; then
8570 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8571set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573$as_echo_n "checking for $ac_word... " >&6; }
8574if test "${ac_cv_prog_LD+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8576else
8577 if test -n "$LD"; then
8578 ac_cv_prog_LD="$LD" # Let the user override the test.
8579else
1c710c3c
DJ
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
5213506e
RW
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8587 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8589 break 2
8590 fi
8591done
5213506e
RW
8592 done
8593IFS=$as_save_IFS
1c710c3c 8594
ca9f4b81
AO
8595fi
8596fi
1c710c3c 8597LD=$ac_cv_prog_LD
ca9f4b81 8598if test -n "$LD"; then
5213506e
RW
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8600$as_echo "$LD" >&6; }
ca9f4b81 8601else
5213506e
RW
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603$as_echo "no" >&6; }
ca9f4b81
AO
8604fi
8605
5213506e 8606
2693c0b0
PB
8607 fi
8608 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612$as_echo_n "checking for $ac_word... " >&6; }
8613if test "${ac_cv_prog_LD+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
ca9f4b81 8615else
2693c0b0
PB
8616 if test -n "$LD"; then
8617 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8618else
1c710c3c
DJ
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
5213506e
RW
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8626 ac_cv_prog_LD="${ncn_progname}"
5213506e 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8628 break 2
8629 fi
8630done
5213506e
RW
8631 done
8632IFS=$as_save_IFS
1c710c3c 8633
ca9f4b81
AO
8634fi
8635fi
1c710c3c 8636LD=$ac_cv_prog_LD
2693c0b0 8637if test -n "$LD"; then
5213506e
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8639$as_echo "$LD" >&6; }
ca9f4b81 8640else
5213506e
RW
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
ca9f4b81 8643fi
1c710c3c 8644
5213506e 8645
2693c0b0
PB
8646 fi
8647 test -n "$ac_cv_prog_LD" && break
8648done
8649
8650if test -z "$ac_cv_prog_LD" ; then
8651 set dummy ld
8652 if test $build = $host ; then
8653 LD="$2"
ca9f4b81 8654 else
2693c0b0 8655 LD="${ncn_tool_prefix}$2"
ca9f4b81 8656 fi
ca9f4b81
AO
8657fi
8658
278a7a38
AO
8659
8660
8661if test -n "$LIPO"; then
8662 ac_cv_prog_LIPO=$LIPO
8663elif test -n "$ac_cv_prog_LIPO"; then
8664 LIPO=$ac_cv_prog_LIPO
8665fi
8666
8667if test -n "$ac_cv_prog_LIPO"; then
8668 for ncn_progname in lipo; do
8669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8670set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
8673if test "${ac_cv_prog_LIPO+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
278a7a38
AO
8675else
8676 if test -n "$LIPO"; then
8677 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
5213506e
RW
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8686 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8688 break 2
8689 fi
8690done
5213506e
RW
8691 done
8692IFS=$as_save_IFS
278a7a38
AO
8693
8694fi
8695fi
8696LIPO=$ac_cv_prog_LIPO
8697if test -n "$LIPO"; then
5213506e
RW
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8699$as_echo "$LIPO" >&6; }
278a7a38 8700else
5213506e
RW
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
278a7a38
AO
8703fi
8704
5213506e 8705
278a7a38
AO
8706 done
8707fi
8708
8709for ncn_progname in lipo; do
2abefe3d
PB
8710 if test -n "$ncn_tool_prefix"; then
8711 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8712set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714$as_echo_n "checking for $ac_word... " >&6; }
8715if test "${ac_cv_prog_LIPO+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
2abefe3d
PB
8717else
8718 if test -n "$LIPO"; then
8719 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8720else
1c710c3c
DJ
8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722for as_dir in $PATH
8723do
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
5213506e
RW
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8728 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8730 break 2
8731 fi
8732done
5213506e
RW
8733 done
8734IFS=$as_save_IFS
1c710c3c 8735
2abefe3d
PB
8736fi
8737fi
1c710c3c 8738LIPO=$ac_cv_prog_LIPO
2abefe3d 8739if test -n "$LIPO"; then
5213506e
RW
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8741$as_echo "$LIPO" >&6; }
2abefe3d 8742else
5213506e
RW
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744$as_echo "no" >&6; }
2abefe3d
PB
8745fi
8746
5213506e 8747
2abefe3d
PB
8748 fi
8749 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8751set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753$as_echo_n "checking for $ac_word... " >&6; }
8754if test "${ac_cv_prog_LIPO+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
2abefe3d
PB
8756else
8757 if test -n "$LIPO"; then
8758 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8759else
1c710c3c
DJ
8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $PATH
8762do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
5213506e
RW
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8767 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8769 break 2
8770 fi
8771done
5213506e
RW
8772 done
8773IFS=$as_save_IFS
1c710c3c 8774
2abefe3d
PB
8775fi
8776fi
1c710c3c 8777LIPO=$ac_cv_prog_LIPO
2abefe3d 8778if test -n "$LIPO"; then
5213506e
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8780$as_echo "$LIPO" >&6; }
2abefe3d 8781else
5213506e
RW
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
2abefe3d 8784fi
1c710c3c 8785
5213506e 8786
2abefe3d
PB
8787 fi
8788 test -n "$ac_cv_prog_LIPO" && break
8789done
8790
8791if test -z "$ac_cv_prog_LIPO" ; then
8792 set dummy lipo
8793 if test $build = $host ; then
8794 LIPO="$2"
8795 else
8796 LIPO="${ncn_tool_prefix}$2"
8797 fi
8798fi
8799
278a7a38
AO
8800
8801
8802if test -n "$NM"; then
8803 ac_cv_prog_NM=$NM
8804elif test -n "$ac_cv_prog_NM"; then
8805 NM=$ac_cv_prog_NM
8806fi
8807
8808if test -n "$ac_cv_prog_NM"; then
8809 for ncn_progname in nm; do
8810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8811set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813$as_echo_n "checking for $ac_word... " >&6; }
8814if test "${ac_cv_prog_NM+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8816else
8817 if test -n "$NM"; then
8818 ac_cv_prog_NM="$NM" # Let the user override the test.
8819else
1c710c3c
DJ
8820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8821for as_dir in $PATH
8822do
8823 IFS=$as_save_IFS
8824 test -z "$as_dir" && as_dir=.
5213506e
RW
8825 for ac_exec_ext in '' $ac_executable_extensions; do
8826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8827 ac_cv_prog_NM="${ncn_progname}"
5213506e 8828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8829 break 2
8830 fi
8831done
5213506e
RW
8832 done
8833IFS=$as_save_IFS
1c710c3c 8834
ca9f4b81
AO
8835fi
8836fi
1c710c3c 8837NM=$ac_cv_prog_NM
ca9f4b81 8838if test -n "$NM"; then
5213506e
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8840$as_echo "$NM" >&6; }
ca9f4b81 8841else
5213506e
RW
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843$as_echo "no" >&6; }
ca9f4b81
AO
8844fi
8845
5213506e 8846
278a7a38
AO
8847 done
8848fi
8849
8850for ncn_progname in nm; do
8851 if test -n "$ncn_tool_prefix"; then
8852 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8853set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855$as_echo_n "checking for $ac_word... " >&6; }
8856if test "${ac_cv_prog_NM+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
ca9f4b81 8858else
2693c0b0
PB
8859 if test -n "$NM"; then
8860 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8861else
1c710c3c
DJ
8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863for as_dir in $PATH
8864do
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
5213506e
RW
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8869 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8871 break 2
8872 fi
8873done
5213506e
RW
8874 done
8875IFS=$as_save_IFS
1c710c3c 8876
ca9f4b81
AO
8877fi
8878fi
1c710c3c 8879NM=$ac_cv_prog_NM
2693c0b0 8880if test -n "$NM"; then
5213506e
RW
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8882$as_echo "$NM" >&6; }
ca9f4b81 8883else
5213506e
RW
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885$as_echo "no" >&6; }
ca9f4b81 8886fi
1c710c3c 8887
5213506e 8888
2693c0b0 8889 fi
278a7a38
AO
8890 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894$as_echo_n "checking for $ac_word... " >&6; }
8895if test "${ac_cv_prog_NM+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
278a7a38
AO
8897else
8898 if test -n "$NM"; then
8899 ac_cv_prog_NM="$NM" # Let the user override the test.
8900else
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
5213506e
RW
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8908 ac_cv_prog_NM="${ncn_progname}"
5213506e 8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8910 break 2
8911 fi
8912done
5213506e
RW
8913 done
8914IFS=$as_save_IFS
278a7a38
AO
8915
8916fi
8917fi
8918NM=$ac_cv_prog_NM
8919if test -n "$NM"; then
5213506e
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8921$as_echo "$NM" >&6; }
278a7a38 8922else
5213506e
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924$as_echo "no" >&6; }
278a7a38
AO
8925fi
8926
5213506e 8927
278a7a38
AO
8928 fi
8929 test -n "$ac_cv_prog_NM" && break
8930done
8931
8932if test -z "$ac_cv_prog_NM" ; then
8933 set dummy nm
8934 if test $build = $host ; then
8935 NM="$2"
8936 else
8937 NM="${ncn_tool_prefix}$2"
8938 fi
8939fi
8940
8941
8942
8943if test -n "$RANLIB"; then
8944 ac_cv_prog_RANLIB=$RANLIB
8945elif test -n "$ac_cv_prog_RANLIB"; then
8946 RANLIB=$ac_cv_prog_RANLIB
8947fi
8948
8949if test -n "$ac_cv_prog_RANLIB"; then
8950 for ncn_progname in ranlib; do
8951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8952set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954$as_echo_n "checking for $ac_word... " >&6; }
8955if test "${ac_cv_prog_RANLIB+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
278a7a38
AO
8957else
8958 if test -n "$RANLIB"; then
8959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8960else
8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
5213506e
RW
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8968 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8970 break 2
8971 fi
8972done
5213506e
RW
8973 done
8974IFS=$as_save_IFS
278a7a38
AO
8975
8976fi
8977fi
8978RANLIB=$ac_cv_prog_RANLIB
8979if test -n "$RANLIB"; then
5213506e
RW
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8981$as_echo "$RANLIB" >&6; }
278a7a38 8982else
5213506e
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984$as_echo "no" >&6; }
278a7a38
AO
8985fi
8986
5213506e 8987
278a7a38
AO
8988 done
8989fi
ca9f4b81 8990
278a7a38 8991for ncn_progname in ranlib; do
2693c0b0
PB
8992 if test -n "$ncn_tool_prefix"; then
8993 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8994set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996$as_echo_n "checking for $ac_word... " >&6; }
8997if test "${ac_cv_prog_RANLIB+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8999else
9000 if test -n "$RANLIB"; then
9001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9002else
1c710c3c
DJ
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
5213506e
RW
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9010 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9012 break 2
9013 fi
9014done
5213506e
RW
9015 done
9016IFS=$as_save_IFS
1c710c3c 9017
ca9f4b81
AO
9018fi
9019fi
1c710c3c 9020RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9021if test -n "$RANLIB"; then
5213506e
RW
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9023$as_echo "$RANLIB" >&6; }
ca9f4b81 9024else
5213506e
RW
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
ca9f4b81
AO
9027fi
9028
5213506e 9029
2693c0b0
PB
9030 fi
9031 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035$as_echo_n "checking for $ac_word... " >&6; }
9036if test "${ac_cv_prog_RANLIB+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
ca9f4b81 9038else
2693c0b0
PB
9039 if test -n "$RANLIB"; then
9040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9041else
1c710c3c
DJ
9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
5213506e
RW
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9049 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9051 break 2
9052 fi
9053done
5213506e
RW
9054 done
9055IFS=$as_save_IFS
1c710c3c 9056
ca9f4b81
AO
9057fi
9058fi
1c710c3c 9059RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9060if test -n "$RANLIB"; then
5213506e
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9062$as_echo "$RANLIB" >&6; }
ca9f4b81 9063else
5213506e
RW
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065$as_echo "no" >&6; }
ca9f4b81 9066fi
1c710c3c 9067
5213506e 9068
ca9f4b81 9069 fi
2693c0b0
PB
9070 test -n "$ac_cv_prog_RANLIB" && break
9071done
9072
9073if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9074 RANLIB="true"
ca9f4b81
AO
9075fi
9076
278a7a38
AO
9077
9078
9079if test -n "$STRIP"; then
9080 ac_cv_prog_STRIP=$STRIP
9081elif test -n "$ac_cv_prog_STRIP"; then
9082 STRIP=$ac_cv_prog_STRIP
9083fi
9084
9085if test -n "$ac_cv_prog_STRIP"; then
9086 for ncn_progname in strip; do
9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9088set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090$as_echo_n "checking for $ac_word... " >&6; }
9091if test "${ac_cv_prog_STRIP+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
278a7a38
AO
9093else
9094 if test -n "$STRIP"; then
9095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9096else
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
5213506e
RW
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9104 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9106 break 2
9107 fi
9108done
5213506e
RW
9109 done
9110IFS=$as_save_IFS
278a7a38
AO
9111
9112fi
9113fi
9114STRIP=$ac_cv_prog_STRIP
9115if test -n "$STRIP"; then
5213506e
RW
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9117$as_echo "$STRIP" >&6; }
278a7a38 9118else
5213506e
RW
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120$as_echo "no" >&6; }
278a7a38
AO
9121fi
9122
5213506e 9123
278a7a38
AO
9124 done
9125fi
9126
9127for ncn_progname in strip; do
2abefe3d
PB
9128 if test -n "$ncn_tool_prefix"; then
9129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9130set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132$as_echo_n "checking for $ac_word... " >&6; }
9133if test "${ac_cv_prog_STRIP+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
2abefe3d
PB
9135else
9136 if test -n "$STRIP"; then
9137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9138else
1c710c3c
DJ
9139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140for as_dir in $PATH
9141do
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
5213506e
RW
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9146 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9148 break 2
9149 fi
9150done
5213506e
RW
9151 done
9152IFS=$as_save_IFS
1c710c3c 9153
2abefe3d
PB
9154fi
9155fi
1c710c3c 9156STRIP=$ac_cv_prog_STRIP
2abefe3d 9157if test -n "$STRIP"; then
5213506e
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9159$as_echo "$STRIP" >&6; }
2abefe3d 9160else
5213506e
RW
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162$as_echo "no" >&6; }
2abefe3d
PB
9163fi
9164
5213506e 9165
2abefe3d
PB
9166 fi
9167 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9169set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171$as_echo_n "checking for $ac_word... " >&6; }
9172if test "${ac_cv_prog_STRIP+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
2abefe3d
PB
9174else
9175 if test -n "$STRIP"; then
9176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9177else
1c710c3c
DJ
9178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179for as_dir in $PATH
9180do
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
5213506e
RW
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9185 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9187 break 2
9188 fi
9189done
5213506e
RW
9190 done
9191IFS=$as_save_IFS
1c710c3c 9192
2abefe3d
PB
9193fi
9194fi
1c710c3c 9195STRIP=$ac_cv_prog_STRIP
2abefe3d 9196if test -n "$STRIP"; then
5213506e
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9198$as_echo "$STRIP" >&6; }
2abefe3d 9199else
5213506e
RW
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
2abefe3d 9202fi
1c710c3c 9203
5213506e 9204
2abefe3d
PB
9205 fi
9206 test -n "$ac_cv_prog_STRIP" && break
9207done
9208
9209if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9210 STRIP="true"
2abefe3d
PB
9211fi
9212
278a7a38
AO
9213
9214
9215if test -n "$WINDRES"; then
9216 ac_cv_prog_WINDRES=$WINDRES
9217elif test -n "$ac_cv_prog_WINDRES"; then
9218 WINDRES=$ac_cv_prog_WINDRES
9219fi
9220
9221if test -n "$ac_cv_prog_WINDRES"; then
9222 for ncn_progname in windres; do
9223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9224set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if test "${ac_cv_prog_WINDRES+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
278a7a38
AO
9229else
9230 if test -n "$WINDRES"; then
9231 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9232else
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
5213506e
RW
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9240 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9242 break 2
9243 fi
9244done
5213506e
RW
9245 done
9246IFS=$as_save_IFS
278a7a38
AO
9247
9248fi
9249fi
9250WINDRES=$ac_cv_prog_WINDRES
9251if test -n "$WINDRES"; then
5213506e
RW
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9253$as_echo "$WINDRES" >&6; }
278a7a38 9254else
5213506e
RW
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
278a7a38
AO
9257fi
9258
5213506e 9259
278a7a38
AO
9260 done
9261fi
9262
9263for ncn_progname in windres; do
2693c0b0
PB
9264 if test -n "$ncn_tool_prefix"; then
9265 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9266set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268$as_echo_n "checking for $ac_word... " >&6; }
9269if test "${ac_cv_prog_WINDRES+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9271else
9272 if test -n "$WINDRES"; then
9273 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9274else
1c710c3c
DJ
9275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276for as_dir in $PATH
9277do
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
5213506e
RW
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9282 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9284 break 2
9285 fi
9286done
5213506e
RW
9287 done
9288IFS=$as_save_IFS
1c710c3c 9289
ca9f4b81
AO
9290fi
9291fi
1c710c3c 9292WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9293if test -n "$WINDRES"; then
5213506e
RW
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9295$as_echo "$WINDRES" >&6; }
ca9f4b81 9296else
5213506e
RW
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298$as_echo "no" >&6; }
ca9f4b81
AO
9299fi
9300
5213506e 9301
2693c0b0
PB
9302 fi
9303 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9305set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307$as_echo_n "checking for $ac_word... " >&6; }
9308if test "${ac_cv_prog_WINDRES+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
ca9f4b81 9310else
2693c0b0
PB
9311 if test -n "$WINDRES"; then
9312 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9313else
1c710c3c
DJ
9314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315for as_dir in $PATH
9316do
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
5213506e
RW
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9321 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9323 break 2
9324 fi
9325done
5213506e
RW
9326 done
9327IFS=$as_save_IFS
1c710c3c 9328
ca9f4b81
AO
9329fi
9330fi
1c710c3c 9331WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9332if test -n "$WINDRES"; then
5213506e
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9334$as_echo "$WINDRES" >&6; }
ca9f4b81 9335else
5213506e
RW
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337$as_echo "no" >&6; }
ca9f4b81 9338fi
1c710c3c 9339
5213506e 9340
2693c0b0
PB
9341 fi
9342 test -n "$ac_cv_prog_WINDRES" && break
9343done
9344
9345if test -z "$ac_cv_prog_WINDRES" ; then
9346 set dummy windres
9347 if test $build = $host ; then
9348 WINDRES="$2"
ca9f4b81 9349 else
2693c0b0 9350 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9351 fi
ca9f4b81
AO
9352fi
9353
278a7a38
AO
9354
9355
901119ae
KT
9356if test -n "$WINDMC"; then
9357 ac_cv_prog_WINDMC=$WINDMC
9358elif test -n "$ac_cv_prog_WINDMC"; then
9359 WINDMC=$ac_cv_prog_WINDMC
9360fi
9361
9362if test -n "$ac_cv_prog_WINDMC"; then
9363 for ncn_progname in windmc; do
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367$as_echo_n "checking for $ac_word... " >&6; }
9368if test "${ac_cv_prog_WINDMC+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
901119ae
KT
9370else
9371 if test -n "$WINDMC"; then
9372 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9373else
9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
5213506e
RW
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9381 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9383 break 2
9384 fi
9385done
5213506e
RW
9386 done
9387IFS=$as_save_IFS
901119ae
KT
9388
9389fi
9390fi
9391WINDMC=$ac_cv_prog_WINDMC
9392if test -n "$WINDMC"; then
5213506e
RW
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9394$as_echo "$WINDMC" >&6; }
901119ae 9395else
5213506e
RW
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
901119ae
KT
9398fi
9399
5213506e 9400
901119ae
KT
9401 done
9402fi
9403
9404for ncn_progname in windmc; do
9405 if test -n "$ncn_tool_prefix"; then
9406 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9407set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9409$as_echo_n "checking for $ac_word... " >&6; }
9410if test "${ac_cv_prog_WINDMC+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
901119ae
KT
9412else
9413 if test -n "$WINDMC"; then
9414 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9415else
9416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417for as_dir in $PATH
9418do
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
5213506e
RW
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9423 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9425 break 2
9426 fi
9427done
5213506e
RW
9428 done
9429IFS=$as_save_IFS
901119ae
KT
9430
9431fi
9432fi
9433WINDMC=$ac_cv_prog_WINDMC
9434if test -n "$WINDMC"; then
5213506e
RW
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9436$as_echo "$WINDMC" >&6; }
901119ae 9437else
5213506e
RW
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439$as_echo "no" >&6; }
901119ae
KT
9440fi
9441
5213506e 9442
901119ae
KT
9443 fi
9444 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9446set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448$as_echo_n "checking for $ac_word... " >&6; }
9449if test "${ac_cv_prog_WINDMC+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
901119ae
KT
9451else
9452 if test -n "$WINDMC"; then
9453 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9454else
9455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456for as_dir in $PATH
9457do
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
5213506e
RW
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9462 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9464 break 2
9465 fi
9466done
5213506e
RW
9467 done
9468IFS=$as_save_IFS
901119ae
KT
9469
9470fi
9471fi
9472WINDMC=$ac_cv_prog_WINDMC
9473if test -n "$WINDMC"; then
5213506e
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9475$as_echo "$WINDMC" >&6; }
901119ae 9476else
5213506e
RW
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478$as_echo "no" >&6; }
901119ae
KT
9479fi
9480
5213506e 9481
901119ae
KT
9482 fi
9483 test -n "$ac_cv_prog_WINDMC" && break
9484done
9485
9486if test -z "$ac_cv_prog_WINDMC" ; then
9487 set dummy windmc
9488 if test $build = $host ; then
9489 WINDMC="$2"
9490 else
9491 WINDMC="${ncn_tool_prefix}$2"
9492 fi
9493fi
9494
9495
9496
278a7a38
AO
9497if test -n "$OBJCOPY"; then
9498 ac_cv_prog_OBJCOPY=$OBJCOPY
9499elif test -n "$ac_cv_prog_OBJCOPY"; then
9500 OBJCOPY=$ac_cv_prog_OBJCOPY
9501fi
9502
9503if test -n "$ac_cv_prog_OBJCOPY"; then
9504 for ncn_progname in objcopy; do
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508$as_echo_n "checking for $ac_word... " >&6; }
9509if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
278a7a38
AO
9511else
9512 if test -n "$OBJCOPY"; then
9513 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9514else
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
5213506e
RW
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9522 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9524 break 2
9525 fi
9526done
5213506e
RW
9527 done
9528IFS=$as_save_IFS
278a7a38
AO
9529
9530fi
9531fi
9532OBJCOPY=$ac_cv_prog_OBJCOPY
9533if test -n "$OBJCOPY"; then
5213506e
RW
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9535$as_echo "$OBJCOPY" >&6; }
278a7a38 9536else
5213506e
RW
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538$as_echo "no" >&6; }
278a7a38
AO
9539fi
9540
5213506e 9541
278a7a38
AO
9542 done
9543fi
9544
9545for ncn_progname in objcopy; do
2693c0b0
PB
9546 if test -n "$ncn_tool_prefix"; then
9547 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9548set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550$as_echo_n "checking for $ac_word... " >&6; }
9551if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9553else
9554 if test -n "$OBJCOPY"; then
9555 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9556else
1c710c3c
DJ
9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558for as_dir in $PATH
9559do
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
5213506e
RW
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9564 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9566 break 2
9567 fi
9568done
5213506e
RW
9569 done
9570IFS=$as_save_IFS
1c710c3c 9571
ca9f4b81
AO
9572fi
9573fi
1c710c3c 9574OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9575if test -n "$OBJCOPY"; then
5213506e
RW
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9577$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9578else
5213506e
RW
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580$as_echo "no" >&6; }
ca9f4b81
AO
9581fi
9582
5213506e 9583
2693c0b0
PB
9584 fi
9585 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9587set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
ca9f4b81 9592else
2693c0b0
PB
9593 if test -n "$OBJCOPY"; then
9594 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9595else
1c710c3c
DJ
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
5213506e
RW
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9603 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9605 break 2
9606 fi
9607done
5213506e
RW
9608 done
9609IFS=$as_save_IFS
1c710c3c 9610
ca9f4b81
AO
9611fi
9612fi
1c710c3c 9613OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9614if test -n "$OBJCOPY"; then
5213506e
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9616$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9617else
5213506e
RW
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
ca9f4b81 9620fi
1c710c3c 9621
5213506e 9622
2693c0b0
PB
9623 fi
9624 test -n "$ac_cv_prog_OBJCOPY" && break
9625done
9626
9627if test -z "$ac_cv_prog_OBJCOPY" ; then
9628 set dummy objcopy
9629 if test $build = $host ; then
9630 OBJCOPY="$2"
ca9f4b81 9631 else
2693c0b0 9632 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9633 fi
ca9f4b81
AO
9634fi
9635
278a7a38
AO
9636
9637
9638if test -n "$OBJDUMP"; then
9639 ac_cv_prog_OBJDUMP=$OBJDUMP
9640elif test -n "$ac_cv_prog_OBJDUMP"; then
9641 OBJDUMP=$ac_cv_prog_OBJDUMP
9642fi
9643
9644if test -n "$ac_cv_prog_OBJDUMP"; then
9645 for ncn_progname in objdump; do
9646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9647set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649$as_echo_n "checking for $ac_word... " >&6; }
9650if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
278a7a38
AO
9652else
9653 if test -n "$OBJDUMP"; then
9654 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9655else
9656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657for as_dir in $PATH
9658do
9659 IFS=$as_save_IFS
9660 test -z "$as_dir" && as_dir=.
5213506e
RW
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9663 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9665 break 2
9666 fi
9667done
5213506e
RW
9668 done
9669IFS=$as_save_IFS
278a7a38
AO
9670
9671fi
9672fi
9673OBJDUMP=$ac_cv_prog_OBJDUMP
9674if test -n "$OBJDUMP"; then
5213506e
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9676$as_echo "$OBJDUMP" >&6; }
278a7a38 9677else
5213506e
RW
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679$as_echo "no" >&6; }
278a7a38
AO
9680fi
9681
5213506e 9682
278a7a38
AO
9683 done
9684fi
9685
9686for ncn_progname in objdump; do
2693c0b0
PB
9687 if test -n "$ncn_tool_prefix"; then
9688 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9689set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9694else
9695 if test -n "$OBJDUMP"; then
9696 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9697else
1c710c3c
DJ
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
5213506e
RW
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9705 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9707 break 2
9708 fi
9709done
5213506e
RW
9710 done
9711IFS=$as_save_IFS
1c710c3c 9712
ca9f4b81
AO
9713fi
9714fi
1c710c3c 9715OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9716if test -n "$OBJDUMP"; then
5213506e
RW
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9718$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9719else
5213506e
RW
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721$as_echo "no" >&6; }
ca9f4b81
AO
9722fi
9723
5213506e 9724
2693c0b0
PB
9725 fi
9726 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9728set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730$as_echo_n "checking for $ac_word... " >&6; }
9731if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
ca9f4b81 9733else
2693c0b0
PB
9734 if test -n "$OBJDUMP"; then
9735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9736else
1c710c3c
DJ
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
5213506e
RW
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9744 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9746 break 2
9747 fi
9748done
5213506e
RW
9749 done
9750IFS=$as_save_IFS
1c710c3c 9751
ca9f4b81
AO
9752fi
9753fi
1c710c3c 9754OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9755if test -n "$OBJDUMP"; then
5213506e
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9757$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9758else
5213506e
RW
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760$as_echo "no" >&6; }
ca9f4b81 9761fi
1c710c3c 9762
5213506e 9763
2693c0b0
PB
9764 fi
9765 test -n "$ac_cv_prog_OBJDUMP" && break
9766done
9767
9768if test -z "$ac_cv_prog_OBJDUMP" ; then
9769 set dummy objdump
9770 if test $build = $host ; then
9771 OBJDUMP="$2"
ca9f4b81 9772 else
2693c0b0 9773 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9774 fi
ca9f4b81
AO
9775fi
9776
671aa708
NN
9777
9778
e7a82751
RM
9779if test -n "$READELF"; then
9780 ac_cv_prog_READELF=$READELF
9781elif test -n "$ac_cv_prog_READELF"; then
9782 READELF=$ac_cv_prog_READELF
9783fi
9784
9785if test -n "$ac_cv_prog_READELF"; then
9786 for ncn_progname in readelf; do
9787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9788set dummy ${ncn_progname}; ac_word=$2
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790$as_echo_n "checking for $ac_word... " >&6; }
9791if test "${ac_cv_prog_READELF+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793else
9794 if test -n "$READELF"; then
9795 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9796else
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9804 ac_cv_prog_READELF="${ncn_progname}"
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9807 fi
9808done
9809 done
9810IFS=$as_save_IFS
9811
9812fi
9813fi
9814READELF=$ac_cv_prog_READELF
9815if test -n "$READELF"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9817$as_echo "$READELF" >&6; }
9818else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820$as_echo "no" >&6; }
9821fi
9822
9823
9824 done
9825fi
9826
9827for ncn_progname in readelf; do
9828 if test -n "$ncn_tool_prefix"; then
9829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9830set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9832$as_echo_n "checking for $ac_word... " >&6; }
9833if test "${ac_cv_prog_READELF+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835else
9836 if test -n "$READELF"; then
9837 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9838else
9839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840for as_dir in $PATH
9841do
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
9845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9846 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 break 2
9849 fi
9850done
9851 done
9852IFS=$as_save_IFS
9853
9854fi
9855fi
9856READELF=$ac_cv_prog_READELF
9857if test -n "$READELF"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9859$as_echo "$READELF" >&6; }
9860else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
9863fi
9864
9865
9866 fi
9867 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9869set dummy ${ncn_progname}; ac_word=$2
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
9872if test "${ac_cv_prog_READELF+set}" = set; then :
9873 $as_echo_n "(cached) " >&6
9874else
9875 if test -n "$READELF"; then
9876 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9877else
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885 ac_cv_prog_READELF="${ncn_progname}"
9886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890 done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895READELF=$ac_cv_prog_READELF
9896if test -n "$READELF"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9898$as_echo "$READELF" >&6; }
9899else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905 fi
9906 test -n "$ac_cv_prog_READELF" && break
9907done
9908
9909if test -z "$ac_cv_prog_READELF" ; then
9910 set dummy readelf
9911 if test $build = $host ; then
9912 READELF="$2"
9913 else
9914 READELF="${ncn_tool_prefix}$2"
9915 fi
9916fi
9917
9918
9919
671aa708
NN
9920
9921
9922
2abefe3d 9923# Target tools.
1c710c3c 9924
5213506e
RW
9925# Check whether --with-build-time-tools was given.
9926if test "${with_build_time_tools+set}" = set; then :
9927 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9928 x/*) ;;
9929 *)
9930 with_build_time_tools=
5213506e
RW
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9932$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9933 ;;
9934 esac
ca9f4b81 9935else
e8b05380 9936 with_build_time_tools=
5213506e
RW
9937fi
9938
ca9f4b81 9939
278a7a38
AO
9940
9941
9942if test -n "$CC_FOR_TARGET"; then
9943 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9944elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9946fi
9947
9948if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9949 for ncn_progname in cc gcc; do
9950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9951set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953$as_echo_n "checking for $ac_word... " >&6; }
9954if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
278a7a38
AO
9956else
9957 if test -n "$CC_FOR_TARGET"; then
9958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9959else
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
5213506e
RW
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9967 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9969 break 2
9970 fi
9971done
5213506e
RW
9972 done
9973IFS=$as_save_IFS
278a7a38
AO
9974
9975fi
9976fi
9977CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9978if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9980$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9981else
5213506e
RW
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983$as_echo "no" >&6; }
278a7a38
AO
9984fi
9985
5213506e 9986
278a7a38
AO
9987 done
9988fi
9989
9990if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9991 for ncn_progname in cc gcc; do
5213506e
RW
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9993$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9994 if test -x $with_build_time_tools/${ncn_progname}; then
9995 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9997$as_echo "yes" >&6; }
72a7ab82 9998 break
e8b05380 9999 else
5213506e
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
72a7ab82
AP
10002 fi
10003 done
4de997d1
PB
10004fi
10005
e8b05380
PB
10006if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10007 for ncn_progname in cc gcc; do
10008 if test -n "$ncn_target_tool_prefix"; then
10009 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10010set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012$as_echo_n "checking for $ac_word... " >&6; }
10013if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
4de997d1
PB
10015else
10016 if test -n "$CC_FOR_TARGET"; then
10017 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10018else
1c710c3c
DJ
10019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020for as_dir in $PATH
10021do
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
5213506e
RW
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10026 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10028 break 2
10029 fi
10030done
5213506e
RW
10031 done
10032IFS=$as_save_IFS
1c710c3c 10033
4de997d1
PB
10034fi
10035fi
1c710c3c 10036CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10037if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10039$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10040else
5213506e
RW
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042$as_echo "no" >&6; }
4de997d1
PB
10043fi
10044
5213506e 10045
e8b05380
PB
10046 fi
10047 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10049set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
4de997d1 10054else
2693c0b0
PB
10055 if test -n "$CC_FOR_TARGET"; then
10056 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10057else
1c710c3c
DJ
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
5213506e
RW
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10065 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10067 break 2
10068 fi
10069done
5213506e
RW
10070 done
10071IFS=$as_save_IFS
1c710c3c 10072
4de997d1
PB
10073fi
10074fi
1c710c3c 10075CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10076if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10078$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10079else
5213506e
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
4de997d1 10082fi
1c710c3c 10083
5213506e 10084
e8b05380
PB
10085 fi
10086 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10087 done
10088fi
1c710c3c 10089
2693c0b0
PB
10090if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10091 set dummy cc gcc
10092 if test $build = $target ; then
10093 CC_FOR_TARGET="$2"
4de997d1 10094 else
2693c0b0 10095 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10096 fi
1c00b503
PB
10097else
10098 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10099fi
10100
278a7a38
AO
10101
10102
10103if test -n "$CXX_FOR_TARGET"; then
10104 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10105elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10106 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10107fi
10108
10109if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10110 for ncn_progname in c++ g++ cxx gxx; do
10111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114$as_echo_n "checking for $ac_word... " >&6; }
10115if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
278a7a38
AO
10117else
10118 if test -n "$CXX_FOR_TARGET"; then
10119 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10120else
10121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122for as_dir in $PATH
10123do
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
5213506e
RW
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10128 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10130 break 2
10131 fi
10132done
5213506e
RW
10133 done
10134IFS=$as_save_IFS
278a7a38
AO
10135
10136fi
10137fi
10138CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10139if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10141$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10142else
5213506e
RW
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
278a7a38
AO
10145fi
10146
5213506e 10147
278a7a38
AO
10148 done
10149fi
10150
10151if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10152 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10154$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10155 if test -x $with_build_time_tools/${ncn_progname}; then
10156 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158$as_echo "yes" >&6; }
e8b05380
PB
10159 break
10160 else
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
e8b05380
PB
10163 fi
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10168 for ncn_progname in c++ g++ cxx gxx; do
10169 if test -n "$ncn_target_tool_prefix"; then
10170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
10174if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
4de997d1
PB
10176else
10177 if test -n "$CXX_FOR_TARGET"; then
10178 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10179else
1c710c3c
DJ
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
5213506e
RW
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10187 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10189 break 2
10190 fi
10191done
5213506e
RW
10192 done
10193IFS=$as_save_IFS
1c710c3c 10194
4de997d1
PB
10195fi
10196fi
1c710c3c 10197CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10198if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10200$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10201else
5213506e
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
4de997d1
PB
10204fi
10205
5213506e 10206
e8b05380
PB
10207 fi
10208 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10210set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212$as_echo_n "checking for $ac_word... " >&6; }
10213if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
4de997d1 10215else
2693c0b0
PB
10216 if test -n "$CXX_FOR_TARGET"; then
10217 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10218else
1c710c3c
DJ
10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220for as_dir in $PATH
10221do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
5213506e
RW
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10226 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10228 break 2
10229 fi
10230done
5213506e
RW
10231 done
10232IFS=$as_save_IFS
1c710c3c 10233
4de997d1
PB
10234fi
10235fi
1c710c3c 10236CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10237if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10239$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10240else
5213506e
RW
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
4de997d1 10243fi
1c710c3c 10244
5213506e 10245
e8b05380
PB
10246 fi
10247 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10248 done
10249fi
1c710c3c 10250
2693c0b0
PB
10251if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10252 set dummy c++ g++ cxx gxx
10253 if test $build = $target ; then
10254 CXX_FOR_TARGET="$2"
4de997d1 10255 else
2693c0b0 10256 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10257 fi
1c00b503
PB
10258else
10259 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10260fi
10261
278a7a38
AO
10262
10263
10264if test -n "$GCC_FOR_TARGET"; then
10265 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10266elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10267 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10268fi
10269
10270if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10271 for ncn_progname in gcc; do
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275$as_echo_n "checking for $ac_word... " >&6; }
10276if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
278a7a38
AO
10278else
10279 if test -n "$GCC_FOR_TARGET"; then
10280 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10281else
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
5213506e
RW
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10289 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10291 break 2
10292 fi
10293done
5213506e
RW
10294 done
10295IFS=$as_save_IFS
278a7a38
AO
10296
10297fi
10298fi
10299GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10300if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10302$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10303else
5213506e
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
278a7a38
AO
10306fi
10307
5213506e 10308
278a7a38
AO
10309 done
10310fi
10311
10312if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10313 for ncn_progname in gcc; do
5213506e
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10316 if test -x $with_build_time_tools/${ncn_progname}; then
10317 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319$as_echo "yes" >&6; }
e8b05380
PB
10320 break
10321 else
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
e8b05380
PB
10324 fi
10325 done
10326fi
10327
10328if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10329 for ncn_progname in gcc; do
10330 if test -n "$ncn_target_tool_prefix"; then
10331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10332set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
ca9f4b81 10337else
e8b05380
PB
10338 if test -n "$GCC_FOR_TARGET"; then
10339 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10340else
1c710c3c
DJ
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
5213506e
RW
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10348 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10350 break 2
10351 fi
10352done
5213506e
RW
10353 done
10354IFS=$as_save_IFS
1c710c3c 10355
ca9f4b81
AO
10356fi
10357fi
1c710c3c 10358GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10359if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10361$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10362else
5213506e
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
ca9f4b81
AO
10365fi
10366
5213506e 10367
e8b05380
PB
10368 fi
10369 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10371set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
10374if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
ca9f4b81 10376else
e8b05380
PB
10377 if test -n "$GCC_FOR_TARGET"; then
10378 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10379else
1c710c3c
DJ
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
5213506e
RW
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10387 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10389 break 2
10390 fi
10391done
5213506e
RW
10392 done
10393IFS=$as_save_IFS
1c710c3c 10394
ca9f4b81
AO
10395fi
10396fi
1c710c3c 10397GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10398if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10400$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10401else
5213506e
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
ca9f4b81 10404fi
1c710c3c 10405
5213506e 10406
e8b05380
PB
10407 fi
10408 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10409 done
10410fi
1c710c3c 10411
e8b05380
PB
10412if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10413 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10414else
10415 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10416fi
10417
278a7a38
AO
10418
10419
10420if test -n "$GCJ_FOR_TARGET"; then
10421 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10422elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10423 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10424fi
10425
10426if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10427 for ncn_progname in gcj; do
10428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10429set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431$as_echo_n "checking for $ac_word... " >&6; }
10432if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10433 $as_echo_n "(cached) " >&6
278a7a38
AO
10434else
10435 if test -n "$GCJ_FOR_TARGET"; then
10436 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10437else
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
5213506e
RW
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10445 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10447 break 2
10448 fi
10449done
5213506e
RW
10450 done
10451IFS=$as_save_IFS
278a7a38
AO
10452
10453fi
10454fi
10455GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10456if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10458$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10459else
5213506e
RW
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461$as_echo "no" >&6; }
278a7a38
AO
10462fi
10463
5213506e 10464
278a7a38
AO
10465 done
10466fi
10467
10468if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10469 for ncn_progname in gcj; do
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10471$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10472 if test -x $with_build_time_tools/${ncn_progname}; then
10473 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10475$as_echo "yes" >&6; }
e8b05380
PB
10476 break
10477 else
5213506e
RW
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
e8b05380
PB
10480 fi
10481 done
10482fi
10483
10484if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10485 for ncn_progname in gcj; do
10486 if test -n "$ncn_target_tool_prefix"; then
10487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10488set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490$as_echo_n "checking for $ac_word... " >&6; }
10491if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
e8b05380 10493else
fb0103e5
RG
10494 if test -n "$GCJ_FOR_TARGET"; then
10495 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10496else
1c710c3c
DJ
10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
5213506e
RW
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10504 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10506 break 2
10507 fi
10508done
5213506e
RW
10509 done
10510IFS=$as_save_IFS
1c710c3c 10511
e8b05380
PB
10512fi
10513fi
278a7a38
AO
10514GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10515if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10517$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10518else
5213506e
RW
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520$as_echo "no" >&6; }
278a7a38
AO
10521fi
10522
5213506e 10523
278a7a38
AO
10524 fi
10525 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10527set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
278a7a38
AO
10532else
10533 if test -n "$GCJ_FOR_TARGET"; then
10534 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
5213506e
RW
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10543 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10545 break 2
10546 fi
10547done
5213506e
RW
10548 done
10549IFS=$as_save_IFS
278a7a38
AO
10550
10551fi
10552fi
10553GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10554if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10556$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10557else
5213506e
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
278a7a38
AO
10560fi
10561
5213506e 10562
278a7a38
AO
10563 fi
10564 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10565 done
10566fi
10567
10568if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10569 set dummy gcj
10570 if test $build = $target ; then
10571 GCJ_FOR_TARGET="$2"
10572 else
10573 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10574 fi
1c00b503
PB
10575else
10576 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10577fi
10578
10579
10580
10581if test -n "$GFORTRAN_FOR_TARGET"; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10583elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10584 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10585fi
10586
278a7a38
AO
10587if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10588 for ncn_progname in gfortran; do
10589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
10593if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
e8b05380 10595else
278a7a38
AO
10596 if test -n "$GFORTRAN_FOR_TARGET"; then
10597 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10598else
1c710c3c
DJ
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
5213506e
RW
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10606 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10608 break 2
10609 fi
10610done
5213506e
RW
10611 done
10612IFS=$as_save_IFS
1c710c3c 10613
e8b05380
PB
10614fi
10615fi
278a7a38
AO
10616GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10617if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10619$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10620else
5213506e
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
e8b05380 10623fi
1c710c3c 10624
5213506e 10625
e8b05380
PB
10626 done
10627fi
1c710c3c 10628
278a7a38 10629if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10630 for ncn_progname in gfortran; do
5213506e
RW
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10632$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10633 if test -x $with_build_time_tools/${ncn_progname}; then
10634 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636$as_echo "yes" >&6; }
e8b05380
PB
10637 break
10638 else
5213506e
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
e8b05380
PB
10641 fi
10642 done
10643fi
10644
10645if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10646 for ncn_progname in gfortran; do
10647 if test -n "$ncn_target_tool_prefix"; then
10648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651$as_echo_n "checking for $ac_word... " >&6; }
10652if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
e8b05380
PB
10654else
10655 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10656 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10657else
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
5213506e
RW
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10665 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10667 break 2
10668 fi
10669done
5213506e
RW
10670 done
10671IFS=$as_save_IFS
1c710c3c 10672
e8b05380
PB
10673fi
10674fi
1c710c3c 10675GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10676if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10678$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10679else
5213506e
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
e8b05380
PB
10682fi
10683
5213506e 10684
e8b05380
PB
10685 fi
10686 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10688set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690$as_echo_n "checking for $ac_word... " >&6; }
10691if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
e8b05380
PB
10693else
10694 if test -n "$GFORTRAN_FOR_TARGET"; then
10695 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10696else
1c710c3c
DJ
10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698for as_dir in $PATH
10699do
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
5213506e
RW
10702 for ac_exec_ext in '' $ac_executable_extensions; do
10703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10704 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10706 break 2
10707 fi
10708done
5213506e
RW
10709 done
10710IFS=$as_save_IFS
1c710c3c 10711
e8b05380
PB
10712fi
10713fi
1c710c3c 10714GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10715if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10717$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10718else
5213506e
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
e8b05380 10721fi
1c710c3c 10722
5213506e 10723
e8b05380
PB
10724 fi
10725 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10726 done
10727fi
1c710c3c 10728
e8b05380
PB
10729if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10730 set dummy gfortran
2693c0b0 10731 if test $build = $target ; then
e8b05380 10732 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10733 else
e8b05380
PB
10734 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10735 fi
1c00b503
PB
10736else
10737 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10738fi
10739
10740
10741
632e2a07
ILT
10742if test -n "$GOC_FOR_TARGET"; then
10743 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10744elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10745 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10746fi
10747
10748if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10749 for ncn_progname in gccgo; do
10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751set dummy ${ncn_progname}; ac_word=$2
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756else
10757 if test -n "$GOC_FOR_TARGET"; then
10758 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771done
10772 done
10773IFS=$as_save_IFS
10774
10775fi
10776fi
10777GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10778if test -n "$GOC_FOR_TARGET"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10780$as_echo "$GOC_FOR_TARGET" >&6; }
10781else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
10784fi
10785
10786
10787 done
10788fi
10789
10790if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10791 for ncn_progname in gccgo; do
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10793$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10794 if test -x $with_build_time_tools/${ncn_progname}; then
10795 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10797$as_echo "yes" >&6; }
10798 break
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801$as_echo "no" >&6; }
10802 fi
10803 done
10804fi
10805
10806if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10807 for ncn_progname in gccgo; do
10808 if test -n "$ncn_target_tool_prefix"; then
10809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10810set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812$as_echo_n "checking for $ac_word... " >&6; }
10813if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$GOC_FOR_TARGET"; then
10817 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831 done
10832IFS=$as_save_IFS
10833
10834fi
10835fi
10836GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10837if test -n "$GOC_FOR_TARGET"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10839$as_echo "$GOC_FOR_TARGET" >&6; }
10840else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842$as_echo "no" >&6; }
10843fi
10844
10845
10846 fi
10847 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849set dummy ${ncn_progname}; ac_word=$2
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851$as_echo_n "checking for $ac_word... " >&6; }
10852if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854else
10855 if test -n "$GOC_FOR_TARGET"; then
10856 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869done
10870 done
10871IFS=$as_save_IFS
10872
10873fi
10874fi
10875GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10876if test -n "$GOC_FOR_TARGET"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10878$as_echo "$GOC_FOR_TARGET" >&6; }
10879else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
10882fi
10883
10884
10885 fi
10886 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10887 done
10888fi
10889
10890if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10891 set dummy gccgo
10892 if test $build = $target ; then
10893 GOC_FOR_TARGET="$2"
10894 else
10895 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10896 fi
10897else
10898 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10899fi
10900
10901
10902
e8b05380
PB
10903cat > conftest.c << \EOF
10904#ifdef __GNUC__
10905 gcc_yay;
10906#endif
10907EOF
10908if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10909 have_gcc_for_target=yes
10910else
10911 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10912 have_gcc_for_target=no
10913fi
10914rm conftest.c
10915
10916
10917
10918
10919if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10920 if test -n "$with_build_time_tools"; then
5213506e
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10922$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10923 if test -x $with_build_time_tools/ar; then
10924 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10925 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10927$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10928 else
5213506e
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930$as_echo "no" >&6; }
d1f8db0c 10931 fi
e8b05380
PB
10932 elif test $build != $host && test $have_gcc_for_target = yes; then
10933 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10934 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10935 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10936 fi
10937fi
3e19841a 10938if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10939 # Extract the first word of "ar", so it can be a program name with args.
10940set dummy ar; ac_word=$2
5213506e
RW
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942$as_echo_n "checking for $ac_word... " >&6; }
10943if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
e8b05380 10945else
1c710c3c
DJ
10946 case $AR_FOR_TARGET in
10947 [\\/]* | ?:[\\/]*)
e8b05380
PB
10948 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10949 ;;
e8b05380 10950 *)
1c710c3c
DJ
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $gcc_cv_tool_dirs
10953do
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
5213506e
RW
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10958 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10960 break 2
10961 fi
10962done
5213506e
RW
10963 done
10964IFS=$as_save_IFS
1c710c3c 10965
e8b05380
PB
10966 ;;
10967esac
10968fi
1c710c3c 10969AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10970if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10972$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10973else
5213506e
RW
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975$as_echo "no" >&6; }
4de997d1
PB
10976fi
10977
5213506e 10978
e8b05380
PB
10979fi
10980if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10981
10982
10983if test -n "$AR_FOR_TARGET"; then
10984 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10985elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10986 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10987fi
10988
10989if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10990 for ncn_progname in ar; do
10991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10992set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994$as_echo_n "checking for $ac_word... " >&6; }
10995if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
278a7a38
AO
10997else
10998 if test -n "$AR_FOR_TARGET"; then
10999 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11000else
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
5213506e
RW
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11008 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11010 break 2
11011 fi
11012done
5213506e
RW
11013 done
11014IFS=$as_save_IFS
278a7a38
AO
11015
11016fi
11017fi
11018AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11019if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11021$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11022else
5213506e
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024$as_echo "no" >&6; }
278a7a38
AO
11025fi
11026
5213506e 11027
278a7a38
AO
11028 done
11029fi
11030
11031if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11032 for ncn_progname in ar; do
5213506e
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11034$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11035 if test -x $with_build_time_tools/${ncn_progname}; then
11036 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038$as_echo "yes" >&6; }
e8b05380
PB
11039 break
11040 else
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042$as_echo "no" >&6; }
e8b05380
PB
11043 fi
11044 done
11045fi
11046
11047if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11048 for ncn_progname in ar; do
11049 if test -n "$ncn_target_tool_prefix"; then
11050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_AR_FOR_TARGET+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
4de997d1 11056else
e8b05380
PB
11057 if test -n "$AR_FOR_TARGET"; then
11058 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11059else
1c710c3c
DJ
11060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061for as_dir in $PATH
11062do
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
5213506e
RW
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11067 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11069 break 2
11070 fi
11071done
5213506e
RW
11072 done
11073IFS=$as_save_IFS
1c710c3c 11074
4de997d1
PB
11075fi
11076fi
1c710c3c 11077AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11078if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11080$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11081else
5213506e
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083$as_echo "no" >&6; }
4de997d1
PB
11084fi
11085
5213506e 11086
e8b05380
PB
11087 fi
11088 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11090set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092$as_echo_n "checking for $ac_word... " >&6; }
11093if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
e8b05380
PB
11095else
11096 if test -n "$AR_FOR_TARGET"; then
11097 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11098else
1c710c3c
DJ
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
5213506e
RW
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11106 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11108 break 2
11109 fi
11110done
5213506e
RW
11111 done
11112IFS=$as_save_IFS
1c710c3c 11113
e8b05380
PB
11114fi
11115fi
1c710c3c 11116AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11117if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11119$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11120else
5213506e
RW
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
e8b05380 11123fi
1c710c3c 11124
5213506e 11125
e8b05380
PB
11126 fi
11127 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11128 done
11129fi
1c710c3c 11130
e8b05380
PB
11131if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11132 set dummy ar
11133 if test $build = $target ; then
11134 AR_FOR_TARGET="$2"
11135 else
11136 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11137 fi
1c00b503
PB
11138else
11139 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11140fi
11141
d1f8db0c
PB
11142else
11143 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11144fi
11145
11146
11147
11148
11149if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11150 if test -n "$with_build_time_tools"; then
5213506e
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11152$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11153 if test -x $with_build_time_tools/as; then
11154 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11155 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11157$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11158 else
5213506e
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160$as_echo "no" >&6; }
d1f8db0c 11161 fi
e8b05380
PB
11162 elif test $build != $host && test $have_gcc_for_target = yes; then
11163 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11164 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11165 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11166 fi
11167fi
3e19841a 11168if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11169 # Extract the first word of "as", so it can be a program name with args.
11170set dummy as; ac_word=$2
5213506e
RW
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172$as_echo_n "checking for $ac_word... " >&6; }
11173if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
e8b05380 11175else
1c710c3c
DJ
11176 case $AS_FOR_TARGET in
11177 [\\/]* | ?:[\\/]*)
e8b05380
PB
11178 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11179 ;;
e8b05380 11180 *)
1c710c3c
DJ
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182for as_dir in $gcc_cv_tool_dirs
11183do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
5213506e
RW
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11188 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11190 break 2
11191 fi
11192done
5213506e
RW
11193 done
11194IFS=$as_save_IFS
1c710c3c 11195
e8b05380
PB
11196 ;;
11197esac
11198fi
1c710c3c 11199AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11200if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11202$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11203else
5213506e
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205$as_echo "no" >&6; }
e8b05380
PB
11206fi
11207
5213506e 11208
e8b05380
PB
11209fi
11210if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11211
11212
11213if test -n "$AS_FOR_TARGET"; then
11214 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11215elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11216 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11217fi
11218
11219if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11220 for ncn_progname in as; do
11221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
278a7a38
AO
11227else
11228 if test -n "$AS_FOR_TARGET"; then
11229 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
5213506e
RW
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11238 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11240 break 2
11241 fi
11242done
5213506e
RW
11243 done
11244IFS=$as_save_IFS
278a7a38
AO
11245
11246fi
11247fi
11248AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11249if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11251$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11252else
5213506e
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
278a7a38
AO
11255fi
11256
5213506e 11257
278a7a38
AO
11258 done
11259fi
11260
11261if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11262 for ncn_progname in as; do
5213506e
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11264$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11265 if test -x $with_build_time_tools/${ncn_progname}; then
11266 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268$as_echo "yes" >&6; }
e8b05380
PB
11269 break
11270 else
5213506e
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272$as_echo "no" >&6; }
e8b05380
PB
11273 fi
11274 done
11275fi
11276
11277if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11278 for ncn_progname in as; do
11279 if test -n "$ncn_target_tool_prefix"; then
11280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11281set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_AS_FOR_TARGET+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
e8b05380
PB
11286else
11287 if test -n "$AS_FOR_TARGET"; then
11288 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11289else
1c710c3c
DJ
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
5213506e
RW
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11297 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11299 break 2
11300 fi
11301done
5213506e
RW
11302 done
11303IFS=$as_save_IFS
1c710c3c 11304
e8b05380
PB
11305fi
11306fi
1c710c3c 11307AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11308if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11310$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11311else
5213506e
RW
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
e8b05380
PB
11314fi
11315
5213506e 11316
e8b05380
PB
11317 fi
11318 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11320set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322$as_echo_n "checking for $ac_word... " >&6; }
11323if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
4de997d1 11325else
e8b05380
PB
11326 if test -n "$AS_FOR_TARGET"; then
11327 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11328else
1c710c3c
DJ
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
5213506e
RW
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11336 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11338 break 2
11339 fi
11340done
5213506e
RW
11341 done
11342IFS=$as_save_IFS
1c710c3c 11343
4de997d1
PB
11344fi
11345fi
1c710c3c 11346AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11347if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11349$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11350else
5213506e
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
4de997d1 11353fi
1c710c3c 11354
5213506e 11355
e8b05380
PB
11356 fi
11357 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11358 done
11359fi
1c710c3c 11360
e8b05380
PB
11361if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11362 set dummy as
11363 if test $build = $target ; then
11364 AS_FOR_TARGET="$2"
11365 else
11366 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11367 fi
1c00b503
PB
11368else
11369 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11370fi
2693c0b0 11371
d1f8db0c
PB
11372else
11373 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11374fi
11375
e8b05380
PB
11376
11377
11378
11379if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11380 if test -n "$with_build_time_tools"; then
5213506e
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11382$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11383 if test -x $with_build_time_tools/dlltool; then
11384 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11385 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11387$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11388 else
5213506e
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390$as_echo "no" >&6; }
d1f8db0c 11391 fi
e8b05380
PB
11392 elif test $build != $host && test $have_gcc_for_target = yes; then
11393 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11394 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11395 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11396 fi
11397fi
3e19841a 11398if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11399 # Extract the first word of "dlltool", so it can be a program name with args.
11400set dummy dlltool; ac_word=$2
5213506e
RW
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
4de997d1 11405else
1c710c3c
DJ
11406 case $DLLTOOL_FOR_TARGET in
11407 [\\/]* | ?:[\\/]*)
e8b05380
PB
11408 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11409 ;;
e8b05380 11410 *)
1c710c3c
DJ
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $gcc_cv_tool_dirs
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
5213506e
RW
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11418 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11420 break 2
11421 fi
11422done
5213506e
RW
11423 done
11424IFS=$as_save_IFS
1c710c3c 11425
e8b05380
PB
11426 ;;
11427esac
4de997d1 11428fi
1c710c3c 11429DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11430if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11432$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11433else
5213506e
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435$as_echo "no" >&6; }
4de997d1
PB
11436fi
11437
5213506e 11438
e8b05380
PB
11439fi
11440if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11441
11442
11443if test -n "$DLLTOOL_FOR_TARGET"; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11445elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11446 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11447fi
11448
11449if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11450 for ncn_progname in dlltool; do
11451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11452set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
11455if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
278a7a38
AO
11457else
11458 if test -n "$DLLTOOL_FOR_TARGET"; then
11459 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
5213506e
RW
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11468 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11470 break 2
11471 fi
11472done
5213506e
RW
11473 done
11474IFS=$as_save_IFS
278a7a38
AO
11475
11476fi
11477fi
11478DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11479if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11481$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11482else
5213506e
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
278a7a38
AO
11485fi
11486
5213506e 11487
278a7a38
AO
11488 done
11489fi
11490
11491if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11492 for ncn_progname in dlltool; do
5213506e
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11494$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11495 if test -x $with_build_time_tools/${ncn_progname}; then
11496 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498$as_echo "yes" >&6; }
e8b05380
PB
11499 break
11500 else
5213506e
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
e8b05380
PB
11503 fi
11504 done
11505fi
11506
11507if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11508 for ncn_progname in dlltool; do
11509 if test -n "$ncn_target_tool_prefix"; then
11510 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11511set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
4de997d1 11516else
e8b05380
PB
11517 if test -n "$DLLTOOL_FOR_TARGET"; then
11518 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11519else
1c710c3c
DJ
11520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521for as_dir in $PATH
11522do
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
5213506e
RW
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11527 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11529 break 2
11530 fi
11531done
5213506e
RW
11532 done
11533IFS=$as_save_IFS
1c710c3c 11534
4de997d1
PB
11535fi
11536fi
1c710c3c 11537DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11538if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11540$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11541else
5213506e
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
4de997d1 11544fi
4de997d1 11545
5213506e 11546
e8b05380
PB
11547 fi
11548 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11550set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11552$as_echo_n "checking for $ac_word... " >&6; }
11553if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
4de997d1 11555else
e8b05380
PB
11556 if test -n "$DLLTOOL_FOR_TARGET"; then
11557 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11558else
1c710c3c
DJ
11559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560for as_dir in $PATH
11561do
11562 IFS=$as_save_IFS
11563 test -z "$as_dir" && as_dir=.
5213506e
RW
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11566 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11568 break 2
11569 fi
11570done
5213506e
RW
11571 done
11572IFS=$as_save_IFS
1c710c3c 11573
4de997d1
PB
11574fi
11575fi
1c710c3c 11576DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11577if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11579$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11580else
5213506e
RW
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
4de997d1 11583fi
1c710c3c 11584
5213506e 11585
e8b05380
PB
11586 fi
11587 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11588 done
11589fi
1c710c3c 11590
e8b05380
PB
11591if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11592 set dummy dlltool
11593 if test $build = $target ; then
11594 DLLTOOL_FOR_TARGET="$2"
11595 else
11596 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11597 fi
1c00b503
PB
11598else
11599 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11600fi
11601
d1f8db0c
PB
11602else
11603 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11604fi
11605
4de997d1 11606
e8b05380
PB
11607
11608
11609if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11610 if test -n "$with_build_time_tools"; then
5213506e
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11612$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11613 if test -x $with_build_time_tools/ld; then
11614 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11615 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11617$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11618 else
5213506e
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
d1f8db0c 11621 fi
e8b05380
PB
11622 elif test $build != $host && test $have_gcc_for_target = yes; then
11623 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11624 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11625 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11626 fi
e8b05380 11627fi
3e19841a 11628if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11629 # Extract the first word of "ld", so it can be a program name with args.
11630set dummy ld; ac_word=$2
5213506e
RW
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632$as_echo_n "checking for $ac_word... " >&6; }
11633if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
4de997d1 11635else
1c710c3c
DJ
11636 case $LD_FOR_TARGET in
11637 [\\/]* | ?:[\\/]*)
e8b05380
PB
11638 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11639 ;;
e8b05380 11640 *)
1c710c3c
DJ
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642for as_dir in $gcc_cv_tool_dirs
11643do
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
5213506e
RW
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11648 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11650 break 2
11651 fi
11652done
5213506e
RW
11653 done
11654IFS=$as_save_IFS
1c710c3c 11655
e8b05380
PB
11656 ;;
11657esac
4de997d1 11658fi
1c710c3c 11659LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11660if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11662$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11663else
5213506e
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665$as_echo "no" >&6; }
4de997d1 11666fi
2693c0b0 11667
5213506e 11668
e8b05380
PB
11669fi
11670if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11671
11672
11673if test -n "$LD_FOR_TARGET"; then
11674 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11675elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11676 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11677fi
11678
11679if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11680 for ncn_progname in ld; do
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
278a7a38
AO
11687else
11688 if test -n "$LD_FOR_TARGET"; then
11689 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11690else
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
5213506e
RW
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11698 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11700 break 2
11701 fi
11702done
5213506e
RW
11703 done
11704IFS=$as_save_IFS
278a7a38
AO
11705
11706fi
11707fi
11708LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11709if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11711$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11712else
5213506e
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
278a7a38
AO
11715fi
11716
5213506e 11717
278a7a38
AO
11718 done
11719fi
11720
11721if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11722 for ncn_progname in ld; do
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11724$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11725 if test -x $with_build_time_tools/${ncn_progname}; then
11726 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728$as_echo "yes" >&6; }
e8b05380
PB
11729 break
11730 else
5213506e
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732$as_echo "no" >&6; }
e8b05380
PB
11733 fi
11734 done
ca9f4b81
AO
11735fi
11736
e8b05380
PB
11737if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11738 for ncn_progname in ld; do
11739 if test -n "$ncn_target_tool_prefix"; then
11740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_LD_FOR_TARGET+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
ca9f4b81 11746else
4de997d1
PB
11747 if test -n "$LD_FOR_TARGET"; then
11748 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11749else
1c710c3c
DJ
11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
11752do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
5213506e
RW
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11757 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11759 break 2
11760 fi
11761done
5213506e
RW
11762 done
11763IFS=$as_save_IFS
1c710c3c 11764
ca9f4b81
AO
11765fi
11766fi
1c710c3c 11767LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11768if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11770$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11771else
5213506e
RW
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
ca9f4b81
AO
11774fi
11775
5213506e 11776
e8b05380
PB
11777 fi
11778 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11780set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782$as_echo_n "checking for $ac_word... " >&6; }
11783if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11784 $as_echo_n "(cached) " >&6
ca9f4b81 11785else
2693c0b0
PB
11786 if test -n "$LD_FOR_TARGET"; then
11787 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11788else
1c710c3c
DJ
11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790for as_dir in $PATH
11791do
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
5213506e
RW
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11796 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11798 break 2
11799 fi
11800done
5213506e
RW
11801 done
11802IFS=$as_save_IFS
1c710c3c 11803
ca9f4b81
AO
11804fi
11805fi
1c710c3c 11806LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11807if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11809$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11810else
5213506e
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
ca9f4b81 11813fi
1c710c3c 11814
5213506e 11815
e8b05380
PB
11816 fi
11817 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11818 done
11819fi
1c710c3c 11820
2693c0b0
PB
11821if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11822 set dummy ld
11823 if test $build = $target ; then
11824 LD_FOR_TARGET="$2"
ca9f4b81 11825 else
2693c0b0 11826 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11827 fi
1c00b503
PB
11828else
11829 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11830fi
11831
d1f8db0c
PB
11832else
11833 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11834fi
11835
11836
11837
11838
11839if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11840 if test -n "$with_build_time_tools"; then
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11842$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11843 if test -x $with_build_time_tools/lipo; then
11844 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11845 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11847$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11848 else
5213506e
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850$as_echo "no" >&6; }
d1f8db0c 11851 fi
e8b05380
PB
11852 elif test $build != $host && test $have_gcc_for_target = yes; then
11853 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11854 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11855 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11856 fi
11857fi
278a7a38
AO
11858if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11859 # Extract the first word of "lipo", so it can be a program name with args.
11860set dummy lipo; ac_word=$2
5213506e
RW
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862$as_echo_n "checking for $ac_word... " >&6; }
11863if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
278a7a38
AO
11865else
11866 case $LIPO_FOR_TARGET in
11867 [\\/]* | ?:[\\/]*)
11868 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11869 ;;
11870 *)
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $gcc_cv_tool_dirs
11873do
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
5213506e
RW
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11878 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11880 break 2
11881 fi
11882done
5213506e
RW
11883 done
11884IFS=$as_save_IFS
278a7a38
AO
11885
11886 ;;
11887esac
11888fi
11889LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11890if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11892$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11893else
5213506e
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
278a7a38
AO
11896fi
11897
5213506e 11898
278a7a38
AO
11899fi
11900if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11901
11902
11903if test -n "$LIPO_FOR_TARGET"; then
11904 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11905elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11906 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11907fi
11908
11909if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11910 for ncn_progname in lipo; do
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
e8b05380 11917else
278a7a38
AO
11918 if test -n "$LIPO_FOR_TARGET"; then
11919 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11920else
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
1c710c3c
DJ
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
5213506e
RW
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11928 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11930 break 2
11931 fi
11932done
5213506e
RW
11933 done
11934IFS=$as_save_IFS
1c710c3c 11935
e8b05380 11936fi
278a7a38
AO
11937fi
11938LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11939if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11941$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11942else
5213506e
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
e8b05380
PB
11945fi
11946
5213506e 11947
278a7a38 11948 done
e8b05380 11949fi
278a7a38
AO
11950
11951if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11952 for ncn_progname in lipo; do
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11954$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11955 if test -x $with_build_time_tools/${ncn_progname}; then
11956 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958$as_echo "yes" >&6; }
e8b05380
PB
11959 break
11960 else
5213506e
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
e8b05380
PB
11963 fi
11964 done
11965fi
11966
11967if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11968 for ncn_progname in lipo; do
11969 if test -n "$ncn_target_tool_prefix"; then
11970 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11971set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_LIPO_FOR_TARGET+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
040b1c5a
GK
11976else
11977 if test -n "$LIPO_FOR_TARGET"; then
11978 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11979else
1c710c3c
DJ
11980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981for as_dir in $PATH
11982do
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
5213506e
RW
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11987 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11989 break 2
11990 fi
11991done
5213506e
RW
11992 done
11993IFS=$as_save_IFS
1c710c3c 11994
040b1c5a
GK
11995fi
11996fi
1c710c3c 11997LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11998if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12000$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12001else
5213506e
RW
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
040b1c5a
GK
12004fi
12005
5213506e 12006
e8b05380
PB
12007 fi
12008 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012$as_echo_n "checking for $ac_word... " >&6; }
12013if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
040b1c5a
GK
12015else
12016 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12017 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12018else
1c710c3c
DJ
12019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020for as_dir in $PATH
12021do
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
5213506e
RW
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12026 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12028 break 2
12029 fi
12030done
5213506e
RW
12031 done
12032IFS=$as_save_IFS
1c710c3c 12033
040b1c5a
GK
12034fi
12035fi
1c710c3c 12036LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12037if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12039$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12040else
5213506e
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
040b1c5a 12043fi
1c710c3c 12044
5213506e 12045
e8b05380
PB
12046 fi
12047 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12048 done
12049fi
1c710c3c 12050
040b1c5a
GK
12051if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12052 set dummy lipo
12053 if test $build = $target ; then
12054 LIPO_FOR_TARGET="$2"
12055 else
12056 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12057 fi
1c00b503
PB
12058else
12059 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12060fi
12061
d1f8db0c
PB
12062else
12063 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12064fi
12065
12066
12067
12068
12069if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12070 if test -n "$with_build_time_tools"; then
5213506e
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12072$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12073 if test -x $with_build_time_tools/nm; then
12074 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12075 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12077$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12078 else
5213506e
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
d1f8db0c 12081 fi
e8b05380
PB
12082 elif test $build != $host && test $have_gcc_for_target = yes; then
12083 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12084 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12085 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12086 fi
12087fi
3e19841a 12088if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12089 # Extract the first word of "nm", so it can be a program name with args.
12090set dummy nm; ac_word=$2
5213506e
RW
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092$as_echo_n "checking for $ac_word... " >&6; }
12093if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
e8b05380 12095else
1c710c3c
DJ
12096 case $NM_FOR_TARGET in
12097 [\\/]* | ?:[\\/]*)
e8b05380
PB
12098 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12099 ;;
e8b05380 12100 *)
1c710c3c
DJ
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $gcc_cv_tool_dirs
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
5213506e
RW
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12108 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12110 break 2
12111 fi
12112done
5213506e
RW
12113 done
12114IFS=$as_save_IFS
1c710c3c 12115
e8b05380
PB
12116 ;;
12117esac
12118fi
1c710c3c 12119NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12120if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12122$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12123else
5213506e
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125$as_echo "no" >&6; }
e8b05380
PB
12126fi
12127
5213506e 12128
e8b05380
PB
12129fi
12130if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12131
12132
12133if test -n "$NM_FOR_TARGET"; then
12134 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12135elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12136 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12137fi
12138
12139if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12140 for ncn_progname in nm; do
12141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12142set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
12145if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
278a7a38
AO
12147else
12148 if test -n "$NM_FOR_TARGET"; then
12149 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12150else
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
5213506e
RW
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12158 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12160 break 2
12161 fi
12162done
5213506e
RW
12163 done
12164IFS=$as_save_IFS
278a7a38
AO
12165
12166fi
12167fi
12168NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12169if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12171$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12172else
5213506e
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
278a7a38
AO
12175fi
12176
5213506e 12177
278a7a38
AO
12178 done
12179fi
12180
12181if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12182 for ncn_progname in nm; do
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12184$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12185 if test -x $with_build_time_tools/${ncn_progname}; then
12186 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12188$as_echo "yes" >&6; }
e8b05380
PB
12189 break
12190 else
5213506e
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
e8b05380
PB
12193 fi
12194 done
12195fi
12196
12197if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12198 for ncn_progname in nm; do
12199 if test -n "$ncn_target_tool_prefix"; then
12200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12201set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_NM_FOR_TARGET+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
ca9f4b81 12206else
4de997d1
PB
12207 if test -n "$NM_FOR_TARGET"; then
12208 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12209else
1c710c3c
DJ
12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $PATH
12212do
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
5213506e
RW
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12217 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12219 break 2
12220 fi
12221done
5213506e
RW
12222 done
12223IFS=$as_save_IFS
1c710c3c 12224
ca9f4b81
AO
12225fi
12226fi
1c710c3c 12227NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12228if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12230$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12231else
5213506e
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
ca9f4b81
AO
12234fi
12235
5213506e 12236
e8b05380
PB
12237 fi
12238 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12240set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242$as_echo_n "checking for $ac_word... " >&6; }
12243if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
ca9f4b81 12245else
2693c0b0
PB
12246 if test -n "$NM_FOR_TARGET"; then
12247 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12248else
1c710c3c
DJ
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
5213506e
RW
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12256 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12258 break 2
12259 fi
12260done
5213506e
RW
12261 done
12262IFS=$as_save_IFS
1c710c3c 12263
ca9f4b81
AO
12264fi
12265fi
1c710c3c 12266NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12267if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12269$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12270else
5213506e
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
ca9f4b81 12273fi
1c710c3c 12274
5213506e 12275
e8b05380
PB
12276 fi
12277 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12278 done
12279fi
1c710c3c 12280
2693c0b0
PB
12281if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12282 set dummy nm
12283 if test $build = $target ; then
12284 NM_FOR_TARGET="$2"
ca9f4b81 12285 else
2693c0b0 12286 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12287 fi
1c00b503
PB
12288else
12289 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12290fi
12291
d1f8db0c
PB
12292else
12293 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12294fi
12295
12296
12297
12298
12299if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12300 if test -n "$with_build_time_tools"; then
5213506e
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12302$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12303 if test -x $with_build_time_tools/objdump; then
12304 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12305 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12307$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12308 else
5213506e
RW
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310$as_echo "no" >&6; }
d1f8db0c 12311 fi
e8b05380
PB
12312 elif test $build != $host && test $have_gcc_for_target = yes; then
12313 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12314 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12315 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12316 fi
12317fi
3e19841a 12318if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12319 # Extract the first word of "objdump", so it can be a program name with args.
12320set dummy objdump; ac_word=$2
5213506e
RW
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322$as_echo_n "checking for $ac_word... " >&6; }
12323if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12324 $as_echo_n "(cached) " >&6
e8b05380 12325else
1c710c3c
DJ
12326 case $OBJDUMP_FOR_TARGET in
12327 [\\/]* | ?:[\\/]*)
e8b05380
PB
12328 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12329 ;;
e8b05380 12330 *)
1c710c3c
DJ
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332for as_dir in $gcc_cv_tool_dirs
12333do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
5213506e
RW
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12338 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12340 break 2
12341 fi
12342done
5213506e
RW
12343 done
12344IFS=$as_save_IFS
1c710c3c 12345
e8b05380
PB
12346 ;;
12347esac
12348fi
1c710c3c 12349OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12350if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12352$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12353else
5213506e
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
e8b05380
PB
12356fi
12357
5213506e 12358
e8b05380
PB
12359fi
12360if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12361
12362
12363if test -n "$OBJDUMP_FOR_TARGET"; then
12364 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12365elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12366 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12367fi
12368
12369if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12370 for ncn_progname in objdump; do
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
12375if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
278a7a38
AO
12377else
12378 if test -n "$OBJDUMP_FOR_TARGET"; then
12379 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12380else
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
5213506e
RW
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12388 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12390 break 2
12391 fi
12392done
5213506e
RW
12393 done
12394IFS=$as_save_IFS
278a7a38
AO
12395
12396fi
12397fi
12398OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12399if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12401$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12402else
5213506e
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
278a7a38
AO
12405fi
12406
5213506e 12407
278a7a38
AO
12408 done
12409fi
12410
12411if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12412 for ncn_progname in objdump; do
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12414$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12415 if test -x $with_build_time_tools/${ncn_progname}; then
12416 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418$as_echo "yes" >&6; }
e8b05380
PB
12419 break
12420 else
5213506e
RW
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422$as_echo "no" >&6; }
e8b05380
PB
12423 fi
12424 done
12425fi
12426
12427if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12428 for ncn_progname in objdump; do
12429 if test -n "$ncn_target_tool_prefix"; then
12430 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12431set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
d739199a
DJ
12436else
12437 if test -n "$OBJDUMP_FOR_TARGET"; then
12438 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12439else
1c710c3c
DJ
12440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $PATH
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
5213506e
RW
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12447 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12449 break 2
12450 fi
12451done
5213506e
RW
12452 done
12453IFS=$as_save_IFS
1c710c3c 12454
d739199a
DJ
12455fi
12456fi
1c710c3c 12457OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12458if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12460$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12461else
5213506e
RW
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
d739199a
DJ
12464fi
12465
5213506e 12466
e8b05380
PB
12467 fi
12468 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12470set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472$as_echo_n "checking for $ac_word... " >&6; }
12473if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
d739199a
DJ
12475else
12476 if test -n "$OBJDUMP_FOR_TARGET"; then
12477 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12478else
1c710c3c
DJ
12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480for as_dir in $PATH
12481do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
5213506e
RW
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12486 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12488 break 2
12489 fi
12490done
5213506e
RW
12491 done
12492IFS=$as_save_IFS
1c710c3c 12493
d739199a
DJ
12494fi
12495fi
1c710c3c 12496OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12497if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12499$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12500else
5213506e
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
d739199a 12503fi
1c710c3c 12504
5213506e 12505
e8b05380
PB
12506 fi
12507 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12508 done
12509fi
1c710c3c 12510
d739199a
DJ
12511if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12512 set dummy objdump
12513 if test $build = $target ; then
12514 OBJDUMP_FOR_TARGET="$2"
12515 else
12516 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12517 fi
1c00b503
PB
12518else
12519 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12520fi
12521
d1f8db0c
PB
12522else
12523 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12524fi
12525
12526
12527
12528
12529if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12530 if test -n "$with_build_time_tools"; then
5213506e
RW
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12532$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12533 if test -x $with_build_time_tools/ranlib; then
12534 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12535 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12537$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12538 else
5213506e
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540$as_echo "no" >&6; }
d1f8db0c 12541 fi
e8b05380
PB
12542 elif test $build != $host && test $have_gcc_for_target = yes; then
12543 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12544 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12545 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12546 fi
12547fi
3e19841a 12548if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12549 # Extract the first word of "ranlib", so it can be a program name with args.
12550set dummy ranlib; ac_word=$2
5213506e
RW
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
12553if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
e8b05380 12555else
1c710c3c
DJ
12556 case $RANLIB_FOR_TARGET in
12557 [\\/]* | ?:[\\/]*)
e8b05380
PB
12558 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12559 ;;
e8b05380 12560 *)
1c710c3c
DJ
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562for as_dir in $gcc_cv_tool_dirs
12563do
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
5213506e
RW
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12568 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12570 break 2
12571 fi
12572done
5213506e
RW
12573 done
12574IFS=$as_save_IFS
1c710c3c 12575
e8b05380
PB
12576 ;;
12577esac
12578fi
1c710c3c 12579RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12580if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12582$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12583else
5213506e
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
e8b05380
PB
12586fi
12587
5213506e 12588
e8b05380
PB
12589fi
12590if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12591
12592
12593if test -n "$RANLIB_FOR_TARGET"; then
12594 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12595elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12596 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12597fi
12598
12599if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12600 for ncn_progname in ranlib; do
12601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12602set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
12605if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
278a7a38
AO
12607else
12608 if test -n "$RANLIB_FOR_TARGET"; then
12609 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12610else
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
5213506e
RW
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12618 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12620 break 2
12621 fi
12622done
5213506e
RW
12623 done
12624IFS=$as_save_IFS
278a7a38
AO
12625
12626fi
12627fi
12628RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12629if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12631$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12632else
5213506e
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
278a7a38
AO
12635fi
12636
5213506e 12637
278a7a38
AO
12638 done
12639fi
12640
12641if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12642 for ncn_progname in ranlib; do
5213506e
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12644$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12645 if test -x $with_build_time_tools/${ncn_progname}; then
12646 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648$as_echo "yes" >&6; }
e8b05380
PB
12649 break
12650 else
5213506e
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
e8b05380
PB
12653 fi
12654 done
12655fi
12656
12657if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12658 for ncn_progname in ranlib; do
12659 if test -n "$ncn_target_tool_prefix"; then
12660 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12661set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_RANLIB_FOR_TARGET+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
ca9f4b81 12666else
4de997d1
PB
12667 if test -n "$RANLIB_FOR_TARGET"; then
12668 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12669else
1c710c3c
DJ
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
5213506e
RW
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12677 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12679 break 2
12680 fi
12681done
5213506e
RW
12682 done
12683IFS=$as_save_IFS
1c710c3c 12684
ca9f4b81
AO
12685fi
12686fi
1c710c3c 12687RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12688if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12690$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12691else
5213506e
RW
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
ca9f4b81
AO
12694fi
12695
5213506e 12696
e8b05380
PB
12697 fi
12698 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12700set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702$as_echo_n "checking for $ac_word... " >&6; }
12703if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
ca9f4b81 12705else
2693c0b0
PB
12706 if test -n "$RANLIB_FOR_TARGET"; then
12707 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12708else
1c710c3c
DJ
12709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710for as_dir in $PATH
12711do
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
5213506e
RW
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12716 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12718 break 2
12719 fi
12720done
5213506e
RW
12721 done
12722IFS=$as_save_IFS
1c710c3c 12723
ca9f4b81
AO
12724fi
12725fi
1c710c3c 12726RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12727if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12729$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12730else
5213506e
RW
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
ca9f4b81 12733fi
1c710c3c 12734
5213506e 12735
e8b05380
PB
12736 fi
12737 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12738 done
12739fi
1c710c3c 12740
e8b05380
PB
12741if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12742 set dummy ranlib
12743 if test $build = $target ; then
12744 RANLIB_FOR_TARGET="$2"
12745 else
12746 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12747 fi
1c00b503
PB
12748else
12749 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12750fi
2693c0b0 12751
d1f8db0c
PB
12752else
12753 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12754fi
12755
e8b05380
PB
12756
12757
12758
e7a82751
RM
12759if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12760 if test -n "$with_build_time_tools"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12762$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12763 if test -x $with_build_time_tools/readelf; then
12764 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12765 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12767$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771 fi
12772 elif test $build != $host && test $have_gcc_for_target = yes; then
12773 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12774 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12775 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12776 fi
12777fi
12778if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12779 # Extract the first word of "readelf", so it can be a program name with args.
12780set dummy readelf; ac_word=$2
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12782$as_echo_n "checking for $ac_word... " >&6; }
12783if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785else
12786 case $READELF_FOR_TARGET in
12787 [\\/]* | ?:[\\/]*)
12788 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12789 ;;
12790 *)
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792for as_dir in $gcc_cv_tool_dirs
12793do
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12798 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12801 fi
12802done
12803 done
12804IFS=$as_save_IFS
12805
12806 ;;
12807esac
12808fi
12809READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12810if test -n "$READELF_FOR_TARGET"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12812$as_echo "$READELF_FOR_TARGET" >&6; }
12813else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
12816fi
12817
12818
12819fi
12820if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12821
12822
12823if test -n "$READELF_FOR_TARGET"; then
12824 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12825elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12826 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12827fi
12828
12829if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12830 for ncn_progname in readelf; do
12831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12832set dummy ${ncn_progname}; ac_word=$2
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837else
12838 if test -n "$READELF_FOR_TARGET"; then
12839 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12840else
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12851 fi
12852done
12853 done
12854IFS=$as_save_IFS
12855
12856fi
12857fi
12858READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12859if test -n "$READELF_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12861$as_echo "$READELF_FOR_TARGET" >&6; }
12862else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
12865fi
12866
12867
12868 done
12869fi
12870
12871if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12872 for ncn_progname in readelf; do
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12874$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12875 if test -x $with_build_time_tools/${ncn_progname}; then
12876 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878$as_echo "yes" >&6; }
12879 break
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
12883 fi
12884 done
12885fi
12886
12887if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12888 for ncn_progname in readelf; do
12889 if test -n "$ncn_target_tool_prefix"; then
12890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12891set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
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_prog_READELF_FOR_TARGET+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896else
12897 if test -n "$READELF_FOR_TARGET"; then
12898 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12907 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12910 fi
12911done
12912 done
12913IFS=$as_save_IFS
12914
12915fi
12916fi
12917READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12918if test -n "$READELF_FOR_TARGET"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12920$as_echo "$READELF_FOR_TARGET" >&6; }
12921else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924fi
12925
12926
12927 fi
12928 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12930set dummy ${ncn_progname}; ac_word=$2
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932$as_echo_n "checking for $ac_word... " >&6; }
12933if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12935else
12936 if test -n "$READELF_FOR_TARGET"; then
12937 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12938else
12939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940for as_dir in $PATH
12941do
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948 break 2
12949 fi
12950done
12951 done
12952IFS=$as_save_IFS
12953
12954fi
12955fi
12956READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12957if test -n "$READELF_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12959$as_echo "$READELF_FOR_TARGET" >&6; }
12960else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963fi
12964
12965
12966 fi
12967 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12968 done
12969fi
12970
12971if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12972 set dummy readelf
12973 if test $build = $target ; then
12974 READELF_FOR_TARGET="$2"
12975 else
12976 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12977 fi
12978else
12979 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12980fi
12981
12982else
12983 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12984fi
12985
12986
12987
12988
e8b05380
PB
12989if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12990 if test -n "$with_build_time_tools"; then
5213506e
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12992$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12993 if test -x $with_build_time_tools/strip; then
12994 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12995 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12997$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12998 else
5213506e
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
d1f8db0c 13001 fi
e8b05380
PB
13002 elif test $build != $host && test $have_gcc_for_target = yes; then
13003 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13004 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13005 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13006 fi
13007fi
3e19841a 13008if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13009 # Extract the first word of "strip", so it can be a program name with args.
13010set dummy strip; ac_word=$2
5213506e
RW
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012$as_echo_n "checking for $ac_word... " >&6; }
13013if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
e8b05380 13015else
1c710c3c
DJ
13016 case $STRIP_FOR_TARGET in
13017 [\\/]* | ?:[\\/]*)
e8b05380
PB
13018 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13019 ;;
e8b05380 13020 *)
1c710c3c
DJ
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $gcc_cv_tool_dirs
13023do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
5213506e
RW
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13028 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13030 break 2
13031 fi
13032done
5213506e
RW
13033 done
13034IFS=$as_save_IFS
1c710c3c 13035
e8b05380
PB
13036 ;;
13037esac
13038fi
1c710c3c 13039STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13040if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13042$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13043else
5213506e
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045$as_echo "no" >&6; }
e8b05380
PB
13046fi
13047
5213506e 13048
e8b05380
PB
13049fi
13050if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13051
13052
13053if test -n "$STRIP_FOR_TARGET"; then
13054 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13055elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13056 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13057fi
13058
13059if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13060 for ncn_progname in strip; do
13061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13062set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
278a7a38
AO
13067else
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
5213506e
RW
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13078 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13080 break 2
13081 fi
13082done
5213506e
RW
13083 done
13084IFS=$as_save_IFS
278a7a38
AO
13085
13086fi
13087fi
13088STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13089if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13091$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13092else
5213506e
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
278a7a38
AO
13095fi
13096
5213506e 13097
278a7a38
AO
13098 done
13099fi
13100
13101if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13102 for ncn_progname in strip; do
5213506e
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13104$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13105 if test -x $with_build_time_tools/${ncn_progname}; then
13106 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108$as_echo "yes" >&6; }
e8b05380
PB
13109 break
13110 else
5213506e
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
e8b05380
PB
13113 fi
13114 done
13115fi
13116
13117if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13118 for ncn_progname in strip; do
13119 if test -n "$ncn_target_tool_prefix"; then
13120 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13121set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_STRIP_FOR_TARGET+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
af71363e
AS
13126else
13127 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13128 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13129else
13130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131for as_dir in $PATH
13132do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
5213506e
RW
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13137 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13139 break 2
13140 fi
13141done
5213506e
RW
13142 done
13143IFS=$as_save_IFS
1c710c3c 13144
040b1c5a
GK
13145fi
13146fi
1c710c3c 13147STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13148if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13150$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13151else
5213506e
RW
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
040b1c5a
GK
13154fi
13155
5213506e 13156
e8b05380
PB
13157 fi
13158 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13160set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162$as_echo_n "checking for $ac_word... " >&6; }
13163if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
040b1c5a
GK
13165else
13166 if test -n "$STRIP_FOR_TARGET"; then
13167 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13168else
1c710c3c
DJ
13169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170for as_dir in $PATH
13171do
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
5213506e
RW
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13176 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13178 break 2
13179 fi
13180done
5213506e
RW
13181 done
13182IFS=$as_save_IFS
1c710c3c 13183
040b1c5a
GK
13184fi
13185fi
1c710c3c 13186STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13187if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13189$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13190else
5213506e
RW
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192$as_echo "no" >&6; }
040b1c5a 13193fi
1c710c3c 13194
5213506e 13195
e8b05380
PB
13196 fi
13197 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13198 done
13199fi
1c710c3c 13200
040b1c5a
GK
13201if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13202 set dummy strip
13203 if test $build = $target ; then
13204 STRIP_FOR_TARGET="$2"
13205 else
13206 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13207 fi
1c00b503
PB
13208else
13209 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13210fi
13211
d1f8db0c
PB
13212else
13213 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13214fi
13215
13216
13217
13218
13219if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13220 if test -n "$with_build_time_tools"; then
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13222$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13223 if test -x $with_build_time_tools/windres; then
13224 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13225 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13227$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13228 else
5213506e
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230$as_echo "no" >&6; }
d1f8db0c 13231 fi
e8b05380
PB
13232 elif test $build != $host && test $have_gcc_for_target = yes; then
13233 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13234 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13235 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13236 fi
13237fi
3e19841a 13238if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13239 # Extract the first word of "windres", so it can be a program name with args.
13240set dummy windres; ac_word=$2
5213506e
RW
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242$as_echo_n "checking for $ac_word... " >&6; }
13243if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
e8b05380 13245else
1c710c3c
DJ
13246 case $WINDRES_FOR_TARGET in
13247 [\\/]* | ?:[\\/]*)
e8b05380
PB
13248 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13249 ;;
e8b05380 13250 *)
1c710c3c
DJ
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $gcc_cv_tool_dirs
13253do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
5213506e
RW
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13258 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13260 break 2
13261 fi
13262done
5213506e
RW
13263 done
13264IFS=$as_save_IFS
1c710c3c 13265
e8b05380
PB
13266 ;;
13267esac
13268fi
1c710c3c 13269WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13270if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13272$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13273else
5213506e
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275$as_echo "no" >&6; }
e8b05380
PB
13276fi
13277
5213506e 13278
e8b05380
PB
13279fi
13280if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13281
13282
13283if test -n "$WINDRES_FOR_TARGET"; then
13284 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13285elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13286 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13287fi
13288
13289if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13290 for ncn_progname in windres; do
13291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294$as_echo_n "checking for $ac_word... " >&6; }
13295if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
278a7a38
AO
13297else
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13300else
13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302for as_dir in $PATH
13303do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
5213506e
RW
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13310 break 2
13311 fi
13312done
5213506e
RW
13313 done
13314IFS=$as_save_IFS
278a7a38
AO
13315
13316fi
13317fi
13318WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13319if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13321$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13322else
5213506e
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324$as_echo "no" >&6; }
278a7a38
AO
13325fi
13326
5213506e 13327
278a7a38
AO
13328 done
13329fi
13330
13331if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13332 for ncn_progname in windres; do
5213506e
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13334$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13335 if test -x $with_build_time_tools/${ncn_progname}; then
13336 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338$as_echo "yes" >&6; }
e8b05380
PB
13339 break
13340 else
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
e8b05380
PB
13343 fi
13344 done
13345fi
13346
13347if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13348 for ncn_progname in windres; do
13349 if test -n "$ncn_target_tool_prefix"; then
13350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13351set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
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_prog_WINDRES_FOR_TARGET+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
ca9f4b81 13356else
4de997d1
PB
13357 if test -n "$WINDRES_FOR_TARGET"; then
13358 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13359else
1c710c3c
DJ
13360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361for as_dir in $PATH
13362do
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
5213506e
RW
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13367 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13369 break 2
13370 fi
13371done
5213506e
RW
13372 done
13373IFS=$as_save_IFS
1c710c3c 13374
ca9f4b81
AO
13375fi
13376fi
1c710c3c 13377WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13378if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13380$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13381else
5213506e
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383$as_echo "no" >&6; }
ca9f4b81
AO
13384fi
13385
5213506e 13386
e8b05380
PB
13387 fi
13388 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13390set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392$as_echo_n "checking for $ac_word... " >&6; }
13393if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13394 $as_echo_n "(cached) " >&6
ca9f4b81 13395else
2693c0b0
PB
13396 if test -n "$WINDRES_FOR_TARGET"; then
13397 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13398else
1c710c3c
DJ
13399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400for as_dir in $PATH
13401do
13402 IFS=$as_save_IFS
13403 test -z "$as_dir" && as_dir=.
5213506e
RW
13404 for ac_exec_ext in '' $ac_executable_extensions; do
13405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13406 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13408 break 2
13409 fi
13410done
5213506e
RW
13411 done
13412IFS=$as_save_IFS
1c710c3c 13413
ca9f4b81
AO
13414fi
13415fi
1c710c3c 13416WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13417if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13419$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13420else
5213506e
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422$as_echo "no" >&6; }
ca9f4b81 13423fi
1c710c3c 13424
5213506e 13425
e8b05380
PB
13426 fi
13427 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13428 done
13429fi
1c710c3c 13430
2693c0b0
PB
13431if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13432 set dummy windres
13433 if test $build = $target ; then
13434 WINDRES_FOR_TARGET="$2"
ca9f4b81 13435 else
2693c0b0 13436 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13437 fi
1c00b503
PB
13438else
13439 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13440fi
13441
d1f8db0c
PB
13442else
13443 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13444fi
13445
4977bab6 13446
901119ae
KT
13447
13448
13449if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13450 if test -n "$with_build_time_tools"; then
5213506e
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13452$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13453 if test -x $with_build_time_tools/windmc; then
13454 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13455 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13457$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13458 else
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460$as_echo "no" >&6; }
901119ae
KT
13461 fi
13462 elif test $build != $host && test $have_gcc_for_target = yes; then
13463 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13464 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13465 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13466 fi
13467fi
13468if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13469 # Extract the first word of "windmc", so it can be a program name with args.
13470set dummy windmc; ac_word=$2
5213506e
RW
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472$as_echo_n "checking for $ac_word... " >&6; }
13473if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
901119ae
KT
13475else
13476 case $WINDMC_FOR_TARGET in
13477 [\\/]* | ?:[\\/]*)
13478 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13479 ;;
13480 *)
13481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482for as_dir in $gcc_cv_tool_dirs
13483do
13484 IFS=$as_save_IFS
13485 test -z "$as_dir" && as_dir=.
5213506e
RW
13486 for ac_exec_ext in '' $ac_executable_extensions; do
13487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13488 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13490 break 2
13491 fi
13492done
5213506e
RW
13493 done
13494IFS=$as_save_IFS
901119ae
KT
13495
13496 ;;
13497esac
13498fi
13499WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13500if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13502$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13503else
5213506e
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505$as_echo "no" >&6; }
901119ae
KT
13506fi
13507
5213506e 13508
901119ae
KT
13509fi
13510if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13511
13512
13513if test -n "$WINDMC_FOR_TARGET"; then
13514 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13515elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13516 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13517fi
13518
13519if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13520 for ncn_progname in windmc; do
13521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13522set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524$as_echo_n "checking for $ac_word... " >&6; }
13525if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
901119ae
KT
13527else
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13530else
13531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532for as_dir in $PATH
13533do
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
5213506e
RW
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13538 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13540 break 2
13541 fi
13542done
5213506e
RW
13543 done
13544IFS=$as_save_IFS
901119ae
KT
13545
13546fi
13547fi
13548WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13551$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13552else
5213506e
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
901119ae
KT
13555fi
13556
5213506e 13557
901119ae
KT
13558 done
13559fi
13560
13561if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13562 for ncn_progname in windmc; do
5213506e
RW
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13564$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13565 if test -x $with_build_time_tools/${ncn_progname}; then
13566 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13568$as_echo "yes" >&6; }
901119ae
KT
13569 break
13570 else
5213506e
RW
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572$as_echo "no" >&6; }
901119ae
KT
13573 fi
13574 done
13575fi
13576
13577if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13578 for ncn_progname in windmc; do
13579 if test -n "$ncn_target_tool_prefix"; then
13580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13581set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583$as_echo_n "checking for $ac_word... " >&6; }
13584if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
901119ae
KT
13586else
13587 if test -n "$WINDMC_FOR_TARGET"; then
13588 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13589else
13590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591for as_dir in $PATH
13592do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
5213506e
RW
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13597 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13599 break 2
13600 fi
13601done
5213506e
RW
13602 done
13603IFS=$as_save_IFS
901119ae
KT
13604
13605fi
13606fi
13607WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13608if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13610$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13611else
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613$as_echo "no" >&6; }
901119ae
KT
13614fi
13615
5213506e 13616
901119ae
KT
13617 fi
13618 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13620set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622$as_echo_n "checking for $ac_word... " >&6; }
13623if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
901119ae
KT
13625else
13626 if test -n "$WINDMC_FOR_TARGET"; then
13627 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
5213506e
RW
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13636 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13638 break 2
13639 fi
13640done
5213506e
RW
13641 done
13642IFS=$as_save_IFS
901119ae
KT
13643
13644fi
13645fi
13646WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13647if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13649$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13650else
5213506e
RW
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652$as_echo "no" >&6; }
901119ae
KT
13653fi
13654
5213506e 13655
901119ae
KT
13656 fi
13657 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13658 done
13659fi
13660
13661if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13662 set dummy windmc
13663 if test $build = $target ; then
13664 WINDMC_FOR_TARGET="$2"
13665 else
13666 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13667 fi
1c00b503
PB
13668else
13669 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13670fi
13671
13672else
13673 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13674fi
13675
13676
2abefe3d
PB
13677RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13678
5213506e
RW
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13680$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13681if test "x${build}" != "x${host}" ; then
e8b05380
PB
13682 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
172e41aa 13684 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13687 else
13688 # Canadian cross, just use what we found
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690$as_echo "pre-installed" >&6; }
e8b05380 13691 fi
2abefe3d
PB
13692else
13693 ok=yes
13694 case " ${configdirs} " in
13695 *" binutils "*) ;;
13696 *) ok=no ;;
13697 esac
1c710c3c 13698
2abefe3d
PB
13699 if test $ok = yes; then
13700 # An in-tree tool is available and we can use it
13701 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13703$as_echo "just compiled" >&6; }
e8b05380
PB
13704 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
172e41aa 13706 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13709 elif test "x$target" = "x$host"; then
13710 # We can use an host tool
13711 AR_FOR_TARGET='$(AR)'
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13713$as_echo "host tool" >&6; }
2abefe3d
PB
13714 else
13715 # We need a cross tool
5213506e
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13717$as_echo "pre-installed" >&6; }
2abefe3d
PB
13718 fi
13719fi
0b0dc272 13720
5213506e
RW
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13722$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13723if test "x${build}" != "x${host}" ; then
e8b05380
PB
13724 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
172e41aa 13726 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13729 else
13730 # Canadian cross, just use what we found
5213506e
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13732$as_echo "pre-installed" >&6; }
e8b05380 13733 fi
2abefe3d
PB
13734else
13735 ok=yes
13736 case " ${configdirs} " in
13737 *" gas "*) ;;
13738 *) ok=no ;;
13739 esac
1c710c3c 13740
2abefe3d
PB
13741 if test $ok = yes; then
13742 # An in-tree tool is available and we can use it
13743 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13745$as_echo "just compiled" >&6; }
e8b05380
PB
13746 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
172e41aa 13748 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13751 elif test "x$target" = "x$host"; then
13752 # We can use an host tool
13753 AS_FOR_TARGET='$(AS)'
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13755$as_echo "host tool" >&6; }
2abefe3d
PB
13756 else
13757 # We need a cross tool
5213506e
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13759$as_echo "pre-installed" >&6; }
2abefe3d
PB
13760 fi
13761fi
0b0dc272 13762
5213506e
RW
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13764$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13765if test "x${build}" != "x${host}" ; then
e8b05380
PB
13766 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13767 # We already found the complete path
172e41aa 13768 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13771 else
13772 # Canadian cross, just use what we found
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774$as_echo "pre-installed" >&6; }
e8b05380 13775 fi
2abefe3d
PB
13776else
13777 ok=yes
13778 case " ${configdirs} " in
13779 *" gcc "*) ;;
13780 *) ok=no ;;
13781 esac
1c710c3c 13782
2abefe3d
PB
13783 if test $ok = yes; then
13784 # An in-tree tool is available and we can use it
13785 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13787$as_echo "just compiled" >&6; }
e8b05380
PB
13788 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
172e41aa 13790 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13793 elif test "x$target" = "x$host"; then
13794 # We can use an host tool
13795 CC_FOR_TARGET='$(CC)'
5213506e
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13797$as_echo "host tool" >&6; }
2abefe3d
PB
13798 else
13799 # We need a cross tool
5213506e
RW
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13801$as_echo "pre-installed" >&6; }
2abefe3d
PB
13802 fi
13803fi
0b0dc272 13804
5213506e
RW
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13806$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13807if test "x${build}" != "x${host}" ; then
e8b05380
PB
13808 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13809 # We already found the complete path
172e41aa 13810 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13813 else
13814 # Canadian cross, just use what we found
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816$as_echo "pre-installed" >&6; }
e8b05380 13817 fi
2abefe3d
PB
13818else
13819 ok=yes
13820 case " ${configdirs} " in
13821 *" gcc "*) ;;
13822 *) ok=no ;;
13823 esac
13824 case ,${enable_languages}, in
13825 *,c++,*) ;;
13826 *) ok=no ;;
13827 esac
13828 if test $ok = yes; then
13829 # An in-tree tool is available and we can use it
2077db1b 13830 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13832$as_echo "just compiled" >&6; }
e8b05380
PB
13833 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
172e41aa 13835 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13838 elif test "x$target" = "x$host"; then
13839 # We can use an host tool
13840 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13842$as_echo "host tool" >&6; }
2abefe3d
PB
13843 else
13844 # We need a cross tool
5213506e
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
2abefe3d
PB
13847 fi
13848fi
0b0dc272 13849
5213506e
RW
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13851$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13852if test "x${build}" != "x${host}" ; then
e8b05380
PB
13853 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13854 # We already found the complete path
172e41aa 13855 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13857$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13858 else
13859 # Canadian cross, just use what we found
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13861$as_echo "pre-installed" >&6; }
e8b05380 13862 fi
2abefe3d
PB
13863else
13864 ok=yes
13865 case " ${configdirs} " in
13866 *" gcc "*) ;;
13867 *) ok=no ;;
13868 esac
13869 case ,${enable_languages}, in
13870 *,c++,*) ;;
13871 *) ok=no ;;
13872 esac
13873 if test $ok = yes; then
13874 # An in-tree tool is available and we can use it
2077db1b 13875 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877$as_echo "just compiled" >&6; }
e8b05380
PB
13878 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
172e41aa 13880 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13883 elif test "x$target" = "x$host"; then
13884 # We can use an host tool
13885 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887$as_echo "host tool" >&6; }
2abefe3d
PB
13888 else
13889 # We need a cross tool
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891$as_echo "pre-installed" >&6; }
2abefe3d
PB
13892 fi
13893fi
0b0dc272 13894
5213506e
RW
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13896$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13897if test "x${build}" != "x${host}" ; then
e8b05380
PB
13898 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
172e41aa 13900 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13903 else
13904 # Canadian cross, just use what we found
5213506e
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906$as_echo "pre-installed" >&6; }
e8b05380 13907 fi
2abefe3d
PB
13908else
13909 ok=yes
13910 case " ${configdirs} " in
13911 *" binutils "*) ;;
13912 *) ok=no ;;
13913 esac
1c710c3c 13914
2abefe3d
PB
13915 if test $ok = yes; then
13916 # An in-tree tool is available and we can use it
13917 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919$as_echo "just compiled" >&6; }
e8b05380
PB
13920 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
172e41aa 13922 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13925 elif test "x$target" = "x$host"; then
13926 # We can use an host tool
13927 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929$as_echo "host tool" >&6; }
2abefe3d
PB
13930 else
13931 # We need a cross tool
5213506e
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933$as_echo "pre-installed" >&6; }
2abefe3d
PB
13934 fi
13935fi
0b0dc272 13936
5213506e
RW
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13938$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13939if test "x${build}" != "x${host}" ; then
e8b05380
PB
13940 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13941 # We already found the complete path
172e41aa 13942 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13945 else
13946 # Canadian cross, just use what we found
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
e8b05380 13949 fi
2abefe3d
PB
13950else
13951 ok=yes
13952 case " ${configdirs} " in
13953 *" gcc "*) ;;
13954 *) ok=no ;;
13955 esac
1c710c3c 13956
2abefe3d
PB
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961$as_echo "just compiled" >&6; }
e8b05380
PB
13962 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
172e41aa 13964 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 GCC_FOR_TARGET='$()'
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971$as_echo "host tool" >&6; }
2abefe3d
PB
13972 else
13973 # We need a cross tool
5213506e
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975$as_echo "pre-installed" >&6; }
2abefe3d
PB
13976 fi
13977fi
0b0dc272 13978
5213506e
RW
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13980$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13981if test "x${build}" != "x${host}" ; then
e8b05380
PB
13982 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
172e41aa 13984 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13987 else
13988 # Canadian cross, just use what we found
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990$as_echo "pre-installed" >&6; }
e8b05380 13991 fi
2abefe3d
PB
13992else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" gcc "*) ;;
13996 *) ok=no ;;
13997 esac
13998 case ,${enable_languages}, in
13999 *,java,*) ;;
14000 *) ok=no ;;
14001 esac
14002 if test $ok = yes; then
14003 # An in-tree tool is available and we can use it
14004 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14006$as_echo "just compiled" >&6; }
e8b05380
PB
14007 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
172e41aa 14009 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14012 elif test "x$target" = "x$host"; then
14013 # We can use an host tool
14014 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14016$as_echo "host tool" >&6; }
2abefe3d
PB
14017 else
14018 # We need a cross tool
5213506e
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020$as_echo "pre-installed" >&6; }
2abefe3d
PB
14021 fi
14022fi
0b0dc272 14023
5213506e
RW
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14025$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14026if test "x${build}" != "x${host}" ; then
e8b05380
PB
14027 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14028 # We already found the complete path
172e41aa 14029 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14032 else
14033 # Canadian cross, just use what we found
5213506e
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035$as_echo "pre-installed" >&6; }
e8b05380 14036 fi
2abefe3d
PB
14037else
14038 ok=yes
14039 case " ${configdirs} " in
14040 *" gcc "*) ;;
14041 *) ok=no ;;
14042 esac
14043 case ,${enable_languages}, in
14044 *,fortran,*) ;;
14045 *) ok=no ;;
14046 esac
14047 if test $ok = yes; then
14048 # An in-tree tool is available and we can use it
14049 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051$as_echo "just compiled" >&6; }
e8b05380
PB
14052 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
172e41aa 14054 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14057 elif test "x$target" = "x$host"; then
14058 # We can use an host tool
14059 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061$as_echo "host tool" >&6; }
2abefe3d
PB
14062 else
14063 # We need a cross tool
5213506e
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065$as_echo "pre-installed" >&6; }
2abefe3d
PB
14066 fi
14067fi
0b0dc272 14068
632e2a07
ILT
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14070$as_echo_n "checking where to find the target gccgo... " >&6; }
14071if test "x${build}" != "x${host}" ; then
14072 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $GOC_FOR_TARGET`
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076$as_echo "pre-installed in $ac_dir" >&6; }
14077 else
14078 # Canadian cross, just use what we found
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
14081 fi
14082else
14083 ok=yes
14084 case " ${configdirs} " in
14085 *" gcc "*) ;;
14086 *) ok=no ;;
14087 esac
14088 case ,${enable_languages}, in
14089 *,go,*) ;;
14090 *) ok=no ;;
14091 esac
14092 if test $ok = yes; then
14093 # An in-tree tool is available and we can use it
14094 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14096$as_echo "just compiled" >&6; }
14097 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $GOC_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
14102 elif test "x$target" = "x$host"; then
14103 # We can use an host tool
14104 GOC_FOR_TARGET='$(GOC)'
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14106$as_echo "host tool" >&6; }
14107 else
14108 # We need a cross tool
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110$as_echo "pre-installed" >&6; }
14111 fi
14112fi
14113
5213506e
RW
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14115$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14116if test "x${build}" != "x${host}" ; then
e8b05380
PB
14117 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
172e41aa 14119 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14122 else
14123 # Canadian cross, just use what we found
5213506e
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14125$as_echo "pre-installed" >&6; }
e8b05380 14126 fi
2abefe3d
PB
14127else
14128 ok=yes
14129 case " ${configdirs} " in
14130 *" ld "*) ;;
14131 *) ok=no ;;
14132 esac
1c710c3c 14133
2abefe3d
PB
14134 if test $ok = yes; then
14135 # An in-tree tool is available and we can use it
14136 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14138$as_echo "just compiled" >&6; }
e8b05380
PB
14139 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
172e41aa 14141 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14144 elif test "x$target" = "x$host"; then
14145 # We can use an host tool
14146 LD_FOR_TARGET='$(LD)'
5213506e
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14148$as_echo "host tool" >&6; }
2abefe3d
PB
14149 else
14150 # We need a cross tool
5213506e
RW
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152$as_echo "pre-installed" >&6; }
2abefe3d
PB
14153 fi
14154fi
0b0dc272 14155
5213506e
RW
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14157$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14158if test "x${build}" != "x${host}" ; then
e8b05380
PB
14159 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14160 # We already found the complete path
172e41aa 14161 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14163$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14164 else
14165 # Canadian cross, just use what we found
5213506e
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167$as_echo "pre-installed" >&6; }
e8b05380 14168 fi
2abefe3d 14169else
e8b05380
PB
14170 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
172e41aa 14172 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14175 elif test "x$target" = "x$host"; then
2abefe3d
PB
14176 # We can use an host tool
14177 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14179$as_echo "host tool" >&6; }
2abefe3d
PB
14180 else
14181 # We need a cross tool
5213506e
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14183$as_echo "pre-installed" >&6; }
2abefe3d
PB
14184 fi
14185fi
0b0dc272 14186
5213506e
RW
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14188$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14189if test "x${build}" != "x${host}" ; then
e8b05380
PB
14190 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
172e41aa 14192 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14195 else
14196 # Canadian cross, just use what we found
5213506e
RW
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14198$as_echo "pre-installed" >&6; }
e8b05380 14199 fi
2abefe3d
PB
14200else
14201 ok=yes
14202 case " ${configdirs} " in
14203 *" binutils "*) ;;
14204 *) ok=no ;;
14205 esac
1c710c3c 14206
2abefe3d
PB
14207 if test $ok = yes; then
14208 # An in-tree tool is available and we can use it
14209 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14211$as_echo "just compiled" >&6; }
e8b05380
PB
14212 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
172e41aa 14214 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14217 elif test "x$target" = "x$host"; then
14218 # We can use an host tool
14219 NM_FOR_TARGET='$(NM)'
5213506e
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14221$as_echo "host tool" >&6; }
2abefe3d
PB
14222 else
14223 # We need a cross tool
5213506e
RW
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225$as_echo "pre-installed" >&6; }
2abefe3d
PB
14226 fi
14227fi
0b0dc272 14228
5213506e
RW
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14230$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14231if test "x${build}" != "x${host}" ; then
e8b05380
PB
14232 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
172e41aa 14234 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14237 else
14238 # Canadian cross, just use what we found
5213506e
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240$as_echo "pre-installed" >&6; }
e8b05380 14241 fi
2abefe3d
PB
14242else
14243 ok=yes
14244 case " ${configdirs} " in
14245 *" binutils "*) ;;
14246 *) ok=no ;;
14247 esac
1c710c3c 14248
2abefe3d
PB
14249 if test $ok = yes; then
14250 # An in-tree tool is available and we can use it
14251 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253$as_echo "just compiled" >&6; }
e8b05380
PB
14254 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
172e41aa 14256 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263$as_echo "host tool" >&6; }
2abefe3d
PB
14264 else
14265 # We need a cross tool
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267$as_echo "pre-installed" >&6; }
2abefe3d
PB
14268 fi
14269fi
0b0dc272 14270
5213506e
RW
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14272$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14273if test "x${build}" != "x${host}" ; then
e8b05380
PB
14274 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
172e41aa 14276 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14279 else
14280 # Canadian cross, just use what we found
5213506e
RW
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282$as_echo "pre-installed" >&6; }
e8b05380 14283 fi
2abefe3d
PB
14284else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" binutils "*) ;;
14288 *) ok=no ;;
14289 esac
1c710c3c 14290
2abefe3d
PB
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295$as_echo "just compiled" >&6; }
e8b05380
PB
14296 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
172e41aa 14298 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305$as_echo "host tool" >&6; }
2abefe3d
PB
14306 else
14307 # We need a cross tool
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309$as_echo "pre-installed" >&6; }
2abefe3d
PB
14310 fi
14311fi
0b0dc272 14312
e7a82751
RM
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14314$as_echo_n "checking where to find the target readelf... " >&6; }
14315if test "x${build}" != "x${host}" ; then
14316 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $READELF_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
14321 else
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324$as_echo "pre-installed" >&6; }
14325 fi
14326else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14332
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337$as_echo "just compiled" >&6; }
14338 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $READELF_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 READELF_FOR_TARGET='$(READELF)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347$as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
14352 fi
14353fi
14354
5213506e
RW
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14356$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14357if test "x${build}" != "x${host}" ; then
e8b05380
PB
14358 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
172e41aa 14360 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14363 else
14364 # Canadian cross, just use what we found
5213506e
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366$as_echo "pre-installed" >&6; }
e8b05380 14367 fi
2abefe3d
PB
14368else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" binutils "*) ;;
14372 *) ok=no ;;
14373 esac
1c710c3c 14374
2abefe3d
PB
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
455c8f48 14377 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379$as_echo "just compiled" >&6; }
e8b05380
PB
14380 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
172e41aa 14382 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389$as_echo "host tool" >&6; }
2abefe3d
PB
14390 else
14391 # We need a cross tool
5213506e
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
2abefe3d
PB
14394 fi
14395fi
0b0dc272 14396
5213506e
RW
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14398$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14399if test "x${build}" != "x${host}" ; then
e8b05380
PB
14400 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
172e41aa 14402 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14405 else
14406 # Canadian cross, just use what we found
5213506e
RW
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408$as_echo "pre-installed" >&6; }
e8b05380 14409 fi
2abefe3d
PB
14410else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" binutils "*) ;;
14414 *) ok=no ;;
14415 esac
1c710c3c 14416
2abefe3d
PB
14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421$as_echo "just compiled" >&6; }
e8b05380
PB
14422 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
172e41aa 14424 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431$as_echo "host tool" >&6; }
2abefe3d
PB
14432 else
14433 # We need a cross tool
5213506e
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
2abefe3d 14436 fi
671aa708 14437fi
be912515 14438
5213506e
RW
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14440$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14441if test "x${build}" != "x${host}" ; then
14442 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14447 else
14448 # Canadian cross, just use what we found
5213506e
RW
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450$as_echo "pre-installed" >&6; }
901119ae
KT
14451 fi
14452else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" binutils "*) ;;
14456 *) ok=no ;;
14457 esac
14458
14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
14461 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463$as_echo "just compiled" >&6; }
901119ae
KT
14464 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473$as_echo "host tool" >&6; }
901119ae
KT
14474 else
14475 # We need a cross tool
5213506e
RW
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
901119ae
KT
14478 fi
14479fi
14480
be912515
NN
14481
14482
2abefe3d 14483
0b0dc272 14484
671aa708
NN
14485# Certain tools may need extra flags.
14486AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14487RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14488NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14489
2abefe3d
PB
14490# When building target libraries, except in a Canadian cross, we use
14491# the same toolchain as the compiler we just built.
14492COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14493COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14494COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14495if test $host = $build; then
14496 case " $configdirs " in
14497 *" gcc "*)
14498 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14499 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14500 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14501 ;;
14502 esac
14503fi
14504
14505
14506
14507
14508
5213506e
RW
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14510$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14511# Check whether --enable-maintainer-mode was given.
14512if test "${enable_maintainer_mode+set}" = set; then :
14513 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14514else
14515 USE_MAINTAINER_MODE=no
5213506e
RW
14516fi
14517
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14519$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14520
14521
14522if test "$USE_MAINTAINER_MODE" = yes; then
14523 MAINTAINER_MODE_TRUE=
14524 MAINTAINER_MODE_FALSE='#'
14525else
14526 MAINTAINER_MODE_TRUE='#'
14527 MAINTAINER_MODE_FALSE=
1c710c3c 14528fi
ee03dc5e
AO
14529MAINT=$MAINTAINER_MODE_TRUE
14530
2805b53a
NN
14531# ---------------------
14532# GCC bootstrap support
14533# ---------------------
14534
14535# Stage specific cflags for build.
14536stage1_cflags="-g"
14537case $build in
14538 vax-*-*)
14539 case ${GCC} in
14540 yes) stage1_cflags="-g -Wa,-J" ;;
14541 *) stage1_cflags="-g -J" ;;
14542 esac ;;
2805b53a
NN
14543esac
14544
0b50988a 14545
2805b53a 14546
8efea775 14547# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14548# Check whether --enable-stage1-checking was given.
14549if test "${enable_stage1_checking+set}" = set; then :
14550 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14551else
e643dc23 14552 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14553 stage1_checking=--enable-checking=yes,types
8efea775 14554else
e643dc23 14555 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14556fi
5213506e 14557fi
8efea775
PB
14558
14559
2aeb72e9 14560
5213506e
RW
14561# Enable -Werror in bootstrap stage2 and later.
14562# Check whether --enable-werror was given.
14563if test "${enable_werror+set}" = set; then :
14564 enableval=$enable_werror;
2805b53a 14565else
416cfb5e 14566 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14567 enable_werror=yes
88fceb68
PB
14568else
14569 enable_werror=no
14570fi
5213506e
RW
14571fi
14572
09a9c095
NN
14573case ${enable_werror} in
14574 yes) stage2_werror_flag="--enable-werror-always" ;;
14575 *) stage2_werror_flag="" ;;
2805b53a
NN
14576esac
14577
14578
459260ec
DM
14579# Enable --enable-host-shared.
14580# Check whether --enable-host-shared was given.
14581if test "${enable_host_shared+set}" = set; then :
14582 enableval=$enable_host_shared; host_shared=$enableval
14583else
14584 host_shared=no
14585fi
14586
14587
14588
f2689b09
SE
14589# Specify what files to not compare during bootstrap.
14590
14591compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14592case "$target" in
14593 hppa*64*-*-hpux*) ;;
14594 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14595 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14596esac
14597
14598
5213506e
RW
14599ac_config_files="$ac_config_files Makefile"
14600
1c710c3c 14601cat >confcache <<\_ACEOF
671aa708
NN
14602# This file is a shell script that caches the results of configure
14603# tests run on this system so they can be shared between configure
1c710c3c
DJ
14604# scripts and configure runs, see configure's option --config-cache.
14605# It is not useful on other systems. If it contains results you don't
14606# want to keep, you may remove or edit it.
671aa708 14607#
1c710c3c
DJ
14608# config.status only pays attention to the cache file if you give it
14609# the --recheck option to rerun configure.
671aa708 14610#
1c710c3c
DJ
14611# `ac_cv_env_foo' variables (set or unset) will be overridden when
14612# loading this file, other *unset* `ac_cv_foo' will be assigned the
14613# following values.
14614
14615_ACEOF
14616
671aa708
NN
14617# The following way of writing the cache mishandles newlines in values,
14618# but we know of no workaround that is simple, portable, and efficient.
5213506e 14619# So, we kill variables containing newlines.
671aa708
NN
14620# Ultrix sh set writes to stderr and can't be redirected directly,
14621# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14622(
14623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14624 eval ac_val=\$$ac_var
14625 case $ac_val in #(
14626 *${as_nl}*)
14627 case $ac_var in #(
14628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14629$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14630 esac
14631 case $ac_var in #(
14632 _ | IFS | as_nl) ;; #(
14633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14634 *) { eval $ac_var=; unset $ac_var;} ;;
14635 esac ;;
14636 esac
14637 done
14638
1c710c3c 14639 (set) 2>&1 |
5213506e
RW
14640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14641 *${as_nl}ac_space=\ *)
14642 # `set' does not quote correctly, so add quotes: double-quote
14643 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14644 sed -n \
14645 "s/'/'\\\\''/g;
14646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14647 ;; #(
1c710c3c
DJ
14648 *)
14649 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14651 ;;
5213506e
RW
14652 esac |
14653 sort
14654) |
1c710c3c 14655 sed '
5213506e 14656 /^ac_cv_env_/b end
1c710c3c 14657 t clear
5213506e 14658 :clear
1c710c3c
DJ
14659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14660 t end
5213506e
RW
14661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14662 :end' >>confcache
14663if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14664 if test -w "$cache_file"; then
14665 test "x$cache_file" != "x/dev/null" &&
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14667$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14668 cat confcache >$cache_file
671aa708 14669 else
5213506e
RW
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14671$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14672 fi
4977bab6 14673fi
671aa708 14674rm -f confcache
79c06341 14675
671aa708
NN
14676test "x$prefix" = xNONE && prefix=$ac_default_prefix
14677# Let make expand exec_prefix.
14678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14679
671aa708
NN
14680# Transform confdefs.h into DEFS.
14681# Protect against shell expansion while executing Makefile rules.
14682# Protect against Makefile macro expansion.
1c710c3c
DJ
14683#
14684# If the first sed substitution is executed (which looks for macros that
5213506e 14685# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14686# look for a macro that doesn't take arguments.
5213506e
RW
14687ac_script='
14688:mline
14689/\\$/{
14690 N
14691 s,\\\n,,
14692 b mline
14693}
1c710c3c 14694t clear
5213506e
RW
14695:clear
14696s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14697t quote
5213506e 14698s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14699t quote
5213506e
RW
14700b any
14701:quote
14702s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14703s/\[/\\&/g
14704s/\]/\\&/g
14705s/\$/$$/g
14706H
14707:any
14708${
14709 g
14710 s/^\n//
14711 s/\n/ /g
14712 p
14713}
14714'
14715DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14716
14717
14718ac_libobjs=
14719ac_ltlibobjs=
14720for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14721 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14723 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14725 # will be set to the directory where LIBOBJS objects are built.
14726 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14727 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14728done
14729LIBOBJS=$ac_libobjs
fb0103e5 14730
1c710c3c 14731LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14732
af71363e 14733
1c710c3c
DJ
14734
14735: ${CONFIG_STATUS=./config.status}
5213506e 14736ac_write_fail=0
1c710c3c
DJ
14737ac_clean_files_save=$ac_clean_files
14738ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14740$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14741as_write_fail=0
14742cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14743#! $SHELL
14744# Generated by $as_me.
671aa708 14745# Run this file to recreate the current configuration.
671aa708 14746# Compiler output produced by configure, useful for debugging
1c710c3c 14747# configure, is in config.log if it exists.
0b0dc272 14748
1c710c3c
DJ
14749debug=false
14750ac_cs_recheck=false
14751ac_cs_silent=false
1c710c3c 14752
5213506e
RW
14753SHELL=\${CONFIG_SHELL-$SHELL}
14754export SHELL
14755_ASEOF
14756cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14757## -------------------- ##
14758## M4sh Initialization. ##
14759## -------------------- ##
14760
14761# Be more Bourne compatible
14762DUALCASE=1; export DUALCASE # for MKS sh
14763if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14764 emulate sh
14765 NULLCMD=:
5213506e 14766 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14767 # is contrary to our usage. Disable this feature.
14768 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14769 setopt NO_GLOB_SUBST
14770else
14771 case `(set -o) 2>/dev/null` in #(
14772 *posix*) :
14773 set -o posix ;; #(
14774 *) :
14775 ;;
14776esac
1c710c3c 14777fi
1c710c3c 14778
5213506e
RW
14779
14780as_nl='
14781'
14782export as_nl
14783# Printing a long string crashes Solaris 7 /usr/bin/printf.
14784as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14785as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14786as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14787# Prefer a ksh shell builtin over an external printf program on Solaris,
14788# but without wasting forks for bash or zsh.
14789if test -z "$BASH_VERSION$ZSH_VERSION" \
14790 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14791 as_echo='print -r --'
14792 as_echo_n='print -rn --'
14793elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14794 as_echo='printf %s\n'
14795 as_echo_n='printf %s'
14796else
14797 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14798 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14799 as_echo_n='/usr/ucb/echo -n'
14800 else
14801 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14802 as_echo_n_body='eval
14803 arg=$1;
14804 case $arg in #(
14805 *"$as_nl"*)
14806 expr "X$arg" : "X\\(.*\\)$as_nl";
14807 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14808 esac;
14809 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14810 '
14811 export as_echo_n_body
14812 as_echo_n='sh -c $as_echo_n_body as_echo'
14813 fi
14814 export as_echo_body
14815 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14816fi
14817
5213506e
RW
14818# The user is always right.
14819if test "${PATH_SEPARATOR+set}" != set; then
14820 PATH_SEPARATOR=:
14821 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14822 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14823 PATH_SEPARATOR=';'
14824 }
14825fi
14826
14827
14828# IFS
14829# We need space, tab and new line, in precisely that order. Quoting is
14830# there to prevent editors from complaining about space-tab.
14831# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14832# splitting by setting IFS to empty value.)
14833IFS=" "" $as_nl"
14834
14835# Find who we are. Look in the path if we contain no directory separator.
14836case $0 in #((
14837 *[\\/]* ) as_myself=$0 ;;
14838 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14839for as_dir in $PATH
14840do
14841 IFS=$as_save_IFS
14842 test -z "$as_dir" && as_dir=.
14843 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14844 done
14845IFS=$as_save_IFS
14846
14847 ;;
14848esac
14849# We did not find ourselves, most probably we were run as `sh COMMAND'
14850# in which case we are not to be found in the path.
14851if test "x$as_myself" = x; then
14852 as_myself=$0
14853fi
14854if test ! -f "$as_myself"; then
14855 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14856 exit 1
14857fi
1c710c3c 14858
5213506e
RW
14859# Unset variables that we do not need and which cause bugs (e.g. in
14860# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14861# suppresses any "Segmentation fault" message there. '((' could
14862# trigger a bug in pdksh 5.2.14.
14863for as_var in BASH_ENV ENV MAIL MAILPATH
14864do eval test x\${$as_var+set} = xset \
14865 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14866done
1c710c3c
DJ
14867PS1='$ '
14868PS2='> '
14869PS4='+ '
14870
14871# NLS nuisances.
5213506e
RW
14872LC_ALL=C
14873export LC_ALL
14874LANGUAGE=C
14875export LANGUAGE
14876
14877# CDPATH.
14878(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14879
14880
14881# as_fn_error ERROR [LINENO LOG_FD]
14882# ---------------------------------
14883# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14884# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14885# script with status $?, using 1 if that was 0.
14886as_fn_error ()
14887{
14888 as_status=$?; test $as_status -eq 0 && as_status=1
14889 if test "$3"; then
14890 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14891 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14892 fi
5213506e
RW
14893 $as_echo "$as_me: error: $1" >&2
14894 as_fn_exit $as_status
14895} # as_fn_error
14896
14897
14898# as_fn_set_status STATUS
14899# -----------------------
14900# Set $? to STATUS, without forking.
14901as_fn_set_status ()
14902{
14903 return $1
14904} # as_fn_set_status
14905
14906# as_fn_exit STATUS
14907# -----------------
14908# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14909as_fn_exit ()
14910{
14911 set +e
14912 as_fn_set_status $1
14913 exit $1
14914} # as_fn_exit
14915
14916# as_fn_unset VAR
14917# ---------------
14918# Portably unset VAR.
14919as_fn_unset ()
14920{
14921 { eval $1=; unset $1;}
14922}
14923as_unset=as_fn_unset
14924# as_fn_append VAR VALUE
14925# ----------------------
14926# Append the text in VALUE to the end of the definition contained in VAR. Take
14927# advantage of any shell optimizations that allow amortized linear growth over
14928# repeated appends, instead of the typical quadratic growth present in naive
14929# implementations.
14930if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14931 eval 'as_fn_append ()
14932 {
14933 eval $1+=\$2
14934 }'
14935else
14936 as_fn_append ()
14937 {
14938 eval $1=\$$1\$2
14939 }
14940fi # as_fn_append
14941
14942# as_fn_arith ARG...
14943# ------------------
14944# Perform arithmetic evaluation on the ARGs, and store the result in the
14945# global $as_val. Take advantage of shells that can avoid forks. The arguments
14946# must be portable across $(()) and expr.
14947if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14948 eval 'as_fn_arith ()
14949 {
14950 as_val=$(( $* ))
14951 }'
14952else
14953 as_fn_arith ()
14954 {
14955 as_val=`expr "$@" || test $? -eq 1`
14956 }
14957fi # as_fn_arith
14958
1c710c3c 14959
5213506e
RW
14960if expr a : '\(a\)' >/dev/null 2>&1 &&
14961 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14962 as_expr=expr
14963else
14964 as_expr=false
14965fi
14966
5213506e 14967if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14968 as_basename=basename
14969else
14970 as_basename=false
14971fi
14972
5213506e
RW
14973if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14974 as_dirname=dirname
14975else
14976 as_dirname=false
14977fi
1c710c3c 14978
5213506e 14979as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14980$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14981 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14982 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14983$as_echo X/"$0" |
14984 sed '/^.*\/\([^/][^/]*\)\/*$/{
14985 s//\1/
14986 q
14987 }
14988 /^X\/\(\/\/\)$/{
14989 s//\1/
14990 q
14991 }
14992 /^X\/\(\/\).*/{
14993 s//\1/
14994 q
14995 }
14996 s/.*/./; q'`
2aeb72e9 14997
2aeb72e9
DD
14998# Avoid depending upon Character Ranges.
14999as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15000as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15001as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15002as_cr_digits='0123456789'
15003as_cr_alnum=$as_cr_Letters$as_cr_digits
15004
5213506e
RW
15005ECHO_C= ECHO_N= ECHO_T=
15006case `echo -n x` in #(((((
15007-n*)
15008 case `echo 'xy\c'` in
15009 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15010 xy) ECHO_C='\c';;
15011 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15012 ECHO_T=' ';;
15013 esac;;
15014*)
15015 ECHO_N='-n';;
1c710c3c
DJ
15016esac
15017
5213506e
RW
15018rm -f conf$$ conf$$.exe conf$$.file
15019if test -d conf$$.dir; then
15020 rm -f conf$$.dir/conf$$.file
1c710c3c 15021else
5213506e
RW
15022 rm -f conf$$.dir
15023 mkdir conf$$.dir 2>/dev/null
1c710c3c 15024fi
5213506e
RW
15025if (echo >conf$$.file) 2>/dev/null; then
15026 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15027 as_ln_s='ln -s'
5213506e
RW
15028 # ... but there are two gotchas:
15029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15031 # In both cases, we have to default to `cp -p'.
15032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15033 as_ln_s='cp -p'
15034 elif ln conf$$.file conf$$ 2>/dev/null; then
15035 as_ln_s=ln
15036 else
15037 as_ln_s='cp -p'
2aeb72e9 15038 fi
1c710c3c
DJ
15039else
15040 as_ln_s='cp -p'
15041fi
5213506e
RW
15042rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15043rmdir conf$$.dir 2>/dev/null
15044
15045
15046# as_fn_mkdir_p
15047# -------------
15048# Create "$as_dir" as a directory, including parents if necessary.
15049as_fn_mkdir_p ()
15050{
15051
15052 case $as_dir in #(
15053 -*) as_dir=./$as_dir;;
15054 esac
15055 test -d "$as_dir" || eval $as_mkdir_p || {
15056 as_dirs=
15057 while :; do
15058 case $as_dir in #(
15059 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15060 *) as_qdir=$as_dir;;
15061 esac
15062 as_dirs="'$as_qdir' $as_dirs"
15063 as_dir=`$as_dirname -- "$as_dir" ||
15064$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15065 X"$as_dir" : 'X\(//\)[^/]' \| \
15066 X"$as_dir" : 'X\(//\)$' \| \
15067 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15068$as_echo X"$as_dir" |
15069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\/\)[^/].*/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\/\)$/{
15078 s//\1/
15079 q
15080 }
15081 /^X\(\/\).*/{
15082 s//\1/
15083 q
15084 }
15085 s/.*/./; q'`
15086 test -d "$as_dir" && break
15087 done
15088 test -z "$as_dirs" || eval "mkdir $as_dirs"
15089 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15090
1c710c3c 15091
5213506e 15092} # as_fn_mkdir_p
1c710c3c 15093if mkdir -p . 2>/dev/null; then
5213506e 15094 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15095else
15096 test -d ./-p && rmdir ./-p
15097 as_mkdir_p=false
15098fi
15099
5213506e
RW
15100if test -x / >/dev/null 2>&1; then
15101 as_test_x='test -x'
15102else
15103 if ls -dL / >/dev/null 2>&1; then
15104 as_ls_L_option=L
15105 else
15106 as_ls_L_option=
15107 fi
15108 as_test_x='
15109 eval sh -c '\''
15110 if test -d "$1"; then
15111 test -d "$1/.";
15112 else
15113 case $1 in #(
15114 -*)set "./$1";;
15115 esac;
15116 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15117 ???[sx]*):;;*)false;;esac;fi
15118 '\'' sh
15119 '
15120fi
15121as_executable_p=$as_test_x
1c710c3c
DJ
15122
15123# Sed expression to map a string onto a valid CPP name.
15124as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15125
15126# Sed expression to map a string onto a valid variable name.
15127as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15128
15129
1c710c3c 15130exec 6>&1
5213506e
RW
15131## ----------------------------------- ##
15132## Main body of $CONFIG_STATUS script. ##
15133## ----------------------------------- ##
15134_ASEOF
15135test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15136
15137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15138# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15139# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15140# values after options handling.
15141ac_log="
1c710c3c 15142This file was extended by $as_me, which was
5213506e 15143generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15144
15145 CONFIG_FILES = $CONFIG_FILES
15146 CONFIG_HEADERS = $CONFIG_HEADERS
15147 CONFIG_LINKS = $CONFIG_LINKS
15148 CONFIG_COMMANDS = $CONFIG_COMMANDS
15149 $ $0 $@
15150
5213506e
RW
15151on `(hostname || uname -n) 2>/dev/null | sed 1q`
15152"
15153
1c710c3c
DJ
15154_ACEOF
15155
5213506e
RW
15156case $ac_config_files in *"
15157"*) set x $ac_config_files; shift; ac_config_files=$*;;
15158esac
1c710c3c 15159
2aeb72e9 15160
2aeb72e9 15161
5213506e
RW
15162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15163# Files that config.status was made for.
15164config_files="$ac_config_files"
1c710c3c 15165
5213506e 15166_ACEOF
2aeb72e9 15167
5213506e 15168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15169ac_cs_usage="\
5213506e
RW
15170\`$as_me' instantiates files and other configuration actions
15171from templates according to the current configuration. Unless the files
15172and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15173
5213506e 15174Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15175
15176 -h, --help print this help, then exit
5213506e
RW
15177 -V, --version print version number and configuration settings, then exit
15178 -q, --quiet, --silent
15179 do not print progress messages
1c710c3c
DJ
15180 -d, --debug don't remove temporary files
15181 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15182 --file=FILE[:TEMPLATE]
15183 instantiate the configuration file FILE
1c710c3c
DJ
15184
15185Configuration files:
15186$config_files
15187
5213506e 15188Report bugs to the package provider."
2aeb72e9 15189
5213506e
RW
15190_ACEOF
15191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15192ac_cs_version="\\
15193config.status
5213506e
RW
15194configured by $0, generated by GNU Autoconf 2.64,
15195 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15196
5213506e 15197Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15198This config.status script is free software; the Free Software Foundation
15199gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15200
15201ac_pwd='$ac_pwd'
15202srcdir='$srcdir'
15203INSTALL='$INSTALL'
87264276 15204AWK='$AWK'
5213506e 15205test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15206_ACEOF
15207
5213506e
RW
15208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15210ac_need_defaults=:
15211while test $# != 0
a4b9e93e 15212do
1c710c3c
DJ
15213 case $1 in
15214 --*=*)
5213506e
RW
15215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15217 ac_shift=:
15218 ;;
5213506e 15219 *)
1c710c3c
DJ
15220 ac_option=$1
15221 ac_optarg=$2
15222 ac_shift=shift
15223 ;;
1c710c3c
DJ
15224 esac
15225
15226 case $ac_option in
15227 # Handling of the options.
671aa708 15228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15229 ac_cs_recheck=: ;;
5213506e
RW
15230 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15231 $as_echo "$ac_cs_version"; exit ;;
15232 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15233 debug=: ;;
15234 --file | --fil | --fi | --f )
15235 $ac_shift
5213506e
RW
15236 case $ac_optarg in
15237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15238 esac
15239 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15240 ac_need_defaults=false;;
5213506e
RW
15241 --he | --h | --help | --hel | -h )
15242 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15245 ac_cs_silent=: ;;
15246
15247 # This is an error.
5213506e
RW
15248 -*) as_fn_error "unrecognized option: \`$1'
15249Try \`$0 --help' for more information." ;;
1c710c3c 15250
5213506e
RW
15251 *) as_fn_append ac_config_targets " $1"
15252 ac_need_defaults=false ;;
1c710c3c 15253
0b0dc272 15254 esac
1c710c3c 15255 shift
0b0dc272
AM
15256done
15257
1c710c3c 15258ac_configure_extra_args=
0b0dc272 15259
1c710c3c
DJ
15260if $ac_cs_silent; then
15261 exec 6>/dev/null
15262 ac_configure_extra_args="$ac_configure_extra_args --silent"
15263fi
0b0dc272 15264
1c710c3c 15265_ACEOF
5213506e 15266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15267if \$ac_cs_recheck; then
5213506e
RW
15268 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15269 shift
15270 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15271 CONFIG_SHELL='$SHELL'
15272 export CONFIG_SHELL
15273 exec "\$@"
1c710c3c
DJ
15274fi
15275
15276_ACEOF
5213506e
RW
15277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278exec 5>>config.log
15279{
15280 echo
15281 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15282## Running $as_me. ##
15283_ASBOX
15284 $as_echo "$ac_log"
15285} >&5
1c710c3c 15286
5213506e
RW
15287_ACEOF
15288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15289#
15290# INIT-COMMANDS
15291#
15292extrasub_build="$extrasub_build"
15293 extrasub_host="$extrasub_host"
15294 extrasub_target="$extrasub_target"
15295
5213506e 15296_ACEOF
1c710c3c 15297
5213506e 15298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15299
5213506e 15300# Handling of arguments.
1c710c3c
DJ
15301for ac_config_target in $ac_config_targets
15302do
5213506e
RW
15303 case $ac_config_target in
15304 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15305
15306 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15307 esac
15308done
15309
5213506e 15310
1c710c3c
DJ
15311# If the user did not use the arguments to specify the items to instantiate,
15312# then the envvar interface is used. Set only those that are not.
15313# We use the long form for the default assignment because of an extremely
15314# bizarre bug on SunOS 4.1.3.
15315if $ac_need_defaults; then
15316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15317fi
15318
15319# Have a temporary directory for convenience. Make it in the build tree
5213506e 15320# simply because there is no reason against having it here, and in addition,
1c710c3c 15321# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15322# Hook for its removal unless debugging.
15323# Note that there is a small window in which the directory will not be cleaned:
15324# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15325$debug ||
15326{
5213506e
RW
15327 tmp=
15328 trap 'exit_status=$?
15329 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15330' 0
15331 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15332}
1c710c3c
DJ
15333# Create a (secure) tmp directory for tmp files.
15334
15335{
5213506e 15336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15337 test -n "$tmp" && test -d "$tmp"
15338} ||
15339{
5213506e
RW
15340 tmp=./conf$$-$RANDOM
15341 (umask 077 && mkdir "$tmp")
15342} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15343
15344# Set up the scripts for CONFIG_FILES section.
15345# No need to generate them if there are no CONFIG_FILES.
15346# This happens for instance with `./config.status config.h'.
15347if test -n "$CONFIG_FILES"; then
15348
15349if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15350 ac_cs_awk_getline=:
15351 ac_cs_awk_pipe_init=
15352 ac_cs_awk_read_file='
15353 while ((getline aline < (F[key])) > 0)
15354 print(aline)
15355 close(F[key])'
15356 ac_cs_awk_pipe_fini=
15357else
15358 ac_cs_awk_getline=false
15359 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15360 ac_cs_awk_read_file='
15361 print "|#_!!_#|"
15362 print "cat " F[key] " &&"
15363 '$ac_cs_awk_pipe_init
15364 # The final `:' finishes the AND list.
15365 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15366fi
15367ac_cr=`echo X | tr X '\015'`
15368# On cygwin, bash can eat \r inside `` if the user requested igncr.
15369# But we know of no other shell where ac_cr would be empty at this
15370# point, so we can use a bashism as a fallback.
15371if test "x$ac_cr" = x; then
15372 eval ac_cr=\$\'\\r\'
15373fi
15374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15376 ac_cs_awk_cr='\r'
15377else
15378 ac_cs_awk_cr=$ac_cr
15379fi
15380
15381echo 'BEGIN {' >"$tmp/subs1.awk" &&
15382_ACEOF
15383
15384# Create commands to substitute file output variables.
1c710c3c 15385{
5213506e
RW
15386 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15387 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15388 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15389 echo "_ACAWK" &&
15390 echo "_ACEOF"
15391} >conf$$files.sh &&
15392. ./conf$$files.sh ||
15393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15394rm -f conf$$files.sh
1c710c3c 15395
5213506e
RW
15396{
15397 echo "cat >conf$$subs.awk <<_ACEOF" &&
15398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15399 echo "_ACEOF"
15400} >conf$$subs.sh ||
15401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15402ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15403ac_delim='%!_!# '
15404for ac_last_try in false false false false false :; do
15405 . ./conf$$subs.sh ||
15406 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15407
15408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15409 if test $ac_delim_n = $ac_delim_num; then
15410 break
15411 elif $ac_last_try; then
15412 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15413 else
15414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15415 fi
15416done
15417rm -f conf$$subs.sh
15418
15419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15420cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15421_ACEOF
5213506e
RW
15422sed -n '
15423h
15424s/^/S["/; s/!.*/"]=/
15425p
15426g
15427s/^[^!]*!//
15428:repl
15429t repl
15430s/'"$ac_delim"'$//
15431t delim
15432:nl
15433h
15434s/\(.\{148\}\).*/\1/
15435t more1
15436s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15437p
15438n
15439b repl
15440:more1
15441s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15442p
15443g
15444s/.\{148\}//
15445t nl
15446:delim
15447h
15448s/\(.\{148\}\).*/\1/
15449t more2
15450s/["\\]/\\&/g; s/^/"/; s/$/"/
15451p
15452b
15453:more2
15454s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15455p
15456g
15457s/.\{148\}//
15458t delim
15459' <conf$$subs.awk | sed '
15460/^[^""]/{
15461 N
15462 s/\n//
15463}
15464' >>$CONFIG_STATUS || ac_write_fail=1
15465rm -f conf$$subs.awk
15466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15467_ACAWK
15468cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15469 for (key in S) S_is_set[key] = 1
15470 FS = "\a"
15471 \$ac_cs_awk_pipe_init
15472}
15473{
15474 line = $ 0
15475 nfields = split(line, field, "@")
15476 substed = 0
15477 len = length(field[1])
15478 for (i = 2; i < nfields; i++) {
15479 key = field[i]
15480 keylen = length(key)
15481 if (S_is_set[key]) {
15482 value = S[key]
15483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15484 len += length(value) + length(field[++i])
15485 substed = 1
15486 } else
15487 len += 1 + keylen
15488 }
15489 if (nfields == 3 && !substed) {
15490 key = field[2]
15491 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15492 \$ac_cs_awk_read_file
15493 next
15494 }
15495 }
15496 print line
15497}
15498\$ac_cs_awk_pipe_fini
15499_ACAWK
15500_ACEOF
15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15502if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15503 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15504else
15505 cat
15506fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15507 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15508_ACEOF
15509
15510# VPATH may cause trouble with some makes, so we remove $(srcdir),
15511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15512# trailing colons and then remove the whole line if VPATH becomes empty
15513# (actually we leave an empty line to preserve line numbers).
15514if test "x$srcdir" = x.; then
15515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15516s/:*\$(srcdir):*/:/
15517s/:*\${srcdir}:*/:/
15518s/:*@srcdir@:*/:/
15519s/^\([^=]*=[ ]*\):*/\1/
15520s/:*$//
15521s/^[^=]*=[ ]*$//
15522}'
15523fi
2aeb72e9 15524
5213506e
RW
15525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15526fi # test -n "$CONFIG_FILES"
2aeb72e9 15527
1c710c3c 15528
5213506e
RW
15529eval set X " :F $CONFIG_FILES "
15530shift
15531for ac_tag
15532do
15533 case $ac_tag in
15534 :[FHLC]) ac_mode=$ac_tag; continue;;
15535 esac
15536 case $ac_mode$ac_tag in
15537 :[FHL]*:*);;
15538 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15539 :[FH]-) ac_tag=-:-;;
15540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15541 esac
15542 ac_save_IFS=$IFS
15543 IFS=:
15544 set x $ac_tag
15545 IFS=$ac_save_IFS
15546 shift
15547 ac_file=$1
15548 shift
79c06341 15549
5213506e
RW
15550 case $ac_mode in
15551 :L) ac_source=$1;;
15552 :[FH])
15553 ac_file_inputs=
15554 for ac_f
15555 do
15556 case $ac_f in
15557 -) ac_f="$tmp/stdin";;
15558 *) # Look for the file first in the build tree, then in the source tree
15559 # (if the path is not absolute). The absolute path cannot be DOS-style,
15560 # because $ac_f cannot contain `:'.
15561 test -f "$ac_f" ||
15562 case $ac_f in
15563 [\\/$]*) false;;
15564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15565 esac ||
15566 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15567 esac
15568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15569 as_fn_append ac_file_inputs " '$ac_f'"
15570 done
1c710c3c 15571
5213506e
RW
15572 # Let's still pretend it is `configure' which instantiates (i.e., don't
15573 # use $as_me), people would be surprised to read:
15574 # /* config.h. Generated by config.status. */
15575 configure_input='Generated from '`
15576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15577 `' by configure.'
15578 if test x"$ac_file" != x-; then
15579 configure_input="$ac_file. $configure_input"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15581$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15582 fi
5213506e
RW
15583 # Neutralize special characters interpreted by sed in replacement strings.
15584 case $configure_input in #(
15585 *\&* | *\|* | *\\* )
15586 ac_sed_conf_input=`$as_echo "$configure_input" |
15587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15588 *) ac_sed_conf_input=$configure_input;;
15589 esac
11a67599 15590
5213506e
RW
15591 case $ac_tag in
15592 *:-:* | *:-) cat >"$tmp/stdin" \
15593 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15594 esac
15595 ;;
11a67599
ZW
15596 esac
15597
5213506e 15598 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15600 X"$ac_file" : 'X\(//\)[^/]' \| \
15601 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15603$as_echo X"$ac_file" |
15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15605 s//\1/
15606 q
15607 }
15608 /^X\(\/\/\)[^/].*/{
15609 s//\1/
15610 q
15611 }
15612 /^X\(\/\/\)$/{
15613 s//\1/
15614 q
15615 }
15616 /^X\(\/\).*/{
15617 s//\1/
15618 q
15619 }
15620 s/.*/./; q'`
15621 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15622 ac_builddir=.
0b0dc272 15623
5213506e
RW
15624case "$ac_dir" in
15625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15626*)
15627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15628 # A ".." for each directory in $ac_dir_suffix.
15629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15630 case $ac_top_builddir_sub in
15631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15633 esac ;;
15634esac
15635ac_abs_top_builddir=$ac_pwd
15636ac_abs_builddir=$ac_pwd$ac_dir_suffix
15637# for backward compatibility:
15638ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15639
15640case $srcdir in
5213506e 15641 .) # We are building in place.
1c710c3c 15642 ac_srcdir=.
5213506e
RW
15643 ac_top_srcdir=$ac_top_builddir_sub
15644 ac_abs_top_srcdir=$ac_pwd ;;
15645 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15646 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15647 ac_top_srcdir=$srcdir
15648 ac_abs_top_srcdir=$srcdir ;;
15649 *) # Relative name.
15650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15651 ac_top_srcdir=$ac_top_build_prefix$srcdir
15652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15653esac
5213506e 15654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15655
0b0dc272 15656
5213506e
RW
15657 case $ac_mode in
15658 :F)
15659 #
15660 # CONFIG_FILE
15661 #
1c710c3c
DJ
15662
15663 case $INSTALL in
15664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15665 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15666 esac
5213506e 15667_ACEOF
11a67599 15668
5213506e
RW
15669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670# If the template does not know about datarootdir, expand it.
15671# FIXME: This hack should be removed a few years after 2.60.
15672ac_datarootdir_hack=; ac_datarootdir_seen=
15673ac_sed_dataroot='
15674/datarootdir/ {
15675 p
15676 q
15677}
15678/@datadir@/p
15679/@docdir@/p
15680/@infodir@/p
15681/@localedir@/p
15682/@mandir@/p'
15683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15684*datarootdir*) ac_datarootdir_seen=yes;;
15685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15688_ACEOF
5213506e
RW
15689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15690 ac_datarootdir_hack='
15691 s&@datadir@&$datadir&g
15692 s&@docdir@&$docdir&g
15693 s&@infodir@&$infodir&g
15694 s&@localedir@&$localedir&g
15695 s&@mandir@&$mandir&g
15696 s&\\\${datarootdir}&$datarootdir&g' ;;
15697esac
15698_ACEOF
15699
15700# Neutralize VPATH when `$srcdir' = `.'.
15701# Shell code in configure.ac might set extrasub.
15702# FIXME: do we really want to maintain this feature?
15703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15705$extrasub
15706_ACEOF
5213506e 15707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15708:t
15709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15710s|@configure_input@|$ac_sed_conf_input|;t t
15711s&@top_builddir@&$ac_top_builddir_sub&;t t
15712s&@top_build_prefix@&$ac_top_build_prefix&;t t
15713s&@srcdir@&$ac_srcdir&;t t
15714s&@abs_srcdir@&$ac_abs_srcdir&;t t
15715s&@top_srcdir@&$ac_top_srcdir&;t t
15716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15717s&@builddir@&$ac_builddir&;t t
15718s&@abs_builddir@&$ac_abs_builddir&;t t
15719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15720s&@INSTALL@&$ac_INSTALL&;t t
15721$ac_datarootdir_hack
15722"
15723eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15724if $ac_cs_awk_getline; then
15725 $AWK -f "$tmp/subs.awk"
15726else
15727 $AWK -f "$tmp/subs.awk" | $SHELL
15728fi >$tmp/out \
15729 || as_fn_error "could not create $ac_file" "$LINENO" 5
15730
15731test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15732 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15735which seems to be undefined. Please make sure it is defined." >&5
15736$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15737which seems to be undefined. Please make sure it is defined." >&2;}
15738
15739 rm -f "$tmp/stdin"
15740 case $ac_file in
15741 -) cat "$tmp/out" && rm -f "$tmp/out";;
15742 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15743 esac \
15744 || as_fn_error "could not create $ac_file" "$LINENO" 5
15745 ;;
11a67599 15746
11a67599 15747
79c06341 15748
5213506e
RW
15749 esac
15750
3e54529c
RW
15751
15752 case $ac_file$ac_mode in
15753 "Makefile":F) sed "$extrasub_build" Makefile |
15754 sed "$extrasub_host" |
15755 sed "$extrasub_target" > mf$$
15756 mv -f mf$$ Makefile ;;
15757
15758 esac
5213506e
RW
15759done # for ac_tag
15760
15761
15762as_fn_exit 0
1c710c3c 15763_ACEOF
1c710c3c
DJ
15764ac_clean_files=$ac_clean_files_save
15765
5213506e
RW
15766test $ac_write_fail = 0 ||
15767 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15768
1c710c3c
DJ
15769
15770# configure is writing to config.log, and then calls config.status.
15771# config.status does its own redirection, appending to config.log.
15772# Unfortunately, on DOS this fails, as config.log is still kept open
15773# by configure, so config.status won't be able to write to it; its
15774# output is simply discarded. So we exec the FD to /dev/null,
15775# effectively closing config.log, so it can be properly (re)opened and
15776# appended to by config.status. When coming back to configure, we
15777# need to make the FD available again.
15778if test "$no_create" != yes; then
15779 ac_cs_success=:
15780 ac_config_status_args=
15781 test "$silent" = yes &&
15782 ac_config_status_args="$ac_config_status_args --quiet"
15783 exec 5>/dev/null
15784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15785 exec 5>>config.log
15786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15787 # would make configure fail if this is the last instruction.
5213506e
RW
15788 $ac_cs_success || as_fn_exit $?
15789fi
15790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15793fi
79c06341 15794