]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Move enum unwind_info_type from target.h to coretypes.h.
[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 555enable_option_checking=no
d7f09764
DN
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
559#ifdef HAVE_SYS_TYPES_H
560# include <sys/types.h>
561#endif
562#ifdef HAVE_SYS_STAT_H
563# include <sys/stat.h>
564#endif
565#ifdef STDC_HEADERS
566# include <stdlib.h>
567# include <stddef.h>
568#else
569# ifdef HAVE_STDLIB_H
570# include <stdlib.h>
571# endif
572#endif
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575# include <memory.h>
576# endif
577# include <string.h>
578#endif
579#ifdef HAVE_STRINGS_H
580# include <strings.h>
581#endif
582#ifdef HAVE_INTTYPES_H
583# include <inttypes.h>
584#endif
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
589# include <unistd.h>
590#endif"
591
5213506e
RW
592ac_subst_vars='LTLIBOBJS
593LIBOBJS
594compare_exclusions
595stage2_werror_flag
596stage1_checking
597stage1_cflags
598MAINT
599MAINTAINER_MODE_FALSE
600MAINTAINER_MODE_TRUE
601COMPILER_NM_FOR_TARGET
602COMPILER_LD_FOR_TARGET
603COMPILER_AS_FOR_TARGET
604FLAGS_FOR_TARGET
605RAW_CXX_FOR_TARGET
606WINDMC_FOR_TARGET
607WINDRES_FOR_TARGET
608STRIP_FOR_TARGET
609RANLIB_FOR_TARGET
610OBJDUMP_FOR_TARGET
611NM_FOR_TARGET
612LIPO_FOR_TARGET
613LD_FOR_TARGET
614DLLTOOL_FOR_TARGET
615AS_FOR_TARGET
616AR_FOR_TARGET
617GFORTRAN_FOR_TARGET
618GCJ_FOR_TARGET
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
622OBJDUMP
623OBJCOPY
624WINDMC
625WINDRES
626STRIP
627RANLIB
628NM
629LIPO
630LD
631DLLTOOL
632AS
633AR
634RUNTEST
635EXPECT
636MAKEINFO
637FLEX
638LEX
639M4
640BISON
641YACC
642config_shell
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
649GFORTRAN_FOR_BUILD
650GCJ_FOR_BUILD
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
aae29963 658target_configdirs
5213506e 659configdirs
5213506e 660build_configdirs
5213506e
RW
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
ffedf511
RW
668target_configargs
669host_configargs
670build_configargs
e12c4094 671BUILD_CONFIG
5213506e
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676stage1_languages
d7f09764
DN
677extra_host_libiberty_configure_flags
678libelfinc
679libelflibs
680EGREP
681GREP
682CPP
5213506e
RW
683clooginc
684clooglibs
685pplinc
686ppllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e
RW
689stage1_libs
690stage1_ldflags
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
696do_compare
697GNATMAKE
698GNATBIND
699ac_ct_CXX
700CXXFLAGS
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
87264276
PB
713AWK
714SED
5213506e
RW
715LN_S
716LN
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728target_noncanonical
729host_noncanonical
730build_noncanonical
731build_os
732build_vendor
733build_cpu
734build
735TOPLEVEL_CONFIGURE_ARGUMENTS
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='serialization_dependencies
775host_makefile_frag
776target_makefile_frag
777alphaieee_frag
778ospace_frag'
779ac_user_opts='
780enable_option_checking
781with_build_libsubdir
782enable_gold
783enable_libada
784enable_libssp
785enable_build_with_cxx
786with_mpc
787with_mpc_include
788with_mpc_lib
789with_mpfr_dir
790with_mpfr
791with_mpfr_include
792with_mpfr_lib
793with_gmp_dir
794with_gmp
795with_gmp_include
796with_gmp_lib
797with_host_libstdcxx
798with_stage1_ldflags
799with_stage1_libs
5213506e 800with_boot_libs
ed2eaa9f 801with_boot_ldflags
5213506e
RW
802with_ppl
803with_ppl_include
804with_ppl_lib
805enable_ppl_version_check
806with_cloog
807with_cloog_include
808with_cloog_lib
809enable_cloog_version_check
d7f09764
DN
810enable_lto
811with_libelf
812with_libelf_include
813with_libelf_lib
5213506e
RW
814enable_stage1_languages
815enable_objc_gc
816with_build_sysroot
817with_debug_prefix_map
818enable_bootstrap
5646b7b9 819with_build_config
5213506e
RW
820enable_serial_configure
821with_build_time_tools
822enable_maintainer_mode
823enable_stage1_checking
824enable_werror
5213506e
RW
825'
826 ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CXX
835CXXFLAGS
836CCC
d7f09764 837CPP
ffedf511
RW
838build_configargs
839host_configargs
840target_configargs
5213506e
RW
841AR
842AS
843DLLTOOL
844LD
845LIPO
846NM
847RANLIB
848STRIP
849WINDRES
850WINDMC
851OBJCOPY
852OBJDUMP
853CC_FOR_TARGET
854CXX_FOR_TARGET
855GCC_FOR_TARGET
856GCJ_FOR_TARGET
857GFORTRAN_FOR_TARGET
858AR_FOR_TARGET
859AS_FOR_TARGET
860DLLTOOL_FOR_TARGET
861LD_FOR_TARGET
862LIPO_FOR_TARGET
863NM_FOR_TARGET
864OBJDUMP_FOR_TARGET
865RANLIB_FOR_TARGET
866STRIP_FOR_TARGET
867WINDRES_FOR_TARGET
868WINDMC_FOR_TARGET'
869
671aa708
NN
870
871# Initialize some variables set by options.
1c710c3c
DJ
872ac_init_help=
873ac_init_version=false
5213506e
RW
874ac_unrecognized_opts=
875ac_unrecognized_sep=
671aa708
NN
876# The variables have the same names as the options, with
877# dashes changed to underlines.
1c710c3c 878cache_file=/dev/null
671aa708 879exec_prefix=NONE
671aa708 880no_create=
671aa708
NN
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
671aa708
NN
889verbose=
890x_includes=NONE
891x_libraries=NONE
1c710c3c
DJ
892
893# Installation directory options.
894# These are left unexpanded so users can "make install exec_prefix=/foo"
895# and all the variables that are supposed to be based on exec_prefix
896# by default will actually change.
897# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 898# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
5213506e
RW
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
671aa708
NN
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
671aa708
NN
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
5213506e
RW
909docdir='${datarootdir}/doc/${PACKAGE}'
910infodir='${datarootdir}/info'
911htmldir='${docdir}'
912dvidir='${docdir}'
913pdfdir='${docdir}'
914psdir='${docdir}'
915libdir='${exec_prefix}/lib'
916localedir='${datarootdir}/locale'
917mandir='${datarootdir}/man'
79c06341 918
671aa708 919ac_prev=
5213506e 920ac_dashdash=
671aa708
NN
921for ac_option
922do
671aa708
NN
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
5213506e 925 eval $ac_prev=\$ac_option
671aa708
NN
926 ac_prev=
927 continue
928 fi
79c06341 929
5213506e
RW
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
671aa708
NN
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
5213506e
RW
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
671aa708
NN
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 944 bindir=$ac_optarg ;;
671aa708
NN
945
946 -build | --build | --buil | --bui | --bu)
1c710c3c 947 ac_prev=build_alias ;;
671aa708 948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 949 build_alias=$ac_optarg ;;
671aa708
NN
950
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
671aa708 960
5213506e 961 -datadir | --datadir | --datadi | --datad)
671aa708 962 ac_prev=datadir ;;
5213506e 963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 964 datadir=$ac_optarg ;;
671aa708 965
5213506e
RW
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972
671aa708 973 -disable-* | --disable-*)
5213506e 974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 975 # Reject names that are not valid shell variable names.
5213506e
RW
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
671aa708
NN
998
999 -enable-* | --enable-*)
5213506e 1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1001 # Reject names that are not valid shell variable names.
5213506e
RW
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
2aeb72e9 1012 esac
5213506e 1013 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1c710c3c 1022 exec_prefix=$ac_optarg ;;
671aa708
NN
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
1c710c3c
DJ
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
671aa708
NN
1034
1035 -host | --host | --hos | --ho)
1c710c3c 1036 ac_prev=host_alias ;;
671aa708 1037 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1038 host_alias=$ac_optarg ;;
671aa708 1039
5213506e
RW
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
671aa708
NN
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1051 includedir=$ac_optarg ;;
671aa708
NN
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1056 infodir=$ac_optarg ;;
671aa708
NN
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1061 libdir=$ac_optarg ;;
671aa708
NN
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1068 libexecdir=$ac_optarg ;;
671aa708 1069
5213506e
RW
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
671aa708 1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1076 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1080 localstatedir=$ac_optarg ;;
671aa708
NN
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1085 mandir=$ac_optarg ;;
671aa708
NN
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1092 | --no-cr | --no-c | -n)
671aa708
NN
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1106 oldincludedir=$ac_optarg ;;
671aa708
NN
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1111 prefix=$ac_optarg ;;
671aa708
NN
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1118 program_prefix=$ac_optarg ;;
671aa708
NN
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1125 program_suffix=$ac_optarg ;;
671aa708
NN
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1142 program_transform_name=$ac_optarg ;;
671aa708 1143
5213506e
RW
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
671aa708
NN
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1c710c3c 1162 sbindir=$ac_optarg ;;
671aa708
NN
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1c710c3c 1173 sharedstatedir=$ac_optarg ;;
671aa708
NN
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1c710c3c 1178 site=$ac_optarg ;;
671aa708
NN
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1183 srcdir=$ac_optarg ;;
671aa708
NN
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1190 sysconfdir=$ac_optarg ;;
671aa708
NN
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1193 ac_prev=target_alias ;;
671aa708 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1195 target_alias=$ac_optarg ;;
671aa708
NN
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1c710c3c
DJ
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
671aa708
NN
1202
1203 -with-* | --with-*)
5213506e 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1205 # Reject names that are not valid shell variable names.
5213506e
RW
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
2aeb72e9 1216 esac
5213506e 1217 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1218
1219 -without-* | --without-*)
5213506e 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1221 # Reject names that are not valid shell variable names.
5213506e
RW
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
671aa708
NN
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1244 x_includes=$ac_optarg ;;
671aa708
NN
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1251 x_libraries=$ac_optarg ;;
671aa708 1252
5213506e
RW
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information."
671aa708
NN
1255 ;;
1256
1c710c3c
DJ
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
5213506e
RW
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1265 export $ac_envvar ;;
1266
671aa708 1267 *)
1c710c3c 1268 # FIXME: should be removed in autoconf 3.0.
5213506e 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
1c710c3c 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1280 as_fn_error "missing argument to $ac_option"
af71363e 1281fi
af71363e 1282
5213506e
RW
1283if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1288 esac
5213506e 1289fi
2aeb72e9 1290
5213506e
RW
1291# Check all directory arguments for consistency.
1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
2aeb72e9 1296do
5213506e
RW
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
2aeb72e9 1305 case $ac_val in
5213506e
RW
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1308 esac
5213506e 1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1310done
1311
1c710c3c
DJ
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
0b0dc272 1318
1c710c3c
DJ
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
5213506e 1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
671aa708 1334
671aa708 1335
5213506e
RW
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1342
1343
671aa708
NN
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
5213506e
RW
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
671aa708 1371 srcdir=$ac_confdir
5213506e 1372 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
5213506e
RW
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
ac9e6043
RW
1396ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1397
5213506e
RW
1398for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
1c710c3c
DJ
1404
1405#
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412\`configure' configures this package to adapt to many kinds of systems.
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1c710c3c
DJ
1432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1434 [$ac_default_prefix]
1c710c3c 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1436 [PREFIX]
1c710c3c
DJ
1437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
5213506e
RW
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1465_ACEOF
1466
1467 cat <<\_ACEOF
1468
1469Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482
1483 cat <<\_ACEOF
1484
1485Optional Features:
5213506e 1486 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
38e3d868 1489 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
30b74385
RW
1490 --enable-libada build libada directory
1491 --enable-libssp build libssp directory
00020c16 1492 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
1493 --disable-ppl-version-check disable check for PPL version
1494 --disable-cloog-version-check disable check for CLooG version
d7f09764 1495 --enable-lto enable link time optimization support
30b74385 1496 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1497 stage1. Mostly useful for compiler development.
30b74385
RW
1498 --enable-objc-gc enable use of Boehm's garbage collector with the
1499 GNU Objective-C runtime
1500 --enable-bootstrap enable bootstrapping [yes if native build]
1501 --enable-serial-[{host,target,build}-]configure
1502 force sequential configuration of
1c710c3c 1503 sub-packages for the host, target or build
30b74385 1504 machine, or all sub-packages
1c710c3c
DJ
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
30b74385
RW
1507 --enable-stage1-checking[=all] choose additional checking for stage1
1508 of the compiler
1c710c3c
DJ
1509 --enable-werror enable -Werror in bootstrap stage2 and later
1510
1511Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1515 --with-mpc=PATH specify prefix directory for installed MPC package.
1516 Equivalent to --with-mpc-include=PATH/include
1517 plus --with-mpc-lib=PATH/lib
1518 --with-mpc-include=PATH
1519 specify directory for installed MPC include files
1520 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1521 --with-mpfr-dir=PATH this option has been REMOVED
1522 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1523 Equivalent to --with-mpfr-include=PATH/include
1524 plus --with-mpfr-lib=PATH/lib
1525 --with-mpfr-include=PATH
30b74385
RW
1526 specify directory for installed MPFR include files
1527 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1528 --with-gmp-dir=PATH this option has been REMOVED
1529 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1530 Equivalent to --with-gmp-include=PATH/include
1531 plus --with-gmp-lib=PATH/lib
30b74385
RW
1532 --with-gmp-include=PATH specify directory for installed GMP include files
1533 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1534 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1535 when linking with PPL
00020c16
ILT
1536 --with-stage1-ldflags=FLAGS Linker flags for stage1
1537 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1538 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1539 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1540 --with-ppl=PATH Specify prefix directory for the installed PPL package
1541 Equivalent to --with-ppl-include=PATH/include
1542 plus --with-ppl-lib=PATH/lib
1543 --with-ppl-include=PATH Specify directory for installed PPL include files
1544 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 1545 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
1546 Equivalent to --with-cloog-include=PATH/include
1547 plus --with-cloog-lib=PATH/lib
d789184e
SP
1548 --with-cloog-include=PATH Specify directory for installed CLooG include files
1549 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
d7f09764
DN
1550 --with-libelf=PATH Specify prefix directory for the installed libelf package
1551 Equivalent to --with-libelf-include=PATH/include
1552 plus --with-libelf-lib=PATH/lib
1553 --with-libelf-include=PATH Specify directory for installed libelf include files
1554 --with-libelf-lib=PATH Specify the directory for the installed libelf library
30b74385 1555 --with-build-sysroot=SYSROOT
1c710c3c 1556 use sysroot as the system root during the build
c8aea42c
PB
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
5646b7b9
AO
1559--with-build-config='NAME NAME2...'
1560 Use config/NAME.mk build configuration
30b74385 1561 --with-build-time-tools=PATH
1c710c3c 1562 use given path to find target tools during the build
1c710c3c
DJ
1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
5213506e
RW
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
d7f09764 1574 CPP C preprocessor
ffedf511
RW
1575 build_configargs
1576 additional configure arguments for build directories
1577 host_configargs
1578 additional configure arguments for host directories
1579 target_configargs
1580 additional configure arguments for target directories
278a7a38
AO
1581 AR AR for the host
1582 AS AS for the host
1583 DLLTOOL DLLTOOL for the host
1584 LD LD for the host
1585 LIPO LIPO for the host
1586 NM NM for the host
1587 RANLIB RANLIB for the host
1588 STRIP STRIP for the host
1589 WINDRES WINDRES for the host
901119ae 1590 WINDMC WINDMC for the host
278a7a38
AO
1591 OBJCOPY OBJCOPY for the host
1592 OBJDUMP OBJDUMP for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 AR_FOR_TARGET
1604 AR for the target
1605 AS_FOR_TARGET
1606 AS for the target
1607 DLLTOOL_FOR_TARGET
1608 DLLTOOL for the target
1609 LD_FOR_TARGET
1610 LD for the target
1611 LIPO_FOR_TARGET
1612 LIPO for the target
1613 NM_FOR_TARGET
1614 NM for the target
1615 OBJDUMP_FOR_TARGET
1616 OBJDUMP for the target
1617 RANLIB_FOR_TARGET
1618 RANLIB for the target
1619 STRIP_FOR_TARGET
1620 STRIP for the target
1621 WINDRES_FOR_TARGET
1622 WINDRES for the target
901119ae
KT
1623 WINDMC_FOR_TARGET
1624 WINDMC for the target
1c710c3c
DJ
1625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
5213506e 1629Report bugs to the package provider.
1c710c3c 1630_ACEOF
5213506e 1631ac_status=$?
1c710c3c
DJ
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1c710c3c 1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1c710c3c
DJ
1640 ac_builddir=.
1641
5213506e
RW
1642case "$ac_dir" in
1643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644*)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652esac
1653ac_abs_top_builddir=$ac_pwd
1654ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655# for backward compatibility:
1656ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1657
1658case $srcdir in
5213506e 1659 .) # We are building in place.
1c710c3c 1660 ac_srcdir=.
5213506e
RW
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1664 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1671esac
5213506e
RW
1672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1682 else
5213506e
RW
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1686 done
1687fi
1688
5213506e 1689test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1690if $ac_init_version; then
1691 cat <<\_ACEOF
5213506e
RW
1692configure
1693generated by GNU Autoconf 2.64
1c710c3c 1694
5213506e 1695Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
5213506e 1699 exit
0b0dc272 1700fi
5213506e
RW
1701
1702## ------------------------ ##
1703## Autoconf initialization. ##
1704## ------------------------ ##
1705
1706# ac_fn_c_try_compile LINENO
1707# --------------------------
1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_compile ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 return $ac_retval
1741
1742} # ac_fn_c_try_compile
1743
1744# ac_fn_cxx_try_compile LINENO
1745# ----------------------------
1746# Try to compile conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_cxx_try_compile ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext
1751 if { { ac_try="$ac_compile"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 return $ac_retval
1779
1780} # ac_fn_cxx_try_compile
1781
1782# ac_fn_c_try_link LINENO
1783# -----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_link ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 $as_test_x conftest$ac_exeext
1810 }; then :
1811 ac_retval=0
1812else
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817fi
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1825
1826} # ac_fn_c_try_link
d7f09764
DN
1827
1828# ac_fn_c_try_cpp LINENO
1829# ----------------------
1830# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_c_try_cpp ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if { { ac_try="$ac_cpp conftest.$ac_ext"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } >/dev/null && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 }; then :
1853 ac_retval=0
1854else
1855 $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859fi
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_cpp
1864
1865# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866# -------------------------------------------------------
1867# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868# the include files in INCLUDES and setting the cache variable VAR
1869# accordingly.
1870ac_fn_c_check_header_mongrel ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882else
1883 # Is the header compilable?
1884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885$as_echo_n "checking $2 usability... " >&6; }
1886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888$4
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1893else
1894 ac_header_compiler=no
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898$as_echo "$ac_header_compiler" >&6; }
1899
1900# Is the header present?
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902$as_echo_n "checking $2 presence... " >&6; }
1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h. */
1905#include <$2>
1906_ACEOF
1907if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1909else
1910 ac_header_preproc=no
1911fi
1912rm -f conftest.err conftest.$ac_ext
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914$as_echo "$ac_header_preproc" >&6; }
1915
1916# So? What about this header?
1917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 yes:no: )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 ;;
1924 no:yes:* )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ;;
1936esac
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 eval "$3=\$ac_header_compiler"
1943fi
1944eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947fi
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_header_mongrel
1951
1952# ac_fn_c_try_run LINENO
1953# ----------------------
1954# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955# that executables *can* be run.
1956ac_fn_c_try_run ()
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1960case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1980 ac_retval=0
1981else
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=$ac_status
1987fi
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1991
1992} # ac_fn_c_try_run
1993
1994# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1995# -------------------------------------------------------
1996# Tests whether HEADER exists and can be compiled using the include files in
1997# INCLUDES, setting the cache variable VAR accordingly.
1998ac_fn_c_check_header_compile ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$4
2009#include <$2>
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012 eval "$3=yes"
2013else
2014 eval "$3=no"
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
2023} # ac_fn_c_check_header_compile
5213506e 2024cat >config.log <<_ACEOF
1c710c3c
DJ
2025This file contains any messages produced by compilers while
2026running configure, to aid debugging if configure makes a mistake.
2027
2028It was created by $as_me, which was
5213506e 2029generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
2030
2031 $ $0 $@
2032
2033_ACEOF
5213506e 2034exec 5>>config.log
1c710c3c
DJ
2035{
2036cat <<_ASUNAME
2037## --------- ##
2038## Platform. ##
2039## --------- ##
2040
2041hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046
2047/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2049
2050/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2051/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2052/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2053/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
2054/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2055/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2056/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2057
2058_ASUNAME
2059
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
5213506e
RW
2065 $as_echo "PATH: $as_dir"
2066 done
2067IFS=$as_save_IFS
1c710c3c
DJ
2068
2069} >&5
2070
2071cat >&5 <<_ACEOF
2072
2073
2074## ----------- ##
2075## Core tests. ##
2076## ----------- ##
2077
2078_ACEOF
2079
2080
2081# Keep a trace of the command line.
2082# Strip out --no-create and --no-recursion so they do not pile up.
2083# Strip out --silent because we don't want to record it for future runs.
2084# Also quote any args containing shell meta-characters.
2085# Make two passes to allow for proper duplicate-argument suppression.
2086ac_configure_args=
2087ac_configure_args0=
2088ac_configure_args1=
1c710c3c
DJ
2089ac_must_keep_next=false
2090for ac_pass in 1 2
2091do
2092 for ac_arg
2093 do
2094 case $ac_arg in
2095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097 | -silent | --silent | --silen | --sile | --sil)
2098 continue ;;
5213506e
RW
2099 *\'*)
2100 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2101 esac
2102 case $ac_pass in
5213506e 2103 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2104 2)
5213506e 2105 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2106 if test $ac_must_keep_next = true; then
2107 ac_must_keep_next=false # Got value, back to normal.
2108 else
2109 case $ac_arg in
2110 *=* | --config-cache | -C | -disable-* | --disable-* \
2111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113 | -with-* | --with-* | -without-* | --without-* | --x)
2114 case "$ac_configure_args0 " in
2115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116 esac
2117 ;;
2118 -* ) ac_must_keep_next=true ;;
2119 esac
2120 fi
5213506e 2121 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2122 ;;
2123 esac
2124 done
2125done
5213506e
RW
2126{ ac_configure_args0=; unset ac_configure_args0;}
2127{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2128
2129# When interrupted or exit'd, cleanup temporary files, and complete
2130# config.log. We remove comments because anyway the quotes in there
2131# would cause problems or look ugly.
5213506e
RW
2132# WARNING: Use '\'' to represent an apostrophe within the trap.
2133# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2134trap 'exit_status=$?
2135 # Save into config.log some information that might help in debugging.
2136 {
2137 echo
2138
2139 cat <<\_ASBOX
2140## ---------------- ##
2141## Cache variables. ##
2142## ---------------- ##
2143_ASBOX
2144 echo
2145 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2146(
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in #(
2150 *${as_nl}*)
2151 case $ac_var in #(
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 esac
2155 case $ac_var in #(
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2159 esac ;;
2160 esac
2161 done
1c710c3c 2162 (set) 2>&1 |
5213506e
RW
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
1c710c3c 2165 sed -n \
5213506e
RW
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
1c710c3c 2169 *)
5213506e 2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2171 ;;
5213506e
RW
2172 esac |
2173 sort
2174)
1c710c3c
DJ
2175 echo
2176
2177 cat <<\_ASBOX
2178## ----------------- ##
2179## Output variables. ##
2180## ----------------- ##
2181_ASBOX
2182 echo
2183 for ac_var in $ac_subst_vars
2184 do
5213506e
RW
2185 eval ac_val=\$$ac_var
2186 case $ac_val in
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 esac
2189 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2190 done | sort
2191 echo
2192
2193 if test -n "$ac_subst_files"; then
2194 cat <<\_ASBOX
5213506e
RW
2195## ------------------- ##
2196## File substitutions. ##
2197## ------------------- ##
1c710c3c
DJ
2198_ASBOX
2199 echo
2200 for ac_var in $ac_subst_files
2201 do
5213506e
RW
2202 eval ac_val=\$$ac_var
2203 case $ac_val in
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 esac
2206 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2207 done | sort
2208 echo
2209 fi
2210
2211 if test -s confdefs.h; then
2212 cat <<\_ASBOX
2213## ----------- ##
2214## confdefs.h. ##
2215## ----------- ##
2216_ASBOX
2217 echo
5213506e 2218 cat confdefs.h
1c710c3c
DJ
2219 echo
2220 fi
2221 test "$ac_signal" != 0 &&
5213506e
RW
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
1c710c3c 2224 } >&5
5213506e
RW
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2227 exit $exit_status
5213506e 2228' 0
1c710c3c 2229for ac_signal in 1 2 13 15; do
5213506e 2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2231done
2232ac_signal=0
2233
2234# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2235rm -f -r conftest* confdefs.h
2236
2237$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2238
2239# Predefined preprocessor variables.
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_NAME "$PACKAGE_NAME"
2243_ACEOF
2244
1c710c3c
DJ
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247_ACEOF
2248
1c710c3c
DJ
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_VERSION "$PACKAGE_VERSION"
2251_ACEOF
0b0dc272 2252
1c710c3c
DJ
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_STRING "$PACKAGE_STRING"
2255_ACEOF
2256
1c710c3c
DJ
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259_ACEOF
2260
5213506e
RW
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_URL "$PACKAGE_URL"
2263_ACEOF
2264
1c710c3c
DJ
2265
2266# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2267# Prefer an explicitly selected file to automatically selected ones.
2268ac_site_file1=NONE
2269ac_site_file2=NONE
2270if test -n "$CONFIG_SITE"; then
2271 ac_site_file1=$CONFIG_SITE
2272elif test "x$prefix" != xNONE; then
2273 ac_site_file1=$prefix/share/config.site
2274 ac_site_file2=$prefix/etc/config.site
2275else
2276 ac_site_file1=$ac_default_prefix/share/config.site
2277 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2278fi
5213506e
RW
2279for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280do
2281 test "x$ac_site_file" = xNONE && continue
671aa708 2282 if test -r "$ac_site_file"; then
5213506e
RW
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2285 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2286 . "$ac_site_file"
2287 fi
2288done
2289
2290if test -r "$cache_file"; then
1c710c3c
DJ
2291 # Some versions of bash will fail to source /dev/null (special
2292 # files actually), so we avoid doing that.
2293 if test -f "$cache_file"; then
5213506e
RW
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2296 case $cache_file in
5213506e
RW
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
1c710c3c
DJ
2299 esac
2300 fi
671aa708 2301else
5213506e
RW
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2304 >$cache_file
2305fi
2306
2307# Check that the precious variables saved in the cache have kept the same
2308# value.
2309ac_cache_corrupted=false
5213506e 2310for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2315 case $ac_old_set,$ac_new_set in
2316 set,)
5213506e
RW
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2319 ac_cache_corrupted=: ;;
2320 ,set)
5213506e
RW
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2343 fi;;
2344 esac
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2347 case $ac_new_val in
5213506e 2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2350 esac
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2354 esac
2355 fi
2356done
2357if $ac_cache_corrupted; then
5213506e
RW
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2363fi
5213506e
RW
2364## -------------------- ##
2365## Main body of script. ##
2366## -------------------- ##
671aa708 2367
2aeb72e9
DD
2368ac_ext=c
2369ac_cpp='$CPP $CPPFLAGS'
2370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
1c710c3c
DJ
2374
2375
2376
1c710c3c
DJ
2377
2378
0115d4a3 2379
1c710c3c 2380
ad33ff57
RW
2381
2382progname=$0
2383# if PWD already has a value, it is probably wrong.
2384if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2385
2386# Export original configure arguments for use by sub-configures.
2387# Quote arguments with shell meta charatcers.
2388TOPLEVEL_CONFIGURE_ARGUMENTS=
2389set -- "$progname" "$@"
2390for ac_arg
2391do
2392 case "$ac_arg" in
2393 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2394 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2395 # if the argument is of the form -foo=baz, quote the baz part only
2396 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2397 *) ;;
2398 esac
2399 # Add the quoted argument to the list.
2400 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2401done
2402if test "$silent" = yes; then
2403 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2404fi
2405# Remove the initial space we just introduced and, as these will be
2406# expanded by make, quote '$'.
2407TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2408
1c710c3c
DJ
2409
2410# Find the build, host, and target systems.
671aa708 2411ac_aux_dir=
5213506e
RW
2412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2413 for ac_t in install-sh install.sh shtool; do
2414 if test -f "$ac_dir/$ac_t"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/$ac_t -c"
2417 break 2
2418 fi
2419 done
671aa708
NN
2420done
2421if test -z "$ac_aux_dir"; then
5213506e 2422 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2423fi
5213506e
RW
2424
2425# These three variables are undocumented and unsupported,
2426# and are intended to be withdrawn in a future Autoconf release.
2427# They can cause serious problems if a builder's source tree is in a directory
2428# whose full name contains unusual characters.
2429ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2430ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2431ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2432
671aa708 2433
1c710c3c 2434# Make sure we can run config.sub.
5213506e
RW
2435$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2437
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2439$as_echo_n "checking build system type... " >&6; }
2440if test "${ac_cv_build+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2442else
2443 ac_build_alias=$build_alias
2444test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446test "x$ac_build_alias" = x &&
2447 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2448ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2449 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2450
2451fi
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2453$as_echo "$ac_cv_build" >&6; }
2454case $ac_cv_build in
2455*-*-*) ;;
2456*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2457esac
1c710c3c 2458build=$ac_cv_build
5213506e
RW
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_build
2461shift
2462build_cpu=$1
2463build_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467build_os=$*
2468IFS=$ac_save_IFS
2469case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2470
671aa708 2471
1c710c3c
DJ
2472 case ${build_alias} in
2473 "") build_noncanonical=${build} ;;
2474 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2475esac
2476
2477
af71363e 2478
1c710c3c
DJ
2479 case ${host_alias} in
2480 "") host_noncanonical=${build_noncanonical} ;;
2481 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2482esac
2483
af71363e 2484
1c710c3c
DJ
2485
2486 case ${target_alias} in
2487 "") target_noncanonical=${host_noncanonical} ;;
2488 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2489esac
2490
af71363e 2491
1c710c3c
DJ
2492
2493
2494test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2496 NONENONEs,x,x, &&
1c710c3c 2497 program_transform_name=s,y,y,
af71363e 2498
5213506e
RW
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2500$as_echo_n "checking host system type... " >&6; }
2501if test "${ac_cv_host+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
af71363e 2503else
5213506e
RW
2504 if test "x$host_alias" = x; then
2505 ac_cv_host=$ac_cv_build
2506else
2507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2508 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2509fi
1c710c3c 2510
af71363e 2511fi
5213506e
RW
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2513$as_echo "$ac_cv_host" >&6; }
2514case $ac_cv_host in
2515*-*-*) ;;
2516*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2517esac
1c710c3c 2518host=$ac_cv_host
5213506e
RW
2519ac_save_IFS=$IFS; IFS='-'
2520set x $ac_cv_host
2521shift
2522host_cpu=$1
2523host_vendor=$2
2524shift; shift
2525# Remember, the first character of IFS is used to create $*,
2526# except with old shells:
2527host_os=$*
2528IFS=$ac_save_IFS
2529case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2530
2531
5213506e
RW
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2533$as_echo_n "checking target system type... " >&6; }
2534if test "${ac_cv_target+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
1c710c3c 2536else
5213506e
RW
2537 if test "x$target_alias" = x; then
2538 ac_cv_target=$ac_cv_host
2539else
2540 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2541 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2542fi
1c710c3c
DJ
2543
2544fi
5213506e
RW
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2546$as_echo "$ac_cv_target" >&6; }
2547case $ac_cv_target in
2548*-*-*) ;;
2549*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2550esac
1c710c3c 2551target=$ac_cv_target
5213506e
RW
2552ac_save_IFS=$IFS; IFS='-'
2553set x $ac_cv_target
2554shift
2555target_cpu=$1
2556target_vendor=$2
2557shift; shift
2558# Remember, the first character of IFS is used to create $*,
2559# except with old shells:
2560target_os=$*
2561IFS=$ac_save_IFS
2562case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2563
2564
2565# The aliases save the names the user supplied, while $host etc.
2566# will get canonicalized.
2567test -n "$target_alias" &&
2568 test "$program_prefix$program_suffix$program_transform_name" = \
2569 NONENONEs,x,x, &&
2570 program_prefix=${target_alias}-
5213506e 2571
671aa708 2572test "$program_prefix" != NONE &&
5213506e 2573 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2574# Use a double $ so make ignores it.
2575test "$program_suffix" != NONE &&
5213506e
RW
2576 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577# Double any \ or $.
1c710c3c 2578# By default was `s,x,x', remove it if useless.
5213506e
RW
2579ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2581
671aa708
NN
2582
2583
775956d0
NN
2584# Get 'install' or 'install-sh' and its variants.
2585# Find a good install program. We prefer a C program (faster),
2586# so one script is as good as another. But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
1c710c3c 2592# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2596# OS/2's system install, which has a completely different semantic
775956d0 2597# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2598# Reject install programs that cannot install multiple files.
5213506e
RW
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2600$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2601if test -z "$INSTALL"; then
5213506e
RW
2602if test "${ac_cv_path_install+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2604else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
5213506e
RW
2610 # Account for people who put trailing slashes in PATH elements.
2611case $as_dir/ in #((
2612 ./ | .// | /[cC]/* | \
1c710c3c 2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2615 /usr/ucb/* ) ;;
2616 *)
2617 # OSF1 and SCO ODT 3.0 have their own names for install.
2618 # Don't use installbsd from OSF since it installs stuff as root
2619 # by default.
2620 for ac_prog in ginstall scoinst install; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2622 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2623 if test $ac_prog = install &&
1c710c3c 2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2625 # AIX install. It has an incompatible calling convention.
2626 :
1c710c3c
DJ
2627 elif test $ac_prog = install &&
2628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629 # program-specific install script used by HP pwplus--don't use.
2630 :
775956d0 2631 else
38d24731
RW
2632 rm -rf conftest.one conftest.two conftest.dir
2633 echo one > conftest.one
2634 echo two > conftest.two
2635 mkdir conftest.dir
2636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2637 test -s conftest.one && test -s conftest.two &&
2638 test -s conftest.dir/conftest.one &&
2639 test -s conftest.dir/conftest.two
2640 then
2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642 break 3
2643 fi
775956d0
NN
2644 fi
2645 fi
2646 done
1c710c3c
DJ
2647 done
2648 ;;
2649esac
5213506e
RW
2650
2651 done
2652IFS=$as_save_IFS
1c710c3c 2653
38d24731 2654rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2655
2656fi
2657 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2658 INSTALL=$ac_cv_path_install
775956d0 2659 else
38d24731
RW
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for INSTALL within a source directory, because that will
775956d0 2662 # break other packages using the cache if that directory is
38d24731 2663 # removed, or if the value is a relative name.
1c710c3c 2664 INSTALL=$ac_install_sh
775956d0
NN
2665 fi
2666fi
5213506e
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668$as_echo "$INSTALL" >&6; }
775956d0
NN
2669
2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671# It thinks the first close brace ends the variable substitution.
2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
1c710c3c 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2675
2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
5213506e
RW
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2679$as_echo_n "checking whether ln works... " >&6; }
2680if test "${acx_cv_prog_LN+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
ad6717df
PB
2682else
2683 rm -f conftestdata_t
2684echo >conftestdata_f
2685if ln conftestdata_f conftestdata_t 2>/dev/null
2686then
2687 acx_cv_prog_LN=ln
2688else
2689 acx_cv_prog_LN=no
2690fi
2691rm -f conftestdata_f conftestdata_t
2692
2693fi
2694if test $acx_cv_prog_LN = no; then
2695 LN="cp"
5213506e
RW
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2697$as_echo "no, using $LN" >&6; }
ad6717df
PB
2698else
2699 LN="$acx_cv_prog_LN"
5213506e
RW
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701$as_echo "yes" >&6; }
ad6717df
PB
2702fi
2703
5213506e
RW
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2705$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2706LN_S=$as_ln_s
2707if test "$LN_S" = "ln -s"; then
5213506e
RW
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709$as_echo "yes" >&6; }
fb0103e5 2710else
5213506e
RW
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2712$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2713fi
2714
87264276
PB
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2716$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2717if test "${ac_cv_path_SED+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719else
2720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2721 for ac_i in 1 2 3 4 5 6 7; do
2722 ac_script="$ac_script$as_nl$ac_script"
2723 done
2724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2725 { ac_script=; unset ac_script;}
2726 if test -z "$SED"; then
2727 ac_path_SED_found=false
2728 # Loop through the user's path and test for each of PROGNAME-LIST
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_prog in sed gsed; do
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2737 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2738# Check for GNU ac_path_SED and select it if it is found.
2739 # Check for GNU $ac_path_SED
2740case `"$ac_path_SED" --version 2>&1` in
2741*GNU*)
2742 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2743*)
2744 ac_count=0
2745 $as_echo_n 0123456789 >"conftest.in"
2746 while :
2747 do
2748 cat "conftest.in" "conftest.in" >"conftest.tmp"
2749 mv "conftest.tmp" "conftest.in"
2750 cp "conftest.in" "conftest.nl"
2751 $as_echo '' >> "conftest.nl"
2752 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2754 as_fn_arith $ac_count + 1 && ac_count=$as_val
2755 if test $ac_count -gt ${ac_path_SED_max-0}; then
2756 # Best one so far, save it but keep looking for a better one
2757 ac_cv_path_SED="$ac_path_SED"
2758 ac_path_SED_max=$ac_count
2759 fi
2760 # 10*(2^10) chars as input seems more than enough
2761 test $ac_count -gt 10 && break
2762 done
2763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2764esac
2765
2766 $ac_path_SED_found && break 3
2767 done
2768 done
2769 done
2770IFS=$as_save_IFS
2771 if test -z "$ac_cv_path_SED"; then
2772 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2773 fi
2774else
2775 ac_cv_path_SED=$SED
2776fi
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2780$as_echo "$ac_cv_path_SED" >&6; }
2781 SED="$ac_cv_path_SED"
2782 rm -f conftest.sed
2783
2784for ac_prog in gawk mawk nawk awk
2785do
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787set dummy $ac_prog; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if test "${ac_cv_prog_AWK+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792else
2793 if test -n "$AWK"; then
2794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_AWK="$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808 done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813AWK=$ac_cv_prog_AWK
2814if test -n "$AWK"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816$as_echo "$AWK" >&6; }
2817else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823 test -n "$AWK" && break
2824done
2825
775956d0 2826
79c06341 2827### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2828### If we are on Windows, search for the shell. This will permit people
2829### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2830### without also having to set CONFIG_SHELL. This code will work when
2831### using bash, which sets OSTYPE.
2832case "${OSTYPE}" in
2833*win32*)
671aa708
NN
2834 if test x${CONFIG_SHELL} = x ; then
2835 if test ! -f /bin/sh ; then
2836 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2837 CONFIG_SHELL=${SHELL}
2838 export CONFIG_SHELL
2839 else
2840 for prog in sh sh.exe bash bash.exe; do
2841 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2842 for dir in $PATH; do
2843 test -z "$dir" && dir=.
2844 if test -f $dir/$prog; then
2845 CONFIG_SHELL=$dir/$prog
2846 export CONFIG_SHELL
2847 break
2848 fi
2849 done
2850 IFS="$save_ifs"
2851 test -n "${CONFIG_SHELL}" && break
2852 done
2853 fi
2854 fi
2855 fi
2856 ;;
2857esac
2858
2859config_shell=${CONFIG_SHELL-/bin/sh}
2860
671aa708 2861moveifchange=${srcdir}/move-if-change
79c06341 2862
ee6a22df
L
2863srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2864
2865# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2866# a relative path.
2867if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2868 INSTALL="${srcpwd}/install-sh -c"
2869fi
2870
671aa708
NN
2871# Set srcdir to "." if that's what it is.
2872# This is important for multilib support.
2873pwd=`${PWDCMD-pwd}`
671aa708
NN
2874if test "${pwd}" = "${srcpwd}" ; then
2875 srcdir=.
79c06341
JL
2876fi
2877
671aa708 2878topsrcdir=$srcpwd
5d4a5ee6 2879
671aa708 2880extra_host_args=
afabd8e6 2881
671aa708
NN
2882### To add a new directory to the tree, first choose whether it is a target
2883### or a host dependent tool. Then put it into the appropriate list
2884### (library or tools, host or target), doing a dependency sort.
79c06341 2885
1c710c3c 2886# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2887# configdirs, or target_configdirs; see the serialization section below.
79c06341 2888
1c710c3c
DJ
2889# Dependency sorting is only needed when *configuration* must be done in
2890# a particular order. In all cases a dependency should be specified in
671aa708 2891# the Makefile, whether or not it's implicitly specified here.
79c06341 2892
671aa708
NN
2893# Double entries in build_configdirs, configdirs, or target_configdirs may
2894# cause circular dependencies and break everything horribly.
79c06341 2895
23f6b2f9
PB
2896# these library is used by various programs built for the build
2897# environment
2898#
2899build_libs="build-libiberty"
2900
2901# these tools are built for the build environment
71b5d516 2902build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2903
671aa708
NN
2904# these libraries are used by various programs built for the host environment
2905#
f61428ed 2906host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2907
671aa708
NN
2908# these tools are built for the host environment
2909# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2910# know that we are building the simulator.
2911# binutils, gas and ld appear in that order because it makes sense to run
2912# "make check" in that particular order.
38e3d868 2913# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2914host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2915
2916# libgcj represents the runtime libraries only used by gcj.
2917libgcj="target-libffi \
671aa708
NN
2918 target-zlib \
2919 target-qthreads \
2920 target-libjava"
2921
2922# these libraries are built for the target environment, and are built after
2923# the host libraries and the host tools (which may be a cross compiler)
2924#
291f172e
DJ
2925target_libraries="target-libgcc \
2926 target-libiberty \
671aa708
NN
2927 target-libgloss \
2928 target-newlib \
6d3b5aea 2929 target-libgomp \
cb543528 2930 target-libstdc++-v3 \
6de9cd9a 2931 target-libmudflap \
77008252 2932 target-libssp \
6de9cd9a 2933 target-libgfortran \
7cd0cf9c 2934 target-boehm-gc \
77d187bc 2935 ${libgcj} \
d9cdb878 2936 target-libobjc \
6d3b5aea 2937 target-libada"
671aa708 2938
4dbda6f0
NN
2939# these tools are built using the target libraries, and are intended to
2940# run only in the target environment
671aa708 2941#
4dbda6f0 2942# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2943# list belongs in this list. those programs are also very likely
2944# candidates for the "native_only" list which follows
2945#
97286f7f 2946target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2947
671aa708 2948################################################################################
79c06341 2949
671aa708
NN
2950## All tools belong in one of the four categories, and are assigned above
2951## We assign ${configdirs} this way to remove all embedded newlines. This
2952## is important because configure will choke if they ever get through.
2953## ${configdirs} is directories we build using the host tools.
2954## ${target_configdirs} is directories we build using the target tools.
671aa708 2955configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2956target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2957build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2958
ac9e6043
RW
2959
2960
671aa708 2961################################################################################
79c06341 2962
671aa708 2963srcname="gnu development package"
79c06341 2964
671aa708
NN
2965# This gets set non-empty for some net releases of packages.
2966appdirs=""
79c06341 2967
671aa708
NN
2968# Define is_cross_compiler to save on calls to 'test'.
2969is_cross_compiler=
2970if test x"${host}" = x"${target}" ; then
2971 is_cross_compiler=no
79c06341 2972else
671aa708 2973 is_cross_compiler=yes
1c710c3c 2974fi
79c06341 2975
b4acb5ef 2976# Find the build and target subdir names.
8b87bb96 2977
2e9e6f68
DJ
2978# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2979# have matching libraries, they should use host libraries: Makefile.tpl
2980# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2981# However, they still use the build modules, because the corresponding
2982# host modules (e.g. bison) are only built for the host when bootstrap
2983# finishes. So:
2984# - build_subdir is where we find build modules, and never changes.
2985# - build_libsubdir is where we find build libraries, and can be overridden.
2986
2987# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2988build_subdir="build-${build_noncanonical}"
1c710c3c 2989
5213506e
RW
2990# Check whether --with-build-libsubdir was given.
2991if test "${with_build_libsubdir+set}" = set; then :
2992 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2993else
2994 build_libsubdir="$build_subdir"
5213506e
RW
2995fi
2996
215c351a
PB
2997# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2998if ( test $srcdir = . && test -d gcc ) \
2999 || test -d $srcdir/../host-${host_noncanonical}; then
3000 host_subdir="host-${host_noncanonical}"
3001else
3002 host_subdir=.
3003fi
8b87bb96
NN
3004# No prefix.
3005target_subdir=${target_noncanonical}
1c710c3c 3006
0db770bd
RW
3007# Be sure to cover against remnants of an in-tree build.
3008if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
3009 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3010Use a pristine source tree when building in a separate tree" "$LINENO" 5
3011fi
79c06341 3012
671aa708
NN
3013# Skipdirs are removed silently.
3014skipdirs=
3015# Noconfigdirs are removed loudly.
3016noconfigdirs=""
79c06341 3017
671aa708
NN
3018use_gnu_ld=
3019# Make sure we don't let GNU ld be added if we didn't want it.
3020if test x$with_gnu_ld = xno ; then
3021 use_gnu_ld=no
5afab7ad 3022 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
3023fi
3024
671aa708
NN
3025use_gnu_as=
3026# Make sure we don't let GNU as be added if we didn't want it.
3027if test x$with_gnu_as = xno ; then
3028 use_gnu_as=no
3029 noconfigdirs="$noconfigdirs gas"
79c06341
JL
3030fi
3031
d7f09764
DN
3032use_included_zlib=
3033# Make sure we don't let ZLIB be added if we didn't want it.
3034if test x$with_system_zlib = xyes ; then
3035 use_included_zlib=no
3036 noconfigdirs="$noconfigdirs zlib"
3037fi
3038
1c710c3c 3039# some tools are so dependent upon X11 that if we're not building with X,
671aa708 3040# it's not even worth trying to configure, much less build, that tool.
79c06341 3041
671aa708
NN
3042case ${with_x} in
3043 yes | "") ;; # the default value for this tree is that X11 is available
3044 no)
b4f96efe 3045 skipdirs="${skipdirs} tk itcl libgui"
671aa708 3046 # We won't be able to build gdbtk without X.
1c710c3c 3047 enable_gdbtk=no
671aa708
NN
3048 ;;
3049 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3050esac
79c06341 3051
671aa708 3052# Some tools are only suitable for building in a "native" situation.
1c710c3c 3053# Remove these if host!=target.
9e299237 3054native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 3055
671aa708
NN
3056# Similarly, some are only suitable for cross toolchains.
3057# Remove these if host=target.
3058cross_only="target-libgloss target-newlib target-opcodes"
3059
3060case $is_cross_compiler in
3061 no) skipdirs="${skipdirs} ${cross_only}" ;;
3062 yes) skipdirs="${skipdirs} ${native_only}" ;;
3063esac
79c06341 3064
671aa708
NN
3065# If both --with-headers and --with-libs are specified, default to
3066# --without-newlib.
ee6a22df
L
3067if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3068 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
3069 if test x"${with_newlib}" = x ; then
3070 with_newlib=no
3071 fi
79c06341
JL
3072fi
3073
671aa708
NN
3074# Recognize --with-newlib/--without-newlib.
3075case ${with_newlib} in
3076 no) skipdirs="${skipdirs} target-newlib" ;;
3077 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3078esac
79c06341 3079
5afab7ad 3080# Handle --enable-gold.
38e3d868
RM
3081# --enable-gold Build only gold
3082# --disable-gold [default] Build only ld
3083# --enable-gold=both Build both gold and ld, ld is default
3084# --enable-gold=both/ld Same
3085# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
5afab7ad 3086
5213506e
RW
3087# Check whether --enable-gold was given.
3088if test "${enable_gold+set}" = set; then :
3089 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3090else
3091 ENABLE_GOLD=no
5213506e
RW
3092fi
3093
38e3d868
RM
3094 case "${ENABLE_GOLD}" in
3095 yes|both|both/gold|both/ld)
3096 # Check for ELF target.
3097 is_elf=no
3098 case "${target}" in
3099 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3100 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3101 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3102 case "${target}" in
3103 *-*-linux*aout* | *-*-linux*oldld*)
3104 ;;
3105 *)
3106 is_elf=yes
3107 ;;
3108 esac
3109 esac
3110
3111 if test "$is_elf" = "yes"; then
3112 # Check for target supported by gold.
5afab7ad 3113 case "${target}" in
38e3d868
RM
3114 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3115 case "${ENABLE_GOLD}" in
3116 both*)
3117 configdirs="$configdirs gold"
3118 ;;
3119 *)
86dfbd58 3120 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
38e3d868
RM
3121 ;;
3122 esac
3123 ENABLE_GOLD=yes
5afab7ad
ILT
3124 ;;
3125 esac
38e3d868
RM
3126 fi
3127 ;;
3128 no)
3129 ;;
3130 *)
3131 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3132 ;;
5afab7ad
ILT
3133 esac
3134
671aa708 3135# Configure extra directories which are host specific
79c06341 3136
671aa708
NN
3137case "${host}" in
3138 *-cygwin*)
3139 configdirs="$configdirs libtermcap" ;;
3140esac
79c06341 3141
4fab7234
HPN
3142# A target can indicate whether a language isn't supported for some reason.
3143# Only spaces may be used in this macro; not newlines or tabs.
3144unsupported_languages=
3145
1c710c3c 3146# Remove more programs from consideration, based on the host or
671aa708
NN
3147# target this usually means that a port of the program doesn't
3148# exist yet.
ec8d6ddc 3149
671aa708
NN
3150case "${host}" in
3151 hppa*64*-*-*)
3152 noconfigdirs="$noconfigdirs byacc"
3153 ;;
f2a0e225 3154 i[3456789]86-*-vsta)
b4f96efe 3155 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 3156 ;;
f2a0e225 3157 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 3158 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 3159 ;;
95af8923
KT
3160 x86_64-*-mingw*)
3161 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3162 ;;
f2a0e225 3163 i[3456789]86-*-mingw32*)
b4f96efe 3164 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 3165 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 3166 ;;
f2a0e225 3167 i[3456789]86-*-beos*)
b4f96efe 3168 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 3169 ;;
671aa708 3170 *-*-cygwin*)
a22c2d8d 3171 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
3172 ;;
3173 *-*-netbsd*)
a22c2d8d 3174 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
3175 ;;
3176 ppc*-*-pe)
b4f96efe 3177 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
3178 ;;
3179 powerpc-*-beos*)
b4f96efe 3180 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 3181 ;;
671aa708 3182esac
ec8d6ddc 3183
6de9cd9a 3184
5213506e
RW
3185# Check whether --enable-libada was given.
3186if test "${enable_libada+set}" = set; then :
3187 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3188else
3189 ENABLE_LIBADA=yes
5213506e
RW
3190fi
3191
d9cdb878 3192if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3193 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3194fi
3195
5213506e
RW
3196# Check whether --enable-libssp was given.
3197if test "${enable_libssp+set}" = set; then :
3198 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3199else
3200 ENABLE_LIBSSP=yes
5213506e
RW
3201fi
3202
ef0087a7 3203
671aa708
NN
3204# Save it here so that, even in case of --enable-libgcj, if the Java
3205# front-end isn't enabled, we still get libgcj disabled.
3206libgcj_saved=$libgcj
3207case $enable_libgcj in
3208yes)
3209 # If we reset it here, it won't get added to noconfigdirs in the
3210 # target-specific build rules, so it will be forcibly enabled
3211 # (unless the Java language itself isn't enabled).
3212 libgcj=
3213 ;;
3214no)
3215 # Make sure we get it printed in the list of not supported target libs.
3216 noconfigdirs="$noconfigdirs ${libgcj}"
3217 ;;
3218esac
ec8d6ddc 3219
6de9cd9a 3220
27079765
AH
3221# Disable libmudflap on some systems.
3222if test x$enable_libmudflap = x ; then
dfcada9a 3223 case "${target}" in
416ac4d4 3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3225 # Enable libmudflap by default in GNU and friends.
dfcada9a 3226 ;;
a3e8d8b4
LR
3227 *-*-freebsd*)
3228 # Enable libmudflap by default in FreeBSD.
3229 ;;
dfcada9a
MM
3230 *)
3231 # Disable it by default everywhere else.
3232 noconfigdirs="$noconfigdirs target-libmudflap"
3233 ;;
3234 esac
27079765 3235fi
6de9cd9a 3236
27079765
AH
3237# Disable libgomp on non POSIX hosted systems.
3238if test x$enable_libgomp = x ; then
953ff289
DN
3239 # Enable libgomp by default on hosted POSIX systems.
3240 case "${target}" in
416ac4d4 3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3242 ;;
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3244 ;;
04879af3 3245 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3246 ;;
cac90078 3247 *-*-darwin* | *-*-aix*)
953ff289
DN
3248 ;;
3249 *)
3250 noconfigdirs="$noconfigdirs target-libgomp"
3251 ;;
3252 esac
27079765 3253fi
953ff289 3254
c03353e2
RIL
3255# Default libgloss CPU subdirectory.
3256libgloss_dir="$target_cpu"
6de9cd9a 3257
671aa708
NN
3258case "${target}" in
3259 *-*-chorusos)
cb253473 3260 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3261 ;;
75eeae1a 3262 powerpc-*-darwin*)
e1514c3f 3263 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3264 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3265 ;;
354ebf88
RW
3266 i[3456789]86-*-darwin*)
3267 noconfigdirs="$noconfigdirs ld gprof"
3268 noconfigdirs="$noconfigdirs sim target-rda"
3269 ;;
3270 x86_64-*-darwin[912]*)
0db3a858
TG
3271 noconfigdirs="$noconfigdirs ld gas gprof"
3272 noconfigdirs="$noconfigdirs sim target-rda"
3273 ;;
42c1cd8a
AT
3274 *-*-darwin*)
3275 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3276 noconfigdirs="$noconfigdirs sim target-rda"
3277 noconfigdirs="$noconfigdirs ${libgcj}"
3278 ;;
671aa708 3279 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3280 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3281 ;;
c3f84f61 3282 *-*-freebsd*)
6de9cd9a
DN
3283 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3284 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3285 && test -f /usr/local/include/gmp.h; then
3286 with_gmp=/usr/local
3287 fi
3288
3289 # Skip some stuff that's unsupported on some FreeBSD configurations.
3290 case "${target}" in
3291 i*86-*-*) ;;
3292 alpha*-*-*) ;;
f3f623ae 3293 x86_64-*-*) ;;
6de9cd9a 3294 *)
cb253473 3295 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3296 ;;
3297 esac
3298 ;;
ef4e7569
US
3299 *-*-kaos*)
3300 # Remove unsupported stuff on all kaOS configurations.
cb253473 3301 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3302 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3303 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3304 noconfigdirs="$noconfigdirs target-libgloss"
3305 ;;
671aa708
NN
3306 *-*-netbsd*)
3307 # Skip some stuff on all NetBSD configurations.
3308 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3309
3310 # Skip some stuff that's unsupported on some NetBSD configurations.
3311 case "${target}" in
3312 i*86-*-netbsdelf*) ;;
0590b963 3313 arm*-*-netbsdelf*) ;;
671aa708 3314 *)
cb253473 3315 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3316 ;;
3317 esac
3318 ;;
61fec9ff 3319 *-*-netware*)
cb253473 3320 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3321 ;;
3322 *-*-rtems*)
e4522f78 3323 skipdirs="${skipdirs} target-libiberty"
cb253473 3324 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3325 ;;
a8ba31f2
EC
3326 # The tpf target doesn't support gdb yet.
3327 *-*-tpf*)
cb253473 3328 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3329 ;;
5785c0ed 3330 *-*-uclinux*)
cb253473 3331 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3332 ;;
671aa708 3333 *-*-vxworks*)
cb253473 3334 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3335 ;;
3336 alpha*-dec-osf*)
3337 # ld works, but does not support shared libraries.
3338 # newlib is not 64 bit ready. I'm not sure about fileutils.
3339 # gas doesn't generate exception information.
3340 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3341 ;;
3342 alpha*-*-*vms*)
8406cb62 3343 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3344 ;;
3345 alpha*-*-linux*)
3346 # newlib is not 64 bit ready
3347 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348 ;;
671aa708
NN
3349 alpha*-*-*)
3350 # newlib is not 64 bit ready
cb253473 3351 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3352 ;;
33952f6f 3353 am33_2.0-*-linux*)
cb253473 3354 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3355 ;;
671aa708 3356 sh-*-linux*)
cb253473 3357 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3358 ;;
671aa708 3359 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3360 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3361 noconfigdirs="$noconfigdirs target-examples"
3362 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3363 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3364 noconfigdirs="$noconfigdirs expect dejagnu"
3365 # the C++ libraries don't build on top of CE's C libraries
cb543528 3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3367 noconfigdirs="$noconfigdirs target-newlib"
3368 case "${host}" in
3369 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3370 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3371 ;;
3372 esac
c03353e2 3373 libgloss_dir=wince
671aa708
NN
3374 ;;
3375 arc-*-*)
cb253473 3376 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3377 ;;
ee6a22df 3378 arm-semi-aof )
ee6a22df 3379 ;;
671aa708 3380 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3381 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3382 libgloss_dir=arm
671aa708 3383 ;;
b3f8d95d 3384 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3385 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3386 libgloss_dir=arm
671aa708 3387 ;;
077fc835 3388 arm*-*-linux-gnueabi)
c4e9bf2b 3389 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3390 case ${with_newlib} in
3391 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 esac
c03353e2 3393 libgloss_dir=arm
077fc835 3394 ;;
972974fc 3395 arm*-*-symbianelf*)
cb253473 3396 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3397 libgloss_dir=arm
972974fc 3398 ;;
671aa708 3399 arm-*-pe*)
cb253473 3400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3401 ;;
671aa708 3402 thumb-*-coff)
cb253473 3403 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3404 ;;
3405 thumb-*-elf)
cb253473 3406 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3407 ;;
671aa708 3408 thumb-*-pe)
cb253473 3409 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3410 ;;
3411 arm-*-riscix*)
cb253473 3412 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3413 ;;
3414 avr-*-*)
ac3949d9 3415 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3416 ;;
6b65a26d 3417 bfin-*-*)
1c3c9f12
JZ
3418 unsupported_languages="$unsupported_languages java"
3419 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3420 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3421 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3422 fi
3423 ;;
671aa708 3424 c4x-*-* | tic4x-*-*)
cb253473 3425 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3426 ;;
3427 c54x*-*-* | tic54x-*-*)
cb253473 3428 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3429 ;;
c993ae60
SR
3430 cr16-*-*)
3431 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3432 ;;
40d64b5a 3433 cris-*-* | crisv32-*-*)
4fab7234 3434 unsupported_languages="$unsupported_languages java"
40d64b5a 3435 case "${target}" in
c2e0d3a9 3436 *-*-aout)
7f26dfa3 3437 unsupported_languages="$unsupported_languages fortran"
4fab7234 3438 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3439 *-*-elf)
789ec619 3440 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3441 *-*-linux*)
789ec619 3442 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3443 *)
7f26dfa3 3444 unsupported_languages="$unsupported_languages fortran"
cb253473 3445 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3446 esac
c03353e2 3447 libgloss_dir=cris
671aa708 3448 ;;
25b656e7 3449 crx-*-*)
cb253473 3450 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3451 ;;
671aa708 3452 d10v-*-*)
cb253473 3453 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3454 ;;
3455 d30v-*-*)
cb253473 3456 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3457 ;;
c03353e2
RIL
3458 ep9312-*-elf | ep9312-*-coff)
3459 libgloss_dir=arm
3460 ;;
671aa708 3461 fr30-*-elf*)
cb253473 3462 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3463 ;;
3464 frv-*-*)
cb253473 3465 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3466 ;;
55f2d967
AG
3467 moxie-*-*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 noconfigdirs="$noconfigdirs gprof"
3470 ;;
671aa708 3471 h8300*-*-*)
cb253473 3472 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3473 ;;
3474 h8500-*-*)
cb253473 3475 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3476 ;;
ee6a22df 3477 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3478 ;;
671aa708
NN
3479 hppa*64*-*-linux* | parisc*64*-*-linux*)
3480 # In this case, it's because the hppa64-linux target is for
3481 # the kernel only at this point and has no libc, and thus no
3482 # headers, crt*.o, etc., all of which are needed by these.
3483 noconfigdirs="$noconfigdirs target-zlib"
3484 ;;
3e732ba0
JDA
3485 parisc*-*-linux* | hppa*-*-linux*)
3486 ;;
671aa708 3487 hppa*-*-*elf* | \
671aa708
NN
3488 hppa*-*-lites* | \
3489 hppa*-*-openbsd* | \
3490 hppa*64*-*-*)
cb253473 3491 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3492 ;;
2a332582
JDA
3493 hppa*-hp-hpux11*)
3494 noconfigdirs="$noconfigdirs ld shellutils"
3495 ;;
c03353e2
RIL
3496 hppa*-*-pro*)
3497 libgloss_dir=pa
3498 ;;
671aa708
NN
3499 hppa*-*-*)
3500 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3501 # build on HP-UX 10.20.
cb253473 3502 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3503 ;;
fb87ad5d 3504 i960-*-*)
cb253473 3505 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3506 ;;
671aa708
NN
3507 ia64*-*-elf*)
3508 # No gdb support yet.
b4f96efe 3509 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3510 ;;
3511 ia64*-**-hpux*)
3512 # No gdb or ld support yet.
cb253473 3513 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3514 ;;
52535a64
DR
3515 ia64*-*-*vms*)
3516 # No gdb or ld support yet.
3517 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3518 ;;
ee6a22df 3519 i370-*-opened*)
ee6a22df 3520 ;;
f2a0e225 3521 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3522 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3523 libgloss_dir=i386
671aa708 3524 ;;
f2a0e225 3525 i[3456789]86-*-linux*)
671aa708
NN
3526 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3527 # not build java stuff by default.
3528 case "${target}" in
3529 *-*-*libc1*)
cb253473 3530 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3531 esac
3532
3533 # This section makes it possible to build newlib natively on linux.
3534 # If we are using a cross compiler then don't configure newlib.
3535 if test x${is_cross_compiler} != xno ; then
3aa83176 3536 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3537 fi
3538 noconfigdirs="$noconfigdirs target-libgloss"
3539 # If we are not using a cross compiler, do configure newlib.
3540 # Note however, that newlib will only be configured in this situation
3541 # if the --with-newlib option has been given, because otherwise
3542 # 'target-newlib' will appear in skipdirs.
3543 ;;
ef4c4300
KT
3544 i[3456789]86-w64-mingw*)
3545 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3546 ;;
3547 i[3456789]86-*-mingw*)
b91f0a41
CV
3548 target_configdirs="$target_configdirs target-winsup"
3549 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3550 ;;
95af8923 3551 x86_64-*-mingw*)
95af8923 3552 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3553 ;;
671aa708
NN
3554 *-*-cygwin*)
3555 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3556 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3557 # always build newlib if winsup directory is present.
b91f0a41 3558 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3559 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3560 elif test -d "$srcdir/newlib"; then
b91f0a41 3561 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3562 fi
1c710c3c 3563 ;;
ee6a22df
L
3564 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3565 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3566 ;;
f2a0e225 3567 i[3456789]86-*-pe)
cb253473 3568 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3569 ;;
f2a0e225 3570 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3571 # The linker does not yet know about weak symbols in COFF,
3572 # and is not configured to handle mixed ELF and COFF.
cb253473 3573 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3574 ;;
f2a0e225 3575 i[3456789]86-*-sco*)
cb253473 3576 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3577 ;;
f2a0e225 3578 i[3456789]86-*-solaris2*)
671aa708
NN
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 ;;
f2a0e225 3581 i[3456789]86-*-sysv4*)
cb253473 3582 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3583 ;;
f2a0e225 3584 i[3456789]86-*-beos*)
cb253473 3585 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3586 ;;
d1f8db0c
PB
3587 i[3456789]86-*-rdos*)
3588 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3589 ;;
fb87ad5d 3590 m32r-*-*)
cb253473 3591 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3592 ;;
671aa708 3593 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3594 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3595 libgloss_dir=m68hc11
671aa708
NN
3596 ;;
3597 m68k-*-elf*)
cb253473 3598 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3599 ;;
3600 m68k-*-coff*)
cb253473 3601 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3602 ;;
c03353e2
RIL
3603 m68*-*-* | fido-*-*)
3604 libgloss_dir=m68k
3605 ;;
671aa708
NN
3606 mcore-*-pe*)
3607 # The EPOC C++ environment does not support exceptions or rtti,
3608 # and so building libstdc++-v3 tends not to always work.
3609 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3610 ;;
3611 mmix-*-*)
4fab7234 3612 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3613 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3614 ;;
3615 mn10200-*-*)
cb253473 3616 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3617 ;;
3618 mn10300-*-*)
cb253473 3619 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3620 ;;
ab34901f 3621 mt-*-*)
79dd769c
AH
3622 noconfigdirs="$noconfigdirs sim"
3623 ;;
671aa708
NN
3624 powerpc-*-aix*)
3625 # copied from rs6000-*-* entry
a891a473 3626 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3627 ;;
3628 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3629 target_configdirs="$target_configdirs target-winsup"
cb253473 3630 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3631 # always build newlib.
3632 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3633 ;;
3634 # This is temporary until we can link against shared libraries
3635 powerpcle-*-solaris*)
cb253473 3636 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3637 libgloss_dir=rs6000
671aa708
NN
3638 ;;
3639 powerpc-*-beos*)
cb253473 3640 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3641 ;;
671aa708 3642 powerpc-*-eabi)
cb253473 3643 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3644 libgloss_dir=rs6000
ee6a22df
L
3645 ;;
3646 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3647 libgloss_dir=rs6000
671aa708 3648 ;;
671aa708 3649 rs6000-*-lynxos*)
cb253473 3650 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3651 ;;
3652 rs6000-*-aix*)
a891a473 3653 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3654 ;;
3655 rs6000-*-*)
cb253473 3656 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3657 ;;
3658 m68k-apollo-*)
cb253473 3659 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3660 ;;
ca9fe997 3661 microblaze*)
80920132 3662 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3663 ;;
d9dced13
RS
3664 mips*-sde-elf*)
3665 skipdirs="$skipdirs target-libiberty"
3666 noconfigdirs="$noconfigdirs ${libgcj}"
3667 if test x$with_newlib = xyes; then
3668 noconfigdirs="$noconfigdirs gprof"
3669 fi
3670 libgloss_dir=mips
3671 ;;
671aa708 3672 mips*-*-irix5*)
cb253473 3673 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3674 ;;
3675 mips*-*-irix6*)
671aa708
NN
3676 # Linking libjava exceeds command-line length limits on at least
3677 # IRIX 6.2, but not on IRIX 6.5.
3678 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3679 # <oldham@codesourcery.com>
cb253473 3680 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3681 ;;
671aa708 3682 mips*-*-bsd*)
cb253473 3683 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3684 ;;
671aa708
NN
3685 mips*-*-linux*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 mips*-*-*)
cb253473 3689 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3690 libgloss_dir=mips
671aa708
NN
3691 ;;
3692 romp-*-*)
cb253473 3693 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3694 ;;
669f01d8 3695 sh-*-* | sh64-*-*)
671aa708 3696 case "${host}" in
f2a0e225
KC
3697 i[3456789]86-*-vsta) ;; # don't add gprof back in
3698 i[3456789]86-*-go32*) ;; # don't add gprof back in
3699 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3700 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3701 esac
ea2002ba
CB
3702 case "${target}" in
3703 sh*-*-elf)
3704 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3705 *)
3706 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3707 esac
671aa708 3708 ;;
c03353e2
RIL
3709 sparclet-*-aout* | sparc86x-*-*)
3710 libgloss_dir=sparc
3711 ;;
671aa708 3712 sparc-*-elf*)
cb253473 3713 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3714 ;;
3715 sparc64-*-elf*)
cb253473 3716 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3717 libgloss_dir=sparc
671aa708
NN
3718 ;;
3719 sparclite-*-*)
cb253473 3720 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3721 libgloss_dir=sparc
671aa708
NN
3722 ;;
3723 sparc-*-sunos4*)
cb253473 3724 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3725 if test x${is_cross_compiler} != xno ; then
3726 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3727 else
3728 use_gnu_ld=no
3729 fi
3730 ;;
bba5e0ca 3731 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3732 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3733 ;;
671aa708
NN
3734 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3735 ;;
b42f0d7e
JM
3736 tic6x-*-*)
3737 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3738 ;;
671aa708 3739 v810-*-*)
cb253473 3740 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3741 ;;
223a9d64 3742 v850*-*-*)
d4c1abb3 3743 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3744 ;;
3745 vax-*-vms)
cb253473 3746 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3747 ;;
3748 vax-*-*)
cb253473 3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3750 ;;
aa12a573 3751 xtensa*-*-*)
cb253473 3752 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3753 ;;
671aa708 3754 ip2k-*-*)
cb253473 3755 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3756 ;;
416ac4d4 3757 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3759 ;;
3760 *-*-lynxos*)
cb253473 3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3762 ;;
671aa708 3763 *-*-*)
cb253473 3764 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3765 ;;
3766esac
79c06341 3767
671aa708
NN
3768# If we aren't building newlib, then don't build libgloss, since libgloss
3769# depends upon some newlib header files.
3770case "${noconfigdirs}" in
3771 *target-libgloss*) ;;
3772 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3773esac
3774
671aa708
NN
3775# Work in distributions that contain no compiler tools, like Autoconf.
3776tentative_cc=""
3777host_makefile_frag=/dev/null
3778if test -d ${srcdir}/config ; then
3779case "${host}" in
3780 m68k-hp-hpux*)
3781 # Avoid "too much defining" errors from HPUX compiler.
3782 tentative_cc="cc -Wp,-H256000"
3783 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3784 # If it's HP/UX ar, this should be harmless.
3785 RANLIB="ar ts"
3786 ;;
3787 m68k-apollo-sysv*)
3788 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3789 ;;
3790 m68k-apollo-bsd*)
3791 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3792 # chokes on bfd, the compiler won't let you assign integers to enums, and
3793 # other problems. Defining CC to gcc is a questionable way to say "don't use
3794 # the apollo compiler" (the preferred version of GCC could be called cc,
3795 # or whatever), but I'm not sure leaving CC as cc is any better...
3796 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3797 # Used to have BISON=yacc.
3798 tentative_cc=gcc
3799 ;;
3800 m88k-dg-dgux*)
3801 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3802 ;;
3803 m88k-harris-cxux*)
3804 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3805 tentative_cc="cc -Xa"
3806 host_makefile_frag="config/mh-cxux"
3807 ;;
3808 m88k-motorola-sysv*)
3809 ;;
3810 mips*-dec-ultrix*)
3811 tentative_cc="cc -Wf,-XNg1000"
3812 host_makefile_frag="config/mh-decstation"
3813 ;;
3814 mips*-nec-sysv4*)
3815 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3816 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3817 host_makefile_frag="config/mh-necv4"
3818 ;;
3819 mips*-sgi-irix4*)
3820 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3821 # environment. Also bump switch table size so that cp-parse will
3822 # compile. Bump string length limit so linker builds.
3823 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3824 ;;
3825 mips*-*-sysv4*)
3826 host_makefile_frag="config/mh-sysv4"
3827 ;;
3828 mips*-*-sysv*)
3829 # This is for a MIPS running RISC/os 4.52C.
3830
3831 # This is needed for GDB, but needs to be in the top-level make because
3832 # if a library is compiled with the bsd headers and gets linked with the
3833 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3834 # a different size).
3835 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3836 # known except to select the sysv environment. Could we use /proc instead?
3837 # These "sysv environments" and "bsd environments" often end up being a pain.
3838 #
3839 # This is not part of CFLAGS because perhaps not all C compilers have this
3840 # option.
3841 tentative_cc="cc -systype sysv"
3842 ;;
3843 i370-ibm-opened*)
3844 tentative_cc="c89"
3845 ;;
f2a0e225 3846 i[3456789]86-*-sysv5*)
671aa708
NN
3847 host_makefile_frag="config/mh-sysv5"
3848 ;;
f2a0e225 3849 i[3456789]86-*-dgux*)
671aa708
NN
3850 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3851 host_makefile_frag="config/mh-dgux386"
3852 ;;
f2a0e225 3853 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3854 # The MetaWare compiler will generate a copyright message unless you
3855 # turn it off by adding the -Hnocopyr flag.
3856 tentative_cc="cc -Hnocopyr"
3857 ;;
f2a0e225 3858 i[3456789]86-ncr-sysv4*)
671aa708
NN
3859 # for an NCR 3000 (i486/SVR4) system.
3860 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3861 # This compiler not only emits obnoxious copyright messages every time
3862 # you run it, but it chokes and dies on a whole bunch of GNU source
3863 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3864 tentative_cc="/usr/ccs/ATT/cc"
3865 host_makefile_frag="config/mh-ncr3000"
3866 ;;
f2a0e225 3867 i[3456789]86-*-sco3.2v5*)
671aa708 3868 ;;
f2a0e225 3869 i[3456789]86-*-sco*)
671aa708
NN
3870 # The native C compiler botches some simple uses of const. Unfortunately,
3871 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3872 tentative_cc="cc -Dconst="
3873 host_makefile_frag="config/mh-sco"
3874 ;;
f2a0e225 3875 i[3456789]86-*-udk*)
671aa708
NN
3876 host_makefile_frag="config/mh-sysv5"
3877 ;;
f2a0e225 3878 i[3456789]86-*-solaris2*)
671aa708
NN
3879 host_makefile_frag="config/mh-sysv4"
3880 ;;
f2a0e225 3881 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3882 host_makefile_frag="config/mh-djgpp"
3883 ;;
3884 *-cygwin*)
2a79c47f 3885
5213506e
RW
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3887$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3888echo a >cygwin-cat-check
e25a8c82 3889if test `cat cygwin-cat-check` = a ; then
2a79c47f 3890 rm cygwin-cat-check
5213506e
RW
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892$as_echo "yes" >&6; }
2a79c47f
NC
3893else
3894 rm cygwin-cat-check
5213506e
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896$as_echo "no" >&6; }
3897 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3898 Please either mount the build directory in binary mode or run the following
3899 commands before running any configure script:
3900set -o igncr
3901export SHELLOPTS
5213506e 3902 " "$LINENO" 5
2a79c47f
NC
3903fi
3904
671aa708
NN
3905 host_makefile_frag="config/mh-cygwin"
3906 ;;
c53a18d3 3907 *-mingw*)
1f5a6b84 3908 host_makefile_frag="config/mh-mingw"
95af8923 3909 ;;
671aa708
NN
3910 *-interix*)
3911 host_makefile_frag="config/mh-interix"
3912 ;;
3913 vax-*-ultrix2*)
3914 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3915 tentative_cc=gcc
3916 ;;
3917 *-*-solaris2*)
3918 host_makefile_frag="config/mh-solaris"
3919 ;;
3920 m68k-sun-sunos*)
3921 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3922 # without overflowing the jump tables (-J says to use a 32 bit table)
3923 tentative_cc="cc -J"
3924 ;;
efd41714 3925 hppa*-hp-hpux10*)
671aa708 3926 tentative_cc="cc -Wp,-H256000"
efd41714 3927 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3928 ;;
efd41714
PB
3929 hppa*-hp-hpux* | hppa*-*-hiux*)
3930 tentative_cc="cc -Wp,-H256000"
3931 host_makefile_frag="config/mh-pa"
3932 ;;
3933 hppa*-*)
3934 host_makefile_frag="config/mh-pa"
3935 ;;
3936 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3937 tentative_cc="cc -Wp,-H256000"
3938 ;;
3939 rs6000-*-lynxos*)
3940 # /bin/cc is less than useful for our purposes. Always use GCC
3941 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3942 host_makefile_frag="config/mh-lynxrs6k"
3943 ;;
45f366ab 3944 powerpc-*-darwin*)
be8fff81
RB
3945 host_makefile_frag="config/mh-ppc-darwin"
3946 ;;
d19bca38
PB
3947 powerpc-*-aix*)
3948 host_makefile_frag="config/mh-ppc-aix"
3949 ;;
3950 rs6000-*-aix*)
3951 host_makefile_frag="config/mh-ppc-aix"
3952 ;;
671aa708
NN
3953 *-*-lynxos*)
3954 # /bin/cc is less than useful for our purposes. Always use GCC
3955 tentative_cc="/bin/gcc"
3956 ;;
3957 *-*-sysv4*)
3958 host_makefile_frag="config/mh-sysv4"
3959 ;;
95c53c62
RS
3960 # This is placed last to prevent interfering with the cases above.
3961 i[3456789]86-*-*)
3962 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3963 host_makefile_frag="config/mh-x86omitfp"
3964 ;;
671aa708
NN
3965esac
3966fi
3967
55ffb5ed
NN
3968# If we aren't going to be using gcc, see if we can extract a definition
3969# of CC from the fragment.
3970# Actually, use the 'pre-extracted' version above.
3971if test -z "${CC}" && test "${build}" = "${host}" ; then
3972 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3973 found=
3974 for dir in $PATH; do
3975 test -z "$dir" && dir=.
3976 if test -f $dir/gcc; then
3977 found=yes
3978 break
3979 fi
3980 done
3981 IFS="$save_ifs"
3982 if test -z "${found}" && test -n "${tentative_cc}" ; then
3983 CC=$tentative_cc
3984 fi
3985fi
3986
3987if test "${build}" != "${host}" ; then
0999159b
PB
3988 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3989 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3990 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3991 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3992 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3993 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3994 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3995 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3996 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3997 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3998 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3999 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4000else
4001 AR_FOR_BUILD="\$(AR)"
4002 AS_FOR_BUILD="\$(AS)"
fb0103e5 4003 CC_FOR_BUILD="\$(CC)"
0999159b
PB
4004 CXX_FOR_BUILD="\$(CXX)"
4005 GCJ_FOR_BUILD="\$(GCJ)"
4006 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4007 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4008 LD_FOR_BUILD="\$(LD)"
4009 NM_FOR_BUILD="\$(NM)"
4010 RANLIB_FOR_BUILD="\$(RANLIB)"
4011 WINDRES_FOR_BUILD="\$(WINDRES)"
4012 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4013fi
4014
4015ac_ext=c
1c710c3c
DJ
4016ac_cpp='$CPP $CPPFLAGS'
4017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4022set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
4025if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
5213506e
RW
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4040 break 2
4041 fi
4042done
5213506e
RW
4043 done
4044IFS=$as_save_IFS
1c710c3c
DJ
4045
4046fi
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
5213506e
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051$as_echo "$CC" >&6; }
1c710c3c 4052else
5213506e
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
1c710c3c
DJ
4055fi
4056
5213506e 4057
1c710c3c
DJ
4058fi
4059if test -z "$ac_cv_prog_CC"; then
4060 ac_ct_CC=$CC
fb0103e5
RG
4061 # Extract the first word of "gcc", so it can be a program name with args.
4062set dummy gcc; ac_word=$2
5213506e
RW
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4067else
4068 if test -n "$ac_ct_CC"; then
4069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
5213506e
RW
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4078 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4080 break 2
4081 fi
4082done
5213506e
RW
4083 done
4084IFS=$as_save_IFS
1c710c3c
DJ
4085
4086fi
4087fi
4088ac_ct_CC=$ac_cv_prog_ac_ct_CC
4089if test -n "$ac_ct_CC"; then
5213506e
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4091$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4092else
5213506e
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
1c710c3c
DJ
4095fi
4096
5213506e
RW
4097 if test "x$ac_ct_CC" = x; then
4098 CC=""
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101yes:)
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104ac_tool_warned=yes ;;
4105esac
4106 CC=$ac_ct_CC
4107 fi
1c710c3c
DJ
4108else
4109 CC="$ac_cv_prog_CC"
4110fi
4111
4112if test -z "$CC"; then
5213506e
RW
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4115set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117$as_echo_n "checking for $ac_word... " >&6; }
4118if test "${ac_cv_prog_CC+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4120else
4121 if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123else
1c710c3c
DJ
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
5213506e
RW
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4131 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4133 break 2
4134 fi
4135done
5213506e
RW
4136 done
4137IFS=$as_save_IFS
1c710c3c 4138
0b0dc272 4139fi
0b0dc272 4140fi
1c710c3c 4141CC=$ac_cv_prog_CC
af71363e 4142if test -n "$CC"; then
5213506e
RW
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144$as_echo "$CC" >&6; }
2aeb72e9 4145else
5213506e
RW
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
2aeb72e9
DD
4148fi
4149
2aeb72e9 4150
5213506e 4151 fi
1c710c3c 4152fi
55ffb5ed
NN
4153if test -z "$CC"; then
4154 # Extract the first word of "cc", so it can be a program name with args.
4155set dummy cc; ac_word=$2
5213506e
RW
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157$as_echo_n "checking for $ac_word... " >&6; }
4158if test "${ac_cv_prog_CC+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4160else
4161 if test -n "$CC"; then
4162 ac_cv_prog_CC="$CC" # Let the user override the test.
4163else
0b0dc272 4164 ac_prog_rejected=no
1c710c3c
DJ
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
5213506e
RW
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4173 ac_prog_rejected=yes
4174 continue
4175 fi
4176 ac_cv_prog_CC="cc"
5213506e 4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4178 break 2
4179 fi
4180done
5213506e
RW
4181 done
4182IFS=$as_save_IFS
1c710c3c 4183
55ffb5ed
NN
4184if test $ac_prog_rejected = yes; then
4185 # We found a bogon in the path, so make sure we never use it.
4186 set dummy $ac_cv_prog_CC
4187 shift
1c710c3c 4188 if test $# != 0; then
55ffb5ed
NN
4189 # We chose a different compiler from the bogus one.
4190 # However, it has the same basename, so the bogon will be chosen
4191 # first if we set CC to just the basename; use the full file name.
4192 shift
1c710c3c 4193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4194 fi
4195fi
4196fi
4197fi
1c710c3c 4198CC=$ac_cv_prog_CC
55ffb5ed 4199if test -n "$CC"; then
5213506e
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201$as_echo "$CC" >&6; }
55ffb5ed 4202else
5213506e
RW
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
55ffb5ed
NN
4205fi
4206
5213506e 4207
1c710c3c
DJ
4208fi
4209if test -z "$CC"; then
4210 if test -n "$ac_tool_prefix"; then
5213506e 4211 for ac_prog in cl.exe
1c710c3c
DJ
4212 do
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
4217if test "${ac_cv_prog_CC+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4219else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222else
1c710c3c
DJ
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
5213506e
RW
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4232 break 2
4233 fi
4234done
5213506e
RW
4235 done
4236IFS=$as_save_IFS
1c710c3c 4237
55ffb5ed
NN
4238fi
4239fi
1c710c3c 4240CC=$ac_cv_prog_CC
55ffb5ed 4241if test -n "$CC"; then
5213506e
RW
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4243$as_echo "$CC" >&6; }
a4b9e93e 4244else
5213506e
RW
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
fb0103e5 4247fi
af71363e 4248
5213506e 4249
1c710c3c
DJ
4250 test -n "$CC" && break
4251 done
af71363e 4252fi
1c710c3c
DJ
4253if test -z "$CC"; then
4254 ac_ct_CC=$CC
5213506e 4255 for ac_prog in cl.exe
1c710c3c
DJ
4256do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258set dummy $ac_prog; ac_word=$2
5213506e
RW
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260$as_echo_n "checking for $ac_word... " >&6; }
4261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
0b0dc272 4263else
1c710c3c
DJ
4264 if test -n "$ac_ct_CC"; then
4265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4266else
1c710c3c
DJ
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
5213506e
RW
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4274 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4276 break 2
4277 fi
4278done
5213506e
RW
4279 done
4280IFS=$as_save_IFS
1c710c3c 4281
af71363e
AS
4282fi
4283fi
1c710c3c
DJ
4284ac_ct_CC=$ac_cv_prog_ac_ct_CC
4285if test -n "$ac_ct_CC"; then
5213506e
RW
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4287$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4288else
5213506e
RW
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
af71363e 4291fi
0b0dc272 4292
5213506e 4293
1c710c3c
DJ
4294 test -n "$ac_ct_CC" && break
4295done
4296
5213506e
RW
4297 if test "x$ac_ct_CC" = x; then
4298 CC=""
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
4305esac
4306 CC=$ac_ct_CC
4307 fi
1c710c3c
DJ
4308fi
4309
4310fi
4311
4312
5213506e
RW
4313test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315as_fn_error "no acceptable C compiler found in \$PATH
4316See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4317
4318# Provide some information about the compiler.
5213506e
RW
4319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4320set X $ac_compile
4321ac_compiler=$2
4322for ac_option in --version -v -V -qversion; do
4323 { { ac_try="$ac_compiler $ac_option >&5"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329$as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4331 ac_status=$?
5213506e
RW
4332 if test -s conftest.err; then
4333 sed '10a\
4334... rest of stderr output deleted ...
4335 10q' conftest.err >conftest.er1
4336 cat conftest.er1 >&5
4337 rm -f conftest.er1 conftest.err
4338 fi
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }
4341done
1c710c3c 4342
5213506e 4343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354ac_clean_files_save=$ac_clean_files
5213506e 4355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4356# Try to create an executable without -o first, disregard a.out.
4357# It will help us diagnose broken compilers, and finding out an intuition
4358# of exeext.
5213506e
RW
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4360$as_echo_n "checking for C compiler default output file name... " >&6; }
4361ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4362
4363# The possible output files:
4364ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4365
4366ac_rmfiles=
4367for ac_file in $ac_files
4368do
4369 case $ac_file in
4370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4371 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4372 esac
4373done
4374rm -f $ac_rmfiles
4375
4376if { { ac_try="$ac_link_default"
4377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
4381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382$as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_link_default") 2>&5
1c710c3c 4384 ac_status=$?
5213506e
RW
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }; then :
4387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4389# in a Makefile. We should not override ac_cv_exeext if it was cached,
4390# so that the user can short-circuit this test for compilers unknown to
4391# Autoconf.
4392for ac_file in $ac_files ''
1c710c3c
DJ
4393do
4394 test -f "$ac_file" || continue
4395 case $ac_file in
5213506e 4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4397 ;;
4398 [ab].out )
4399 # We found the default executable, but exeext='' is most
4400 # certainly right.
4401 break;;
4402 *.* )
5213506e
RW
4403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4404 then :; else
4405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4406 fi
4407 # We set ac_cv_exeext here because the later test for it is not
4408 # safe: cross compilers may not add the suffix if given an `-o'
4409 # argument, so we may need to know it at that point already.
4410 # Even if this section looks crufty: it has the advantage of
4411 # actually working.
1c710c3c
DJ
4412 break;;
4413 * )
4414 break;;
4415 esac
4416done
5213506e
RW
4417test "$ac_cv_exeext" = no && ac_cv_exeext=
4418
1c710c3c 4419else
5213506e
RW
4420 ac_file=''
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4423$as_echo "$ac_file" >&6; }
4424if test -z "$ac_file"; then :
4425 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
5213506e
RW
4428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430{ as_fn_set_status 77
4431as_fn_error "C compiler cannot create executables
4432See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4433fi
1c710c3c 4434ac_exeext=$ac_cv_exeext
1c710c3c 4435
5213506e 4436# Check that the compiler produces executables we can run. If not, either
1c710c3c 4437# the compiler is broken, or we cross compile.
5213506e
RW
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4439$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4440# If not cross compiling, check that we can run a simple program.
4441if test "$cross_compiling" != yes; then
4442 if { ac_try='./$ac_file'
5213506e
RW
4443 { { case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448$as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_try") 2>&5
1c710c3c 4450 ac_status=$?
5213506e
RW
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; }; then
1c710c3c
DJ
4453 cross_compiling=no
4454 else
4455 if test "$cross_compiling" = maybe; then
4456 cross_compiling=yes
4457 else
5213506e
RW
4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460as_fn_error "cannot run C compiled programs.
1c710c3c 4461If you meant to cross compile, use \`--host'.
5213506e 4462See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4463 fi
4464 fi
4465fi
5213506e
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467$as_echo "yes" >&6; }
1c710c3c 4468
5213506e 4469rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4470ac_clean_files=$ac_clean_files_save
5213506e 4471# Check that the compiler produces executables we can run. If not, either
1c710c3c 4472# the compiler is broken, or we cross compile.
5213506e
RW
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4474$as_echo_n "checking whether we are cross compiling... " >&6; }
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4476$as_echo "$cross_compiling" >&6; }
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4479$as_echo_n "checking for suffix of executables... " >&6; }
4480if { { ac_try="$ac_link"
4481case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486$as_echo "$ac_try_echo"; } >&5
4487 (eval "$ac_link") 2>&5
1c710c3c 4488 ac_status=$?
5213506e
RW
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }; then :
1c710c3c
DJ
4491 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4492# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4493# work properly (i.e., refer to `conftest.exe'), while it won't with
4494# `rm'.
4495for ac_file in conftest.exe conftest conftest.*; do
4496 test -f "$ac_file" || continue
4497 case $ac_file in
5213506e 4498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4500 break;;
4501 * ) break;;
4502 esac
4503done
af71363e 4504else
5213506e
RW
4505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507as_fn_error "cannot compute suffix of executables: cannot compile and link
4508See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4509fi
1c710c3c 4510rm -f conftest$ac_cv_exeext
5213506e
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4512$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4513
4514rm -f conftest.$ac_ext
4515EXEEXT=$ac_cv_exeext
4516ac_exeext=$EXEEXT
5213506e
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4518$as_echo_n "checking for suffix of object files... " >&6; }
4519if test "${ac_cv_objext+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
1c710c3c 4521else
5213506e 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4523/* end confdefs.h. */
4524
4525int
4526main ()
4527{
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.o conftest.obj
5213506e
RW
4534if { { ac_try="$ac_compile"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_compile") 2>&5
1c710c3c 4542 ac_status=$?
5213506e
RW
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; then :
4545 for ac_file in conftest.o conftest.obj conftest.*; do
4546 test -f "$ac_file" || continue;
1c710c3c 4547 case $ac_file in
5213506e 4548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4550 break;;
4551 esac
4552done
4553else
5213506e 4554 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
5213506e
RW
4557{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559as_fn_error "cannot compute suffix of object files: cannot compile
4560See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4561fi
1c710c3c
DJ
4562rm -f conftest.$ac_cv_objext conftest.$ac_ext
4563fi
5213506e
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4565$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4566OBJEXT=$ac_cv_objext
4567ac_objext=$OBJEXT
5213506e
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4570if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
1c710c3c 4572else
5213506e 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4574/* end confdefs.h. */
4575
4576int
4577main ()
4578{
4579#ifndef __GNUC__
4580 choke me
4581#endif
4582
4583 ;
4584 return 0;
4585}
4586_ACEOF
5213506e 4587if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4588 ac_compiler_gnu=yes
4589else
5213506e 4590 ac_compiler_gnu=no
1c710c3c 4591fi
5213506e 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4593ac_cv_c_compiler_gnu=$ac_compiler_gnu
4594
4595fi
5213506e
RW
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4598if test $ac_compiler_gnu = yes; then
4599 GCC=yes
4600else
4601 GCC=
4602fi
1c710c3c
DJ
4603ac_test_CFLAGS=${CFLAGS+set}
4604ac_save_CFLAGS=$CFLAGS
5213506e
RW
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4606$as_echo_n "checking whether $CC accepts -g... " >&6; }
4607if test "${ac_cv_prog_cc_g+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609else
4610 ac_save_c_werror_flag=$ac_c_werror_flag
4611 ac_c_werror_flag=yes
4612 ac_cv_prog_cc_g=no
4613 CFLAGS="-g"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
5213506e 4625if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4626 ac_cv_prog_cc_g=yes
4627else
5213506e
RW
4628 CFLAGS=""
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631
4632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640if ac_fn_c_try_compile "$LINENO"; then :
4641
4642else
4643 ac_c_werror_flag=$ac_save_c_werror_flag
4644 CFLAGS="-g"
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
af71363e 4647
5213506e
RW
4648int
4649main ()
4650{
4651
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_prog_cc_g=yes
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4660fi
5213506e 4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4662fi
5213506e
RW
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4667$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4668if test "$ac_test_CFLAGS" = set; then
1c710c3c 4669 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4670elif test $ac_cv_prog_cc_g = yes; then
4671 if test "$GCC" = yes; then
4672 CFLAGS="-g -O2"
4673 else
4674 CFLAGS="-g"
4675 fi
4676else
4677 if test "$GCC" = yes; then
4678 CFLAGS="-O2"
4679 else
4680 CFLAGS=
4681 fi
4682fi
5213506e
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4685if test "${ac_cv_prog_cc_c89+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
1c710c3c 4687else
5213506e 4688 ac_cv_prog_cc_c89=no
1c710c3c 4689ac_save_CC=$CC
5213506e 4690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4691/* end confdefs.h. */
4692#include <stdarg.h>
4693#include <stdio.h>
4694#include <sys/types.h>
4695#include <sys/stat.h>
4696/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4697struct buf { int x; };
4698FILE * (*rcsopen) (struct buf *, struct stat *, int);
4699static char *e (p, i)
4700 char **p;
4701 int i;
4702{
4703 return p[i];
4704}
4705static char *f (char * (*g) (char **, int), char **p, ...)
4706{
4707 char *s;
4708 va_list v;
4709 va_start (v,p);
4710 s = g (p, va_arg (v,int));
4711 va_end (v);
4712 return s;
4713}
4714
4715/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4716 function prototypes and stuff, but not '\xHH' hex character constants.
4717 These don't provoke an error unfortunately, instead are silently treated
5213506e 4718 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4720 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4721 that's true only with -std. */
1c710c3c
DJ
4722int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4723
5213506e
RW
4724/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4725 inside strings and character constants. */
4726#define FOO(x) 'x'
4727int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4728
1c710c3c
DJ
4729int test (int i, double x);
4730struct s1 {int (*f) (int a);};
4731struct s2 {int (*f) (double a);};
4732int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4733int argc;
4734char **argv;
4735int
4736main ()
4737{
4738return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4739 ;
4740 return 0;
4741}
4742_ACEOF
5213506e
RW
4743for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4745do
4746 CC="$ac_save_CC $ac_arg"
5213506e
RW
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4749fi
5213506e
RW
4750rm -f core conftest.err conftest.$ac_objext
4751 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4752done
5213506e 4753rm -f conftest.$ac_ext
1c710c3c
DJ
4754CC=$ac_save_CC
4755
4756fi
5213506e
RW
4757# AC_CACHE_VAL
4758case "x$ac_cv_prog_cc_c89" in
4759 x)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4761$as_echo "none needed" >&6; } ;;
4762 xno)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764$as_echo "unsupported" >&6; } ;;
1c710c3c 4765 *)
5213506e
RW
4766 CC="$CC $ac_cv_prog_cc_c89"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4768$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4769esac
5213506e 4770if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4771
2aeb72e9
DD
4772fi
4773
2aeb72e9
DD
4774ac_ext=c
4775ac_cpp='$CPP $CPPFLAGS'
4776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779
5213506e 4780ac_ext=cpp
2aeb72e9
DD
4781ac_cpp='$CXXCPP $CPPFLAGS'
4782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4785if test -z "$CXX"; then
4786 if test -n "$CCC"; then
4787 CXX=$CCC
4788 else
4789 if test -n "$ac_tool_prefix"; then
4790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4791 do
4792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if test "${ac_cv_prog_CXX+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4798else
4799 if test -n "$CXX"; then
4800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
5213506e
RW
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4811 break 2
4812 fi
4813done
5213506e
RW
4814 done
4815IFS=$as_save_IFS
55ffb5ed 4816
c3a86da9
DJ
4817fi
4818fi
4819CXX=$ac_cv_prog_CXX
4820if test -n "$CXX"; then
5213506e
RW
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4822$as_echo "$CXX" >&6; }
c3a86da9 4823else
5213506e
RW
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
c3a86da9
DJ
4826fi
4827
5213506e 4828
c3a86da9
DJ
4829 test -n "$CXX" && break
4830 done
4831fi
4832if test -z "$CXX"; then
4833 ac_ct_CXX=$CXX
5213506e 4834 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4835do
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837set dummy $ac_prog; ac_word=$2
5213506e
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4842else
4843 if test -n "$ac_ct_CXX"; then
4844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
5213506e
RW
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4853 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4855 break 2
4856 fi
4857done
5213506e
RW
4858 done
4859IFS=$as_save_IFS
c3a86da9
DJ
4860
4861fi
4862fi
4863ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4864if test -n "$ac_ct_CXX"; then
5213506e
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4866$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4867else
5213506e
RW
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
c3a86da9
DJ
4870fi
4871
5213506e 4872
c3a86da9
DJ
4873 test -n "$ac_ct_CXX" && break
4874done
c3a86da9 4875
5213506e
RW
4876 if test "x$ac_ct_CXX" = x; then
4877 CXX="g++"
4878 else
4879 case $cross_compiling:$ac_tool_warned in
4880yes:)
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883ac_tool_warned=yes ;;
4884esac
4885 CXX=$ac_ct_CXX
4886 fi
c3a86da9
DJ
4887fi
4888
5213506e
RW
4889 fi
4890fi
c3a86da9 4891# Provide some information about the compiler.
5213506e
RW
4892$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4893set X $ac_compile
4894ac_compiler=$2
4895for ac_option in --version -v -V -qversion; do
4896 { { ac_try="$ac_compiler $ac_option >&5"
4897case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900esac
4901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902$as_echo "$ac_try_echo"; } >&5
4903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4904 ac_status=$?
5213506e
RW
4905 if test -s conftest.err; then
4906 sed '10a\
4907... rest of stderr output deleted ...
4908 10q' conftest.err >conftest.er1
4909 cat conftest.er1 >&5
4910 rm -f conftest.er1 conftest.err
4911 fi
4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }
4914done
c3a86da9 4915
5213506e
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4917$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4918if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
c3a86da9 4920else
5213506e 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4922/* end confdefs.h. */
4923
4924int
4925main ()
4926{
4927#ifndef __GNUC__
4928 choke me
4929#endif
4930
4931 ;
4932 return 0;
4933}
4934_ACEOF
5213506e 4935if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4936 ac_compiler_gnu=yes
4937else
5213506e 4938 ac_compiler_gnu=no
c3a86da9 4939fi
5213506e 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4941ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4942
4943fi
5213506e
RW
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4945$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4946if test $ac_compiler_gnu = yes; then
4947 GXX=yes
4948else
4949 GXX=
4950fi
c3a86da9
DJ
4951ac_test_CXXFLAGS=${CXXFLAGS+set}
4952ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4954$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4955if test "${ac_cv_prog_cxx_g+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4959 ac_cxx_werror_flag=yes
4960 ac_cv_prog_cxx_g=no
4961 CXXFLAGS="-g"
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4963/* end confdefs.h. */
4964
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
5213506e 4973if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4974 ac_cv_prog_cxx_g=yes
4975else
5213506e
RW
4976 CXXFLAGS=""
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4978/* end confdefs.h. */
5213506e 4979
c3a86da9
DJ
4980int
4981main ()
4982{
5213506e 4983
c3a86da9
DJ
4984 ;
4985 return 0;
4986}
4987_ACEOF
5213506e 4988if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4989
5213506e
RW
4990else
4991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4992 CXXFLAGS="-g"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4994/* end confdefs.h. */
5213506e 4995
c3a86da9
DJ
4996int
4997main ()
4998{
5213506e 4999
c3a86da9
DJ
5000 ;
5001 return 0;
5002}
5003_ACEOF
5213506e
RW
5004if ac_fn_cxx_try_compile "$LINENO"; then :
5005 ac_cv_prog_cxx_g=yes
11a67599 5006fi
5213506e
RW
5007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5013fi
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5015$as_echo "$ac_cv_prog_cxx_g" >&6; }
5016if test "$ac_test_CXXFLAGS" = set; then
5017 CXXFLAGS=$ac_save_CXXFLAGS
5018elif test $ac_cv_prog_cxx_g = yes; then
5019 if test "$GXX" = yes; then
5020 CXXFLAGS="-g -O2"
5021 else
5022 CXXFLAGS="-g"
5023 fi
5024else
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-O2"
5027 else
5028 CXXFLAGS=
5029 fi
c3a86da9 5030fi
c3a86da9
DJ
5031ac_ext=c
5032ac_cpp='$CPP $CPPFLAGS'
5033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036
5037
5038# We must set the default linker to the linker used by gcc for the correct
5039# operation of libtool. If LD is not defined and we are using gcc, try to
5040# set the LD default to the ld used by gcc.
5041if test -z "$LD"; then
5042 if test "$GCC" = yes; then
5043 case $build in
5044 *-*-mingw*)
5045 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5046 *)
5047 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5048 esac
5049 case $gcc_prog_ld in
5050 # Accept absolute paths.
5051 [\\/]* | [A-Za-z]:[\\/]*)
5052 LD="$gcc_prog_ld" ;;
5053 esac
5054 fi
23f6b2f9
PB
5055fi
5056
23f6b2f9
PB
5057
5058
55ffb5ed 5059
1c710c3c
DJ
5060if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5062set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064$as_echo_n "checking for $ac_word... " >&6; }
5065if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5067else
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5070else
1c710c3c
DJ
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5213506e
RW
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5078 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5080 break 2
5081 fi
5082done
5213506e
RW
5083 done
5084IFS=$as_save_IFS
1c710c3c 5085
55ffb5ed
NN
5086fi
5087fi
1c710c3c 5088GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5089if test -n "$GNATBIND"; then
5213506e
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091$as_echo "$GNATBIND" >&6; }
55ffb5ed 5092else
5213506e
RW
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
55ffb5ed
NN
5095fi
5096
5213506e 5097
1c710c3c 5098fi
55ffb5ed 5099if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5100 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102set dummy gnatbind; ac_word=$2
5213506e
RW
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
55ffb5ed 5107else
1c710c3c
DJ
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5110else
1c710c3c
DJ
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5213506e
RW
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5118 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5120 break 2
5121 fi
5122done
5213506e
RW
5123 done
5124IFS=$as_save_IFS
1c710c3c 5125
55ffb5ed
NN
5126fi
5127fi
1c710c3c
DJ
5128ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5129if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5132else
5213506e
RW
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
55ffb5ed
NN
5135fi
5136
5213506e
RW
5137 if test "x$ac_ct_GNATBIND" = x; then
5138 GNATBIND="no"
5139 else
5140 case $cross_compiling:$ac_tool_warned in
5141yes:)
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144ac_tool_warned=yes ;;
5145esac
5146 GNATBIND=$ac_ct_GNATBIND
5147 fi
55ffb5ed 5148else
1c710c3c 5149 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5150fi
5151
1c710c3c
DJ
5152if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5154set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5305be7e
RG
5159else
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5162else
1c710c3c
DJ
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5213506e
RW
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5170 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5172 break 2
5173 fi
5174done
5213506e
RW
5175 done
5176IFS=$as_save_IFS
1c710c3c 5177
5305be7e
RG
5178fi
5179fi
1c710c3c 5180GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5181if test -n "$GNATMAKE"; then
5213506e
RW
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183$as_echo "$GNATMAKE" >&6; }
5305be7e 5184else
5213506e
RW
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5305be7e
RG
5187fi
5188
5213506e 5189
1c710c3c 5190fi
5305be7e 5191if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5192 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194set dummy gnatmake; ac_word=$2
5213506e
RW
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5305be7e 5199else
1c710c3c
DJ
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5202else
1c710c3c
DJ
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5213506e
RW
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5210 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5212 break 2
5213 fi
5214done
5213506e
RW
5215 done
5216IFS=$as_save_IFS
1c710c3c 5217
5305be7e
RG
5218fi
5219fi
1c710c3c
DJ
5220ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5221if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5224else
5213506e
RW
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5305be7e
RG
5227fi
5228
5213506e
RW
5229 if test "x$ac_ct_GNATMAKE" = x; then
5230 GNATMAKE="no"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233yes:)
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238 GNATMAKE=$ac_ct_GNATMAKE
5239 fi
5305be7e 5240else
1c710c3c 5241 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5242fi
5243
5213506e
RW
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5245$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5246if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5248else
5249 cat >conftest.adb <<EOF
5250procedure conftest is begin null; end conftest;
5251EOF
5252acx_cv_cc_gcc_supports_ada=no
5253# There is a bug in old released versions of GCC which causes the
5254# driver to exit successfully when the appropriate language module
5255# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5256# Therefore we must check for the error message as well as an
5257# unsuccessful exit.
1db673ca
RO
5258# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5259# given a .adb file, but produce no object file. So we must check
5260# if an object file was really produced to guard against this.
55ffb5ed 5261errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5262if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5263 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5264fi
5265rm -f conftest.*
5266fi
5213506e
RW
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5268$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5269
5305be7e 5270if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5271 have_gnat=yes
5272else
5273 have_gnat=no
5274fi
5275
5213506e
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5277$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5278if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
a76494aa
PB
5280else
5281 echo abfoo >t1
5282 echo cdfoo >t2
5283 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5284 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5285 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5286 :
5287 else
5288 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5289 fi
5290 fi
a76494aa
PB
5291 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5292 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5293 :
a76494aa
PB
5294 else
5295 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5296 fi
5297 fi
5298 rm t1 t2
5299
5300fi
5213506e
RW
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5302$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5303do_compare="$gcc_cv_prog_cmp_skip"
5304
5305
55ffb5ed 5306
00020c16 5307# See if we are building gcc with C++.
5213506e
RW
5308# Check whether --enable-build-with-cxx was given.
5309if test "${enable_build_with_cxx+set}" = set; then :
5310 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5311else
5312 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5313fi
5314
00020c16 5315
592c90ff
KG
5316# Used for setting $lt_cv_objdir
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5318$as_echo_n "checking for objdir... " >&6; }
5319if test "${lt_cv_objdir+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321else
5322 rm -f .libs 2>/dev/null
5323mkdir .libs 2>/dev/null
5324if test -d .libs; then
5325 lt_cv_objdir=.libs
5326else
5327 # MS-DOS does not allow filenames that begin with a dot.
5328 lt_cv_objdir=_libs
5329fi
5330rmdir .libs 2>/dev/null
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5333$as_echo "$lt_cv_objdir" >&6; }
5334objdir=$lt_cv_objdir
5335
5336
5337
5338
5339
5340cat >>confdefs.h <<_ACEOF
5341#define LT_OBJDIR "$lt_cv_objdir/"
5342_ACEOF
5343
5344
5345
acd26225 5346# Check for GMP, MPFR and MPC
3a5729ea 5347gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5348gmpinc=
e69bf64b 5349have_gmp=no
acd26225
KG
5350
5351# Specify a location for mpc
5352# check for this first so it ends up on the link line before mpfr.
5353
5213506e
RW
5354# Check whether --with-mpc was given.
5355if test "${with_mpc+set}" = set; then :
5356 withval=$with_mpc;
5357fi
acd26225 5358
acd26225 5359
5213506e
RW
5360# Check whether --with-mpc_include was given.
5361if test "${with_mpc_include+set}" = set; then :
5362 withval=$with_mpc_include;
5363fi
acd26225 5364
acd26225 5365
5213506e
RW
5366# Check whether --with-mpc_lib was given.
5367if test "${with_mpc_lib+set}" = set; then :
5368 withval=$with_mpc_lib;
5369fi
acd26225 5370
acd26225
KG
5371
5372if test "x$with_mpc" != x; then
3a5729ea
KG
5373 gmplibs="-L$with_mpc/lib $gmplibs"
5374 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5375fi
5376if test "x$with_mpc_include" != x; then
3a5729ea 5377 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5378fi
5379if test "x$with_mpc_lib" != x; then
3a5729ea 5380 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5381fi
5382if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5383 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5384 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5385 # Do not test the mpc version. Assume that it is sufficient, since
5386 # it is in the source tree, and the library has not been built yet
5387 # but it would be included on the link line in the version check below
5388 # hence making the test fail.
3a5729ea 5389 have_gmp=yes
acd26225 5390fi
e69bf64b 5391
bebf829d
PB
5392# Specify a location for mpfr
5393# check for this first so it ends up on the link line before gmp.
1c710c3c 5394
5213506e
RW
5395# Check whether --with-mpfr-dir was given.
5396if test "${with_mpfr_dir+set}" = set; then :
5397 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5398Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5399fi
5400
bebf829d
PB
5401
5402
5213506e
RW
5403# Check whether --with-mpfr was given.
5404if test "${with_mpfr+set}" = set; then :
5405 withval=$with_mpfr;
5406fi
1c710c3c 5407
bebf829d 5408
5213506e
RW
5409# Check whether --with-mpfr_include was given.
5410if test "${with_mpfr_include+set}" = set; then :
5411 withval=$with_mpfr_include;
5412fi
1c710c3c 5413
8a877c9c 5414
5213506e
RW
5415# Check whether --with-mpfr_lib was given.
5416if test "${with_mpfr_lib+set}" = set; then :
5417 withval=$with_mpfr_lib;
5418fi
8a877c9c 5419
bebf829d
PB
5420
5421if test "x$with_mpfr" != x; then
5422 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5423 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5424fi
8a877c9c 5425if test "x$with_mpfr_include" != x; then
3a5729ea 5426 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5427fi
5428if test "x$with_mpfr_lib" != x; then
5429 gmplibs="-L$with_mpfr_lib $gmplibs"
5430fi
e69bf64b 5431if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5432 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5433 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5434 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5435 # Do not test the mpfr version. Assume that it is sufficient, since
5436 # it is in the source tree, and the library has not been built yet
5437 # but it would be included on the link line in the version check below
5438 # hence making the test fail.
5439 have_gmp=yes
5440fi
bebf829d 5441
6de9cd9a 5442# Specify a location for gmp
1c710c3c 5443
5213506e
RW
5444# Check whether --with-gmp-dir was given.
5445if test "${with_gmp_dir+set}" = set; then :
5446 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5447Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5448fi
5449
6de9cd9a 5450
6de9cd9a 5451
5213506e
RW
5452# Check whether --with-gmp was given.
5453if test "${with_gmp+set}" = set; then :
5454 withval=$with_gmp;
5455fi
1c710c3c 5456
6de9cd9a 5457
5213506e
RW
5458# Check whether --with-gmp_include was given.
5459if test "${with_gmp_include+set}" = set; then :
5460 withval=$with_gmp_include;
5461fi
1c710c3c 5462
8a877c9c 5463
5213506e
RW
5464# Check whether --with-gmp_lib was given.
5465if test "${with_gmp_lib+set}" = set; then :
5466 withval=$with_gmp_lib;
5467fi
8a877c9c
KG
5468
5469
6de9cd9a 5470
bebf829d
PB
5471if test "x$with_gmp" != x; then
5472 gmplibs="-L$with_gmp/lib $gmplibs"
5473 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5474fi
8a877c9c
KG
5475if test "x$with_gmp_include" != x; then
5476 gmpinc="-I$with_gmp_include $gmpinc"
5477fi
5478if test "x$with_gmp_lib" != x; then
5479 gmplibs="-L$with_gmp_lib $gmplibs"
5480fi
e69bf64b 5481if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5482 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5483 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5484 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5485 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5486 # Do not test the gmp version. Assume that it is sufficient, since
5487 # it is in the source tree, and the library has not been built yet
5488 # but it would be included on the link line in the version check below
5489 # hence making the test fail.
5490 have_gmp=yes
5491fi
6de9cd9a 5492
d943d7c4 5493if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5494 have_gmp=yes
5495 saved_CFLAGS="$CFLAGS"
5496 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5497 # Check for the recommended and required versions of GMP.
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5499$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5500
5501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5502/* end confdefs.h. */
5503#include "gmp.h"
5504int
5505main ()
5506{
5507
5508 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5509 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5510 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5511 choke me
5512 #endif
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5520/* end confdefs.h. */
362c6d2f 5521#include <gmp.h>
1c710c3c
DJ
5522int
5523main ()
5524{
6de9cd9a 5525
362c6d2f
KG
5526 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5527 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5528 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5529 choke me
5530 #endif
1c710c3c
DJ
5531
5532 ;
5533 return 0;
5534}
5535_ACEOF
5213506e
RW
5536if ac_fn_c_try_compile "$LINENO"; then :
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538$as_echo "yes" >&6; }
362c6d2f
KG
5539else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5541$as_echo "buggy but acceptable" >&6; }
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5544else
5213506e
RW
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5547fi
5213506e 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5549
acd26225 5550 # If we have GMP, check the MPFR version.
e69bf64b 5551 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5552 # Check for the recommended and required versions of MPFR.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5554$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5556/* end confdefs.h. */
70ec446f 5557#include <gmp.h>
e69bf64b 5558 #include <mpfr.h>
1c710c3c
DJ
5559int
5560main ()
5561{
e48d66a9 5562
a3337ea2 5563 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5564 choke me
5565 #endif
1c710c3c
DJ
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
5213506e
RW
5571if ac_fn_c_try_compile "$LINENO"; then :
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5573/* end confdefs.h. */
a3993f33 5574#include <gmp.h>
e69bf64b 5575 #include <mpfr.h>
1c710c3c
DJ
5576int
5577main ()
5578{
a3993f33 5579
362c6d2f 5580 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5581 choke me
5582 #endif
acd26225
KG
5583
5584 ;
5585 return 0;
5586}
5587_ACEOF
5213506e
RW
5588if ac_fn_c_try_compile "$LINENO"; then :
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5590$as_echo "yes" >&6; }
acd26225 5591else
5213506e
RW
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5593$as_echo "buggy but acceptable" >&6; }
acd26225 5594fi
5213506e 5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5596else
5213506e
RW
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598$as_echo "no" >&6; }; have_gmp=no
acd26225 5599fi
5213506e 5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5601 fi
5602
5603 # Check for the MPC header version.
3a5729ea 5604 if test x"$have_gmp" = xyes ; then
362c6d2f 5605 # Check for the recommended and required versions of MPC.
5213506e
RW
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5607$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5609/* end confdefs.h. */
5610#include <mpc.h>
5611int
5612main ()
5613{
5614
362c6d2f
KG
5615 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5616 choke me
5617 #endif
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_compile "$LINENO"; then :
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h. */
5626#include <mpc.h>
5627int
5628main ()
5629{
5630
5631 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5632 choke me
5633 #endif
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
5213506e
RW
5639if ac_fn_c_try_compile "$LINENO"; then :
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5641$as_echo "yes" >&6; }
362c6d2f
KG
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5644$as_echo "buggy but acceptable" >&6; }
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5647else
5213506e 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5649$as_echo "no" >&6; }; have_gmp=no
acd26225 5650fi
5213506e 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5652 fi
5653
5654 # Now check the MPFR library.
5655 if test x"$have_gmp" = xyes; then
5656 saved_LIBS="$LIBS"
5657 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5659$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5661/* end confdefs.h. */
3a5729ea 5662#include <mpc.h>
acd26225
KG
5663int
5664main ()
5665{
5666
5667 mpfr_t n;
5668 mpfr_t x;
3a5729ea 5669 mpc_t c;
acd26225
KG
5670 int t;
5671 mpfr_init (n);
5672 mpfr_init (x);
5673 mpfr_atan2 (n, n, x, GMP_RNDN);
5674 mpfr_erfc (n, x, GMP_RNDN);
5675 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5676 mpfr_clear(n);
5677 mpfr_clear(x);
5678 mpc_init2 (c, 53);
5679 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5680 mpc_cosh (c, c, MPC_RNDNN);
5681 mpc_pow (c, c, c, MPC_RNDNN);
5682 mpc_acosh (c, c, MPC_RNDNN);
5683 mpc_clear (c);
1c710c3c
DJ
5684
5685 ;
5686 return 0;
5687}
5688_ACEOF
5213506e
RW
5689if ac_fn_c_try_link "$LINENO"; then :
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691$as_echo "yes" >&6; }
1c710c3c 5692else
5213506e
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5695fi
5213506e
RW
5696rm -f core conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5698 LIBS="$saved_LIBS"
5699 fi
5700
e69bf64b 5701 CFLAGS="$saved_CFLAGS"
6de9cd9a 5702
362c6d2f
KG
5703# The library versions listed in the error message below should match
5704# the HARD-minimums enforced above.
e69bf64b 5705 if test x$have_gmp != xyes; then
362c6d2f 5706 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5707Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5708their locations. Source code for these libraries can be found at
5709their respective hosting sites as well as at
5710ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5711http://gcc.gnu.org/install/prerequisites.html for additional info. If
5712you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5713make sure that you have installed both the libraries and the header
5714files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5715 fi
70ec446f
KG
5716fi
5717
acd26225
KG
5718# Flags needed for both GMP, MPFR and/or MPC.
5719
5720
6de9cd9a
DN
5721
5722
5723
9e3eba15 5724
f38095f3
JM
5725# Allow host libstdc++ to be specified for static linking with PPL.
5726
5213506e
RW
5727# Check whether --with-host-libstdcxx was given.
5728if test "${with_host_libstdcxx+set}" = set; then :
5729 withval=$with_host_libstdcxx;
5730fi
f38095f3 5731
f38095f3
JM
5732
5733case $with_host_libstdcxx in
5734 no|yes)
5213506e 5735 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5736 ;;
5737esac
f8bf9252 5738
00020c16
ILT
5739# Linker flags to use for stage1 or when not boostrapping.
5740
5213506e
RW
5741# Check whether --with-stage1-ldflags was given.
5742if test "${with_stage1_ldflags+set}" = set; then :
5743 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5744 stage1_ldflags=
5745 else
5746 stage1_ldflags=$withval
5747 fi
5748else
5749 stage1_ldflags=
5213506e
RW
5750fi
5751
00020c16
ILT
5752
5753
5754# Libraries to use for stage1 or when not bootstrapping.
5755
5213506e
RW
5756# Check whether --with-stage1-libs was given.
5757if test "${with_stage1_libs+set}" = set; then :
5758 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5759 stage1_libs=
5760 else
5761 stage1_libs=$withval
5762 fi
5763else
5764 stage1_libs=$with_host_libstdcxx
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=
5796 # With --enable-build-with-cxx, default to linking libstdc++ and
5797 # libgcc statically. But if the user explicitly specified the
5798 # libraries to use, trust that they are doing what they want.
5799 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5800 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5801 fi
5802fi
5803
5804
5805
f8bf9252 5806# Check for PPL
00020c16 5807ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5808pplinc=
5809
5810
5213506e
RW
5811# Check whether --with-ppl was given.
5812if test "${with_ppl+set}" = set; then :
5813 withval=$with_ppl;
5213506e 5814fi
f8bf9252 5815
f8bf9252 5816
5213506e
RW
5817# Check whether --with-ppl_include was given.
5818if test "${with_ppl_include+set}" = set; then :
5819 withval=$with_ppl_include;
5820fi
5821
f8bf9252 5822
5213506e
RW
5823# Check whether --with-ppl_lib was given.
5824if test "${with_ppl_lib+set}" = set; then :
5825 withval=$with_ppl_lib;
5826fi
f8bf9252 5827
f8bf9252 5828
53095c56
SP
5829case $with_ppl in
5830 no)
5831 ppllibs=
5832 ;;
f61428ed 5833 "" | yes)
ad0abd3c 5834 ;;
53095c56 5835 *)
00020c16 5836 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5837 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5838 ;;
5839esac
f8bf9252
SP
5840if test "x$with_ppl_include" != x; then
5841 pplinc="-I$with_ppl_include $pplinc"
5842fi
5843if test "x$with_ppl_lib" != x; then
00020c16 5844 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5845fi
5846if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5847 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
f61428ed
AO
5848 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5849 enable_ppl_version_check=no
f8bf9252
SP
5850fi
5851
5213506e
RW
5852# Check whether --enable-ppl-version-check was given.
5853if test "${enable_ppl_version_check+set}" = set; then :
5854 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5855else
5856 ENABLE_PPL_CHECK=yes
5213506e
RW
5857fi
5858
f8bf9252 5859
ad0abd3c 5860if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5861 saved_CFLAGS="$CFLAGS"
5862 CFLAGS="$CFLAGS $pplinc $gmpinc"
f1af9e5f
SP
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5864$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5213506e 5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5866/* end confdefs.h. */
5867#include "ppl_c.h"
5868int
5869main ()
5870{
5871
f1af9e5f 5872 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
d789184e
SP
5873 choke me
5874 #endif
f8bf9252
SP
5875
5876 ;
5877 return 0;
5878}
5879_ACEOF
5213506e
RW
5880if ac_fn_c_try_compile "$LINENO"; then :
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882$as_echo "yes" >&6; }
f8bf9252 5883else
5213506e 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5885$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5886fi
5213506e 5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5888 CFLAGS="$saved_CFLAGS"
5889fi
5890
5891# Flags needed for PPL
5892
5893
f8bf9252 5894
f8bf9252 5895
d789184e 5896# Check for CLOOG
23d9794a 5897clooglibs=" -lcloog "
d789184e
SP
5898clooginc=" -DCLOOG_PPL_BACKEND "
5899
5900
5213506e
RW
5901# Check whether --with-cloog was given.
5902if test "${with_cloog+set}" = set; then :
5903 withval=$with_cloog;
5213506e
RW
5904fi
5905
d789184e 5906
5213506e
RW
5907# Check whether --with-cloog_include was given.
5908if test "${with_cloog_include+set}" = set; then :
5909 withval=$with_cloog_include;
5910fi
d789184e 5911
d789184e 5912
5213506e
RW
5913# Check whether --with-cloog_lib was given.
5914if test "${with_cloog_lib+set}" = set; then :
5915 withval=$with_cloog_lib;
5916fi
d789184e 5917
d789184e 5918
17e72e5d 5919if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5920 with_cloog=no
5921fi
5922
53095c56
SP
5923case $with_cloog in
5924 no)
5925 clooglibs=
5926 clooginc=
5927 ;;
f61428ed 5928 "" | yes)
ad0abd3c 5929 ;;
53095c56
SP
5930 *)
5931 clooglibs="-L$with_cloog/lib -lcloog"
5932 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
53095c56
SP
5933 ;;
5934esac
d789184e
SP
5935if test "x$with_cloog_include" != x; then
5936 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5937fi
5938if test "x$with_cloog_lib" != x; then
5939 clooglibs="-L$with_cloog_lib -lcloog"
d789184e
SP
5940fi
5941if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
592c90ff 5942 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
d789184e 5943 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
f61428ed 5944 enable_cloog_version_check=no
d789184e
SP
5945fi
5946
5213506e
RW
5947# Check whether --enable-cloog-version-check was given.
5948if test "${enable_cloog_version_check+set}" = set; then :
5949 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
d789184e
SP
5950else
5951 ENABLE_CLOOG_CHECK=yes
5213506e
RW
5952fi
5953
d789184e 5954
ad0abd3c 5955if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
d789184e
SP
5956 saved_CFLAGS="$CFLAGS"
5957 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
f264ed56
SP
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5959$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5213506e 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5961/* end confdefs.h. */
5962#include "cloog/cloog.h"
5963int
5964main ()
5965{
5966
f264ed56 5967 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
d789184e
SP
5968 choke me
5969 #endif
f8bf9252
SP
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
0333b9a6
SP
5975if ac_fn_c_try_compile "$LINENO"; then :
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h. */
5978#include "cloog/cloog.h"
5979int
5980main ()
5981{
5982
5983 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5984 choke me
5985 #endif
5986
5987 ;
5988 return 0;
5989}
5990_ACEOF
5213506e
RW
5991if ac_fn_c_try_compile "$LINENO"; then :
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5993$as_echo "yes" >&6; }
0333b9a6
SP
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5996$as_echo "buggy but acceptable" >&6; }
5997fi
5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5999else
5213506e
RW
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }; clooglibs= ; clooginc=
f8bf9252 6002fi
5213506e 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
6004 CFLAGS="$saved_CFLAGS"
6005fi
f8bf9252
SP
6006
6007# Flags needed for CLOOG
6008
6009
6010
d7f09764
DN
6011# Check for LTO support.
6012# Check whether --enable-lto was given.
6013if test "${enable_lto+set}" = set; then :
6014 enableval=$enable_lto; enable_lto=$enableval
6015else
6016 enable_lto=yes; default_enable_lto=yes
6017fi
6018
6019
7413962d 6020
9a02962b 6021ac_ext=c
d7f09764
DN
6022ac_cpp='$CPP $CPPFLAGS'
6023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025ac_compiler_gnu=$ac_cv_c_compiler_gnu
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6027$as_echo_n "checking how to run the C preprocessor... " >&6; }
6028# On Suns, sometimes $CPP names a directory.
6029if test -n "$CPP" && test -d "$CPP"; then
6030 CPP=
6031fi
6032if test -z "$CPP"; then
6033 if test "${ac_cv_prog_CPP+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 # Double quotes because CPP needs to be expanded
6037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6038 do
6039 ac_preproc_ok=false
6040for ac_c_preproc_warn_flag in '' yes
6041do
6042 # Use a header file that comes with gcc, so configuring glibc
6043 # with a fresh cross-compiler works.
6044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045 # <limits.h> exists even on freestanding compilers.
6046 # On the NeXT, cc -E runs the code through the compiler's parser,
6047 # not just through cpp. "Syntax error" is here to catch this case.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h. */
6050#ifdef __STDC__
6051# include <limits.h>
6052#else
6053# include <assert.h>
6054#endif
6055 Syntax error
6056_ACEOF
6057if ac_fn_c_try_cpp "$LINENO"; then :
6058
6059else
6060 # Broken: fails on valid input.
6061continue
6062fi
6063rm -f conftest.err conftest.$ac_ext
6064
6065 # OK, works on sane cases. Now check whether nonexistent headers
6066 # can be detected and how.
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h. */
6069#include <ac_nonexistent.h>
6070_ACEOF
6071if ac_fn_c_try_cpp "$LINENO"; then :
6072 # Broken: success on invalid input.
6073continue
6074else
6075 # Passes both tests.
6076ac_preproc_ok=:
6077break
6078fi
6079rm -f conftest.err conftest.$ac_ext
6080
6081done
6082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083rm -f conftest.err conftest.$ac_ext
6084if $ac_preproc_ok; then :
6085 break
6086fi
6087
6088 done
6089 ac_cv_prog_CPP=$CPP
6090
6091fi
6092 CPP=$ac_cv_prog_CPP
6093else
6094 ac_cv_prog_CPP=$CPP
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6097$as_echo "$CPP" >&6; }
6098ac_preproc_ok=false
6099for ac_c_preproc_warn_flag in '' yes
6100do
6101 # Use a header file that comes with gcc, so configuring glibc
6102 # with a fresh cross-compiler works.
6103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104 # <limits.h> exists even on freestanding compilers.
6105 # On the NeXT, cc -E runs the code through the compiler's parser,
6106 # not just through cpp. "Syntax error" is here to catch this case.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h. */
6109#ifdef __STDC__
6110# include <limits.h>
6111#else
6112# include <assert.h>
6113#endif
6114 Syntax error
6115_ACEOF
6116if ac_fn_c_try_cpp "$LINENO"; then :
6117
6118else
6119 # Broken: fails on valid input.
6120continue
6121fi
6122rm -f conftest.err conftest.$ac_ext
6123
6124 # OK, works on sane cases. Now check whether nonexistent headers
6125 # can be detected and how.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128#include <ac_nonexistent.h>
6129_ACEOF
6130if ac_fn_c_try_cpp "$LINENO"; then :
6131 # Broken: success on invalid input.
6132continue
6133else
6134 # Passes both tests.
6135ac_preproc_ok=:
6136break
6137fi
6138rm -f conftest.err conftest.$ac_ext
6139
6140done
6141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6142rm -f conftest.err conftest.$ac_ext
6143if $ac_preproc_ok; then :
6144
6145else
6146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148as_fn_error "C preprocessor \"$CPP\" fails sanity check
6149See \`config.log' for more details." "$LINENO" 5; }
6150fi
6151
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6160$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6161if test "${ac_cv_path_GREP+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 if test -z "$GREP"; then
6165 ac_path_GREP_found=false
6166 # Loop through the user's path and test for each of PROGNAME-LIST
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_prog in grep ggrep; do
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6175 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6176# Check for GNU ac_path_GREP and select it if it is found.
6177 # Check for GNU $ac_path_GREP
6178case `"$ac_path_GREP" --version 2>&1` in
6179*GNU*)
6180 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6181*)
6182 ac_count=0
6183 $as_echo_n 0123456789 >"conftest.in"
6184 while :
6185 do
6186 cat "conftest.in" "conftest.in" >"conftest.tmp"
6187 mv "conftest.tmp" "conftest.in"
6188 cp "conftest.in" "conftest.nl"
6189 $as_echo 'GREP' >> "conftest.nl"
6190 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6192 as_fn_arith $ac_count + 1 && ac_count=$as_val
6193 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6194 # Best one so far, save it but keep looking for a better one
6195 ac_cv_path_GREP="$ac_path_GREP"
6196 ac_path_GREP_max=$ac_count
6197 fi
6198 # 10*(2^10) chars as input seems more than enough
6199 test $ac_count -gt 10 && break
6200 done
6201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6202esac
6203
6204 $ac_path_GREP_found && break 3
6205 done
6206 done
6207 done
6208IFS=$as_save_IFS
6209 if test -z "$ac_cv_path_GREP"; then
6210 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6211 fi
6212else
6213 ac_cv_path_GREP=$GREP
6214fi
6215
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6218$as_echo "$ac_cv_path_GREP" >&6; }
6219 GREP="$ac_cv_path_GREP"
6220
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6223$as_echo_n "checking for egrep... " >&6; }
6224if test "${ac_cv_path_EGREP+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226else
6227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6228 then ac_cv_path_EGREP="$GREP -E"
6229 else
6230 if test -z "$EGREP"; then
6231 ac_path_EGREP_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_prog in egrep; do
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6241 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6242# Check for GNU ac_path_EGREP and select it if it is found.
6243 # Check for GNU $ac_path_EGREP
6244case `"$ac_path_EGREP" --version 2>&1` in
6245*GNU*)
6246 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6247*)
6248 ac_count=0
6249 $as_echo_n 0123456789 >"conftest.in"
6250 while :
6251 do
6252 cat "conftest.in" "conftest.in" >"conftest.tmp"
6253 mv "conftest.tmp" "conftest.in"
6254 cp "conftest.in" "conftest.nl"
6255 $as_echo 'EGREP' >> "conftest.nl"
6256 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6258 as_fn_arith $ac_count + 1 && ac_count=$as_val
6259 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6260 # Best one so far, save it but keep looking for a better one
6261 ac_cv_path_EGREP="$ac_path_EGREP"
6262 ac_path_EGREP_max=$ac_count
6263 fi
6264 # 10*(2^10) chars as input seems more than enough
6265 test $ac_count -gt 10 && break
6266 done
6267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268esac
6269
6270 $ac_path_EGREP_found && break 3
6271 done
6272 done
6273 done
6274IFS=$as_save_IFS
6275 if test -z "$ac_cv_path_EGREP"; then
6276 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6277 fi
6278else
6279 ac_cv_path_EGREP=$EGREP
6280fi
6281
6282 fi
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6285$as_echo "$ac_cv_path_EGREP" >&6; }
6286 EGREP="$ac_cv_path_EGREP"
6287
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6290$as_echo_n "checking for ANSI C header files... " >&6; }
6291if test "${ac_cv_header_stdc+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h. */
6296#include <stdlib.h>
6297#include <stdarg.h>
6298#include <string.h>
6299#include <float.h>
6300
6301int
6302main ()
6303{
6304
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309if ac_fn_c_try_compile "$LINENO"; then :
6310 ac_cv_header_stdc=yes
6311else
6312 ac_cv_header_stdc=no
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315
6316if test $ac_cv_header_stdc = yes; then
6317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320#include <string.h>
6321
6322_ACEOF
6323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 $EGREP "memchr" >/dev/null 2>&1; then :
6325
6326else
6327 ac_cv_header_stdc=no
6328fi
6329rm -f conftest*
6330
6331fi
6332
6333if test $ac_cv_header_stdc = yes; then
6334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h. */
6337#include <stdlib.h>
6338
6339_ACEOF
6340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341 $EGREP "free" >/dev/null 2>&1; then :
6342
6343else
6344 ac_cv_header_stdc=no
6345fi
6346rm -f conftest*
6347
6348fi
6349
6350if test $ac_cv_header_stdc = yes; then
6351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6352 if test "$cross_compiling" = yes; then :
6353 :
6354else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357#include <ctype.h>
6358#include <stdlib.h>
6359#if ((' ' & 0x0FF) == 0x020)
6360# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6361# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6362#else
6363# define ISLOWER(c) \
6364 (('a' <= (c) && (c) <= 'i') \
6365 || ('j' <= (c) && (c) <= 'r') \
6366 || ('s' <= (c) && (c) <= 'z'))
6367# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6368#endif
6369
6370#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6371int
6372main ()
6373{
6374 int i;
6375 for (i = 0; i < 256; i++)
6376 if (XOR (islower (i), ISLOWER (i))
6377 || toupper (i) != TOUPPER (i))
6378 return 2;
6379 return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_run "$LINENO"; then :
6383
6384else
6385 ac_cv_header_stdc=no
6386fi
6387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6388 conftest.$ac_objext conftest.beam conftest.$ac_ext
6389fi
6390
6391fi
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6394$as_echo "$ac_cv_header_stdc" >&6; }
6395if test $ac_cv_header_stdc = yes; then
6396
6397$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6398
6399fi
6400
6401# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6402for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6403 inttypes.h stdint.h unistd.h
6404do :
6405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6406ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6407"
6408eval as_val=\$$as_ac_Header
6409 if test "x$as_val" = x""yes; then :
6410 cat >>confdefs.h <<_ACEOF
6411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412_ACEOF
6413
6414fi
6415
6416done
6417
6418
9a02962b
DK
6419
6420
6421
6422target_elf=no
6423case $target in
6424 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6425 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6426 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6427 target_elf=no
6428 ;;
6429 *)
6430 target_elf=yes
6431 ;;
6432esac
6433
6434if test $target_elf = yes; then :
6435 if test x"$enable_lto" = x"yes" ; then
6436 # Make sure that libelf.h and gelf.h are available.
6437
6438# Check whether --with-libelf was given.
6439if test "${with_libelf+set}" = set; then :
6440 withval=$with_libelf;
6441fi
6442
6443
6444
6445# Check whether --with-libelf_include was given.
6446if test "${with_libelf_include+set}" = set; then :
6447 withval=$with_libelf_include;
6448fi
6449
6450
6451
6452# Check whether --with-libelf_lib was given.
6453if test "${with_libelf_lib+set}" = set; then :
6454 withval=$with_libelf_lib;
6455fi
6456
6457
6458 saved_CFLAGS="$CFLAGS"
6459 saved_CPPFLAGS="$CPPFLAGS"
6460 saved_LIBS="$LIBS"
6461
6462 case $with_libelf in
6463 "")
6464 libelflibs="-lelf"
6465 libelfinc="-I/usr/include/libelf"
6466 ;;
6467 *)
6468 libelflibs="-L$with_libelf/lib -lelf"
6469 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6470 LIBS="$libelflibs $LIBS"
6471 ;;
6472 esac
6473
6474 if test "x$with_libelf_include" != x; then
6475 libelfinc="-I$with_libelf_include"
6476 fi
6477
6478 if test "x$with_libelf_lib" != x; then
6479 libelflibs="-L$with_libelf_lib -lelf"
6480 LIBS="$libelflibs $LIBS"
6481 fi
6482
6483 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6484 && test -d ${srcdir}/libelf; then
6485 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6486 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6487 LIBS="$libelflibs $LIBS"
6488
6489 else
6490
6491 CFLAGS="$CFLAGS $libelfinc"
6492 CPPFLAGS="$CPPFLAGS $libelfinc"
6493 LIBS="$LIBS $libelflibs"
6494
6495 for ac_header in libelf.h
d7f09764
DN
6496do :
6497 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6498if test "x$ac_cv_header_libelf_h" = x""yes; then :
6499 cat >>confdefs.h <<_ACEOF
6500#define HAVE_LIBELF_H 1
6501_ACEOF
6502 have_libelf_h=yes
6503fi
6504
6505done
6506
6507 for ac_header in gelf.h
6508do :
6509 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6510if test "x$ac_cv_header_gelf_h" = x""yes; then :
6511 cat >>confdefs.h <<_ACEOF
6512#define HAVE_GELF_H 1
6513_ACEOF
6514 have_gelf_h=yes
6515fi
6516
6517done
6518
6519
6520 for ac_header in libelf/libelf.h
6521do :
6522 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6523if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6524 cat >>confdefs.h <<_ACEOF
6525#define HAVE_LIBELF_LIBELF_H 1
6526_ACEOF
6527 have_libelf_libelf_h=yes
6528fi
6529
6530done
6531
6532 for ac_header in libelf/gelf.h
6533do :
6534 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6535if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6536 cat >>confdefs.h <<_ACEOF
6537#define HAVE_LIBELF_GELF_H 1
6538_ACEOF
6539 have_libelf_gelf_h=yes
6540fi
6541
6542done
6543
6544
6545 # If we couldn't find libelf.h and the user forced it, emit an error.
6546 if test x"$have_libelf_h" != x"yes" \
6547 && test x"$have_libelf_libelf_h" != x"yes" ; then
6548 if test x"$default_enable_lto" != x"yes" ; then
6549 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6550 else
6551 enable_lto=no
6552 libelflibs=
6553 libelfinc=
6554 fi
6555 fi
6556
6557 # If we couldn't find gelf.h and the user forced it, emit an error.
6558 if test x"$have_gelf_h" != x"yes" \
6559 && test x"$have_libelf_gelf_h" != x"yes" ; then
6560 if test x"$default_enable_lto" != x"yes" ; then
6561 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6562 else
6563 enable_lto=no
6564 libelflibs=
6565 libelfinc=
6566 fi
6567 fi
6568
6569 # Check that the detected libelf has the functions we need. We cannot
6570 # rely on just detecting the headers since they do not include
6571 # versioning information. Add functions, if needed.
6572 if test x"$enable_lto" = x"yes" ; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6574$as_echo_n "checking for the correct version of libelf... " >&6; }
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h. */
6577#include <libelf.h>
6578int
6579main ()
6580{
6581
6582 elf_errmsg (0);
6583 elf_getscn (0, 0);
6584 elf_nextscn (0, 0);
6585 elf_strptr (0, 0, 0);
6586 elf_getident (0, 0);
d7f09764
DN
6587 elf_begin (0, 0, 0);
6588 elf_ndxscn (0);
6589 elf_end (0);
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595if ac_fn_c_try_link "$LINENO"; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597$as_echo "yes" >&6; };
6598else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6601
6602fi
6603rm -f core conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605
8ccb78f2
RO
6606 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6607 # is determined in gcc/configure.ac.
6608 if test x"$enable_lto" = x"yes" ; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6610$as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h. */
6613#include <libelf.h>
6614int
6615main ()
6616{
6617
6618 elf_getshdrstrndx (0, 0);
6619
6620 ;
6621 return 0;
6622}
6623_ACEOF
6624if ac_fn_c_try_link "$LINENO"; then :
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626$as_echo "yes" >&6; };
6627else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; };
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6631$as_echo_n "checking for elf_getshstrndx... " >&6; }
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634#include <libelf.h>
6635int
6636main ()
6637{
6638
6639 elf_getshstrndx (0, 0);
6640
6641 ;
6642 return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6647$as_echo "yes" >&6; };
6648else
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6651
6652fi
6653rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
6659 fi
6660
d7f09764
DN
6661 # If we couldn't enable LTO and the user forced it, emit an error.
6662 if test x"$enable_lto" = x"no" \
6663 && test x"$default_enable_lto" != x"yes" ; then
6664 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6665Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6666to specify its location." "$LINENO" 5
6667 fi
6668 fi
6669
6670 CFLAGS="$saved_CFLAGS"
6671 CPPFLAGS="$saved_CPPFLAGS"
6672 LIBS="$saved_LIBS"
6673
f61428ed
AO
6674 fi
6675
d7f09764
DN
6676 # Flags needed for libelf.
6677
6678
6679fi
9a02962b
DK
6680else
6681 if test x"$default_enable_lto" = x"yes" ; then
bb79486c
JH
6682 case $target in
6683 *-apple-darwin*) ;;
6684 # On other non-ELF platforms, LTO must be explicitly enabled.
6685 *) enable_lto=no ;;
6686 esac
9a02962b 6687 else
db50fe7d
IS
6688 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6689 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6690 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6691 # warn during gcc/ subconfigure; unless you're bootstrapping with
6692 # -flto it won't be needed until after installation anyway.
6693 case $target in
db50fe7d 6694 *-cygwin*|*-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6695 *) if test x"$enable_lto" = x"yes"; then
6696 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6697 fi
6698 ;;
6699 esac
6700 fi
6701 default_enable_lto=no
6702fi
6703
d7f09764 6704
f8bf9252 6705
1e0f07d3 6706# By default, C is the only stage 1 language.
e1888513 6707stage1_languages=,c,
2805b53a 6708
00020c16 6709# Target libraries that we bootstrap.
ad1e5170 6710bootstrap_target_libs=,target-libgcc,
00020c16 6711
55ffb5ed
NN
6712# Figure out what language subdirectories are present.
6713# Look if the user specified --enable-languages="..."; if not, use
6714# the environment variable $LANGUAGES if defined. $LANGUAGES might
6715# go away some day.
6716# NB: embedded tabs in this IF block -- do not untabify
6717if test -d ${srcdir}/gcc; then
6718 if test x"${enable_languages+set}" != xset; then
6719 if test x"${LANGUAGES+set}" = xset; then
6720 enable_languages="${LANGUAGES}"
6721 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6722 else
6723 enable_languages=all
6724 fi
6725 else
6726 if test x"${enable_languages}" = x ||
6727 test x"${enable_languages}" = xyes;
6728 then
6729 echo configure.in: --enable-languages needs at least one language argument 1>&2
6730 exit 1
6731 fi
6732 fi
6733 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6734
7f26dfa3
FXC
6735 # 'f95' is the old name for the 'fortran' language. We issue a warning
6736 # and make the substitution.
6737 case ,${enable_languages}, in
6738 *,f95,*)
6739 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6740 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6741 ;;
6742 esac
6743
55ffb5ed
NN
6744 # First scan to see if an enabled language requires some other language.
6745 # We assume that a given config-lang.in will list all the language
6746 # front ends it requires, even if some are required indirectly.
6747 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6748 case ${lang_frag} in
6749 ..) ;;
6750 # The odd quoting in the next line works around
6751 # an apparent bug in bash 1.12 on linux.
6752 ${srcdir}/gcc/[*]/config-lang.in) ;;
6753 *)
6754 # From the config-lang.in, get $language, $lang_requires
6755 language=
6756 lang_requires=
6757 . ${lang_frag}
6758 for other in ${lang_requires} ; do
6759 case ,${enable_languages}, in
6760 *,$other,*) ;;
6761 *,all,*) ;;
6762 *,$language,*)
6763 echo " \`$other' language required by \`$language'; enabling" 1>&2
6764 enable_languages="${enable_languages},${other}"
6765 ;;
6766 esac
6767 done
6768 ;;
6769 esac
6770 done
6771
e1888513 6772 new_enable_languages=,c,
d7f09764
DN
6773
6774 # If LTO is enabled, add the LTO front end.
6775 extra_host_libiberty_configure_flags=
6776 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6777 case ,${enable_languages}, in
6778 *,lto,*) ;;
6779 *) enable_languages="${enable_languages},lto" ;;
6780 esac
d7f09764
DN
6781 if test "${ENABLE_GOLD}" = "yes" ; then
6782 configdirs="$configdirs lto-plugin"
6783 extra_host_libiberty_configure_flags=--enable-shared
6784 fi
6785 fi
6786
6787
55ffb5ed 6788 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6789 potential_languages=,c,
55ffb5ed
NN
6790
6791 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6792 case ${lang_frag} in
6793 ..) ;;
6794 # The odd quoting in the next line works around
6795 # an apparent bug in bash 1.12 on linux.
6796 ${srcdir}/gcc/[*]/config-lang.in) ;;
6797 *)
1c710c3c 6798 # From the config-lang.in, get $language, $target_libs,
2805b53a 6799 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6800 language=
6801 target_libs=
6802 lang_dirs=
1546bb64 6803 subdir_requires=
e1888513
PB
6804 boot_language=no
6805 build_by_default=yes
55ffb5ed 6806 . ${lang_frag}
e1888513
PB
6807 if test x${language} = x; then
6808 echo "${lang_frag} doesn't set \$language." 1>&2
6809 exit 1
6810 fi
6811
f61428ed
AO
6812 if test "$language" = "c++" \
6813 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6814 boot_language=yes
6815 fi
6816
e1888513
PB
6817 case ,${enable_languages}, in
6818 *,${language},*)
55ffb5ed
NN
6819 # Language was explicitly selected; include it.
6820 add_this_lang=yes
6821 ;;
e1888513
PB
6822 *,all,*)
6823 # 'all' was selected, select it if it is a default language
6824 add_this_lang=${build_by_default}
55ffb5ed
NN
6825 ;;
6826 *)
6827 add_this_lang=no
6828 ;;
6829 esac
6de9cd9a 6830
1546bb64 6831 # Disable languages that need other directories if these aren't available.
95695ad3 6832 for i in $subdir_requires; do
b6348cb3 6833 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6834 case ,${enable_languages}, in
6835 *,${language},*)
6836 # Specifically requested language; tell them.
5213506e 6837 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6838 ;;
6839 *)
6840 # Silently disable.
e1888513 6841 add_this_lang=unsupported
1546bb64
PB
6842 ;;
6843 esac
6844 done
6845
e1888513
PB
6846 # Disable Ada if no preexisting GNAT is available.
6847 case ,${enable_languages},:${language}:${have_gnat} in
6848 *,${language},*:ada:no)
6849 # Specifically requested language; tell them.
5213506e 6850 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6851 ;;
6852 *:ada:no)
6853 # Silently disable.
6854 add_this_lang=unsupported
6855 ;;
6856 esac
6857
4fab7234
HPN
6858 # Disable a language that is unsupported by the target.
6859 case " $unsupported_languages " in
6860 *" $language "*)
e1888513 6861 add_this_lang=unsupported
4fab7234
HPN
6862 ;;
6863 esac
6864
6de9cd9a 6865 case $add_this_lang in
e1888513 6866 unsupported)
55ffb5ed 6867 # Remove language-dependent dirs.
2805b53a
NN
6868 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6869 ;;
e1888513
PB
6870 no)
6871 # Remove language-dependent dirs; still show language as supported.
6872 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6873 potential_languages="${potential_languages}${language},"
6874 ;;
6875 yes)
6876 new_enable_languages="${new_enable_languages}${language},"
6877 potential_languages="${potential_languages}${language},"
2805b53a 6878 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
ab9dcd0c
RW
6879 case "${boot_language}:,$enable_stage1_languages," in
6880 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6881 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6882 case ",$stage1_languages," in
6883 *,$language,* | ,yes, | ,all,) ;;
6884 *) stage1_languages="${stage1_languages}${language}," ;;
6885 esac
00020c16
ILT
6886 # We need to bootstrap any supporting libraries.
6887 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6888 ;;
6889 esac
6890 ;;
55ffb5ed
NN
6891 esac
6892 ;;
6893 esac
6894 done
6895
5213506e
RW
6896 # Check whether --enable-stage1-languages was given.
6897if test "${enable_stage1_languages+set}" = set; then :
6898 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6899 ,no,|,,)
6900 # Set it to something that will have no effect in the loop below
6901 enable_stage1_languages=c ;;
6902 ,yes,)
6903 enable_stage1_languages=`echo $new_enable_languages | \
6904 sed -e "s/^,//" -e "s/,$//" ` ;;
6905 *,all,*)
6906 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6907 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6908 esac
6909
6910 # Add "good" languages from enable_stage1_languages to stage1_languages,
6911 # while "bad" languages go in missing_languages. Leave no duplicates.
6912 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6913 case $potential_languages in
6914 *,$i,*)
6915 case $stage1_languages in
6916 *,$i,*) ;;
6917 *) stage1_languages="$stage1_languages$i," ;;
6918 esac ;;
6919 *)
6920 case $missing_languages in
6921 *,$i,*) ;;
6922 *) missing_languages="$missing_languages$i," ;;
6923 esac ;;
6924 esac
6925 done
5213506e
RW
6926fi
6927
e1888513
PB
6928
6929 # Remove leading/trailing commas that were added for simplicity
6930 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6931 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6932 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6933 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6934
55ffb5ed 6935 if test "x$missing_languages" != x; then
5213506e 6936 as_fn_error "
0cf085e4 6937The following requested languages could not be built: ${missing_languages}
5213506e 6938Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6939 fi
55ffb5ed
NN
6940 if test "x$new_enable_languages" != "x$enable_languages"; then
6941 echo The following languages will be built: ${new_enable_languages}
e1888513 6942 enable_languages="$new_enable_languages"
55ffb5ed 6943 fi
e1888513 6944
1c710c3c 6945
b2eaac4a 6946 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6947fi
6948
27079765
AH
6949# Handle --disable-<component> generically.
6950for dir in $configdirs $build_configdirs $target_configdirs ; do
6951 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6952 varname=`echo $dirname | sed -e s/+/_/g`
6953 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6954 noconfigdirs="$noconfigdirs $dir"
6955 fi
6956done
6957
7cd0cf9c 6958# Check for Boehm's garbage collector
5213506e
RW
6959# Check whether --enable-objc-gc was given.
6960if test "${enable_objc_gc+set}" = set; then :
6961 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6962 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6963 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6964 ;;
6965esac
5213506e
RW
6966fi
6967
7cd0cf9c
DA
6968
6969# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6970case ,${enable_languages},:${enable_objc_gc} in
6971 *,objc,*:yes)
7cd0cf9c
DA
6972 # Keep target-boehm-gc if requested for Objective-C.
6973 ;;
7cd0cf9c 6974 *)
2a79fd67
DA
6975 # Otherwise remove target-boehm-gc depending on target-libjava.
6976 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6977 noconfigdirs="$noconfigdirs target-boehm-gc"
6978 fi
7cd0cf9c
DA
6979 ;;
6980esac
6981
ee6a22df
L
6982# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6983# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6984# If we have the source for $noconfigdirs entries, add them to $notsupp.
6985
6986notsupp=""
6987for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6988 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6989 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6990 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6991 if test -r $srcdir/$dirname/configure ; then
6992 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6993 true
6994 else
6995 notsupp="$notsupp $dir"
6996 fi
6997 fi
6998 fi
ee6a22df
L
6999 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7000 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7001 if test -r $srcdir/$dirname/configure ; then
7002 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7003 true
7004 else
7005 notsupp="$notsupp $dir"
7006 fi
7007 fi
7008 fi
55ffb5ed
NN
7009 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7010 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7011 if test -r $srcdir/$dirname/configure ; then
7012 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7013 true
7014 else
7015 notsupp="$notsupp $dir"
7016 fi
7017 fi
7018 fi
7019done
7020
7021# Sometimes the tools are distributed with libiberty but with no other
7022# libraries. In that case, we don't want to build target-libiberty.
54fdc474 7023# Don't let libgcc imply libiberty either.
55ffb5ed 7024if test -n "${target_configdirs}" ; then
54fdc474 7025 libgcc=
55ffb5ed
NN
7026 others=
7027 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
7028 if test "$i" = "libgcc"; then
7029 libgcc=target-libgcc
7030 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
7031 if test -r $srcdir/$i/configure ; then
7032 others=yes;
7033 break;
7034 fi
7035 fi
7036 done
7037 if test -z "${others}" ; then
54fdc474 7038 target_configdirs=$libgcc
55ffb5ed
NN
7039 fi
7040fi
7041
7042# Quietly strip out all directories which aren't configurable in this tree.
7043# This relies on all configurable subdirectories being autoconfiscated, which
7044# is now the case.
23f6b2f9
PB
7045build_configdirs_all="$build_configdirs"
7046build_configdirs=
7047for i in ${build_configdirs_all} ; do
1c710c3c 7048 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
7049 if test -f ${srcdir}/$j/configure ; then
7050 build_configdirs="${build_configdirs} $i"
7051 fi
7052done
7053
55ffb5ed
NN
7054configdirs_all="$configdirs"
7055configdirs=
7056for i in ${configdirs_all} ; do
7057 if test -f ${srcdir}/$i/configure ; then
7058 configdirs="${configdirs} $i"
7059 fi
7060done
23f6b2f9 7061
55ffb5ed
NN
7062target_configdirs_all="$target_configdirs"
7063target_configdirs=
7064for i in ${target_configdirs_all} ; do
1c710c3c 7065 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
7066 if test -f ${srcdir}/$j/configure ; then
7067 target_configdirs="${target_configdirs} $i"
7068 fi
7069done
7070
7071# Produce a warning message for the subdirs we can't configure.
7072# This isn't especially interesting in the Cygnus tree, but in the individual
7073# FSF releases, it's important to let people know when their machine isn't
7074# supported by the one or two programs in a package.
7075
7076if test -n "${notsupp}" && test -z "${norecursion}" ; then
7077 # If $appdirs is non-empty, at least one of those directories must still
7078 # be configured, or we error out. (E.g., if the gas release supports a
7079 # specified target in some subdirs but not the gas subdir, we shouldn't
7080 # pretend that all is well.)
7081 if test -n "$appdirs" ; then
7082 for dir in $appdirs ; do
7083 if test -r $dir/Makefile.in ; then
7084 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7085 appdirs=""
7086 break
7087 fi
23f6b2f9 7088 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
7089 appdirs=""
7090 break
7091 fi
7092 fi
7093 done
7094 if test -n "$appdirs" ; then
7095 echo "*** This configuration is not supported by this package." 1>&2
7096 exit 1
7097 fi
7098 fi
7099 # Okay, some application will build, or we don't care to check. Still
7100 # notify of subdirs not getting built.
7101 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7102 echo " ${notsupp}" 1>&2
7103 echo " (Any other directories should still work fine.)" 1>&2
7104fi
7105
7106case "$host" in
7107 *msdosdjgpp*)
7108 enable_gdbtk=no ;;
7109esac
7110
c3a86da9
DJ
7111# To find our prefix, in gcc_cv_tool_prefix.
7112
7113# The user is always right.
7114if test "${PATH_SEPARATOR+set}" != set; then
7115 echo "#! /bin/sh" >conf$$.sh
7116 echo "exit 0" >>conf$$.sh
7117 chmod +x conf$$.sh
7118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7119 PATH_SEPARATOR=';'
7120 else
7121 PATH_SEPARATOR=:
7122 fi
7123 rm -f conf$$.sh
7124fi
7125
7126
7127
7128if test "x$exec_prefix" = xNONE; then
7129 if test "x$prefix" = xNONE; then
7130 gcc_cv_tool_prefix=$ac_default_prefix
7131 else
7132 gcc_cv_tool_prefix=$prefix
7133 fi
7134else
7135 gcc_cv_tool_prefix=$exec_prefix
7136fi
7137
7138# If there is no compiler in the tree, use the PATH only. In any
7139# case, if there is no compiler in the tree nobody should use
7140# AS_FOR_TARGET and LD_FOR_TARGET.
7141if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7142 gcc_version=`cat $srcdir/gcc/BASE-VER`
7143 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7144 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7145 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7146 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7147 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7148 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7149else
7150 gcc_cv_tool_dirs=
7151fi
7152
7153if test x$build = x$target && test -n "$md_exec_prefix"; then
7154 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7155fi
7156
7157
7158
55ffb5ed
NN
7159copy_dirs=
7160
1c710c3c 7161
5213506e
RW
7162# Check whether --with-build-sysroot was given.
7163if test "${with_build_sysroot+set}" = set; then :
7164 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
7165 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7166 fi
7167else
7168 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 7169fi
526635cb
MM
7170
7171
c8aea42c 7172
5213506e
RW
7173
7174# Check whether --with-debug-prefix-map was given.
7175if test "${with_debug_prefix_map+set}" = set; then :
7176 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
7177 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7178 for debug_map in $withval; do
7179 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7180 done
7181 fi
7182else
7183 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
7184fi
7185
c8aea42c
PB
7186
7187
1c8bd6a3
PB
7188# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7189# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7190# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7191# We want to ensure that TARGET libraries (which we know are built with
7192# gcc) are built with "-O2 -g", so include those options when setting
7193# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7194if test "x$CFLAGS_FOR_TARGET" = x; then
7195 CFLAGS_FOR_TARGET=$CFLAGS
7196 case " $CFLAGS " in
7197 *" -O2 "*) ;;
7198 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7199 esac
7200 case " $CFLAGS " in
7201 *" -g "* | *" -g3 "*) ;;
7202 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7203 esac
7204fi
7205
7206
7207if test "x$CXXFLAGS_FOR_TARGET" = x; then
7208 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7209 case " $CXXFLAGS " in
7210 *" -O2 "*) ;;
7211 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7212 esac
7213 case " $CXXFLAGS " in
7214 *" -g "* | *" -g3 "*) ;;
7215 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7216 esac
7217fi
7218
7219
55ffb5ed
NN
7220# Handle --with-headers=XXX. If the value is not "yes", the contents of
7221# the named directory are copied to $(tooldir)/sys-include.
7222if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7223 if test x${is_cross_compiler} = xno ; then
7224 echo 1>&2 '***' --with-headers is only supported when cross compiling
7225 exit 1
7226 fi
7227 if test x"${with_headers}" != xyes ; then
c3a86da9 7228 x=${gcc_cv_tool_prefix}
1c710c3c 7229 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
7230 fi
7231fi
7232
7233# Handle --with-libs=XXX. If the value is not "yes", the contents of
7234# the name directories are copied to $(tooldir)/lib. Multiple directories
7235# are permitted.
7236if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7237 if test x${is_cross_compiler} = xno ; then
7238 echo 1>&2 '***' --with-libs is only supported when cross compiling
7239 exit 1
7240 fi
7241 if test x"${with_libs}" != xyes ; then
7242 # Copy the libraries in reverse order, so that files in the first named
7243 # library override files in subsequent libraries.
c3a86da9 7244 x=${gcc_cv_tool_prefix}
55ffb5ed 7245 for l in ${with_libs}; do
1c710c3c 7246 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
7247 done
7248 fi
7249fi
7250
d7f09764 7251# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7252#
7253# This is done by determining whether or not the appropriate directory
7254# is available, and by checking whether or not specific configurations
7255# have requested that this magic not happen.
1c710c3c
DJ
7256#
7257# The command line options always override the explicit settings in
e8b05380
PB
7258# configure.in, and the settings in configure.in override this magic.
7259#
1c710c3c 7260# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7261# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7262# --without-gnu-ld options for the configure script. Similarly, if
7263# the default is to use the included zlib and you don't want to do that,
7264# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7265
7266if test x${use_gnu_as} = x &&
7267 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7268 with_gnu_as=yes
7269 extra_host_args="$extra_host_args --with-gnu-as"
7270fi
7271
7272if test x${use_gnu_ld} = x &&
5afab7ad 7273 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7274 with_gnu_ld=yes
7275 extra_host_args="$extra_host_args --with-gnu-ld"
7276fi
7277
d7f09764
DN
7278if test x${use_included_zlib} = x &&
7279 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7280 :
7281else
7282 with_system_zlib=yes
7283 extra_host_args="$extra_host_args --with-system-zlib"
7284fi
7285
e8b05380
PB
7286# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7287# can detect this case.
7288
7289if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7290 with_newlib=yes
7291 extra_host_args="$extra_host_args --with-newlib"
7292fi
7293
55ffb5ed
NN
7294# Handle ${copy_dirs}
7295set fnord ${copy_dirs}
7296shift
7297while test $# != 0 ; do
7298 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7299 :
7300 else
7301 echo Copying $1 to $2
7302
7303 # Use the install script to create the directory and all required
7304 # parent directories.
7305 if test -d $2 ; then
7306 :
7307 else
7308 echo >config.temp
7309 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7310 fi
7311
7312 # Copy the directory, assuming we have tar.
7313 # FIXME: Should we use B in the second tar? Not all systems support it.
7314 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7315
7316 # It is the responsibility of the user to correctly adjust all
7317 # symlinks. If somebody can figure out how to handle them correctly
7318 # here, feel free to add the code.
7319
7320 echo $1 > $2/COPIED
7321 fi
7322 shift; shift
7323done
7324
e8b05380
PB
7325# Determine a target-dependent exec_prefix that the installed
7326# gcc will search in. Keep this list sorted by triplet, with
7327# the *-*-osname triplets last.
7328md_exec_prefix=
7329case "${target}" in
7330 alpha*-*-*vms*)
7331 md_exec_prefix=/gnu/lib/gcc-lib
7332 ;;
30b74385 7333 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7334 md_exec_prefix=/dev/env/DJDIR/bin
7335 ;;
30b74385 7336 i[34567]86-*-sco3.2v5*)
e8b05380
PB
7337 if test $with_gnu_as = yes; then
7338 md_exec_prefix=/usr/gnu/bin
7339 else
7340 md_exec_prefix=/usr/ccs/bin/elf
7341 fi
7342 ;;
7343
7344 mn10300-*-* | \
7345 powerpc-*-chorusos* | \
7346 powerpc*-*-eabi* | \
7347 powerpc*-*-sysv* | \
7348 powerpc*-*-kaos* | \
7349 s390x-ibm-tpf*)
7350 md_exec_prefix=/usr/ccs/bin
7351 ;;
7352 sparc64-*-elf*)
7353 ;;
7354 v850*-*-*)
7355 md_exec_prefix=/usr/ccs/bin
7356 ;;
aa12a573 7357 xtensa*-*-elf*)
e8b05380
PB
7358 ;;
7359
7360 *-*-beos* | \
7361 *-*-elf* | \
7362 *-*-hpux* | \
7363 *-*-netware* | \
7364 *-*-nto-qnx* | \
7365 *-*-rtems* | \
7366 *-*-solaris2* | \
30b74385 7367 *-*-sysv[45]* | \
e8b05380
PB
7368 *-*-vxworks* | \
7369 *-wrs-windiss)
7370 md_exec_prefix=/usr/ccs/bin
7371 ;;
7372esac
7373
671aa708
NN
7374extra_arflags_for_target=
7375extra_nmflags_for_target=
7376extra_ranlibflags_for_target=
7377target_makefile_frag=/dev/null
7378case "${target}" in
3e19841a
PB
7379 mep*-*-*)
7380 target_makefile_frag="config/mt-mep"
7381 ;;
58e24147
AM
7382 spu-*-*)
7383 target_makefile_frag="config/mt-spu"
7384 ;;
4bf6c438
RS
7385 mips*-sde-elf*)
7386 target_makefile_frag="config/mt-sde"
7387 ;;
1ec3b87b
RS
7388 mipsisa*-*-elfoabi*)
7389 target_makefile_frag="config/mt-mips-elfoabi"
7390 ;;
08d0963a
RS
7391 mips*-*-*linux* | mips*-*-gnu*)
7392 target_makefile_frag="config/mt-mips-gnu"
7393 ;;
61fec9ff 7394 *-*-netware*)
671aa708
NN
7395 target_makefile_frag="config/mt-netware"
7396 ;;
416ac4d4 7397 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7398 target_makefile_frag="config/mt-gnu"
671aa708
NN
7399 ;;
7400 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7401 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7402 # commands to handle both 32-bit and 64-bit objects. These flags are
7403 # harmless if we're using GNU nm or ar.
7404 extra_arflags_for_target=" -X32_64"
7405 extra_nmflags_for_target=" -B -X32_64"
7406 ;;
0aeb3cc6
JH
7407 *-*-darwin[3-9]*)
7408 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
7409 extra_ranlibflags_for_target=" -c"
7410 ;;
7411 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7412 target_makefile_frag="config/mt-wince"
7413 ;;
7414esac
7415
7416alphaieee_frag=/dev/null
7417case $target in
7418 alpha*-*-*)
7419 # This just makes sure to use the -mieee option to build target libs.
7420 # This should probably be set individually by each library.
7421 alphaieee_frag="config/mt-alphaieee"
7422 ;;
7423esac
7424
7425# If --enable-target-optspace always use -Os instead of -O2 to build
7426# the target libraries, similarly if it is not specified, use -Os
7427# on selected platforms.
7428ospace_frag=/dev/null
7429case "${enable_target_optspace}:${target}" in
7430 yes:*)
7431 ospace_frag="config/mt-ospace"
7432 ;;
7433 :d30v-*)
7434 ospace_frag="config/mt-d30v"
7435 ;;
7436 :m32r-* | :d10v-* | :fr30-*)
7437 ospace_frag="config/mt-ospace"
7438 ;;
7439 no:* | :*)
7440 ;;
7441 *)
7442 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7443 ;;
7444esac
7445
671aa708
NN
7446# Default to using --with-stabs for certain targets.
7447if test x${with_stabs} = x ; then
7448 case "${target}" in
89a95129 7449 mips*-*-irix[56]*)
671aa708
NN
7450 ;;
7451 mips*-*-* | alpha*-*-osf*)
7452 with_stabs=yes;
7453 extra_host_args="${extra_host_args} --with-stabs"
7454 ;;
7455 esac
7456fi
7457
7458# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7459# them automatically.
7460case "${host}" in
1c710c3c 7461 hppa*64*-*-hpux11*)
671aa708
NN
7462 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7463 ;;
7464esac
7465
671aa708
NN
7466# Some systems (e.g., one of the i386-aix systems the gas testers are
7467# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7468tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7469build_tooldir=${tooldir}
7470
671aa708
NN
7471# Create a .gdbinit file which runs the one in srcdir
7472# and tells GDB to look there for source files.
7473
7474if test -r ${srcdir}/.gdbinit ; then
7475 case ${srcdir} in
7476 .) ;;
7477 *) cat > ./.gdbinit <<EOF
7478# ${NO_EDIT}
7479dir ${srcdir}
7480dir .
7481source ${srcdir}/.gdbinit
7482EOF
7483 ;;
7484 esac
7485fi
7486
671aa708
NN
7487# Make sure that the compiler is able to generate an executable. If it
7488# can't, we are probably in trouble. We don't care whether we can run the
7489# executable--we might be using a cross compiler--we only care whether it
7490# can be created. At this point the main configure script has set CC.
7491we_are_ok=no
7492echo "int main () { return 0; }" > conftest.c
7493${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7494if test $? = 0 ; then
7495 if test -s conftest || test -s conftest.exe ; then
7496 we_are_ok=yes
7497 fi
1c710c3c 7498fi
671aa708
NN
7499case $we_are_ok in
7500 no)
7501 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7502 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7503 rm -f conftest*
7504 exit 1
7505 ;;
7506esac
7507rm -f conftest*
7508
7509# The Solaris /usr/ucb/cc compiler does not appear to work.
7510case "${host}" in
7511 sparc-sun-solaris2*)
7512 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7513 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7514 could_use=
7515 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7516 if test -d /opt/cygnus/bin ; then
7517 if test "$could_use" = "" ; then
7518 could_use="/opt/cygnus/bin"
7519 else
7520 could_use="$could_use or /opt/cygnus/bin"
7521 fi
7522 fi
7523 if test "$could_use" = "" ; then
7524 echo "Warning: compilation may fail because you're using"
7525 echo "/usr/ucb/cc. You should change your PATH or CC "
7526 echo "variable and rerun configure."
7527 else
7528 echo "Warning: compilation may fail because you're using"
7529 echo "/usr/ucb/cc, when you should use the C compiler from"
7530 echo "$could_use. You should change your"
7531 echo "PATH or CC variable and rerun configure."
7532 fi
7533 fi
7534 ;;
7535esac
7536
d89f0ad6 7537# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7538case "${host}" in
7539 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 7540 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7541 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7542 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7543esac
7544
d89f0ad6
AL
7545# On systems where the dynamic library environment variable is PATH,
7546# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7547# built executables to PATH.
7548if test "$RPATH_ENVVAR" = PATH; then
7549 GCC_SHLIB_SUBDIR=/shlib
7550else
7551 GCC_SHLIB_SUBDIR=
7552fi
7553
671aa708
NN
7554# Record target_configdirs and the configure arguments for target and
7555# build configuration in Makefile.
7556target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7557build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7558
ad1e5170
JR
7559# If we are building libgomp, bootstrap it.
7560if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7561 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7562fi
7563
671aa708
NN
7564# Determine whether gdb needs tk/tcl or not.
7565# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7566# and in that case we want gdb to be built without tk. Ugh!
7567# In fact I believe gdb is the *only* package directly dependent on tk,
7568# so we should be able to put the 'maybe's in unconditionally and
7569# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7570# 100% sure that that's safe though.
e914a571 7571
b4f96efe 7572gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7573case "$enable_gdbtk" in
7574 no)
7575 GDB_TK="" ;;
e914a571
AC
7576 yes)
7577 GDB_TK="${gdb_tk}" ;;
671aa708 7578 *)
e914a571
AC
7579 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7580 # distro. Eventually someone will fix this and move Insight, nee
7581 # gdbtk to a separate directory.
7582 if test -d ${srcdir}/gdb/gdbtk ; then
7583 GDB_TK="${gdb_tk}"
7584 else
7585 GDB_TK=""
7586 fi
7587 ;;
671aa708 7588esac
ef9db8d5
DJ
7589CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7590INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7591
60975492 7592# Strip out unwanted targets.
8b87bb96
NN
7593
7594# While at that, we remove Makefiles if we were started for recursive
7595# configuration, so that the top-level Makefile reconfigures them,
7596# like we used to do when configure itself was recursive.
8b87bb96 7597
3e54529c
RW
7598# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7599# but now we're fixing up the Makefile ourselves with the additional
7600# commands passed to AC_CONFIG_FILES. Use separate variables
7601# extrasub-{build,host,target} not because there is any reason to split
7602# the substitutions up that way, but only to remain below the limit of
7603# 99 commands in a script, for HP-UX sed.
7604# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7605
5213506e
RW
7606# Check whether --enable-bootstrap was given.
7607if test "${enable_bootstrap+set}" = set; then :
7608 enableval=$enable_bootstrap;
f516a7da 7609else
ce521a9c 7610 enable_bootstrap=default
5213506e
RW
7611fi
7612
f516a7da 7613
ce521a9c
PB
7614# Issue errors and warnings for invalid/strange bootstrap combinations.
7615case "$configdirs" in
7616 *gcc*) have_compiler=yes ;;
7617 *) have_compiler=no ;;
7618esac
7619
7620case "$have_compiler:$host:$target:$enable_bootstrap" in
7621 *:*:*:no) ;;
7622
1ca26cd2 7623 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7624 # and we are in a native configuration.
7625 yes:$build:$build:default)
1ca26cd2 7626 enable_bootstrap=yes ;;
ce521a9c
PB
7627
7628 *:*:*:default)
7629 enable_bootstrap=no ;;
7630
7631 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7632 yes:$build:$build:yes)
ce521a9c
PB
7633 ;;
7634
7635 # Other configurations, but we have a compiler. Assume the user knows
7636 # what he's doing.
2d309510 7637 yes:*:*:yes)
5213506e
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7639$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7640 ;;
7641
7642 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7643 no:*:*:yes)
5213506e 7644 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7645
7646 # Fail if wrong command line
7647 *)
5213506e 7648 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7649 ;;
7650esac
7651
ca6d0d62
RW
7652case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7653 *,c++,*:yes:yes) ;;
7654 *:yes:yes)
7655 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7656 ;;
7657esac
7658
79cd2b23
RW
7659case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7660 yes:yes:*\ gold\ *:*,c++,*) ;;
7661 yes:yes:*\ gold\ *:*)
7662 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7663 ;;
7664esac
7665
ce521a9c 7666# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7667case $enable_bootstrap in
f516a7da 7668 yes)
e12c4094
AO
7669 bootstrap_suffix=bootstrap
7670 BUILD_CONFIG=bootstrap-debug
7671 ;;
f516a7da 7672 no)
e12c4094
AO
7673 bootstrap_suffix=no-bootstrap
7674 BUILD_CONFIG=
7675 ;;
f516a7da
PB
7676esac
7677
e12c4094
AO
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7679$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7680
7681
7682# Check whether --with-build-config was given.
7683if test "${with_build_config+set}" = set; then :
7684 withval=$with_build_config; case $with_build_config in
7685 yes) with_build_config= ;;
7686 no) with_build_config= BUILD_CONFIG= ;;
7687 esac
7688fi
7689
7690
e12c4094
AO
7691if test "x${with_build_config}" != x; then
7692 BUILD_CONFIG=$with_build_config
7693else
7694 case $BUILD_CONFIG in
7695 bootstrap-debug)
7696 if echo "int f (void) { return 0; }" > conftest.c &&
7697 ${CC} -c conftest.c &&
7698 mv conftest.o conftest.o.g0 &&
7699 ${CC} -c -g conftest.c &&
7700 mv conftest.o conftest.o.g &&
615c8ffa 7701 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7702 :
7703 else
7704 BUILD_CONFIG=
7705 fi
7706 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7707 ;;
7708 esac
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7711$as_echo "$BUILD_CONFIG" >&6; }
7712
7713
3e54529c 7714extrasub_build=
23f6b2f9 7715for module in ${build_configdirs} ; do
5607edfd
PB
7716 if test -z "${no_recursion}" \
7717 && test -f ${build_subdir}/${module}/Makefile; then
7718 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7719 rm -f ${build_subdir}/${module}/Makefile
7720 fi
3e54529c 7721 extrasub_build="$extrasub_build
5607edfd
PB
7722/^@if build-$module\$/d
7723/^@endif build-$module\$/d
7724/^@if build-$module-$bootstrap_suffix\$/d
7725/^@endif build-$module-$bootstrap_suffix\$/d"
7726done
3e54529c 7727extrasub_host=
5607edfd 7728for module in ${configdirs} ; do
a6fbc1e2 7729 if test -z "${no_recursion}"; then
f063a9ed 7730 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7731 if test -f ${file}; then
7732 echo 1>&2 "*** removing ${file} to force reconfigure"
7733 rm -f ${file}
7734 fi
7735 done
5607edfd 7736 fi
3e54529c 7737 extrasub_host="$extrasub_host
5607edfd
PB
7738/^@if $module\$/d
7739/^@endif $module\$/d
7740/^@if $module-$bootstrap_suffix\$/d
7741/^@endif $module-$bootstrap_suffix\$/d"
7742done
3e54529c 7743extrasub_target=
5607edfd
PB
7744for module in ${target_configdirs} ; do
7745 if test -z "${no_recursion}" \
7746 && test -f ${target_subdir}/${module}/Makefile; then
7747 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7748 rm -f ${target_subdir}/${module}/Makefile
7749 fi
00020c16
ILT
7750
7751 # We only bootstrap target libraries listed in bootstrap_target_libs.
7752 case $bootstrap_target_libs in
7753 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7754 *) target_bootstrap_suffix=no-bootstrap ;;
7755 esac
7756
3e54529c 7757 extrasub_target="$extrasub_target
5607edfd
PB
7758/^@if target-$module\$/d
7759/^@endif target-$module\$/d
00020c16
ILT
7760/^@if target-$module-$target_bootstrap_suffix\$/d
7761/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7762done
7763
3e54529c
RW
7764# Do the final fixup along with target modules.
7765extrasub_target="$extrasub_target
60975492 7766/^@if /,/^@endif /d"
671aa708
NN
7767
7768# Create the serialization dependencies. This uses a temporary file.
7769
5213506e
RW
7770# Check whether --enable-serial-configure was given.
7771if test "${enable_serial_configure+set}" = set; then :
7772 enableval=$enable_serial_configure;
7773fi
ade82b16
AO
7774
7775
bf1d3e81
NN
7776case ${enable_serial_configure} in
7777 yes)
7778 enable_serial_build_configure=yes
7779 enable_serial_host_configure=yes
7780 enable_serial_target_configure=yes
7781 ;;
7782esac
7783
671aa708
NN
7784# These force 'configure's to be done one at a time, to avoid problems
7785# with contention over a shared config.cache.
7786rm -f serdep.tmp
ade82b16 7787echo '# serdep.tmp' > serdep.tmp
671aa708 7788olditem=
bf1d3e81 7789test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7790for item in ${build_configdirs} ; do
7791 case ${olditem} in
7792 "") ;;
ade82b16 7793 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7794 esac
7795 olditem=${item}
7796done
7797olditem=
bf1d3e81 7798test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7799for item in ${configdirs} ; do
7800 case ${olditem} in
7801 "") ;;
ade82b16 7802 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7803 esac
7804 olditem=${item}
7805done
7806olditem=
bf1d3e81 7807test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7808for item in ${target_configdirs} ; do
7809 case ${olditem} in
7810 "") ;;
ade82b16 7811 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7812 esac
7813 olditem=${item}
7814done
7815serialization_dependencies=serdep.tmp
7816
7817
ade82b16 7818# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7819# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7820# might not want to pass down to subconfigures. The exception being
7821# --cache-file=/dev/null, which is used to turn off the use of cache
7822# files altogether, and which should be passed on to subconfigures.
7823# Also strip program-prefix, program-suffix, and program-transform-name,
7824# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7825baseargs=
7826keep_next=no
7827skip_next=no
7828eval "set -- $ac_configure_args"
44bfc3ac
DJ
7829for ac_arg
7830do
1c710c3c
DJ
7831 if test X"$skip_next" = X"yes"; then
7832 skip_next=no
7833 continue
7834 fi
7835 if test X"$keep_next" = X"yes"; then
7836 case $ac_arg in
7837 *\'*)
7838 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7839 esac
7840 baseargs="$baseargs '$ac_arg'"
7841 keep_next=no
7842 continue
7843 fi
7844
7845 # Handle separated arguments. Based on the logic generated by
7846 # autoconf 2.59.
7847 case $ac_arg in
7848 *=* | --config-cache | -C | -disable-* | --disable-* \
7849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7851 | -with-* | --with-* | -without-* | --without-* | --x)
7852 separate_arg=no
7853 ;;
7854 -*)
7855 separate_arg=yes
7856 ;;
7857 *)
7858 separate_arg=no
7859 ;;
7860 esac
7861
7862 case "$ac_arg" in
f1a036e4
NC
7863 --cache-file=/dev/null | \
7864 -cache-file=/dev/null )
7865 # Handled here to avoid the test to skip args below.
7866 baseargs="$baseargs '$ac_arg'"
7867 # Assert: $separate_arg should always be no.
7868 keep_next=$separate_arg
7869 ;;
1c710c3c
DJ
7870 --no*)
7871 continue
7872 ;;
7873 --c* | \
7874 --sr* | \
7875 --ho* | \
7876 --bu* | \
7877 --t* | \
7878 --program-* | \
7879 -cache_file* | \
7880 -srcdir* | \
7881 -host* | \
7882 -build* | \
7883 -target* | \
7884 -program-prefix* | \
7885 -program-suffix* | \
7886 -program-transform-name* )
7887 skip_next=$separate_arg
7888 continue
7889 ;;
7890 -*)
7891 # An option. Add it.
7892 case $ac_arg in
7893 *\'*)
7894 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7895 esac
7896 baseargs="$baseargs '$ac_arg'"
7897 keep_next=$separate_arg
7898 ;;
7899 *)
7900 # Either a variable assignment, or a nonopt (triplet). Don't
7901 # pass it down; let the Makefile handle this.
7902 continue
7903 ;;
7904 esac
7905done
7906# Remove the initial space we just introduced and, as these will be
7907# expanded by make, quote '$'.
7908baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7909
43bb47c2
DJ
7910# Add in --program-transform-name, after --program-prefix and
7911# --program-suffix have been applied to it. Autoconf has already
7912# doubled dollar signs and backslashes in program_transform_name; we want
7913# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7914# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7915# Also, because we want to override the logic in subdir configure scripts to
7916# choose program_transform_name, replace any s,x,x, with s,y,y,.
7917sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7918${program_transform_name}
7919EOF_SED
7920gcc_transform_name=`cat conftestsed.out`
7921rm -f conftestsed.out
7922baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7923if test "$silent" = yes; then
7924 baseargs="$baseargs --silent"
7925fi
0115d4a3 7926baseargs="$baseargs --disable-option-checking"
43bb47c2 7927
ffedf511
RW
7928# Record and document user additions to sub configure arguments.
7929
7930
7931
7932
671aa708
NN
7933# For the build-side libraries, we just need to pretend we're native,
7934# and not use the same cache file. Multilibs are neither needed nor
7935# desired.
ffedf511 7936build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7937
7938# For host modules, accept cache file option, or specification as blank.
7939case "${cache_file}" in
7940"") # empty
7941 cache_file_option="" ;;
7942/* | [A-Za-z]:[\\/]* ) # absolute path
7943 cache_file_option="--cache-file=${cache_file}" ;;
7944*) # relative path
7945 cache_file_option="--cache-file=../${cache_file}" ;;
7946esac
7947
09438bde
NN
7948# Host dirs don't like to share a cache file either, horribly enough.
7949# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7950host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7951
ffedf511 7952target_configargs="$target_configargs ${baseargs}"
671aa708
NN
7953
7954# Passing a --with-cross-host argument lets the target libraries know
7955# whether they are being built with a cross-compiler or being built
7956# native. However, it would be better to use other mechanisms to make the
7957# sorts of decisions they want to make on this basis. Please consider
7958# this option to be deprecated. FIXME.
7959if test x${is_cross_compiler} = xyes ; then
1c710c3c 7960 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7961fi
7962
dc683a3f
RW
7963# Default to --enable-multilib.
7964if test x${enable_multilib} = x ; then
671aa708 7965 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7966fi
671aa708
NN
7967
7968# Pass --with-newlib if appropriate. Note that target_configdirs has
7969# changed from the earlier setting of with_newlib.
7970if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7971 target_configargs="--with-newlib ${target_configargs}"
7972fi
7973
6b9eb62c
NN
7974# Different target subdirs use different values of certain variables
7975# (notably CXX). Worse, multilibs use *lots* of different values.
7976# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7977# it doesn't automatically accept command-line overrides of them.
7978# This means it's not safe for target subdirs to share a cache file,
7979# which is disgusting, but there you have it. Hopefully this can be
7980# fixed in future. It's still worthwhile to use a cache file for each
7981# directory. I think.
7982
bebcd931
MS
7983# Pass the appropriate --build, --host, --target and --cache-file arguments.
7984# We need to pass --target, as newer autoconf's requires consistency
7985# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7986target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7987
671aa708
NN
7988FLAGS_FOR_TARGET=
7989case " $target_configdirs " in
7990 *" newlib "*)
7991 case " $target_configargs " in
7992 *" --with-newlib "*)
7993 case "$target" in
5d571eaa
OS
7994 *-cygwin*)
7995 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7996 ;;
671aa708
NN
7997 esac
7998
7999 # If we're not building GCC, don't discard standard headers.
8000 if test -d ${srcdir}/gcc; then
8001 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8002
8003 if test "${build}" != "${host}"; then
8004 # On Canadian crosses, CC_FOR_TARGET will have already been set
8005 # by `configure', so we won't have an opportunity to add -Bgcc/
8006 # to it. This is right: we don't want to search that directory
8007 # for binaries, but we want the header files in there, so add
8008 # them explicitly.
215c351a 8009 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
8010
8011 # Someone might think of using the pre-installed headers on
8012 # Canadian crosses, in case the installed compiler is not fully
8013 # compatible with the compiler being built. In this case, it
8014 # would be better to flag an error than risking having
8015 # incompatible object files being constructed. We can't
8016 # guarantee that an error will be flagged, but let's hope the
8017 # compiler will do it, when presented with incompatible header
8018 # files.
8019 fi
8020 fi
8021
8022 case "${target}-${is_cross_compiler}" in
f2a0e225 8023 i[3456789]86-*-linux*-no)
671aa708
NN
8024 # Here host == target, so we don't need to build gcc,
8025 # so we don't want to discard standard headers.
8026 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8027 ;;
8028 *)
8029 # If we're building newlib, use its generic headers last, but search
8030 # for any libc-related directories first (so make it the last -B
8031 # switch).
8032 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
8033
8034 # If we're building libgloss, find the startup file, simulator library
8035 # and linker script.
8036 case " $target_configdirs " in
8037 *" libgloss "*)
8038 # Look for startup file, simulator library and maybe linker script.
8039 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8040 # Look for libnosys.a in case the target needs it.
8041 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8042 # Most targets have the linker script in the source directory.
8043 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8044 ;;
8045 esac
671aa708
NN
8046 ;;
8047 esac
8048 ;;
8049 esac
8050 ;;
8051esac
5d571eaa 8052
b91f0a41 8053case "$target" in
5d571eaa
OS
8054 x86_64-*mingw* | *-w64-mingw*)
8055 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8056 # however, use a symlink named 'mingw' in ${prefix} .
8057 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8058 ;;
8059 *-mingw*)
8060 # MinGW can't be handled as Cygwin above since it does not use newlib.
8061 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'
8062 ;;
b91f0a41 8063esac
671aa708 8064
6691a79e
ME
8065# Allow the user to override the flags for
8066# our build compiler if desired.
f019adc1
MF
8067if test x"${build}" = x"${host}" ; then
8068 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8069 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8070 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8071fi
6691a79e 8072
671aa708
NN
8073# On Canadian crosses, we'll be searching the right directories for
8074# the previously-installed cross compiler, so don't bother to add
8075# flags for directories within the install tree of the compiler
8076# being built; programs in there won't even run.
8077if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8078 # Search for pre-installed headers if nothing else fits.
9124bc53 8079 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
8080fi
8081
8082if test "x${use_gnu_ld}" = x &&
8083 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8084 # Arrange for us to find uninstalled linker scripts.
215c351a 8085 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
8086fi
8087
e88a2c09
DD
8088# Search for other target-specific linker scripts and such.
8089case "${target}" in
3e19841a
PB
8090 mep*)
8091 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8092 ;;
e88a2c09
DD
8093esac
8094
671aa708 8095# Makefile fragments.
7b61653a
PE
8096for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8097do
8098 eval fragval=\$$frag
8099 if test $fragval != /dev/null; then
8100 eval $frag=${srcdir}/$fragval
8101 fi
8102done
671aa708
NN
8103
8104
8105
8106
8107
8108# Miscellanea: directories, flags, etc.
8109
8110
8111
8112
8113
8114
8115
d89f0ad6 8116
23f6b2f9 8117# Build module lists & subconfigure args.
671aa708
NN
8118
8119
8120
2abefe3d
PB
8121# Host module lists & subconfigure args.
8122
8123
8124
aae29963 8125
2abefe3d
PB
8126# Target module lists & subconfigure args.
8127
8128
8129
8130# Build tools.
8131
8132
8133
0999159b
PB
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
2abefe3d
PB
8148# Generate default definitions for YACC, M4, LEX and other programs that run
8149# on the build machine. These are used if the Makefile can't locate these
8150# programs in objdir.
8151MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8152
8153for ac_prog in 'bison -y' byacc yacc
8154do
1c710c3c 8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8156set dummy $ac_prog; ac_word=$2
5213506e
RW
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158$as_echo_n "checking for $ac_word... " >&6; }
8159if test "${ac_cv_prog_YACC+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
2abefe3d
PB
8161else
8162 if test -n "$YACC"; then
8163 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8164else
1c710c3c
DJ
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
5213506e
RW
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8172 ac_cv_prog_YACC="$ac_prog"
5213506e 8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8174 break 2
8175 fi
8176done
5213506e
RW
8177 done
8178IFS=$as_save_IFS
1c710c3c 8179
2abefe3d
PB
8180fi
8181fi
1c710c3c 8182YACC=$ac_cv_prog_YACC
2abefe3d 8183if test -n "$YACC"; then
5213506e
RW
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8185$as_echo "$YACC" >&6; }
2abefe3d 8186else
5213506e
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
2abefe3d
PB
8189fi
8190
5213506e 8191
1c710c3c 8192 test -n "$YACC" && break
2abefe3d
PB
8193done
8194test -n "$YACC" || YACC="$MISSING bison -y"
8195
8196case " $build_configdirs " in
8197 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8198 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8199esac
8200
8201for ac_prog in bison
8202do
1c710c3c 8203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8204set dummy $ac_prog; ac_word=$2
5213506e
RW
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206$as_echo_n "checking for $ac_word... " >&6; }
8207if test "${ac_cv_prog_BISON+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
2abefe3d
PB
8209else
8210 if test -n "$BISON"; then
8211 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8212else
1c710c3c
DJ
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
5213506e
RW
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8220 ac_cv_prog_BISON="$ac_prog"
5213506e 8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8222 break 2
8223 fi
8224done
5213506e
RW
8225 done
8226IFS=$as_save_IFS
1c710c3c 8227
2abefe3d
PB
8228fi
8229fi
1c710c3c 8230BISON=$ac_cv_prog_BISON
2abefe3d 8231if test -n "$BISON"; then
5213506e
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8233$as_echo "$BISON" >&6; }
2abefe3d 8234else
5213506e
RW
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236$as_echo "no" >&6; }
2abefe3d
PB
8237fi
8238
5213506e 8239
1c710c3c 8240 test -n "$BISON" && break
2abefe3d
PB
8241done
8242test -n "$BISON" || BISON="$MISSING bison"
8243
8244case " $build_configdirs " in
8245 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8246esac
8247
8248for ac_prog in gm4 gnum4 m4
8249do
1c710c3c 8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8251set dummy $ac_prog; ac_word=$2
5213506e
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if test "${ac_cv_prog_M4+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
2abefe3d
PB
8256else
8257 if test -n "$M4"; then
8258 ac_cv_prog_M4="$M4" # Let the user override the test.
8259else
1c710c3c
DJ
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
5213506e
RW
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8267 ac_cv_prog_M4="$ac_prog"
5213506e 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8269 break 2
8270 fi
8271done
5213506e
RW
8272 done
8273IFS=$as_save_IFS
1c710c3c 8274
2abefe3d
PB
8275fi
8276fi
1c710c3c 8277M4=$ac_cv_prog_M4
2abefe3d 8278if test -n "$M4"; then
5213506e
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8280$as_echo "$M4" >&6; }
2abefe3d 8281else
5213506e
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
2abefe3d
PB
8284fi
8285
5213506e 8286
1c710c3c 8287 test -n "$M4" && break
2abefe3d
PB
8288done
8289test -n "$M4" || M4="$MISSING m4"
8290
8291case " $build_configdirs " in
8292 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8293esac
8294
8295for ac_prog in flex lex
8296do
1c710c3c 8297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8298set dummy $ac_prog; ac_word=$2
5213506e
RW
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300$as_echo_n "checking for $ac_word... " >&6; }
8301if test "${ac_cv_prog_LEX+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
2abefe3d
PB
8303else
8304 if test -n "$LEX"; then
8305 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8306else
1c710c3c
DJ
8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
5213506e
RW
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8314 ac_cv_prog_LEX="$ac_prog"
5213506e 8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8316 break 2
8317 fi
8318done
5213506e
RW
8319 done
8320IFS=$as_save_IFS
1c710c3c 8321
2abefe3d
PB
8322fi
8323fi
1c710c3c 8324LEX=$ac_cv_prog_LEX
2abefe3d 8325if test -n "$LEX"; then
5213506e
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8327$as_echo "$LEX" >&6; }
2abefe3d 8328else
5213506e
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
2abefe3d
PB
8331fi
8332
5213506e 8333
1c710c3c 8334 test -n "$LEX" && break
2abefe3d
PB
8335done
8336test -n "$LEX" || LEX="$MISSING flex"
8337
8338case " $build_configdirs " in
8339 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8340 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8341esac
8342
8343for ac_prog in flex
8344do
1c710c3c 8345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8346set dummy $ac_prog; ac_word=$2
5213506e
RW
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if test "${ac_cv_prog_FLEX+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
2abefe3d
PB
8351else
8352 if test -n "$FLEX"; then
8353 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8354else
1c710c3c
DJ
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
5213506e
RW
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8362 ac_cv_prog_FLEX="$ac_prog"
5213506e 8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8364 break 2
8365 fi
8366done
5213506e
RW
8367 done
8368IFS=$as_save_IFS
1c710c3c 8369
2abefe3d
PB
8370fi
8371fi
1c710c3c 8372FLEX=$ac_cv_prog_FLEX
2abefe3d 8373if test -n "$FLEX"; then
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8375$as_echo "$FLEX" >&6; }
2abefe3d 8376else
5213506e
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
2abefe3d
PB
8379fi
8380
5213506e 8381
1c710c3c 8382 test -n "$FLEX" && break
2abefe3d
PB
8383done
8384test -n "$FLEX" || FLEX="$MISSING flex"
8385
8386case " $build_configdirs " in
8387 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8388esac
8389
8390for ac_prog in makeinfo
8391do
1c710c3c 8392 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8393set dummy $ac_prog; ac_word=$2
5213506e
RW
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395$as_echo_n "checking for $ac_word... " >&6; }
8396if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
2abefe3d
PB
8398else
8399 if test -n "$MAKEINFO"; then
8400 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8401else
1c710c3c
DJ
8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
5213506e
RW
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8409 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8411 break 2
8412 fi
8413done
5213506e
RW
8414 done
8415IFS=$as_save_IFS
1c710c3c 8416
2abefe3d
PB
8417fi
8418fi
1c710c3c 8419MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8420if test -n "$MAKEINFO"; then
5213506e
RW
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8422$as_echo "$MAKEINFO" >&6; }
2abefe3d 8423else
5213506e
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425$as_echo "no" >&6; }
2abefe3d
PB
8426fi
8427
5213506e 8428
1c710c3c 8429 test -n "$MAKEINFO" && break
2abefe3d
PB
8430done
8431test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8432
8433case " $build_configdirs " in
8434 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8435 *)
8436
d18ff35a 8437 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8438 # higher, else we use the "missing" dummy.
8439 if ${MAKEINFO} --version \
d18ff35a 8440 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8441 :
8442 else
8443 MAKEINFO="$MISSING makeinfo"
8444 fi
8445 ;;
8446
8447esac
671aa708 8448
2abefe3d 8449# FIXME: expect and dejagnu may become build tools?
671aa708 8450
2abefe3d
PB
8451for ac_prog in expect
8452do
1c710c3c 8453 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8454set dummy $ac_prog; ac_word=$2
5213506e
RW
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if test "${ac_cv_prog_EXPECT+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
2abefe3d
PB
8459else
8460 if test -n "$EXPECT"; then
8461 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8462else
1c710c3c
DJ
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
5213506e
RW
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8470 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8472 break 2
8473 fi
8474done
5213506e
RW
8475 done
8476IFS=$as_save_IFS
1c710c3c 8477
2abefe3d
PB
8478fi
8479fi
1c710c3c 8480EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8481if test -n "$EXPECT"; then
5213506e
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8483$as_echo "$EXPECT" >&6; }
2abefe3d 8484else
5213506e
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
2abefe3d 8487fi
671aa708 8488
5213506e 8489
1c710c3c 8490 test -n "$EXPECT" && break
2abefe3d
PB
8491done
8492test -n "$EXPECT" || EXPECT="expect"
671aa708 8493
2abefe3d
PB
8494case " $configdirs " in
8495 *" expect "*)
8496 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8497 ;;
8498esac
671aa708 8499
2abefe3d
PB
8500for ac_prog in runtest
8501do
1c710c3c 8502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8503set dummy $ac_prog; ac_word=$2
5213506e
RW
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
2abefe3d
PB
8508else
8509 if test -n "$RUNTEST"; then
8510 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8511else
1c710c3c
DJ
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
5213506e
RW
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8519 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8521 break 2
8522 fi
8523done
5213506e
RW
8524 done
8525IFS=$as_save_IFS
1c710c3c 8526
2abefe3d
PB
8527fi
8528fi
1c710c3c 8529RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8530if test -n "$RUNTEST"; then
5213506e
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8532$as_echo "$RUNTEST" >&6; }
2abefe3d 8533else
5213506e
RW
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
2abefe3d 8536fi
671aa708 8537
5213506e 8538
1c710c3c 8539 test -n "$RUNTEST" && break
2abefe3d
PB
8540done
8541test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8542
2abefe3d
PB
8543case " $configdirs " in
8544 *" dejagnu "*)
c394e891 8545 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8546 ;;
8547esac
671aa708
NN
8548
8549
671aa708 8550# Host tools.
ca9f4b81
AO
8551ncn_tool_prefix=
8552test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8553ncn_target_tool_prefix=
8554test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8555
278a7a38
AO
8556
8557
8558if test -n "$AR"; then
8559 ac_cv_prog_AR=$AR
8560elif test -n "$ac_cv_prog_AR"; then
8561 AR=$ac_cv_prog_AR
8562fi
8563
8564if test -n "$ac_cv_prog_AR"; then
8565 for ncn_progname in ar; do
8566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8567set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if test "${ac_cv_prog_AR+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
278a7a38
AO
8572else
8573 if test -n "$AR"; then
8574 ac_cv_prog_AR="$AR" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
5213506e
RW
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8583 ac_cv_prog_AR="${ncn_progname}"
5213506e 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8585 break 2
8586 fi
8587done
5213506e
RW
8588 done
8589IFS=$as_save_IFS
278a7a38
AO
8590
8591fi
8592fi
8593AR=$ac_cv_prog_AR
8594if test -n "$AR"; then
5213506e
RW
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8596$as_echo "$AR" >&6; }
278a7a38 8597else
5213506e
RW
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
278a7a38
AO
8600fi
8601
5213506e 8602
278a7a38
AO
8603 done
8604fi
8605
8606for ncn_progname in ar; do
2693c0b0
PB
8607 if test -n "$ncn_tool_prefix"; then
8608 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8609set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611$as_echo_n "checking for $ac_word... " >&6; }
8612if test "${ac_cv_prog_AR+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8614else
8615 if test -n "$AR"; then
8616 ac_cv_prog_AR="$AR" # Let the user override the test.
8617else
1c710c3c
DJ
8618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
5213506e
RW
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8625 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8627 break 2
8628 fi
8629done
5213506e
RW
8630 done
8631IFS=$as_save_IFS
1c710c3c 8632
ca9f4b81
AO
8633fi
8634fi
1c710c3c 8635AR=$ac_cv_prog_AR
ca9f4b81 8636if test -n "$AR"; then
5213506e
RW
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8638$as_echo "$AR" >&6; }
ca9f4b81 8639else
5213506e
RW
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
ca9f4b81
AO
8642fi
8643
5213506e 8644
2693c0b0
PB
8645 fi
8646 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8648set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650$as_echo_n "checking for $ac_word... " >&6; }
8651if test "${ac_cv_prog_AR+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
ca9f4b81 8653else
2693c0b0 8654 if test -n "$AR"; then
af71363e
AS
8655 ac_cv_prog_AR="$AR" # Let the user override the test.
8656else
1c710c3c
DJ
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
5213506e
RW
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8664 ac_cv_prog_AR="${ncn_progname}"
5213506e 8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8666 break 2
8667 fi
8668done
5213506e
RW
8669 done
8670IFS=$as_save_IFS
1c710c3c 8671
ca9f4b81
AO
8672fi
8673fi
1c710c3c 8674AR=$ac_cv_prog_AR
2693c0b0 8675if test -n "$AR"; then
5213506e
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8677$as_echo "$AR" >&6; }
ca9f4b81 8678else
5213506e
RW
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
ca9f4b81 8681fi
1c710c3c 8682
5213506e 8683
2693c0b0
PB
8684 fi
8685 test -n "$ac_cv_prog_AR" && break
8686done
8687
8688if test -z "$ac_cv_prog_AR" ; then
8689 set dummy ar
8690 if test $build = $host ; then
8691 AR="$2"
ca9f4b81 8692 else
2693c0b0 8693 AR="${ncn_tool_prefix}$2"
ca9f4b81 8694 fi
ca9f4b81
AO
8695fi
8696
278a7a38
AO
8697
8698
8699if test -n "$AS"; then
8700 ac_cv_prog_AS=$AS
8701elif test -n "$ac_cv_prog_AS"; then
8702 AS=$ac_cv_prog_AS
8703fi
8704
8705if test -n "$ac_cv_prog_AS"; then
8706 for ncn_progname in as; do
8707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8708set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710$as_echo_n "checking for $ac_word... " >&6; }
8711if test "${ac_cv_prog_AS+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
278a7a38
AO
8713else
8714 if test -n "$AS"; then
8715 ac_cv_prog_AS="$AS" # Let the user override the test.
8716else
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
5213506e
RW
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8724 ac_cv_prog_AS="${ncn_progname}"
5213506e 8725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8726 break 2
8727 fi
8728done
5213506e
RW
8729 done
8730IFS=$as_save_IFS
278a7a38
AO
8731
8732fi
8733fi
8734AS=$ac_cv_prog_AS
8735if test -n "$AS"; then
5213506e
RW
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8737$as_echo "$AS" >&6; }
278a7a38 8738else
5213506e
RW
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740$as_echo "no" >&6; }
278a7a38
AO
8741fi
8742
5213506e 8743
278a7a38
AO
8744 done
8745fi
8746
8747for ncn_progname in as; do
2693c0b0
PB
8748 if test -n "$ncn_tool_prefix"; then
8749 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8750set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752$as_echo_n "checking for $ac_word... " >&6; }
8753if test "${ac_cv_prog_AS+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8755else
8756 if test -n "$AS"; then
8757 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8758else
1c710c3c
DJ
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
5213506e
RW
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8766 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8768 break 2
8769 fi
8770done
5213506e
RW
8771 done
8772IFS=$as_save_IFS
1c710c3c 8773
ca9f4b81
AO
8774fi
8775fi
1c710c3c 8776AS=$ac_cv_prog_AS
ca9f4b81 8777if test -n "$AS"; then
5213506e
RW
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8779$as_echo "$AS" >&6; }
ca9f4b81 8780else
5213506e
RW
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782$as_echo "no" >&6; }
ca9f4b81
AO
8783fi
8784
5213506e 8785
2693c0b0
PB
8786 fi
8787 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8789set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791$as_echo_n "checking for $ac_word... " >&6; }
8792if test "${ac_cv_prog_AS+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
ca9f4b81 8794else
2693c0b0
PB
8795 if test -n "$AS"; then
8796 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8797else
1c710c3c
DJ
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
5213506e
RW
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8805 ac_cv_prog_AS="${ncn_progname}"
5213506e 8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8807 break 2
8808 fi
8809done
5213506e
RW
8810 done
8811IFS=$as_save_IFS
1c710c3c 8812
ca9f4b81
AO
8813fi
8814fi
1c710c3c 8815AS=$ac_cv_prog_AS
2693c0b0 8816if test -n "$AS"; then
5213506e
RW
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8818$as_echo "$AS" >&6; }
ca9f4b81 8819else
5213506e
RW
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821$as_echo "no" >&6; }
ca9f4b81 8822fi
1c710c3c 8823
5213506e 8824
2693c0b0
PB
8825 fi
8826 test -n "$ac_cv_prog_AS" && break
8827done
8828
8829if test -z "$ac_cv_prog_AS" ; then
8830 set dummy as
8831 if test $build = $host ; then
8832 AS="$2"
ca9f4b81 8833 else
2693c0b0 8834 AS="${ncn_tool_prefix}$2"
ca9f4b81 8835 fi
ca9f4b81
AO
8836fi
8837
278a7a38
AO
8838
8839
8840if test -n "$DLLTOOL"; then
8841 ac_cv_prog_DLLTOOL=$DLLTOOL
8842elif test -n "$ac_cv_prog_DLLTOOL"; then
8843 DLLTOOL=$ac_cv_prog_DLLTOOL
8844fi
8845
8846if test -n "$ac_cv_prog_DLLTOOL"; then
8847 for ncn_progname in dlltool; do
8848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8849set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
278a7a38
AO
8854else
8855 if test -n "$DLLTOOL"; then
8856 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
5213506e
RW
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8865 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8867 break 2
8868 fi
8869done
5213506e
RW
8870 done
8871IFS=$as_save_IFS
278a7a38
AO
8872
8873fi
8874fi
8875DLLTOOL=$ac_cv_prog_DLLTOOL
8876if test -n "$DLLTOOL"; then
5213506e
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8878$as_echo "$DLLTOOL" >&6; }
278a7a38 8879else
5213506e
RW
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
278a7a38
AO
8882fi
8883
5213506e 8884
278a7a38
AO
8885 done
8886fi
8887
8888for ncn_progname in dlltool; do
2693c0b0
PB
8889 if test -n "$ncn_tool_prefix"; then
8890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8891set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8896else
8897 if test -n "$DLLTOOL"; then
8898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8899else
1c710c3c
DJ
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
5213506e
RW
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8907 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8909 break 2
8910 fi
8911done
5213506e
RW
8912 done
8913IFS=$as_save_IFS
1c710c3c 8914
ca9f4b81
AO
8915fi
8916fi
1c710c3c 8917DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8918if test -n "$DLLTOOL"; then
5213506e
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8920$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8921else
5213506e
RW
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
ca9f4b81
AO
8924fi
8925
5213506e 8926
2693c0b0
PB
8927 fi
8928 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8930set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932$as_echo_n "checking for $ac_word... " >&6; }
8933if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
ca9f4b81 8935else
2693c0b0
PB
8936 if test -n "$DLLTOOL"; then
8937 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8938else
1c710c3c
DJ
8939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940for as_dir in $PATH
8941do
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
5213506e
RW
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8946 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8948 break 2
8949 fi
8950done
5213506e
RW
8951 done
8952IFS=$as_save_IFS
1c710c3c 8953
ca9f4b81
AO
8954fi
8955fi
1c710c3c 8956DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8957if test -n "$DLLTOOL"; then
5213506e
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8959$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8960else
5213506e
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962$as_echo "no" >&6; }
ca9f4b81 8963fi
1c710c3c 8964
5213506e 8965
2693c0b0
PB
8966 fi
8967 test -n "$ac_cv_prog_DLLTOOL" && break
8968done
8969
8970if test -z "$ac_cv_prog_DLLTOOL" ; then
8971 set dummy dlltool
8972 if test $build = $host ; then
8973 DLLTOOL="$2"
ca9f4b81 8974 else
2693c0b0 8975 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8976 fi
ca9f4b81
AO
8977fi
8978
278a7a38
AO
8979
8980
8981if test -n "$LD"; then
8982 ac_cv_prog_LD=$LD
8983elif test -n "$ac_cv_prog_LD"; then
8984 LD=$ac_cv_prog_LD
8985fi
8986
8987if test -n "$ac_cv_prog_LD"; then
8988 for ncn_progname in ld; do
8989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8990set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992$as_echo_n "checking for $ac_word... " >&6; }
8993if test "${ac_cv_prog_LD+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
278a7a38
AO
8995else
8996 if test -n "$LD"; then
8997 ac_cv_prog_LD="$LD" # Let the user override the test.
8998else
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
5213506e
RW
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9006 ac_cv_prog_LD="${ncn_progname}"
5213506e 9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9008 break 2
9009 fi
9010done
5213506e
RW
9011 done
9012IFS=$as_save_IFS
278a7a38
AO
9013
9014fi
9015fi
9016LD=$ac_cv_prog_LD
9017if test -n "$LD"; then
5213506e
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9019$as_echo "$LD" >&6; }
278a7a38 9020else
5213506e
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
278a7a38
AO
9023fi
9024
5213506e 9025
278a7a38
AO
9026 done
9027fi
9028
9029for ncn_progname in ld; do
2693c0b0
PB
9030 if test -n "$ncn_tool_prefix"; then
9031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9032set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034$as_echo_n "checking for $ac_word... " >&6; }
9035if test "${ac_cv_prog_LD+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9037else
9038 if test -n "$LD"; then
9039 ac_cv_prog_LD="$LD" # Let the user override the test.
9040else
1c710c3c
DJ
9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042for as_dir in $PATH
9043do
9044 IFS=$as_save_IFS
9045 test -z "$as_dir" && as_dir=.
5213506e
RW
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9048 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9050 break 2
9051 fi
9052done
5213506e
RW
9053 done
9054IFS=$as_save_IFS
1c710c3c 9055
ca9f4b81
AO
9056fi
9057fi
1c710c3c 9058LD=$ac_cv_prog_LD
ca9f4b81 9059if test -n "$LD"; then
5213506e
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9061$as_echo "$LD" >&6; }
ca9f4b81 9062else
5213506e
RW
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
ca9f4b81
AO
9065fi
9066
5213506e 9067
2693c0b0
PB
9068 fi
9069 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073$as_echo_n "checking for $ac_word... " >&6; }
9074if test "${ac_cv_prog_LD+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
ca9f4b81 9076else
2693c0b0
PB
9077 if test -n "$LD"; then
9078 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 9079else
1c710c3c
DJ
9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
9082do
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
5213506e
RW
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9087 ac_cv_prog_LD="${ncn_progname}"
5213506e 9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9089 break 2
9090 fi
9091done
5213506e
RW
9092 done
9093IFS=$as_save_IFS
1c710c3c 9094
ca9f4b81
AO
9095fi
9096fi
1c710c3c 9097LD=$ac_cv_prog_LD
2693c0b0 9098if test -n "$LD"; then
5213506e
RW
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9100$as_echo "$LD" >&6; }
ca9f4b81 9101else
5213506e
RW
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103$as_echo "no" >&6; }
ca9f4b81 9104fi
1c710c3c 9105
5213506e 9106
2693c0b0
PB
9107 fi
9108 test -n "$ac_cv_prog_LD" && break
9109done
9110
9111if test -z "$ac_cv_prog_LD" ; then
9112 set dummy ld
9113 if test $build = $host ; then
9114 LD="$2"
ca9f4b81 9115 else
2693c0b0 9116 LD="${ncn_tool_prefix}$2"
ca9f4b81 9117 fi
ca9f4b81
AO
9118fi
9119
278a7a38
AO
9120
9121
9122if test -n "$LIPO"; then
9123 ac_cv_prog_LIPO=$LIPO
9124elif test -n "$ac_cv_prog_LIPO"; then
9125 LIPO=$ac_cv_prog_LIPO
9126fi
9127
9128if test -n "$ac_cv_prog_LIPO"; then
9129 for ncn_progname in lipo; do
9130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_LIPO+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
278a7a38
AO
9136else
9137 if test -n "$LIPO"; then
9138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
5213506e
RW
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9147 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9149 break 2
9150 fi
9151done
5213506e
RW
9152 done
9153IFS=$as_save_IFS
278a7a38
AO
9154
9155fi
9156fi
9157LIPO=$ac_cv_prog_LIPO
9158if test -n "$LIPO"; then
5213506e
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9160$as_echo "$LIPO" >&6; }
278a7a38 9161else
5213506e
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
278a7a38
AO
9164fi
9165
5213506e 9166
278a7a38
AO
9167 done
9168fi
9169
9170for ncn_progname in lipo; do
2abefe3d
PB
9171 if test -n "$ncn_tool_prefix"; then
9172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if test "${ac_cv_prog_LIPO+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
2abefe3d
PB
9178else
9179 if test -n "$LIPO"; then
9180 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9181else
1c710c3c
DJ
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
5213506e
RW
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9189 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9191 break 2
9192 fi
9193done
5213506e
RW
9194 done
9195IFS=$as_save_IFS
1c710c3c 9196
2abefe3d
PB
9197fi
9198fi
1c710c3c 9199LIPO=$ac_cv_prog_LIPO
2abefe3d 9200if test -n "$LIPO"; then
5213506e
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9202$as_echo "$LIPO" >&6; }
2abefe3d 9203else
5213506e
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
2abefe3d
PB
9206fi
9207
5213506e 9208
2abefe3d
PB
9209 fi
9210 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if test "${ac_cv_prog_LIPO+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
2abefe3d
PB
9217else
9218 if test -n "$LIPO"; then
9219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9220else
1c710c3c
DJ
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
5213506e
RW
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9228 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9230 break 2
9231 fi
9232done
5213506e
RW
9233 done
9234IFS=$as_save_IFS
1c710c3c 9235
2abefe3d
PB
9236fi
9237fi
1c710c3c 9238LIPO=$ac_cv_prog_LIPO
2abefe3d 9239if test -n "$LIPO"; then
5213506e
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9241$as_echo "$LIPO" >&6; }
2abefe3d 9242else
5213506e
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
2abefe3d 9245fi
1c710c3c 9246
5213506e 9247
2abefe3d
PB
9248 fi
9249 test -n "$ac_cv_prog_LIPO" && break
9250done
9251
9252if test -z "$ac_cv_prog_LIPO" ; then
9253 set dummy lipo
9254 if test $build = $host ; then
9255 LIPO="$2"
9256 else
9257 LIPO="${ncn_tool_prefix}$2"
9258 fi
9259fi
9260
278a7a38
AO
9261
9262
9263if test -n "$NM"; then
9264 ac_cv_prog_NM=$NM
9265elif test -n "$ac_cv_prog_NM"; then
9266 NM=$ac_cv_prog_NM
9267fi
9268
9269if test -n "$ac_cv_prog_NM"; then
9270 for ncn_progname in nm; do
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_NM+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9277else
9278 if test -n "$NM"; then
9279 ac_cv_prog_NM="$NM" # Let the user override the test.
9280else
1c710c3c
DJ
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
5213506e
RW
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9288 ac_cv_prog_NM="${ncn_progname}"
5213506e 9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9290 break 2
9291 fi
9292done
5213506e
RW
9293 done
9294IFS=$as_save_IFS
1c710c3c 9295
ca9f4b81
AO
9296fi
9297fi
1c710c3c 9298NM=$ac_cv_prog_NM
ca9f4b81 9299if test -n "$NM"; then
5213506e
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9301$as_echo "$NM" >&6; }
ca9f4b81 9302else
5213506e
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
ca9f4b81
AO
9305fi
9306
5213506e 9307
278a7a38
AO
9308 done
9309fi
9310
9311for ncn_progname in nm; do
9312 if test -n "$ncn_tool_prefix"; then
9313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if test "${ac_cv_prog_NM+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
ca9f4b81 9319else
2693c0b0
PB
9320 if test -n "$NM"; then
9321 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9322else
1c710c3c
DJ
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
5213506e
RW
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9330 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9332 break 2
9333 fi
9334done
5213506e
RW
9335 done
9336IFS=$as_save_IFS
1c710c3c 9337
ca9f4b81
AO
9338fi
9339fi
1c710c3c 9340NM=$ac_cv_prog_NM
2693c0b0 9341if test -n "$NM"; then
5213506e
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9343$as_echo "$NM" >&6; }
ca9f4b81 9344else
5213506e
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
ca9f4b81 9347fi
1c710c3c 9348
5213506e 9349
2693c0b0 9350 fi
278a7a38
AO
9351 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355$as_echo_n "checking for $ac_word... " >&6; }
9356if test "${ac_cv_prog_NM+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
278a7a38
AO
9358else
9359 if test -n "$NM"; then
9360 ac_cv_prog_NM="$NM" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
5213506e
RW
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9369 ac_cv_prog_NM="${ncn_progname}"
5213506e 9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9371 break 2
9372 fi
9373done
5213506e
RW
9374 done
9375IFS=$as_save_IFS
278a7a38
AO
9376
9377fi
9378fi
9379NM=$ac_cv_prog_NM
9380if test -n "$NM"; then
5213506e
RW
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9382$as_echo "$NM" >&6; }
278a7a38 9383else
5213506e
RW
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385$as_echo "no" >&6; }
278a7a38
AO
9386fi
9387
5213506e 9388
278a7a38
AO
9389 fi
9390 test -n "$ac_cv_prog_NM" && break
9391done
9392
9393if test -z "$ac_cv_prog_NM" ; then
9394 set dummy nm
9395 if test $build = $host ; then
9396 NM="$2"
9397 else
9398 NM="${ncn_tool_prefix}$2"
9399 fi
9400fi
9401
9402
9403
9404if test -n "$RANLIB"; then
9405 ac_cv_prog_RANLIB=$RANLIB
9406elif test -n "$ac_cv_prog_RANLIB"; then
9407 RANLIB=$ac_cv_prog_RANLIB
9408fi
9409
9410if test -n "$ac_cv_prog_RANLIB"; then
9411 for ncn_progname in ranlib; do
9412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if test "${ac_cv_prog_RANLIB+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
278a7a38
AO
9418else
9419 if test -n "$RANLIB"; then
9420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
5213506e
RW
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9429 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9431 break 2
9432 fi
9433done
5213506e
RW
9434 done
9435IFS=$as_save_IFS
278a7a38
AO
9436
9437fi
9438fi
9439RANLIB=$ac_cv_prog_RANLIB
9440if test -n "$RANLIB"; then
5213506e
RW
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9442$as_echo "$RANLIB" >&6; }
278a7a38 9443else
5213506e
RW
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
278a7a38
AO
9446fi
9447
5213506e 9448
278a7a38
AO
9449 done
9450fi
ca9f4b81 9451
278a7a38 9452for ncn_progname in ranlib; do
2693c0b0
PB
9453 if test -n "$ncn_tool_prefix"; then
9454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if test "${ac_cv_prog_RANLIB+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9460else
9461 if test -n "$RANLIB"; then
9462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9463else
1c710c3c
DJ
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
5213506e
RW
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9471 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9473 break 2
9474 fi
9475done
5213506e
RW
9476 done
9477IFS=$as_save_IFS
1c710c3c 9478
ca9f4b81
AO
9479fi
9480fi
1c710c3c 9481RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9482if test -n "$RANLIB"; then
5213506e
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9484$as_echo "$RANLIB" >&6; }
ca9f4b81 9485else
5213506e
RW
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
ca9f4b81
AO
9488fi
9489
5213506e 9490
2693c0b0
PB
9491 fi
9492 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if test "${ac_cv_prog_RANLIB+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
ca9f4b81 9499else
2693c0b0
PB
9500 if test -n "$RANLIB"; then
9501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9502else
1c710c3c
DJ
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
5213506e
RW
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9510 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9512 break 2
9513 fi
9514done
5213506e
RW
9515 done
9516IFS=$as_save_IFS
1c710c3c 9517
ca9f4b81
AO
9518fi
9519fi
1c710c3c 9520RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9521if test -n "$RANLIB"; then
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9523$as_echo "$RANLIB" >&6; }
ca9f4b81 9524else
5213506e
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
ca9f4b81 9527fi
1c710c3c 9528
5213506e 9529
ca9f4b81 9530 fi
2693c0b0
PB
9531 test -n "$ac_cv_prog_RANLIB" && break
9532done
9533
9534if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9535 RANLIB="true"
ca9f4b81
AO
9536fi
9537
278a7a38
AO
9538
9539
9540if test -n "$STRIP"; then
9541 ac_cv_prog_STRIP=$STRIP
9542elif test -n "$ac_cv_prog_STRIP"; then
9543 STRIP=$ac_cv_prog_STRIP
9544fi
9545
9546if test -n "$ac_cv_prog_STRIP"; then
9547 for ncn_progname in strip; do
9548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9549set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551$as_echo_n "checking for $ac_word... " >&6; }
9552if test "${ac_cv_prog_STRIP+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
278a7a38
AO
9554else
9555 if test -n "$STRIP"; then
9556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9557else
9558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
5213506e
RW
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9565 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9567 break 2
9568 fi
9569done
5213506e
RW
9570 done
9571IFS=$as_save_IFS
278a7a38
AO
9572
9573fi
9574fi
9575STRIP=$ac_cv_prog_STRIP
9576if test -n "$STRIP"; then
5213506e
RW
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9578$as_echo "$STRIP" >&6; }
278a7a38 9579else
5213506e
RW
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581$as_echo "no" >&6; }
278a7a38
AO
9582fi
9583
5213506e 9584
278a7a38
AO
9585 done
9586fi
9587
9588for ncn_progname in strip; do
2abefe3d
PB
9589 if test -n "$ncn_tool_prefix"; then
9590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
9594if test "${ac_cv_prog_STRIP+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
2abefe3d
PB
9596else
9597 if test -n "$STRIP"; then
9598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9599else
1c710c3c
DJ
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
5213506e
RW
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9607 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9609 break 2
9610 fi
9611done
5213506e
RW
9612 done
9613IFS=$as_save_IFS
1c710c3c 9614
2abefe3d
PB
9615fi
9616fi
1c710c3c 9617STRIP=$ac_cv_prog_STRIP
2abefe3d 9618if test -n "$STRIP"; then
5213506e
RW
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9620$as_echo "$STRIP" >&6; }
2abefe3d 9621else
5213506e
RW
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
2abefe3d
PB
9624fi
9625
5213506e 9626
2abefe3d
PB
9627 fi
9628 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9630set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632$as_echo_n "checking for $ac_word... " >&6; }
9633if test "${ac_cv_prog_STRIP+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
2abefe3d
PB
9635else
9636 if test -n "$STRIP"; then
9637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9638else
1c710c3c
DJ
9639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640for as_dir in $PATH
9641do
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
5213506e
RW
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9646 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9648 break 2
9649 fi
9650done
5213506e
RW
9651 done
9652IFS=$as_save_IFS
1c710c3c 9653
2abefe3d
PB
9654fi
9655fi
1c710c3c 9656STRIP=$ac_cv_prog_STRIP
2abefe3d 9657if test -n "$STRIP"; then
5213506e
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9659$as_echo "$STRIP" >&6; }
2abefe3d 9660else
5213506e
RW
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
2abefe3d 9663fi
1c710c3c 9664
5213506e 9665
2abefe3d
PB
9666 fi
9667 test -n "$ac_cv_prog_STRIP" && break
9668done
9669
9670if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9671 STRIP="true"
2abefe3d
PB
9672fi
9673
278a7a38
AO
9674
9675
9676if test -n "$WINDRES"; then
9677 ac_cv_prog_WINDRES=$WINDRES
9678elif test -n "$ac_cv_prog_WINDRES"; then
9679 WINDRES=$ac_cv_prog_WINDRES
9680fi
9681
9682if test -n "$ac_cv_prog_WINDRES"; then
9683 for ncn_progname in windres; do
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if test "${ac_cv_prog_WINDRES+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
278a7a38
AO
9690else
9691 if test -n "$WINDRES"; then
9692 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
5213506e
RW
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9701 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9703 break 2
9704 fi
9705done
5213506e
RW
9706 done
9707IFS=$as_save_IFS
278a7a38
AO
9708
9709fi
9710fi
9711WINDRES=$ac_cv_prog_WINDRES
9712if test -n "$WINDRES"; then
5213506e
RW
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9714$as_echo "$WINDRES" >&6; }
278a7a38 9715else
5213506e
RW
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
278a7a38
AO
9718fi
9719
5213506e 9720
278a7a38
AO
9721 done
9722fi
9723
9724for ncn_progname in windres; do
2693c0b0
PB
9725 if test -n "$ncn_tool_prefix"; then
9726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729$as_echo_n "checking for $ac_word... " >&6; }
9730if test "${ac_cv_prog_WINDRES+set}" = set; then :
9731 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9732else
9733 if test -n "$WINDRES"; then
9734 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9735else
1c710c3c
DJ
9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737for as_dir in $PATH
9738do
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
5213506e
RW
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9743 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9745 break 2
9746 fi
9747done
5213506e
RW
9748 done
9749IFS=$as_save_IFS
1c710c3c 9750
ca9f4b81
AO
9751fi
9752fi
1c710c3c 9753WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9754if test -n "$WINDRES"; then
5213506e
RW
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9756$as_echo "$WINDRES" >&6; }
ca9f4b81 9757else
5213506e
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759$as_echo "no" >&6; }
ca9f4b81
AO
9760fi
9761
5213506e 9762
2693c0b0
PB
9763 fi
9764 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9766set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768$as_echo_n "checking for $ac_word... " >&6; }
9769if test "${ac_cv_prog_WINDRES+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
ca9f4b81 9771else
2693c0b0
PB
9772 if test -n "$WINDRES"; then
9773 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9774else
1c710c3c
DJ
9775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776for as_dir in $PATH
9777do
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
5213506e
RW
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9782 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9784 break 2
9785 fi
9786done
5213506e
RW
9787 done
9788IFS=$as_save_IFS
1c710c3c 9789
ca9f4b81
AO
9790fi
9791fi
1c710c3c 9792WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9793if test -n "$WINDRES"; then
5213506e
RW
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9795$as_echo "$WINDRES" >&6; }
ca9f4b81 9796else
5213506e
RW
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
ca9f4b81 9799fi
1c710c3c 9800
5213506e 9801
2693c0b0
PB
9802 fi
9803 test -n "$ac_cv_prog_WINDRES" && break
9804done
9805
9806if test -z "$ac_cv_prog_WINDRES" ; then
9807 set dummy windres
9808 if test $build = $host ; then
9809 WINDRES="$2"
ca9f4b81 9810 else
2693c0b0 9811 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9812 fi
ca9f4b81
AO
9813fi
9814
278a7a38
AO
9815
9816
901119ae
KT
9817if test -n "$WINDMC"; then
9818 ac_cv_prog_WINDMC=$WINDMC
9819elif test -n "$ac_cv_prog_WINDMC"; then
9820 WINDMC=$ac_cv_prog_WINDMC
9821fi
9822
9823if test -n "$ac_cv_prog_WINDMC"; then
9824 for ncn_progname in windmc; do
9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9826set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828$as_echo_n "checking for $ac_word... " >&6; }
9829if test "${ac_cv_prog_WINDMC+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
901119ae
KT
9831else
9832 if test -n "$WINDMC"; then
9833 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9834else
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
5213506e
RW
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9842 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9844 break 2
9845 fi
9846done
5213506e
RW
9847 done
9848IFS=$as_save_IFS
901119ae
KT
9849
9850fi
9851fi
9852WINDMC=$ac_cv_prog_WINDMC
9853if test -n "$WINDMC"; then
5213506e
RW
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9855$as_echo "$WINDMC" >&6; }
901119ae 9856else
5213506e
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858$as_echo "no" >&6; }
901119ae
KT
9859fi
9860
5213506e 9861
901119ae
KT
9862 done
9863fi
9864
9865for ncn_progname in windmc; do
9866 if test -n "$ncn_tool_prefix"; then
9867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9868set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870$as_echo_n "checking for $ac_word... " >&6; }
9871if test "${ac_cv_prog_WINDMC+set}" = set; then :
9872 $as_echo_n "(cached) " >&6
901119ae
KT
9873else
9874 if test -n "$WINDMC"; then
9875 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9876else
9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
5213506e
RW
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9884 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9886 break 2
9887 fi
9888done
5213506e
RW
9889 done
9890IFS=$as_save_IFS
901119ae
KT
9891
9892fi
9893fi
9894WINDMC=$ac_cv_prog_WINDMC
9895if test -n "$WINDMC"; then
5213506e
RW
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9897$as_echo "$WINDMC" >&6; }
901119ae 9898else
5213506e
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
901119ae
KT
9901fi
9902
5213506e 9903
901119ae
KT
9904 fi
9905 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9907set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909$as_echo_n "checking for $ac_word... " >&6; }
9910if test "${ac_cv_prog_WINDMC+set}" = set; then :
9911 $as_echo_n "(cached) " >&6
901119ae
KT
9912else
9913 if test -n "$WINDMC"; then
9914 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
5213506e
RW
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9923 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9925 break 2
9926 fi
9927done
5213506e
RW
9928 done
9929IFS=$as_save_IFS
901119ae
KT
9930
9931fi
9932fi
9933WINDMC=$ac_cv_prog_WINDMC
9934if test -n "$WINDMC"; then
5213506e
RW
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9936$as_echo "$WINDMC" >&6; }
901119ae 9937else
5213506e
RW
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
901119ae
KT
9940fi
9941
5213506e 9942
901119ae
KT
9943 fi
9944 test -n "$ac_cv_prog_WINDMC" && break
9945done
9946
9947if test -z "$ac_cv_prog_WINDMC" ; then
9948 set dummy windmc
9949 if test $build = $host ; then
9950 WINDMC="$2"
9951 else
9952 WINDMC="${ncn_tool_prefix}$2"
9953 fi
9954fi
9955
9956
9957
278a7a38
AO
9958if test -n "$OBJCOPY"; then
9959 ac_cv_prog_OBJCOPY=$OBJCOPY
9960elif test -n "$ac_cv_prog_OBJCOPY"; then
9961 OBJCOPY=$ac_cv_prog_OBJCOPY
9962fi
9963
9964if test -n "$ac_cv_prog_OBJCOPY"; then
9965 for ncn_progname in objcopy; do
9966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9967set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969$as_echo_n "checking for $ac_word... " >&6; }
9970if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
278a7a38
AO
9972else
9973 if test -n "$OBJCOPY"; then
9974 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9975else
9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
5213506e
RW
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9983 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9985 break 2
9986 fi
9987done
5213506e
RW
9988 done
9989IFS=$as_save_IFS
278a7a38
AO
9990
9991fi
9992fi
9993OBJCOPY=$ac_cv_prog_OBJCOPY
9994if test -n "$OBJCOPY"; then
5213506e
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9996$as_echo "$OBJCOPY" >&6; }
278a7a38 9997else
5213506e
RW
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999$as_echo "no" >&6; }
278a7a38
AO
10000fi
10001
5213506e 10002
278a7a38
AO
10003 done
10004fi
10005
10006for ncn_progname in objcopy; do
2693c0b0
PB
10007 if test -n "$ncn_tool_prefix"; then
10008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10014else
10015 if test -n "$OBJCOPY"; then
10016 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10017else
1c710c3c
DJ
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
5213506e
RW
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10025 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10027 break 2
10028 fi
10029done
5213506e
RW
10030 done
10031IFS=$as_save_IFS
1c710c3c 10032
ca9f4b81
AO
10033fi
10034fi
1c710c3c 10035OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 10036if test -n "$OBJCOPY"; then
5213506e
RW
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10038$as_echo "$OBJCOPY" >&6; }
ca9f4b81 10039else
5213506e
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
ca9f4b81
AO
10042fi
10043
5213506e 10044
2693c0b0
PB
10045 fi
10046 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10048set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050$as_echo_n "checking for $ac_word... " >&6; }
10051if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
ca9f4b81 10053else
2693c0b0
PB
10054 if test -n "$OBJCOPY"; then
10055 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 10056else
1c710c3c
DJ
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
5213506e
RW
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10064 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10066 break 2
10067 fi
10068done
5213506e
RW
10069 done
10070IFS=$as_save_IFS
1c710c3c 10071
ca9f4b81
AO
10072fi
10073fi
1c710c3c 10074OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 10075if test -n "$OBJCOPY"; then
5213506e
RW
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10077$as_echo "$OBJCOPY" >&6; }
ca9f4b81 10078else
5213506e
RW
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
ca9f4b81 10081fi
1c710c3c 10082
5213506e 10083
2693c0b0
PB
10084 fi
10085 test -n "$ac_cv_prog_OBJCOPY" && break
10086done
10087
10088if test -z "$ac_cv_prog_OBJCOPY" ; then
10089 set dummy objcopy
10090 if test $build = $host ; then
10091 OBJCOPY="$2"
ca9f4b81 10092 else
2693c0b0 10093 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 10094 fi
ca9f4b81
AO
10095fi
10096
278a7a38
AO
10097
10098
10099if test -n "$OBJDUMP"; then
10100 ac_cv_prog_OBJDUMP=$OBJDUMP
10101elif test -n "$ac_cv_prog_OBJDUMP"; then
10102 OBJDUMP=$ac_cv_prog_OBJDUMP
10103fi
10104
10105if test -n "$ac_cv_prog_OBJDUMP"; then
10106 for ncn_progname in objdump; do
10107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10108set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110$as_echo_n "checking for $ac_word... " >&6; }
10111if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
278a7a38
AO
10113else
10114 if test -n "$OBJDUMP"; then
10115 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10116else
10117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118for as_dir in $PATH
10119do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
5213506e
RW
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10124 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10126 break 2
10127 fi
10128done
5213506e
RW
10129 done
10130IFS=$as_save_IFS
278a7a38
AO
10131
10132fi
10133fi
10134OBJDUMP=$ac_cv_prog_OBJDUMP
10135if test -n "$OBJDUMP"; then
5213506e
RW
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10137$as_echo "$OBJDUMP" >&6; }
278a7a38 10138else
5213506e
RW
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140$as_echo "no" >&6; }
278a7a38
AO
10141fi
10142
5213506e 10143
278a7a38
AO
10144 done
10145fi
10146
10147for ncn_progname in objdump; do
2693c0b0
PB
10148 if test -n "$ncn_tool_prefix"; then
10149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10150set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152$as_echo_n "checking for $ac_word... " >&6; }
10153if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10155else
10156 if test -n "$OBJDUMP"; then
10157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10158else
1c710c3c
DJ
10159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160for as_dir in $PATH
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
5213506e
RW
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10166 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10168 break 2
10169 fi
10170done
5213506e
RW
10171 done
10172IFS=$as_save_IFS
1c710c3c 10173
ca9f4b81
AO
10174fi
10175fi
1c710c3c 10176OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 10177if test -n "$OBJDUMP"; then
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10179$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10180else
5213506e
RW
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182$as_echo "no" >&6; }
ca9f4b81
AO
10183fi
10184
5213506e 10185
2693c0b0
PB
10186 fi
10187 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10189set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191$as_echo_n "checking for $ac_word... " >&6; }
10192if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
ca9f4b81 10194else
2693c0b0
PB
10195 if test -n "$OBJDUMP"; then
10196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 10197else
1c710c3c
DJ
10198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199for as_dir in $PATH
10200do
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
5213506e
RW
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10205 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10207 break 2
10208 fi
10209done
5213506e
RW
10210 done
10211IFS=$as_save_IFS
1c710c3c 10212
ca9f4b81
AO
10213fi
10214fi
1c710c3c 10215OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 10216if test -n "$OBJDUMP"; then
5213506e
RW
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10218$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10219else
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
ca9f4b81 10222fi
1c710c3c 10223
5213506e 10224
2693c0b0
PB
10225 fi
10226 test -n "$ac_cv_prog_OBJDUMP" && break
10227done
10228
10229if test -z "$ac_cv_prog_OBJDUMP" ; then
10230 set dummy objdump
10231 if test $build = $host ; then
10232 OBJDUMP="$2"
ca9f4b81 10233 else
2693c0b0 10234 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 10235 fi
ca9f4b81
AO
10236fi
10237
671aa708
NN
10238
10239
10240
10241
10242
2abefe3d 10243# Target tools.
1c710c3c 10244
5213506e
RW
10245# Check whether --with-build-time-tools was given.
10246if test "${with_build_time_tools+set}" = set; then :
10247 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10248 x/*) ;;
10249 *)
10250 with_build_time_tools=
5213506e
RW
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10252$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10253 ;;
10254 esac
ca9f4b81 10255else
e8b05380 10256 with_build_time_tools=
5213506e
RW
10257fi
10258
ca9f4b81 10259
278a7a38
AO
10260
10261
10262if test -n "$CC_FOR_TARGET"; then
10263 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10264elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10265 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10266fi
10267
10268if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10269 for ncn_progname in cc gcc; do
10270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10271set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273$as_echo_n "checking for $ac_word... " >&6; }
10274if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
278a7a38
AO
10276else
10277 if test -n "$CC_FOR_TARGET"; then
10278 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10279else
10280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281for as_dir in $PATH
10282do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
5213506e
RW
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10287 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10289 break 2
10290 fi
10291done
5213506e
RW
10292 done
10293IFS=$as_save_IFS
278a7a38
AO
10294
10295fi
10296fi
10297CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10298if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10300$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10301else
5213506e
RW
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303$as_echo "no" >&6; }
278a7a38
AO
10304fi
10305
5213506e 10306
278a7a38
AO
10307 done
10308fi
10309
10310if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10311 for ncn_progname in cc gcc; do
5213506e
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10313$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10314 if test -x $with_build_time_tools/${ncn_progname}; then
10315 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10317$as_echo "yes" >&6; }
72a7ab82 10318 break
e8b05380 10319 else
5213506e
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
72a7ab82
AP
10322 fi
10323 done
4de997d1
PB
10324fi
10325
e8b05380
PB
10326if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10327 for ncn_progname in cc gcc; do
10328 if test -n "$ncn_target_tool_prefix"; then
10329 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10330set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332$as_echo_n "checking for $ac_word... " >&6; }
10333if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
4de997d1
PB
10335else
10336 if test -n "$CC_FOR_TARGET"; then
10337 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10338else
1c710c3c
DJ
10339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
5213506e
RW
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10346 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10348 break 2
10349 fi
10350done
5213506e
RW
10351 done
10352IFS=$as_save_IFS
1c710c3c 10353
4de997d1
PB
10354fi
10355fi
1c710c3c 10356CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10357if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10359$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10360else
5213506e
RW
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362$as_echo "no" >&6; }
4de997d1
PB
10363fi
10364
5213506e 10365
e8b05380
PB
10366 fi
10367 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10369set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371$as_echo_n "checking for $ac_word... " >&6; }
10372if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
4de997d1 10374else
2693c0b0
PB
10375 if test -n "$CC_FOR_TARGET"; then
10376 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10377else
1c710c3c
DJ
10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
5213506e
RW
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10385 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10387 break 2
10388 fi
10389done
5213506e
RW
10390 done
10391IFS=$as_save_IFS
1c710c3c 10392
4de997d1
PB
10393fi
10394fi
1c710c3c 10395CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10396if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10398$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10399else
5213506e
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
4de997d1 10402fi
1c710c3c 10403
5213506e 10404
e8b05380
PB
10405 fi
10406 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10407 done
10408fi
1c710c3c 10409
2693c0b0
PB
10410if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10411 set dummy cc gcc
10412 if test $build = $target ; then
10413 CC_FOR_TARGET="$2"
4de997d1 10414 else
2693c0b0 10415 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10416 fi
1c00b503
PB
10417else
10418 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10419fi
10420
278a7a38
AO
10421
10422
10423if test -n "$CXX_FOR_TARGET"; then
10424 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10425elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10426 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10427fi
10428
10429if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10430 for ncn_progname in c++ g++ cxx gxx; do
10431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10432set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434$as_echo_n "checking for $ac_word... " >&6; }
10435if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
278a7a38
AO
10437else
10438 if test -n "$CXX_FOR_TARGET"; then
10439 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10440else
10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442for as_dir in $PATH
10443do
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
5213506e
RW
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10448 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10450 break 2
10451 fi
10452done
5213506e
RW
10453 done
10454IFS=$as_save_IFS
278a7a38
AO
10455
10456fi
10457fi
10458CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10459if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10461$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10462else
5213506e
RW
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464$as_echo "no" >&6; }
278a7a38
AO
10465fi
10466
5213506e 10467
278a7a38
AO
10468 done
10469fi
10470
10471if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10472 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10474$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10475 if test -x $with_build_time_tools/${ncn_progname}; then
10476 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10478$as_echo "yes" >&6; }
e8b05380
PB
10479 break
10480 else
5213506e
RW
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
e8b05380
PB
10483 fi
10484 done
10485fi
10486
10487if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10488 for ncn_progname in c++ g++ cxx gxx; do
10489 if test -n "$ncn_target_tool_prefix"; then
10490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
4de997d1
PB
10496else
10497 if test -n "$CXX_FOR_TARGET"; then
10498 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10499else
1c710c3c
DJ
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
5213506e
RW
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10507 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10509 break 2
10510 fi
10511done
5213506e
RW
10512 done
10513IFS=$as_save_IFS
1c710c3c 10514
4de997d1
PB
10515fi
10516fi
1c710c3c 10517CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10518if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10520$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10521else
5213506e
RW
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
4de997d1
PB
10524fi
10525
5213506e 10526
e8b05380
PB
10527 fi
10528 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
10533if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
4de997d1 10535else
2693c0b0
PB
10536 if test -n "$CXX_FOR_TARGET"; then
10537 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10538else
1c710c3c
DJ
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
5213506e
RW
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10546 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10548 break 2
10549 fi
10550done
5213506e
RW
10551 done
10552IFS=$as_save_IFS
1c710c3c 10553
4de997d1
PB
10554fi
10555fi
1c710c3c 10556CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10557if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10559$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10560else
5213506e
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
4de997d1 10563fi
1c710c3c 10564
5213506e 10565
e8b05380
PB
10566 fi
10567 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10568 done
10569fi
1c710c3c 10570
2693c0b0
PB
10571if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10572 set dummy c++ g++ cxx gxx
10573 if test $build = $target ; then
10574 CXX_FOR_TARGET="$2"
4de997d1 10575 else
2693c0b0 10576 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10577 fi
1c00b503
PB
10578else
10579 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10580fi
10581
278a7a38
AO
10582
10583
10584if test -n "$GCC_FOR_TARGET"; then
10585 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10586elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10587 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10588fi
10589
10590if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10591 for ncn_progname in gcc; do
10592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10593set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595$as_echo_n "checking for $ac_word... " >&6; }
10596if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
278a7a38
AO
10598else
10599 if test -n "$GCC_FOR_TARGET"; then
10600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
5213506e
RW
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10609 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10611 break 2
10612 fi
10613done
5213506e
RW
10614 done
10615IFS=$as_save_IFS
278a7a38
AO
10616
10617fi
10618fi
10619GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10620if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10622$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10623else
5213506e
RW
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
278a7a38
AO
10626fi
10627
5213506e 10628
278a7a38
AO
10629 done
10630fi
10631
10632if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10633 for ncn_progname in gcc; do
5213506e
RW
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10635$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10636 if test -x $with_build_time_tools/${ncn_progname}; then
10637 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639$as_echo "yes" >&6; }
e8b05380
PB
10640 break
10641 else
5213506e
RW
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643$as_echo "no" >&6; }
e8b05380
PB
10644 fi
10645 done
10646fi
10647
10648if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10649 for ncn_progname in gcc; do
10650 if test -n "$ncn_target_tool_prefix"; then
10651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10652set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654$as_echo_n "checking for $ac_word... " >&6; }
10655if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
ca9f4b81 10657else
e8b05380
PB
10658 if test -n "$GCC_FOR_TARGET"; then
10659 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10660else
1c710c3c
DJ
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
5213506e
RW
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10668 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10670 break 2
10671 fi
10672done
5213506e
RW
10673 done
10674IFS=$as_save_IFS
1c710c3c 10675
ca9f4b81
AO
10676fi
10677fi
1c710c3c 10678GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10679if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10681$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10682else
5213506e
RW
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684$as_echo "no" >&6; }
ca9f4b81
AO
10685fi
10686
5213506e 10687
e8b05380
PB
10688 fi
10689 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10691set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693$as_echo_n "checking for $ac_word... " >&6; }
10694if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
ca9f4b81 10696else
e8b05380
PB
10697 if test -n "$GCC_FOR_TARGET"; then
10698 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10699else
1c710c3c
DJ
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
5213506e
RW
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10707 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10709 break 2
10710 fi
10711done
5213506e
RW
10712 done
10713IFS=$as_save_IFS
1c710c3c 10714
ca9f4b81
AO
10715fi
10716fi
1c710c3c 10717GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10718if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10720$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10721else
5213506e
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
ca9f4b81 10724fi
1c710c3c 10725
5213506e 10726
e8b05380
PB
10727 fi
10728 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10729 done
10730fi
1c710c3c 10731
e8b05380
PB
10732if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10733 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10734else
10735 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10736fi
10737
278a7a38
AO
10738
10739
10740if test -n "$GCJ_FOR_TARGET"; then
10741 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10742elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10743 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10744fi
10745
10746if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10747 for ncn_progname in gcj; do
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751$as_echo_n "checking for $ac_word... " >&6; }
10752if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
278a7a38
AO
10754else
10755 if test -n "$GCJ_FOR_TARGET"; then
10756 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
5213506e
RW
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10765 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10767 break 2
10768 fi
10769done
5213506e
RW
10770 done
10771IFS=$as_save_IFS
278a7a38
AO
10772
10773fi
10774fi
10775GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10776if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10778$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10779else
5213506e
RW
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
278a7a38
AO
10782fi
10783
5213506e 10784
278a7a38
AO
10785 done
10786fi
10787
10788if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10789 for ncn_progname in gcj; do
5213506e
RW
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10791$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10792 if test -x $with_build_time_tools/${ncn_progname}; then
10793 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795$as_echo "yes" >&6; }
e8b05380
PB
10796 break
10797 else
5213506e
RW
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799$as_echo "no" >&6; }
e8b05380
PB
10800 fi
10801 done
10802fi
10803
10804if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10805 for ncn_progname in gcj; do
10806 if test -n "$ncn_target_tool_prefix"; then
10807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10808set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810$as_echo_n "checking for $ac_word... " >&6; }
10811if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
e8b05380 10813else
fb0103e5
RG
10814 if test -n "$GCJ_FOR_TARGET"; then
10815 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10816else
1c710c3c
DJ
10817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818for as_dir in $PATH
10819do
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
5213506e
RW
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10824 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10826 break 2
10827 fi
10828done
5213506e
RW
10829 done
10830IFS=$as_save_IFS
1c710c3c 10831
e8b05380
PB
10832fi
10833fi
278a7a38
AO
10834GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10835if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10837$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10838else
5213506e
RW
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840$as_echo "no" >&6; }
278a7a38
AO
10841fi
10842
5213506e 10843
278a7a38
AO
10844 fi
10845 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849$as_echo_n "checking for $ac_word... " >&6; }
10850if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
278a7a38
AO
10852else
10853 if test -n "$GCJ_FOR_TARGET"; then
10854 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
5213506e
RW
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10863 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10865 break 2
10866 fi
10867done
5213506e
RW
10868 done
10869IFS=$as_save_IFS
278a7a38
AO
10870
10871fi
10872fi
10873GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10874if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10876$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10877else
5213506e
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
278a7a38
AO
10880fi
10881
5213506e 10882
278a7a38
AO
10883 fi
10884 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10885 done
10886fi
10887
10888if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10889 set dummy gcj
10890 if test $build = $target ; then
10891 GCJ_FOR_TARGET="$2"
10892 else
10893 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10894 fi
1c00b503
PB
10895else
10896 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10897fi
10898
10899
10900
10901if test -n "$GFORTRAN_FOR_TARGET"; then
10902 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10903elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10904 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10905fi
10906
278a7a38
AO
10907if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10908 for ncn_progname in gfortran; do
10909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912$as_echo_n "checking for $ac_word... " >&6; }
10913if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10914 $as_echo_n "(cached) " >&6
e8b05380 10915else
278a7a38
AO
10916 if test -n "$GFORTRAN_FOR_TARGET"; then
10917 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10918else
1c710c3c
DJ
10919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
5213506e
RW
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10926 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10928 break 2
10929 fi
10930done
5213506e
RW
10931 done
10932IFS=$as_save_IFS
1c710c3c 10933
e8b05380
PB
10934fi
10935fi
278a7a38
AO
10936GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10937if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10939$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10940else
5213506e
RW
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942$as_echo "no" >&6; }
e8b05380 10943fi
1c710c3c 10944
5213506e 10945
e8b05380
PB
10946 done
10947fi
1c710c3c 10948
278a7a38 10949if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10950 for ncn_progname in gfortran; do
5213506e
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10952$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10953 if test -x $with_build_time_tools/${ncn_progname}; then
10954 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956$as_echo "yes" >&6; }
e8b05380
PB
10957 break
10958 else
5213506e
RW
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960$as_echo "no" >&6; }
e8b05380
PB
10961 fi
10962 done
10963fi
10964
10965if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10966 for ncn_progname in gfortran; do
10967 if test -n "$ncn_target_tool_prefix"; then
10968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10969set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
10972if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
e8b05380
PB
10974else
10975 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10976 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
5213506e
RW
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10985 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10987 break 2
10988 fi
10989done
5213506e
RW
10990 done
10991IFS=$as_save_IFS
1c710c3c 10992
e8b05380
PB
10993fi
10994fi
1c710c3c 10995GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10996if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10998$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10999else
5213506e
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
e8b05380
PB
11002fi
11003
5213506e 11004
e8b05380
PB
11005 fi
11006 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
11011if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
e8b05380
PB
11013else
11014 if test -n "$GFORTRAN_FOR_TARGET"; then
11015 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11016else
1c710c3c
DJ
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
5213506e
RW
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11024 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11026 break 2
11027 fi
11028done
5213506e
RW
11029 done
11030IFS=$as_save_IFS
1c710c3c 11031
e8b05380
PB
11032fi
11033fi
1c710c3c 11034GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 11035if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11037$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 11038else
5213506e
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
e8b05380 11041fi
1c710c3c 11042
5213506e 11043
e8b05380
PB
11044 fi
11045 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11046 done
11047fi
1c710c3c 11048
e8b05380
PB
11049if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11050 set dummy gfortran
2693c0b0 11051 if test $build = $target ; then
e8b05380 11052 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 11053 else
e8b05380
PB
11054 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11055 fi
1c00b503
PB
11056else
11057 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
11058fi
11059
11060
11061
e8b05380
PB
11062cat > conftest.c << \EOF
11063#ifdef __GNUC__
11064 gcc_yay;
11065#endif
11066EOF
11067if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11068 have_gcc_for_target=yes
11069else
11070 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11071 have_gcc_for_target=no
11072fi
11073rm conftest.c
11074
11075
11076
11077
11078if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11079 if test -n "$with_build_time_tools"; then
5213506e
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11081$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11082 if test -x $with_build_time_tools/ar; then
11083 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11084 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11086$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11087 else
5213506e
RW
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
d1f8db0c 11090 fi
e8b05380
PB
11091 elif test $build != $host && test $have_gcc_for_target = yes; then
11092 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11093 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11094 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11095 fi
11096fi
3e19841a 11097if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11098 # Extract the first word of "ar", so it can be a program name with args.
11099set dummy ar; ac_word=$2
5213506e
RW
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101$as_echo_n "checking for $ac_word... " >&6; }
11102if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
e8b05380 11104else
1c710c3c
DJ
11105 case $AR_FOR_TARGET in
11106 [\\/]* | ?:[\\/]*)
e8b05380
PB
11107 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11108 ;;
e8b05380 11109 *)
1c710c3c
DJ
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $gcc_cv_tool_dirs
11112do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
5213506e
RW
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11117 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11119 break 2
11120 fi
11121done
5213506e
RW
11122 done
11123IFS=$as_save_IFS
1c710c3c 11124
e8b05380
PB
11125 ;;
11126esac
11127fi
1c710c3c 11128AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11129if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11131$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11132else
5213506e
RW
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134$as_echo "no" >&6; }
4de997d1
PB
11135fi
11136
5213506e 11137
e8b05380
PB
11138fi
11139if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11140
11141
11142if test -n "$AR_FOR_TARGET"; then
11143 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11144elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11145 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11146fi
11147
11148if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11149 for ncn_progname in ar; do
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153$as_echo_n "checking for $ac_word... " >&6; }
11154if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
278a7a38
AO
11156else
11157 if test -n "$AR_FOR_TARGET"; then
11158 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11159else
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
5213506e
RW
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11167 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11169 break 2
11170 fi
11171done
5213506e
RW
11172 done
11173IFS=$as_save_IFS
278a7a38
AO
11174
11175fi
11176fi
11177AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11178if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11180$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11181else
5213506e
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
278a7a38
AO
11184fi
11185
5213506e 11186
278a7a38
AO
11187 done
11188fi
11189
11190if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11191 for ncn_progname in ar; do
5213506e
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11193$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11194 if test -x $with_build_time_tools/${ncn_progname}; then
11195 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11197$as_echo "yes" >&6; }
e8b05380
PB
11198 break
11199 else
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
e8b05380
PB
11202 fi
11203 done
11204fi
11205
11206if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11207 for ncn_progname in ar; do
11208 if test -n "$ncn_target_tool_prefix"; then
11209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11210set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212$as_echo_n "checking for $ac_word... " >&6; }
11213if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
4de997d1 11215else
e8b05380
PB
11216 if test -n "$AR_FOR_TARGET"; then
11217 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11218else
1c710c3c
DJ
11219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220for as_dir in $PATH
11221do
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
5213506e
RW
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11226 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11228 break 2
11229 fi
11230done
5213506e
RW
11231 done
11232IFS=$as_save_IFS
1c710c3c 11233
4de997d1
PB
11234fi
11235fi
1c710c3c 11236AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11237if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11239$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11240else
5213506e
RW
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
4de997d1
PB
11243fi
11244
5213506e 11245
e8b05380
PB
11246 fi
11247 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251$as_echo_n "checking for $ac_word... " >&6; }
11252if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11253 $as_echo_n "(cached) " >&6
e8b05380
PB
11254else
11255 if test -n "$AR_FOR_TARGET"; then
11256 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11257else
1c710c3c
DJ
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
5213506e
RW
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11265 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11267 break 2
11268 fi
11269done
5213506e
RW
11270 done
11271IFS=$as_save_IFS
1c710c3c 11272
e8b05380
PB
11273fi
11274fi
1c710c3c 11275AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11276if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11278$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11279else
5213506e
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
e8b05380 11282fi
1c710c3c 11283
5213506e 11284
e8b05380
PB
11285 fi
11286 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11287 done
11288fi
1c710c3c 11289
e8b05380
PB
11290if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11291 set dummy ar
11292 if test $build = $target ; then
11293 AR_FOR_TARGET="$2"
11294 else
11295 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11296 fi
1c00b503
PB
11297else
11298 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11299fi
11300
d1f8db0c
PB
11301else
11302 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11303fi
11304
11305
11306
11307
11308if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11309 if test -n "$with_build_time_tools"; then
5213506e
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11311$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11312 if test -x $with_build_time_tools/as; then
11313 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11314 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11316$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11317 else
5213506e
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
d1f8db0c 11320 fi
e8b05380
PB
11321 elif test $build != $host && test $have_gcc_for_target = yes; then
11322 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11323 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11324 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11325 fi
11326fi
3e19841a 11327if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11328 # Extract the first word of "as", so it can be a program name with args.
11329set dummy as; ac_word=$2
5213506e
RW
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331$as_echo_n "checking for $ac_word... " >&6; }
11332if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
e8b05380 11334else
1c710c3c
DJ
11335 case $AS_FOR_TARGET in
11336 [\\/]* | ?:[\\/]*)
e8b05380
PB
11337 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11338 ;;
e8b05380 11339 *)
1c710c3c
DJ
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $gcc_cv_tool_dirs
11342do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
5213506e
RW
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11347 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11349 break 2
11350 fi
11351done
5213506e
RW
11352 done
11353IFS=$as_save_IFS
1c710c3c 11354
e8b05380
PB
11355 ;;
11356esac
11357fi
1c710c3c 11358AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11359if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11361$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11362else
5213506e
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
e8b05380
PB
11365fi
11366
5213506e 11367
e8b05380
PB
11368fi
11369if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11370
11371
11372if test -n "$AS_FOR_TARGET"; then
11373 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11374elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11375 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11376fi
11377
11378if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11379 for ncn_progname in as; do
11380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11381set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383$as_echo_n "checking for $ac_word... " >&6; }
11384if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
278a7a38
AO
11386else
11387 if test -n "$AS_FOR_TARGET"; then
11388 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11389else
11390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
5213506e
RW
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11397 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11399 break 2
11400 fi
11401done
5213506e
RW
11402 done
11403IFS=$as_save_IFS
278a7a38
AO
11404
11405fi
11406fi
11407AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11408if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11410$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11411else
5213506e
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
278a7a38
AO
11414fi
11415
5213506e 11416
278a7a38
AO
11417 done
11418fi
11419
11420if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11421 for ncn_progname in as; do
5213506e
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11423$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11424 if test -x $with_build_time_tools/${ncn_progname}; then
11425 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11427$as_echo "yes" >&6; }
e8b05380
PB
11428 break
11429 else
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
e8b05380
PB
11432 fi
11433 done
11434fi
11435
11436if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11437 for ncn_progname in as; do
11438 if test -n "$ncn_target_tool_prefix"; then
11439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11440set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442$as_echo_n "checking for $ac_word... " >&6; }
11443if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
e8b05380
PB
11445else
11446 if test -n "$AS_FOR_TARGET"; then
11447 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11448else
1c710c3c
DJ
11449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450for as_dir in $PATH
11451do
11452 IFS=$as_save_IFS
11453 test -z "$as_dir" && as_dir=.
5213506e
RW
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11456 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11458 break 2
11459 fi
11460done
5213506e
RW
11461 done
11462IFS=$as_save_IFS
1c710c3c 11463
e8b05380
PB
11464fi
11465fi
1c710c3c 11466AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11467if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11469$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11470else
5213506e
RW
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472$as_echo "no" >&6; }
e8b05380
PB
11473fi
11474
5213506e 11475
e8b05380
PB
11476 fi
11477 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11479set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481$as_echo_n "checking for $ac_word... " >&6; }
11482if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
4de997d1 11484else
e8b05380
PB
11485 if test -n "$AS_FOR_TARGET"; then
11486 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11487else
1c710c3c
DJ
11488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489for as_dir in $PATH
11490do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
5213506e
RW
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11495 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11497 break 2
11498 fi
11499done
5213506e
RW
11500 done
11501IFS=$as_save_IFS
1c710c3c 11502
4de997d1
PB
11503fi
11504fi
1c710c3c 11505AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11506if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11508$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11509else
5213506e
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511$as_echo "no" >&6; }
4de997d1 11512fi
1c710c3c 11513
5213506e 11514
e8b05380
PB
11515 fi
11516 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11517 done
11518fi
1c710c3c 11519
e8b05380
PB
11520if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11521 set dummy as
11522 if test $build = $target ; then
11523 AS_FOR_TARGET="$2"
11524 else
11525 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11526 fi
1c00b503
PB
11527else
11528 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11529fi
2693c0b0 11530
d1f8db0c
PB
11531else
11532 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11533fi
11534
e8b05380
PB
11535
11536
11537
11538if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11539 if test -n "$with_build_time_tools"; then
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11541$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11542 if test -x $with_build_time_tools/dlltool; then
11543 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11544 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11546$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11547 else
5213506e
RW
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
d1f8db0c 11550 fi
e8b05380
PB
11551 elif test $build != $host && test $have_gcc_for_target = yes; then
11552 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11553 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11554 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11555 fi
11556fi
3e19841a 11557if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11558 # Extract the first word of "dlltool", so it can be a program name with args.
11559set dummy dlltool; ac_word=$2
5213506e
RW
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
11562if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
4de997d1 11564else
1c710c3c
DJ
11565 case $DLLTOOL_FOR_TARGET in
11566 [\\/]* | ?:[\\/]*)
e8b05380
PB
11567 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11568 ;;
e8b05380 11569 *)
1c710c3c
DJ
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $gcc_cv_tool_dirs
11572do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
5213506e
RW
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11577 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11579 break 2
11580 fi
11581done
5213506e
RW
11582 done
11583IFS=$as_save_IFS
1c710c3c 11584
e8b05380
PB
11585 ;;
11586esac
4de997d1 11587fi
1c710c3c 11588DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11589if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11591$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11592else
5213506e
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594$as_echo "no" >&6; }
4de997d1
PB
11595fi
11596
5213506e 11597
e8b05380
PB
11598fi
11599if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11600
11601
11602if test -n "$DLLTOOL_FOR_TARGET"; then
11603 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11604elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11605 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11606fi
11607
11608if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11609 for ncn_progname in dlltool; do
11610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11611set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613$as_echo_n "checking for $ac_word... " >&6; }
11614if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
278a7a38
AO
11616else
11617 if test -n "$DLLTOOL_FOR_TARGET"; then
11618 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11619else
11620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621for as_dir in $PATH
11622do
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
5213506e
RW
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11627 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11629 break 2
11630 fi
11631done
5213506e
RW
11632 done
11633IFS=$as_save_IFS
278a7a38
AO
11634
11635fi
11636fi
11637DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11638if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11640$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11641else
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
278a7a38
AO
11644fi
11645
5213506e 11646
278a7a38
AO
11647 done
11648fi
11649
11650if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11651 for ncn_progname in dlltool; do
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11653$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11654 if test -x $with_build_time_tools/${ncn_progname}; then
11655 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11657$as_echo "yes" >&6; }
e8b05380
PB
11658 break
11659 else
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
e8b05380
PB
11662 fi
11663 done
11664fi
11665
11666if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11667 for ncn_progname in dlltool; do
11668 if test -n "$ncn_target_tool_prefix"; then
11669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672$as_echo_n "checking for $ac_word... " >&6; }
11673if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
4de997d1 11675else
e8b05380
PB
11676 if test -n "$DLLTOOL_FOR_TARGET"; then
11677 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11678else
1c710c3c
DJ
11679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680for as_dir in $PATH
11681do
11682 IFS=$as_save_IFS
11683 test -z "$as_dir" && as_dir=.
5213506e
RW
11684 for ac_exec_ext in '' $ac_executable_extensions; do
11685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11686 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11688 break 2
11689 fi
11690done
5213506e
RW
11691 done
11692IFS=$as_save_IFS
1c710c3c 11693
4de997d1
PB
11694fi
11695fi
1c710c3c 11696DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11697if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11699$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11700else
5213506e
RW
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702$as_echo "no" >&6; }
4de997d1 11703fi
4de997d1 11704
5213506e 11705
e8b05380
PB
11706 fi
11707 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11709set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
11712if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11713 $as_echo_n "(cached) " >&6
4de997d1 11714else
e8b05380
PB
11715 if test -n "$DLLTOOL_FOR_TARGET"; then
11716 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11717else
1c710c3c
DJ
11718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
5213506e
RW
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11725 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11727 break 2
11728 fi
11729done
5213506e
RW
11730 done
11731IFS=$as_save_IFS
1c710c3c 11732
4de997d1
PB
11733fi
11734fi
1c710c3c 11735DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11736if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11738$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11739else
5213506e
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
4de997d1 11742fi
1c710c3c 11743
5213506e 11744
e8b05380
PB
11745 fi
11746 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11747 done
11748fi
1c710c3c 11749
e8b05380
PB
11750if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11751 set dummy dlltool
11752 if test $build = $target ; then
11753 DLLTOOL_FOR_TARGET="$2"
11754 else
11755 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11756 fi
1c00b503
PB
11757else
11758 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11759fi
11760
d1f8db0c
PB
11761else
11762 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11763fi
11764
4de997d1 11765
e8b05380
PB
11766
11767
11768if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11769 if test -n "$with_build_time_tools"; then
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11771$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11772 if test -x $with_build_time_tools/ld; then
11773 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11774 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11776$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11777 else
5213506e
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
d1f8db0c 11780 fi
e8b05380
PB
11781 elif test $build != $host && test $have_gcc_for_target = yes; then
11782 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11783 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11784 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11785 fi
e8b05380 11786fi
3e19841a 11787if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11788 # Extract the first word of "ld", so it can be a program name with args.
11789set dummy ld; ac_word=$2
5213506e
RW
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791$as_echo_n "checking for $ac_word... " >&6; }
11792if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11793 $as_echo_n "(cached) " >&6
4de997d1 11794else
1c710c3c
DJ
11795 case $LD_FOR_TARGET in
11796 [\\/]* | ?:[\\/]*)
e8b05380
PB
11797 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11798 ;;
e8b05380 11799 *)
1c710c3c
DJ
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $gcc_cv_tool_dirs
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
5213506e
RW
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11807 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11809 break 2
11810 fi
11811done
5213506e
RW
11812 done
11813IFS=$as_save_IFS
1c710c3c 11814
e8b05380
PB
11815 ;;
11816esac
4de997d1 11817fi
1c710c3c 11818LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11819if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11821$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11822else
5213506e
RW
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
4de997d1 11825fi
2693c0b0 11826
5213506e 11827
e8b05380
PB
11828fi
11829if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11830
11831
11832if test -n "$LD_FOR_TARGET"; then
11833 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11834elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11835 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11836fi
11837
11838if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11839 for ncn_progname in ld; do
11840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11841set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843$as_echo_n "checking for $ac_word... " >&6; }
11844if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
278a7a38
AO
11846else
11847 if test -n "$LD_FOR_TARGET"; then
11848 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11849else
11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
5213506e
RW
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11857 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11859 break 2
11860 fi
11861done
5213506e
RW
11862 done
11863IFS=$as_save_IFS
278a7a38
AO
11864
11865fi
11866fi
11867LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11868if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11870$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11871else
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
278a7a38
AO
11874fi
11875
5213506e 11876
278a7a38
AO
11877 done
11878fi
11879
11880if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11881 for ncn_progname in ld; do
5213506e
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11883$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11884 if test -x $with_build_time_tools/${ncn_progname}; then
11885 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887$as_echo "yes" >&6; }
e8b05380
PB
11888 break
11889 else
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
e8b05380
PB
11892 fi
11893 done
ca9f4b81
AO
11894fi
11895
e8b05380
PB
11896if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11897 for ncn_progname in ld; do
11898 if test -n "$ncn_target_tool_prefix"; then
11899 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11900set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
11903if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
ca9f4b81 11905else
4de997d1
PB
11906 if test -n "$LD_FOR_TARGET"; then
11907 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11908else
1c710c3c
DJ
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
5213506e
RW
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11916 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11918 break 2
11919 fi
11920done
5213506e
RW
11921 done
11922IFS=$as_save_IFS
1c710c3c 11923
ca9f4b81
AO
11924fi
11925fi
1c710c3c 11926LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11927if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11929$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11930else
5213506e
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
ca9f4b81
AO
11933fi
11934
5213506e 11935
e8b05380
PB
11936 fi
11937 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11939set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941$as_echo_n "checking for $ac_word... " >&6; }
11942if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
ca9f4b81 11944else
2693c0b0
PB
11945 if test -n "$LD_FOR_TARGET"; then
11946 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11947else
1c710c3c
DJ
11948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949for as_dir in $PATH
11950do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
5213506e
RW
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11955 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11957 break 2
11958 fi
11959done
5213506e
RW
11960 done
11961IFS=$as_save_IFS
1c710c3c 11962
ca9f4b81
AO
11963fi
11964fi
1c710c3c 11965LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11966if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11968$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11969else
5213506e
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
ca9f4b81 11972fi
1c710c3c 11973
5213506e 11974
e8b05380
PB
11975 fi
11976 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11977 done
11978fi
1c710c3c 11979
2693c0b0
PB
11980if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11981 set dummy ld
11982 if test $build = $target ; then
11983 LD_FOR_TARGET="$2"
ca9f4b81 11984 else
2693c0b0 11985 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11986 fi
1c00b503
PB
11987else
11988 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11989fi
11990
d1f8db0c
PB
11991else
11992 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11993fi
11994
11995
11996
11997
11998if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11999 if test -n "$with_build_time_tools"; then
5213506e
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12001$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12002 if test -x $with_build_time_tools/lipo; then
12003 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12004 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12006$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12007 else
5213506e
RW
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009$as_echo "no" >&6; }
d1f8db0c 12010 fi
e8b05380
PB
12011 elif test $build != $host && test $have_gcc_for_target = yes; then
12012 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12013 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12014 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12015 fi
12016fi
278a7a38
AO
12017if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12018 # Extract the first word of "lipo", so it can be a program name with args.
12019set dummy lipo; ac_word=$2
5213506e
RW
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
12022if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
278a7a38
AO
12024else
12025 case $LIPO_FOR_TARGET in
12026 [\\/]* | ?:[\\/]*)
12027 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12028 ;;
12029 *)
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $gcc_cv_tool_dirs
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
5213506e
RW
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12037 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12039 break 2
12040 fi
12041done
5213506e
RW
12042 done
12043IFS=$as_save_IFS
278a7a38
AO
12044
12045 ;;
12046esac
12047fi
12048LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12049if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12051$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12052else
5213506e
RW
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
278a7a38
AO
12055fi
12056
5213506e 12057
278a7a38
AO
12058fi
12059if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12060
12061
12062if test -n "$LIPO_FOR_TARGET"; then
12063 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12064elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12065 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12066fi
12067
12068if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12069 for ncn_progname in lipo; do
12070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
e8b05380 12076else
278a7a38
AO
12077 if test -n "$LIPO_FOR_TARGET"; then
12078 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
1c710c3c
DJ
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
5213506e
RW
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12087 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12089 break 2
12090 fi
12091done
5213506e
RW
12092 done
12093IFS=$as_save_IFS
1c710c3c 12094
e8b05380 12095fi
278a7a38
AO
12096fi
12097LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12098if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12100$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12101else
5213506e
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
e8b05380
PB
12104fi
12105
5213506e 12106
278a7a38 12107 done
e8b05380 12108fi
278a7a38
AO
12109
12110if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12111 for ncn_progname in lipo; do
5213506e
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12113$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12114 if test -x $with_build_time_tools/${ncn_progname}; then
12115 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117$as_echo "yes" >&6; }
e8b05380
PB
12118 break
12119 else
5213506e
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
e8b05380
PB
12122 fi
12123 done
12124fi
12125
12126if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12127 for ncn_progname in lipo; do
12128 if test -n "$ncn_target_tool_prefix"; then
12129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12130set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
12133if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
040b1c5a
GK
12135else
12136 if test -n "$LIPO_FOR_TARGET"; then
12137 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12138else
1c710c3c
DJ
12139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
5213506e
RW
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12146 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12148 break 2
12149 fi
12150done
5213506e
RW
12151 done
12152IFS=$as_save_IFS
1c710c3c 12153
040b1c5a
GK
12154fi
12155fi
1c710c3c 12156LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12157if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12159$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12160else
5213506e
RW
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162$as_echo "no" >&6; }
040b1c5a
GK
12163fi
12164
5213506e 12165
e8b05380
PB
12166 fi
12167 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12169set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171$as_echo_n "checking for $ac_word... " >&6; }
12172if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
040b1c5a
GK
12174else
12175 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12176 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12177else
1c710c3c
DJ
12178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179for as_dir in $PATH
12180do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
5213506e
RW
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12185 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12187 break 2
12188 fi
12189done
5213506e
RW
12190 done
12191IFS=$as_save_IFS
1c710c3c 12192
040b1c5a
GK
12193fi
12194fi
1c710c3c 12195LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12196if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12198$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12199else
5213506e
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201$as_echo "no" >&6; }
040b1c5a 12202fi
1c710c3c 12203
5213506e 12204
e8b05380
PB
12205 fi
12206 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12207 done
12208fi
1c710c3c 12209
040b1c5a
GK
12210if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12211 set dummy lipo
12212 if test $build = $target ; then
12213 LIPO_FOR_TARGET="$2"
12214 else
12215 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12216 fi
1c00b503
PB
12217else
12218 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12219fi
12220
d1f8db0c
PB
12221else
12222 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12223fi
12224
12225
12226
12227
12228if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12229 if test -n "$with_build_time_tools"; then
5213506e
RW
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12231$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12232 if test -x $with_build_time_tools/nm; then
12233 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12234 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12236$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12237 else
5213506e
RW
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239$as_echo "no" >&6; }
d1f8db0c 12240 fi
e8b05380
PB
12241 elif test $build != $host && test $have_gcc_for_target = yes; then
12242 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12243 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12244 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12245 fi
12246fi
3e19841a 12247if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12248 # Extract the first word of "nm", so it can be a program name with args.
12249set dummy nm; ac_word=$2
5213506e
RW
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251$as_echo_n "checking for $ac_word... " >&6; }
12252if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
e8b05380 12254else
1c710c3c
DJ
12255 case $NM_FOR_TARGET in
12256 [\\/]* | ?:[\\/]*)
e8b05380
PB
12257 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12258 ;;
e8b05380 12259 *)
1c710c3c
DJ
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $gcc_cv_tool_dirs
12262do
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
5213506e
RW
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12267 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12269 break 2
12270 fi
12271done
5213506e
RW
12272 done
12273IFS=$as_save_IFS
1c710c3c 12274
e8b05380
PB
12275 ;;
12276esac
12277fi
1c710c3c 12278NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12279if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12281$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12282else
5213506e
RW
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
e8b05380
PB
12285fi
12286
5213506e 12287
e8b05380
PB
12288fi
12289if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12290
12291
12292if test -n "$NM_FOR_TARGET"; then
12293 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12294elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12295 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12296fi
12297
12298if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12299 for ncn_progname in nm; do
12300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12301set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303$as_echo_n "checking for $ac_word... " >&6; }
12304if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
278a7a38
AO
12306else
12307 if test -n "$NM_FOR_TARGET"; then
12308 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
5213506e
RW
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12317 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12319 break 2
12320 fi
12321done
5213506e
RW
12322 done
12323IFS=$as_save_IFS
278a7a38
AO
12324
12325fi
12326fi
12327NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12328if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12330$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12331else
5213506e
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
278a7a38
AO
12334fi
12335
5213506e 12336
278a7a38
AO
12337 done
12338fi
12339
12340if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12341 for ncn_progname in nm; do
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12343$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12344 if test -x $with_build_time_tools/${ncn_progname}; then
12345 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347$as_echo "yes" >&6; }
e8b05380
PB
12348 break
12349 else
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
e8b05380
PB
12352 fi
12353 done
12354fi
12355
12356if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12357 for ncn_progname in nm; do
12358 if test -n "$ncn_target_tool_prefix"; then
12359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362$as_echo_n "checking for $ac_word... " >&6; }
12363if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
ca9f4b81 12365else
4de997d1
PB
12366 if test -n "$NM_FOR_TARGET"; then
12367 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12368else
1c710c3c
DJ
12369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370for as_dir in $PATH
12371do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
5213506e
RW
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12376 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12378 break 2
12379 fi
12380done
5213506e
RW
12381 done
12382IFS=$as_save_IFS
1c710c3c 12383
ca9f4b81
AO
12384fi
12385fi
1c710c3c 12386NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12387if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12389$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12390else
5213506e
RW
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
ca9f4b81
AO
12393fi
12394
5213506e 12395
e8b05380
PB
12396 fi
12397 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12399set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
12402if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
ca9f4b81 12404else
2693c0b0
PB
12405 if test -n "$NM_FOR_TARGET"; then
12406 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12407else
1c710c3c
DJ
12408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
5213506e
RW
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12415 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12417 break 2
12418 fi
12419done
5213506e
RW
12420 done
12421IFS=$as_save_IFS
1c710c3c 12422
ca9f4b81
AO
12423fi
12424fi
1c710c3c 12425NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12426if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12428$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12429else
5213506e
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
ca9f4b81 12432fi
1c710c3c 12433
5213506e 12434
e8b05380
PB
12435 fi
12436 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12437 done
12438fi
1c710c3c 12439
2693c0b0
PB
12440if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12441 set dummy nm
12442 if test $build = $target ; then
12443 NM_FOR_TARGET="$2"
ca9f4b81 12444 else
2693c0b0 12445 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12446 fi
1c00b503
PB
12447else
12448 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12449fi
12450
d1f8db0c
PB
12451else
12452 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12453fi
12454
12455
12456
12457
12458if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12459 if test -n "$with_build_time_tools"; then
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12461$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12462 if test -x $with_build_time_tools/objdump; then
12463 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12464 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12466$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12467 else
5213506e
RW
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
d1f8db0c 12470 fi
e8b05380
PB
12471 elif test $build != $host && test $have_gcc_for_target = yes; then
12472 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12473 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12474 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12475 fi
12476fi
3e19841a 12477if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12478 # Extract the first word of "objdump", so it can be a program name with args.
12479set dummy objdump; ac_word=$2
5213506e
RW
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481$as_echo_n "checking for $ac_word... " >&6; }
12482if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
e8b05380 12484else
1c710c3c
DJ
12485 case $OBJDUMP_FOR_TARGET in
12486 [\\/]* | ?:[\\/]*)
e8b05380
PB
12487 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12488 ;;
e8b05380 12489 *)
1c710c3c
DJ
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $gcc_cv_tool_dirs
12492do
12493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
5213506e
RW
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12497 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12499 break 2
12500 fi
12501done
5213506e
RW
12502 done
12503IFS=$as_save_IFS
1c710c3c 12504
e8b05380
PB
12505 ;;
12506esac
12507fi
1c710c3c 12508OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12509if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12511$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12512else
5213506e
RW
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514$as_echo "no" >&6; }
e8b05380
PB
12515fi
12516
5213506e 12517
e8b05380
PB
12518fi
12519if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12520
12521
12522if test -n "$OBJDUMP_FOR_TARGET"; then
12523 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12524elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12525 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12526fi
12527
12528if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12529 for ncn_progname in objdump; do
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
12534if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
278a7a38
AO
12536else
12537 if test -n "$OBJDUMP_FOR_TARGET"; then
12538 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12539else
12540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541for as_dir in $PATH
12542do
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
5213506e
RW
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12547 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12549 break 2
12550 fi
12551done
5213506e
RW
12552 done
12553IFS=$as_save_IFS
278a7a38
AO
12554
12555fi
12556fi
12557OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12558if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12560$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12561else
5213506e
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
278a7a38
AO
12564fi
12565
5213506e 12566
278a7a38
AO
12567 done
12568fi
12569
12570if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12571 for ncn_progname in objdump; do
5213506e
RW
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12573$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12574 if test -x $with_build_time_tools/${ncn_progname}; then
12575 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12577$as_echo "yes" >&6; }
e8b05380
PB
12578 break
12579 else
5213506e
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
e8b05380
PB
12582 fi
12583 done
12584fi
12585
12586if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12587 for ncn_progname in objdump; do
12588 if test -n "$ncn_target_tool_prefix"; then
12589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12590set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592$as_echo_n "checking for $ac_word... " >&6; }
12593if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
d739199a
DJ
12595else
12596 if test -n "$OBJDUMP_FOR_TARGET"; then
12597 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12598else
1c710c3c
DJ
12599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600for as_dir in $PATH
12601do
12602 IFS=$as_save_IFS
12603 test -z "$as_dir" && as_dir=.
5213506e
RW
12604 for ac_exec_ext in '' $ac_executable_extensions; do
12605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12606 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12608 break 2
12609 fi
12610done
5213506e
RW
12611 done
12612IFS=$as_save_IFS
1c710c3c 12613
d739199a
DJ
12614fi
12615fi
1c710c3c 12616OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12617if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12619$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12620else
5213506e
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622$as_echo "no" >&6; }
d739199a
DJ
12623fi
12624
5213506e 12625
e8b05380
PB
12626 fi
12627 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12629set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631$as_echo_n "checking for $ac_word... " >&6; }
12632if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
d739199a
DJ
12634else
12635 if test -n "$OBJDUMP_FOR_TARGET"; then
12636 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12637else
1c710c3c
DJ
12638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639for as_dir in $PATH
12640do
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
5213506e
RW
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12645 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12647 break 2
12648 fi
12649done
5213506e
RW
12650 done
12651IFS=$as_save_IFS
1c710c3c 12652
d739199a
DJ
12653fi
12654fi
1c710c3c 12655OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12656if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12658$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12659else
5213506e
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
d739199a 12662fi
1c710c3c 12663
5213506e 12664
e8b05380
PB
12665 fi
12666 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12667 done
12668fi
1c710c3c 12669
d739199a
DJ
12670if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12671 set dummy objdump
12672 if test $build = $target ; then
12673 OBJDUMP_FOR_TARGET="$2"
12674 else
12675 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12676 fi
1c00b503
PB
12677else
12678 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12679fi
12680
d1f8db0c
PB
12681else
12682 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12683fi
12684
12685
12686
12687
12688if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12689 if test -n "$with_build_time_tools"; then
5213506e
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12691$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12692 if test -x $with_build_time_tools/ranlib; then
12693 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12694 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12696$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12697 else
5213506e
RW
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699$as_echo "no" >&6; }
d1f8db0c 12700 fi
e8b05380
PB
12701 elif test $build != $host && test $have_gcc_for_target = yes; then
12702 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12703 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12704 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12705 fi
12706fi
3e19841a 12707if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12708 # Extract the first word of "ranlib", so it can be a program name with args.
12709set dummy ranlib; ac_word=$2
5213506e
RW
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711$as_echo_n "checking for $ac_word... " >&6; }
12712if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
e8b05380 12714else
1c710c3c
DJ
12715 case $RANLIB_FOR_TARGET in
12716 [\\/]* | ?:[\\/]*)
e8b05380
PB
12717 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12718 ;;
e8b05380 12719 *)
1c710c3c
DJ
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721for as_dir in $gcc_cv_tool_dirs
12722do
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
5213506e
RW
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12727 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12729 break 2
12730 fi
12731done
5213506e
RW
12732 done
12733IFS=$as_save_IFS
1c710c3c 12734
e8b05380
PB
12735 ;;
12736esac
12737fi
1c710c3c 12738RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12739if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12741$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12742else
5213506e
RW
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744$as_echo "no" >&6; }
e8b05380
PB
12745fi
12746
5213506e 12747
e8b05380
PB
12748fi
12749if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12750
12751
12752if test -n "$RANLIB_FOR_TARGET"; then
12753 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12754elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12755 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12756fi
12757
12758if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12759 for ncn_progname in ranlib; do
12760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12761set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763$as_echo_n "checking for $ac_word... " >&6; }
12764if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
278a7a38
AO
12766else
12767 if test -n "$RANLIB_FOR_TARGET"; then
12768 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12769else
12770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
5213506e
RW
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12777 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12779 break 2
12780 fi
12781done
5213506e
RW
12782 done
12783IFS=$as_save_IFS
278a7a38
AO
12784
12785fi
12786fi
12787RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12788if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12790$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12791else
5213506e
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
278a7a38
AO
12794fi
12795
5213506e 12796
278a7a38
AO
12797 done
12798fi
12799
12800if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12801 for ncn_progname in ranlib; do
5213506e
RW
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12803$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12804 if test -x $with_build_time_tools/${ncn_progname}; then
12805 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807$as_echo "yes" >&6; }
e8b05380
PB
12808 break
12809 else
5213506e
RW
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
e8b05380
PB
12812 fi
12813 done
12814fi
12815
12816if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12817 for ncn_progname in ranlib; do
12818 if test -n "$ncn_target_tool_prefix"; then
12819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12820set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822$as_echo_n "checking for $ac_word... " >&6; }
12823if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
ca9f4b81 12825else
4de997d1
PB
12826 if test -n "$RANLIB_FOR_TARGET"; then
12827 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12828else
1c710c3c
DJ
12829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830for as_dir in $PATH
12831do
12832 IFS=$as_save_IFS
12833 test -z "$as_dir" && as_dir=.
5213506e
RW
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12836 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12838 break 2
12839 fi
12840done
5213506e
RW
12841 done
12842IFS=$as_save_IFS
1c710c3c 12843
ca9f4b81
AO
12844fi
12845fi
1c710c3c 12846RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12847if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12849$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12850else
5213506e
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
ca9f4b81
AO
12853fi
12854
5213506e 12855
e8b05380
PB
12856 fi
12857 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12859set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861$as_echo_n "checking for $ac_word... " >&6; }
12862if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
ca9f4b81 12864else
2693c0b0
PB
12865 if test -n "$RANLIB_FOR_TARGET"; then
12866 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12867else
1c710c3c
DJ
12868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869for as_dir in $PATH
12870do
12871 IFS=$as_save_IFS
12872 test -z "$as_dir" && as_dir=.
5213506e
RW
12873 for ac_exec_ext in '' $ac_executable_extensions; do
12874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12875 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12877 break 2
12878 fi
12879done
5213506e
RW
12880 done
12881IFS=$as_save_IFS
1c710c3c 12882
ca9f4b81
AO
12883fi
12884fi
1c710c3c 12885RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12886if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12888$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12889else
5213506e
RW
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
ca9f4b81 12892fi
1c710c3c 12893
5213506e 12894
e8b05380
PB
12895 fi
12896 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12897 done
12898fi
1c710c3c 12899
e8b05380
PB
12900if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12901 set dummy ranlib
12902 if test $build = $target ; then
12903 RANLIB_FOR_TARGET="$2"
12904 else
12905 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12906 fi
1c00b503
PB
12907else
12908 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12909fi
2693c0b0 12910
d1f8db0c
PB
12911else
12912 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12913fi
12914
e8b05380
PB
12915
12916
12917
12918if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12919 if test -n "$with_build_time_tools"; then
5213506e
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12921$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12922 if test -x $with_build_time_tools/strip; then
12923 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12924 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12926$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12927 else
5213506e
RW
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929$as_echo "no" >&6; }
d1f8db0c 12930 fi
e8b05380
PB
12931 elif test $build != $host && test $have_gcc_for_target = yes; then
12932 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12933 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12934 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12935 fi
12936fi
3e19841a 12937if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12938 # Extract the first word of "strip", so it can be a program name with args.
12939set dummy strip; ac_word=$2
5213506e
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941$as_echo_n "checking for $ac_word... " >&6; }
12942if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
e8b05380 12944else
1c710c3c
DJ
12945 case $STRIP_FOR_TARGET in
12946 [\\/]* | ?:[\\/]*)
e8b05380
PB
12947 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12948 ;;
e8b05380 12949 *)
1c710c3c
DJ
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $gcc_cv_tool_dirs
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
5213506e
RW
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12957 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12959 break 2
12960 fi
12961done
5213506e
RW
12962 done
12963IFS=$as_save_IFS
1c710c3c 12964
e8b05380
PB
12965 ;;
12966esac
12967fi
1c710c3c 12968STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12969if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12971$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12972else
5213506e
RW
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974$as_echo "no" >&6; }
e8b05380
PB
12975fi
12976
5213506e 12977
e8b05380
PB
12978fi
12979if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12980
12981
12982if test -n "$STRIP_FOR_TARGET"; then
12983 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12984elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12985 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12986fi
12987
12988if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12989 for ncn_progname in strip; do
12990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12991set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993$as_echo_n "checking for $ac_word... " >&6; }
12994if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
278a7a38
AO
12996else
12997 if test -n "$STRIP_FOR_TARGET"; then
12998 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12999else
13000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
5213506e
RW
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13007 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13009 break 2
13010 fi
13011done
5213506e
RW
13012 done
13013IFS=$as_save_IFS
278a7a38
AO
13014
13015fi
13016fi
13017STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13018if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13020$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13021else
5213506e
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
278a7a38
AO
13024fi
13025
5213506e 13026
278a7a38
AO
13027 done
13028fi
13029
13030if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13031 for ncn_progname in strip; do
5213506e
RW
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13033$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13034 if test -x $with_build_time_tools/${ncn_progname}; then
13035 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037$as_echo "yes" >&6; }
e8b05380
PB
13038 break
13039 else
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
e8b05380
PB
13042 fi
13043 done
13044fi
13045
13046if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13047 for ncn_progname in strip; do
13048 if test -n "$ncn_target_tool_prefix"; then
13049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052$as_echo_n "checking for $ac_word... " >&6; }
13053if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
af71363e
AS
13055else
13056 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13057 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13058else
13059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060for as_dir in $PATH
13061do
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
5213506e
RW
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13066 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13068 break 2
13069 fi
13070done
5213506e
RW
13071 done
13072IFS=$as_save_IFS
1c710c3c 13073
040b1c5a
GK
13074fi
13075fi
1c710c3c 13076STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13077if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13079$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13080else
5213506e
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082$as_echo "no" >&6; }
040b1c5a
GK
13083fi
13084
5213506e 13085
e8b05380
PB
13086 fi
13087 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13089set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
13092if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
040b1c5a
GK
13094else
13095 if test -n "$STRIP_FOR_TARGET"; then
13096 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13097else
1c710c3c
DJ
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
5213506e
RW
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13105 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13107 break 2
13108 fi
13109done
5213506e
RW
13110 done
13111IFS=$as_save_IFS
1c710c3c 13112
040b1c5a
GK
13113fi
13114fi
1c710c3c 13115STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13116if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13118$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13119else
5213506e
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
040b1c5a 13122fi
1c710c3c 13123
5213506e 13124
e8b05380
PB
13125 fi
13126 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13127 done
13128fi
1c710c3c 13129
040b1c5a
GK
13130if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13131 set dummy strip
13132 if test $build = $target ; then
13133 STRIP_FOR_TARGET="$2"
13134 else
13135 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13136 fi
1c00b503
PB
13137else
13138 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13139fi
13140
d1f8db0c
PB
13141else
13142 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13143fi
13144
13145
13146
13147
13148if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13149 if test -n "$with_build_time_tools"; then
5213506e
RW
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13151$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13152 if test -x $with_build_time_tools/windres; then
13153 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13154 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13156$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13157 else
5213506e
RW
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
d1f8db0c 13160 fi
e8b05380
PB
13161 elif test $build != $host && test $have_gcc_for_target = yes; then
13162 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13163 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13164 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13165 fi
13166fi
3e19841a 13167if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13168 # Extract the first word of "windres", so it can be a program name with args.
13169set dummy windres; ac_word=$2
5213506e
RW
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171$as_echo_n "checking for $ac_word... " >&6; }
13172if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
e8b05380 13174else
1c710c3c
DJ
13175 case $WINDRES_FOR_TARGET in
13176 [\\/]* | ?:[\\/]*)
e8b05380
PB
13177 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13178 ;;
e8b05380 13179 *)
1c710c3c
DJ
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $gcc_cv_tool_dirs
13182do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
5213506e
RW
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13187 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13189 break 2
13190 fi
13191done
5213506e
RW
13192 done
13193IFS=$as_save_IFS
1c710c3c 13194
e8b05380
PB
13195 ;;
13196esac
13197fi
1c710c3c 13198WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13199if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13201$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13202else
5213506e
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
e8b05380
PB
13205fi
13206
5213506e 13207
e8b05380
PB
13208fi
13209if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13210
13211
13212if test -n "$WINDRES_FOR_TARGET"; then
13213 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13214elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13215 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13216fi
13217
13218if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13219 for ncn_progname in windres; do
13220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13221set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
13224if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
278a7a38
AO
13226else
13227 if test -n "$WINDRES_FOR_TARGET"; then
13228 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
5213506e
RW
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13237 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13239 break 2
13240 fi
13241done
5213506e
RW
13242 done
13243IFS=$as_save_IFS
278a7a38
AO
13244
13245fi
13246fi
13247WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13248if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13250$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13251else
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
278a7a38
AO
13254fi
13255
5213506e 13256
278a7a38
AO
13257 done
13258fi
13259
13260if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13261 for ncn_progname in windres; do
5213506e
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13263$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13264 if test -x $with_build_time_tools/${ncn_progname}; then
13265 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13267$as_echo "yes" >&6; }
e8b05380
PB
13268 break
13269 else
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; }
e8b05380
PB
13272 fi
13273 done
13274fi
13275
13276if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13277 for ncn_progname in windres; do
13278 if test -n "$ncn_target_tool_prefix"; then
13279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13280set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282$as_echo_n "checking for $ac_word... " >&6; }
13283if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
ca9f4b81 13285else
4de997d1
PB
13286 if test -n "$WINDRES_FOR_TARGET"; then
13287 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13288else
1c710c3c
DJ
13289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290for as_dir in $PATH
13291do
13292 IFS=$as_save_IFS
13293 test -z "$as_dir" && as_dir=.
5213506e
RW
13294 for ac_exec_ext in '' $ac_executable_extensions; do
13295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13296 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13298 break 2
13299 fi
13300done
5213506e
RW
13301 done
13302IFS=$as_save_IFS
1c710c3c 13303
ca9f4b81
AO
13304fi
13305fi
1c710c3c 13306WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13307if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13309$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13310else
5213506e
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312$as_echo "no" >&6; }
ca9f4b81
AO
13313fi
13314
5213506e 13315
e8b05380
PB
13316 fi
13317 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13319set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321$as_echo_n "checking for $ac_word... " >&6; }
13322if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
ca9f4b81 13324else
2693c0b0
PB
13325 if test -n "$WINDRES_FOR_TARGET"; then
13326 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13327else
1c710c3c
DJ
13328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329for as_dir in $PATH
13330do
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
5213506e
RW
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13335 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13337 break 2
13338 fi
13339done
5213506e
RW
13340 done
13341IFS=$as_save_IFS
1c710c3c 13342
ca9f4b81
AO
13343fi
13344fi
1c710c3c 13345WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13346if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13348$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13349else
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351$as_echo "no" >&6; }
ca9f4b81 13352fi
1c710c3c 13353
5213506e 13354
e8b05380
PB
13355 fi
13356 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13357 done
13358fi
1c710c3c 13359
2693c0b0
PB
13360if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13361 set dummy windres
13362 if test $build = $target ; then
13363 WINDRES_FOR_TARGET="$2"
ca9f4b81 13364 else
2693c0b0 13365 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13366 fi
1c00b503
PB
13367else
13368 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13369fi
13370
d1f8db0c
PB
13371else
13372 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13373fi
13374
4977bab6 13375
901119ae
KT
13376
13377
13378if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13379 if test -n "$with_build_time_tools"; then
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13381$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13382 if test -x $with_build_time_tools/windmc; then
13383 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13384 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13386$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13387 else
5213506e
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
901119ae
KT
13390 fi
13391 elif test $build != $host && test $have_gcc_for_target = yes; then
13392 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13393 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13394 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13395 fi
13396fi
13397if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13398 # Extract the first word of "windmc", so it can be a program name with args.
13399set dummy windmc; ac_word=$2
5213506e
RW
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401$as_echo_n "checking for $ac_word... " >&6; }
13402if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13403 $as_echo_n "(cached) " >&6
901119ae
KT
13404else
13405 case $WINDMC_FOR_TARGET in
13406 [\\/]* | ?:[\\/]*)
13407 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13408 ;;
13409 *)
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $gcc_cv_tool_dirs
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
5213506e
RW
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13417 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13419 break 2
13420 fi
13421done
5213506e
RW
13422 done
13423IFS=$as_save_IFS
901119ae
KT
13424
13425 ;;
13426esac
13427fi
13428WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13429if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13431$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13432else
5213506e
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434$as_echo "no" >&6; }
901119ae
KT
13435fi
13436
5213506e 13437
901119ae
KT
13438fi
13439if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13440
13441
13442if test -n "$WINDMC_FOR_TARGET"; then
13443 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13444elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13445 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13446fi
13447
13448if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13449 for ncn_progname in windmc; do
13450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13451set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453$as_echo_n "checking for $ac_word... " >&6; }
13454if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
901119ae
KT
13456else
13457 if test -n "$WINDMC_FOR_TARGET"; then
13458 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13459else
13460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461for as_dir in $PATH
13462do
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
5213506e
RW
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13467 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13469 break 2
13470 fi
13471done
5213506e
RW
13472 done
13473IFS=$as_save_IFS
901119ae
KT
13474
13475fi
13476fi
13477WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13478if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13480$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13481else
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
901119ae
KT
13484fi
13485
5213506e 13486
901119ae
KT
13487 done
13488fi
13489
13490if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13491 for ncn_progname in windmc; do
5213506e
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13494 if test -x $with_build_time_tools/${ncn_progname}; then
13495 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13497$as_echo "yes" >&6; }
901119ae
KT
13498 break
13499 else
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501$as_echo "no" >&6; }
901119ae
KT
13502 fi
13503 done
13504fi
13505
13506if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13507 for ncn_progname in windmc; do
13508 if test -n "$ncn_target_tool_prefix"; then
13509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512$as_echo_n "checking for $ac_word... " >&6; }
13513if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
901119ae
KT
13515else
13516 if test -n "$WINDMC_FOR_TARGET"; then
13517 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13518else
13519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520for as_dir in $PATH
13521do
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
5213506e
RW
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13526 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13528 break 2
13529 fi
13530done
5213506e
RW
13531 done
13532IFS=$as_save_IFS
901119ae
KT
13533
13534fi
13535fi
13536WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13537if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13539$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13540else
5213506e
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542$as_echo "no" >&6; }
901119ae
KT
13543fi
13544
5213506e 13545
901119ae
KT
13546 fi
13547 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551$as_echo_n "checking for $ac_word... " >&6; }
13552if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
901119ae
KT
13554else
13555 if test -n "$WINDMC_FOR_TARGET"; then
13556 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13557else
13558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559for as_dir in $PATH
13560do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
5213506e
RW
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13565 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13567 break 2
13568 fi
13569done
5213506e
RW
13570 done
13571IFS=$as_save_IFS
901119ae
KT
13572
13573fi
13574fi
13575WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13576if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13578$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13579else
5213506e
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581$as_echo "no" >&6; }
901119ae
KT
13582fi
13583
5213506e 13584
901119ae
KT
13585 fi
13586 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13587 done
13588fi
13589
13590if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13591 set dummy windmc
13592 if test $build = $target ; then
13593 WINDMC_FOR_TARGET="$2"
13594 else
13595 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13596 fi
1c00b503
PB
13597else
13598 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13599fi
13600
13601else
13602 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13603fi
13604
13605
2abefe3d
PB
13606RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13607
5213506e
RW
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13609$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13610if test "x${build}" != "x${host}" ; then
e8b05380
PB
13611 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13612 # We already found the complete path
172e41aa 13613 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13615$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13616 else
13617 # Canadian cross, just use what we found
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13619$as_echo "pre-installed" >&6; }
e8b05380 13620 fi
2abefe3d
PB
13621else
13622 ok=yes
13623 case " ${configdirs} " in
13624 *" binutils "*) ;;
13625 *) ok=no ;;
13626 esac
1c710c3c 13627
2abefe3d
PB
13628 if test $ok = yes; then
13629 # An in-tree tool is available and we can use it
13630 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13632$as_echo "just compiled" >&6; }
e8b05380
PB
13633 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
172e41aa 13635 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13638 elif test "x$target" = "x$host"; then
13639 # We can use an host tool
13640 AR_FOR_TARGET='$(AR)'
5213506e
RW
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13642$as_echo "host tool" >&6; }
2abefe3d
PB
13643 else
13644 # We need a cross tool
5213506e
RW
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646$as_echo "pre-installed" >&6; }
2abefe3d
PB
13647 fi
13648fi
0b0dc272 13649
5213506e
RW
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13651$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13652if test "x${build}" != "x${host}" ; then
e8b05380
PB
13653 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
172e41aa 13655 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13658 else
13659 # Canadian cross, just use what we found
5213506e
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661$as_echo "pre-installed" >&6; }
e8b05380 13662 fi
2abefe3d
PB
13663else
13664 ok=yes
13665 case " ${configdirs} " in
13666 *" gas "*) ;;
13667 *) ok=no ;;
13668 esac
1c710c3c 13669
2abefe3d
PB
13670 if test $ok = yes; then
13671 # An in-tree tool is available and we can use it
13672 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13674$as_echo "just compiled" >&6; }
e8b05380
PB
13675 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13676 # We already found the complete path
172e41aa 13677 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13679$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13680 elif test "x$target" = "x$host"; then
13681 # We can use an host tool
13682 AS_FOR_TARGET='$(AS)'
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13684$as_echo "host tool" >&6; }
2abefe3d
PB
13685 else
13686 # We need a cross tool
5213506e
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688$as_echo "pre-installed" >&6; }
2abefe3d
PB
13689 fi
13690fi
0b0dc272 13691
5213506e
RW
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13693$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13694if test "x${build}" != "x${host}" ; then
e8b05380
PB
13695 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
172e41aa 13697 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13700 else
13701 # Canadian cross, just use what we found
5213506e
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703$as_echo "pre-installed" >&6; }
e8b05380 13704 fi
2abefe3d
PB
13705else
13706 ok=yes
13707 case " ${configdirs} " in
13708 *" gcc "*) ;;
13709 *) ok=no ;;
13710 esac
1c710c3c 13711
2abefe3d
PB
13712 if test $ok = yes; then
13713 # An in-tree tool is available and we can use it
13714 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13716$as_echo "just compiled" >&6; }
e8b05380
PB
13717 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
172e41aa 13719 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13722 elif test "x$target" = "x$host"; then
13723 # We can use an host tool
13724 CC_FOR_TARGET='$(CC)'
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13726$as_echo "host tool" >&6; }
2abefe3d
PB
13727 else
13728 # We need a cross tool
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730$as_echo "pre-installed" >&6; }
2abefe3d
PB
13731 fi
13732fi
0b0dc272 13733
5213506e
RW
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13735$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13736if test "x${build}" != "x${host}" ; then
e8b05380
PB
13737 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
172e41aa 13739 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13742 else
13743 # Canadian cross, just use what we found
5213506e
RW
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745$as_echo "pre-installed" >&6; }
e8b05380 13746 fi
2abefe3d
PB
13747else
13748 ok=yes
13749 case " ${configdirs} " in
13750 *" gcc "*) ;;
13751 *) ok=no ;;
13752 esac
13753 case ,${enable_languages}, in
13754 *,c++,*) ;;
13755 *) ok=no ;;
13756 esac
13757 if test $ok = yes; then
13758 # An in-tree tool is available and we can use it
13759 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13761$as_echo "just compiled" >&6; }
e8b05380
PB
13762 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
172e41aa 13764 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13767 elif test "x$target" = "x$host"; then
13768 # We can use an host tool
13769 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13771$as_echo "host tool" >&6; }
2abefe3d
PB
13772 else
13773 # We need a cross tool
5213506e
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
2abefe3d
PB
13776 fi
13777fi
0b0dc272 13778
5213506e
RW
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13780$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13781if test "x${build}" != "x${host}" ; then
e8b05380
PB
13782 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
172e41aa 13784 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13787 else
13788 # Canadian cross, just use what we found
5213506e
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790$as_echo "pre-installed" >&6; }
e8b05380 13791 fi
2abefe3d
PB
13792else
13793 ok=yes
13794 case " ${configdirs} " in
13795 *" gcc "*) ;;
13796 *) ok=no ;;
13797 esac
13798 case ,${enable_languages}, in
13799 *,c++,*) ;;
13800 *) ok=no ;;
13801 esac
13802 if test $ok = yes; then
13803 # An in-tree tool is available and we can use it
13804 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'
5213506e
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13806$as_echo "just compiled" >&6; }
e8b05380
PB
13807 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13808 # We already found the complete path
172e41aa 13809 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13811$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13812 elif test "x$target" = "x$host"; then
13813 # We can use an host tool
13814 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13816$as_echo "host tool" >&6; }
2abefe3d
PB
13817 else
13818 # We need a cross tool
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13820$as_echo "pre-installed" >&6; }
2abefe3d
PB
13821 fi
13822fi
0b0dc272 13823
5213506e
RW
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13825$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13826if test "x${build}" != "x${host}" ; then
e8b05380
PB
13827 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
172e41aa 13829 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13832 else
13833 # Canadian cross, just use what we found
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13835$as_echo "pre-installed" >&6; }
e8b05380 13836 fi
2abefe3d
PB
13837else
13838 ok=yes
13839 case " ${configdirs} " in
13840 *" binutils "*) ;;
13841 *) ok=no ;;
13842 esac
1c710c3c 13843
2abefe3d
PB
13844 if test $ok = yes; then
13845 # An in-tree tool is available and we can use it
13846 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13848$as_echo "just compiled" >&6; }
e8b05380
PB
13849 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13850 # We already found the complete path
172e41aa 13851 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13853$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13854 elif test "x$target" = "x$host"; then
13855 # We can use an host tool
13856 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13858$as_echo "host tool" >&6; }
2abefe3d
PB
13859 else
13860 # We need a cross tool
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862$as_echo "pre-installed" >&6; }
2abefe3d
PB
13863 fi
13864fi
0b0dc272 13865
5213506e
RW
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13867$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13868if test "x${build}" != "x${host}" ; then
e8b05380
PB
13869 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13870 # We already found the complete path
172e41aa 13871 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13873$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13874 else
13875 # Canadian cross, just use what we found
5213506e
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13877$as_echo "pre-installed" >&6; }
e8b05380 13878 fi
2abefe3d
PB
13879else
13880 ok=yes
13881 case " ${configdirs} " in
13882 *" gcc "*) ;;
13883 *) ok=no ;;
13884 esac
1c710c3c 13885
2abefe3d
PB
13886 if test $ok = yes; then
13887 # An in-tree tool is available and we can use it
13888 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13890$as_echo "just compiled" >&6; }
e8b05380
PB
13891 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13892 # We already found the complete path
172e41aa 13893 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13895$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13896 elif test "x$target" = "x$host"; then
13897 # We can use an host tool
13898 GCC_FOR_TARGET='$()'
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13900$as_echo "host tool" >&6; }
2abefe3d
PB
13901 else
13902 # We need a cross tool
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13904$as_echo "pre-installed" >&6; }
2abefe3d
PB
13905 fi
13906fi
0b0dc272 13907
5213506e
RW
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13909$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13910if test "x${build}" != "x${host}" ; then
e8b05380
PB
13911 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
172e41aa 13913 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13915$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13916 else
13917 # Canadian cross, just use what we found
5213506e
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919$as_echo "pre-installed" >&6; }
e8b05380 13920 fi
2abefe3d
PB
13921else
13922 ok=yes
13923 case " ${configdirs} " in
13924 *" gcc "*) ;;
13925 *) ok=no ;;
13926 esac
13927 case ,${enable_languages}, in
13928 *,java,*) ;;
13929 *) ok=no ;;
13930 esac
13931 if test $ok = yes; then
13932 # An in-tree tool is available and we can use it
13933 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13935$as_echo "just compiled" >&6; }
e8b05380
PB
13936 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
172e41aa 13938 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13941 elif test "x$target" = "x$host"; then
13942 # We can use an host tool
13943 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13945$as_echo "host tool" >&6; }
2abefe3d
PB
13946 else
13947 # We need a cross tool
5213506e
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949$as_echo "pre-installed" >&6; }
2abefe3d
PB
13950 fi
13951fi
0b0dc272 13952
5213506e
RW
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13954$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13955if test "x${build}" != "x${host}" ; then
e8b05380
PB
13956 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
172e41aa 13958 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13961 else
13962 # Canadian cross, just use what we found
5213506e
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964$as_echo "pre-installed" >&6; }
e8b05380 13965 fi
2abefe3d
PB
13966else
13967 ok=yes
13968 case " ${configdirs} " in
13969 *" gcc "*) ;;
13970 *) ok=no ;;
13971 esac
13972 case ,${enable_languages}, in
13973 *,fortran,*) ;;
13974 *) ok=no ;;
13975 esac
13976 if test $ok = yes; then
13977 # An in-tree tool is available and we can use it
13978 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13980$as_echo "just compiled" >&6; }
e8b05380
PB
13981 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
172e41aa 13983 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13986 elif test "x$target" = "x$host"; then
13987 # We can use an host tool
13988 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13990$as_echo "host tool" >&6; }
2abefe3d
PB
13991 else
13992 # We need a cross tool
5213506e
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13994$as_echo "pre-installed" >&6; }
2abefe3d
PB
13995 fi
13996fi
0b0dc272 13997
5213506e
RW
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13999$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14000if test "x${build}" != "x${host}" ; then
e8b05380
PB
14001 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
172e41aa 14003 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14006 else
14007 # Canadian cross, just use what we found
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009$as_echo "pre-installed" >&6; }
e8b05380 14010 fi
2abefe3d
PB
14011else
14012 ok=yes
14013 case " ${configdirs} " in
14014 *" ld "*) ;;
14015 *) ok=no ;;
14016 esac
1c710c3c 14017
2abefe3d
PB
14018 if test $ok = yes; then
14019 # An in-tree tool is available and we can use it
14020 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022$as_echo "just compiled" >&6; }
e8b05380
PB
14023 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
172e41aa 14025 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14028 elif test "x$target" = "x$host"; then
14029 # We can use an host tool
14030 LD_FOR_TARGET='$(LD)'
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032$as_echo "host tool" >&6; }
2abefe3d
PB
14033 else
14034 # We need a cross tool
5213506e
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
2abefe3d
PB
14037 fi
14038fi
0b0dc272 14039
5213506e
RW
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14041$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14042if test "x${build}" != "x${host}" ; then
e8b05380
PB
14043 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
172e41aa 14045 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14048 else
14049 # Canadian cross, just use what we found
5213506e
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051$as_echo "pre-installed" >&6; }
e8b05380 14052 fi
2abefe3d 14053else
e8b05380
PB
14054 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
172e41aa 14056 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14059 elif test "x$target" = "x$host"; then
2abefe3d
PB
14060 # We can use an host tool
14061 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14063$as_echo "host tool" >&6; }
2abefe3d
PB
14064 else
14065 # We need a cross tool
5213506e
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14067$as_echo "pre-installed" >&6; }
2abefe3d
PB
14068 fi
14069fi
0b0dc272 14070
5213506e
RW
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14072$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14073if test "x${build}" != "x${host}" ; then
e8b05380
PB
14074 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14075 # We already found the complete path
172e41aa 14076 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14078$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14079 else
14080 # Canadian cross, just use what we found
5213506e
RW
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14082$as_echo "pre-installed" >&6; }
e8b05380 14083 fi
2abefe3d
PB
14084else
14085 ok=yes
14086 case " ${configdirs} " in
14087 *" binutils "*) ;;
14088 *) ok=no ;;
14089 esac
1c710c3c 14090
2abefe3d
PB
14091 if test $ok = yes; then
14092 # An in-tree tool is available and we can use it
14093 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14095$as_echo "just compiled" >&6; }
e8b05380
PB
14096 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
172e41aa 14098 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14101 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 NM_FOR_TARGET='$(NM)'
5213506e
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105$as_echo "host tool" >&6; }
2abefe3d
PB
14106 else
14107 # We need a cross tool
5213506e
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
2abefe3d
PB
14110 fi
14111fi
0b0dc272 14112
5213506e
RW
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14114$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14115if test "x${build}" != "x${host}" ; then
e8b05380
PB
14116 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
172e41aa 14118 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14121 else
14122 # Canadian cross, just use what we found
5213506e
RW
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124$as_echo "pre-installed" >&6; }
e8b05380 14125 fi
2abefe3d
PB
14126else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" binutils "*) ;;
14130 *) ok=no ;;
14131 esac
1c710c3c 14132
2abefe3d
PB
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137$as_echo "just compiled" >&6; }
e8b05380
PB
14138 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
172e41aa 14140 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14143 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147$as_echo "host tool" >&6; }
2abefe3d
PB
14148 else
14149 # We need a cross tool
5213506e
RW
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151$as_echo "pre-installed" >&6; }
2abefe3d
PB
14152 fi
14153fi
0b0dc272 14154
5213506e
RW
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14156$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14157if test "x${build}" != "x${host}" ; then
e8b05380
PB
14158 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
172e41aa 14160 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14163 else
14164 # Canadian cross, just use what we found
5213506e
RW
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166$as_echo "pre-installed" >&6; }
e8b05380 14167 fi
2abefe3d
PB
14168else
14169 ok=yes
14170 case " ${configdirs} " in
14171 *" binutils "*) ;;
14172 *) ok=no ;;
14173 esac
1c710c3c 14174
2abefe3d
PB
14175 if test $ok = yes; then
14176 # An in-tree tool is available and we can use it
14177 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14179$as_echo "just compiled" >&6; }
e8b05380
PB
14180 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
172e41aa 14182 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14185 elif test "x$target" = "x$host"; then
14186 # We can use an host tool
14187 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14189$as_echo "host tool" >&6; }
2abefe3d
PB
14190 else
14191 # We need a cross tool
5213506e
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193$as_echo "pre-installed" >&6; }
2abefe3d
PB
14194 fi
14195fi
0b0dc272 14196
5213506e
RW
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14198$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14199if test "x${build}" != "x${host}" ; then
e8b05380
PB
14200 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
172e41aa 14202 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14205 else
14206 # Canadian cross, just use what we found
5213506e
RW
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208$as_echo "pre-installed" >&6; }
e8b05380 14209 fi
2abefe3d
PB
14210else
14211 ok=yes
14212 case " ${configdirs} " in
14213 *" binutils "*) ;;
14214 *) ok=no ;;
14215 esac
1c710c3c 14216
2abefe3d
PB
14217 if test $ok = yes; then
14218 # An in-tree tool is available and we can use it
14219 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14221$as_echo "just compiled" >&6; }
e8b05380
PB
14222 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14223 # We already found the complete path
172e41aa 14224 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14227 elif test "x$target" = "x$host"; then
14228 # We can use an host tool
14229 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14231$as_echo "host tool" >&6; }
2abefe3d
PB
14232 else
14233 # We need a cross tool
5213506e
RW
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235$as_echo "pre-installed" >&6; }
2abefe3d
PB
14236 fi
14237fi
0b0dc272 14238
5213506e
RW
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14240$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14241if test "x${build}" != "x${host}" ; then
e8b05380
PB
14242 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14243 # We already found the complete path
172e41aa 14244 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14247 else
14248 # Canadian cross, just use what we found
5213506e
RW
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14250$as_echo "pre-installed" >&6; }
e8b05380 14251 fi
2abefe3d
PB
14252else
14253 ok=yes
14254 case " ${configdirs} " in
14255 *" binutils "*) ;;
14256 *) ok=no ;;
14257 esac
1c710c3c 14258
2abefe3d
PB
14259 if test $ok = yes; then
14260 # An in-tree tool is available and we can use it
14261 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14263$as_echo "just compiled" >&6; }
e8b05380
PB
14264 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14265 # We already found the complete path
172e41aa 14266 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14269 elif test "x$target" = "x$host"; then
14270 # We can use an host tool
14271 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14273$as_echo "host tool" >&6; }
2abefe3d
PB
14274 else
14275 # We need a cross tool
5213506e
RW
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277$as_echo "pre-installed" >&6; }
2abefe3d 14278 fi
671aa708 14279fi
be912515 14280
5213506e
RW
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14282$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14283if test "x${build}" != "x${host}" ; then
14284 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14285 # We already found the complete path
14286 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14288$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14289 else
14290 # Canadian cross, just use what we found
5213506e
RW
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292$as_echo "pre-installed" >&6; }
901119ae
KT
14293 fi
14294else
14295 ok=yes
14296 case " ${configdirs} " in
14297 *" binutils "*) ;;
14298 *) ok=no ;;
14299 esac
14300
14301 if test $ok = yes; then
14302 # An in-tree tool is available and we can use it
14303 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305$as_echo "just compiled" >&6; }
901119ae
KT
14306 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
14308 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14311 elif test "x$target" = "x$host"; then
14312 # We can use an host tool
14313 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315$as_echo "host tool" >&6; }
901119ae
KT
14316 else
14317 # We need a cross tool
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319$as_echo "pre-installed" >&6; }
901119ae
KT
14320 fi
14321fi
14322
be912515
NN
14323
14324
2abefe3d 14325
0b0dc272 14326
671aa708
NN
14327# Certain tools may need extra flags.
14328AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14329RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14330NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14331
2abefe3d
PB
14332# When building target libraries, except in a Canadian cross, we use
14333# the same toolchain as the compiler we just built.
14334COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14335COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14336COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14337if test $host = $build; then
14338 case " $configdirs " in
14339 *" gcc "*)
14340 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14341 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14342 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14343 ;;
14344 esac
14345fi
14346
14347
14348
14349
14350
5213506e
RW
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14352$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14353# Check whether --enable-maintainer-mode was given.
14354if test "${enable_maintainer_mode+set}" = set; then :
14355 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14356else
14357 USE_MAINTAINER_MODE=no
5213506e
RW
14358fi
14359
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14361$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14362
14363
14364if test "$USE_MAINTAINER_MODE" = yes; then
14365 MAINTAINER_MODE_TRUE=
14366 MAINTAINER_MODE_FALSE='#'
14367else
14368 MAINTAINER_MODE_TRUE='#'
14369 MAINTAINER_MODE_FALSE=
1c710c3c 14370fi
ee03dc5e
AO
14371MAINT=$MAINTAINER_MODE_TRUE
14372
2805b53a
NN
14373# ---------------------
14374# GCC bootstrap support
14375# ---------------------
14376
14377# Stage specific cflags for build.
14378stage1_cflags="-g"
14379case $build in
14380 vax-*-*)
14381 case ${GCC} in
14382 yes) stage1_cflags="-g -Wa,-J" ;;
14383 *) stage1_cflags="-g -J" ;;
14384 esac ;;
2805b53a
NN
14385esac
14386
0b50988a 14387# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14388if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14389 saved_CFLAGS="$CFLAGS"
14390
14391 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14392 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14394$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14396/* end confdefs.h. */
14397
9cc1244e
JJ
14398#if (__GNUC__ < 3) \
14399 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14400 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14401#error http://gcc.gnu.org/PR29382
14402#endif
14403
1c710c3c
DJ
14404int
14405main ()
14406{
14407
14408 ;
14409 return 0;
14410}
14411_ACEOF
5213506e
RW
14412if ac_fn_c_try_compile "$LINENO"; then :
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14414$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14415else
5213506e
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
1c710c3c 14418fi
5213506e 14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14420
14421 CFLAGS="$saved_CFLAGS"
14422fi
14423
14424
2805b53a 14425
8efea775 14426# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14427# Check whether --enable-stage1-checking was given.
14428if test "${enable_stage1_checking+set}" = set; then :
14429 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14430else
e643dc23 14431 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14432 stage1_checking=--enable-checking=yes,types
8efea775 14433else
e643dc23 14434 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14435fi
5213506e 14436fi
8efea775
PB
14437
14438
2aeb72e9 14439
5213506e
RW
14440# Enable -Werror in bootstrap stage2 and later.
14441# Check whether --enable-werror was given.
14442if test "${enable_werror+set}" = set; then :
14443 enableval=$enable_werror;
2805b53a 14444else
416cfb5e 14445 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14446 enable_werror=yes
88fceb68
PB
14447else
14448 enable_werror=no
14449fi
5213506e
RW
14450fi
14451
09a9c095
NN
14452case ${enable_werror} in
14453 yes) stage2_werror_flag="--enable-werror-always" ;;
14454 *) stage2_werror_flag="" ;;
2805b53a
NN
14455esac
14456
14457
f2689b09
SE
14458# Specify what files to not compare during bootstrap.
14459
14460compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14461case "$target" in
14462 hppa*64*-*-hpux*) ;;
14463 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14464esac
f61428ed
AO
14465case " $configdirs " in
14466*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14467esac
f2689b09
SE
14468
14469
5213506e
RW
14470ac_config_files="$ac_config_files Makefile"
14471
1c710c3c 14472cat >confcache <<\_ACEOF
671aa708
NN
14473# This file is a shell script that caches the results of configure
14474# tests run on this system so they can be shared between configure
1c710c3c
DJ
14475# scripts and configure runs, see configure's option --config-cache.
14476# It is not useful on other systems. If it contains results you don't
14477# want to keep, you may remove or edit it.
671aa708 14478#
1c710c3c
DJ
14479# config.status only pays attention to the cache file if you give it
14480# the --recheck option to rerun configure.
671aa708 14481#
1c710c3c
DJ
14482# `ac_cv_env_foo' variables (set or unset) will be overridden when
14483# loading this file, other *unset* `ac_cv_foo' will be assigned the
14484# following values.
14485
14486_ACEOF
14487
671aa708
NN
14488# The following way of writing the cache mishandles newlines in values,
14489# but we know of no workaround that is simple, portable, and efficient.
5213506e 14490# So, we kill variables containing newlines.
671aa708
NN
14491# Ultrix sh set writes to stderr and can't be redirected directly,
14492# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14493(
14494 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14495 eval ac_val=\$$ac_var
14496 case $ac_val in #(
14497 *${as_nl}*)
14498 case $ac_var in #(
14499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14500$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14501 esac
14502 case $ac_var in #(
14503 _ | IFS | as_nl) ;; #(
14504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14505 *) { eval $ac_var=; unset $ac_var;} ;;
14506 esac ;;
14507 esac
14508 done
14509
1c710c3c 14510 (set) 2>&1 |
5213506e
RW
14511 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14512 *${as_nl}ac_space=\ *)
14513 # `set' does not quote correctly, so add quotes: double-quote
14514 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14515 sed -n \
14516 "s/'/'\\\\''/g;
14517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14518 ;; #(
1c710c3c
DJ
14519 *)
14520 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14522 ;;
5213506e
RW
14523 esac |
14524 sort
14525) |
1c710c3c 14526 sed '
5213506e 14527 /^ac_cv_env_/b end
1c710c3c 14528 t clear
5213506e 14529 :clear
1c710c3c
DJ
14530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14531 t end
5213506e
RW
14532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14533 :end' >>confcache
14534if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14535 if test -w "$cache_file"; then
14536 test "x$cache_file" != "x/dev/null" &&
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14538$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14539 cat confcache >$cache_file
671aa708 14540 else
5213506e
RW
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14542$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14543 fi
4977bab6 14544fi
671aa708 14545rm -f confcache
79c06341 14546
671aa708
NN
14547test "x$prefix" = xNONE && prefix=$ac_default_prefix
14548# Let make expand exec_prefix.
14549test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14550
671aa708
NN
14551# Transform confdefs.h into DEFS.
14552# Protect against shell expansion while executing Makefile rules.
14553# Protect against Makefile macro expansion.
1c710c3c
DJ
14554#
14555# If the first sed substitution is executed (which looks for macros that
5213506e 14556# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14557# look for a macro that doesn't take arguments.
5213506e
RW
14558ac_script='
14559:mline
14560/\\$/{
14561 N
14562 s,\\\n,,
14563 b mline
14564}
1c710c3c 14565t clear
5213506e
RW
14566:clear
14567s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14568t quote
5213506e 14569s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14570t quote
5213506e
RW
14571b any
14572:quote
14573s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14574s/\[/\\&/g
14575s/\]/\\&/g
14576s/\$/$$/g
14577H
14578:any
14579${
14580 g
14581 s/^\n//
14582 s/\n/ /g
14583 p
14584}
14585'
14586DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14587
14588
14589ac_libobjs=
14590ac_ltlibobjs=
14591for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14592 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14593 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14594 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14596 # will be set to the directory where LIBOBJS objects are built.
14597 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14598 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14599done
14600LIBOBJS=$ac_libobjs
fb0103e5 14601
1c710c3c 14602LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14603
af71363e 14604
1c710c3c
DJ
14605
14606: ${CONFIG_STATUS=./config.status}
5213506e 14607ac_write_fail=0
1c710c3c
DJ
14608ac_clean_files_save=$ac_clean_files
14609ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14611$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14612as_write_fail=0
14613cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14614#! $SHELL
14615# Generated by $as_me.
671aa708 14616# Run this file to recreate the current configuration.
671aa708 14617# Compiler output produced by configure, useful for debugging
1c710c3c 14618# configure, is in config.log if it exists.
0b0dc272 14619
1c710c3c
DJ
14620debug=false
14621ac_cs_recheck=false
14622ac_cs_silent=false
1c710c3c 14623
5213506e
RW
14624SHELL=\${CONFIG_SHELL-$SHELL}
14625export SHELL
14626_ASEOF
14627cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14628## -------------------- ##
14629## M4sh Initialization. ##
14630## -------------------- ##
14631
14632# Be more Bourne compatible
14633DUALCASE=1; export DUALCASE # for MKS sh
14634if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14635 emulate sh
14636 NULLCMD=:
5213506e 14637 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14638 # is contrary to our usage. Disable this feature.
14639 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14640 setopt NO_GLOB_SUBST
14641else
14642 case `(set -o) 2>/dev/null` in #(
14643 *posix*) :
14644 set -o posix ;; #(
14645 *) :
14646 ;;
14647esac
1c710c3c 14648fi
1c710c3c 14649
5213506e
RW
14650
14651as_nl='
14652'
14653export as_nl
14654# Printing a long string crashes Solaris 7 /usr/bin/printf.
14655as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14656as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14657as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14658# Prefer a ksh shell builtin over an external printf program on Solaris,
14659# but without wasting forks for bash or zsh.
14660if test -z "$BASH_VERSION$ZSH_VERSION" \
14661 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14662 as_echo='print -r --'
14663 as_echo_n='print -rn --'
14664elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14665 as_echo='printf %s\n'
14666 as_echo_n='printf %s'
14667else
14668 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14669 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14670 as_echo_n='/usr/ucb/echo -n'
14671 else
14672 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14673 as_echo_n_body='eval
14674 arg=$1;
14675 case $arg in #(
14676 *"$as_nl"*)
14677 expr "X$arg" : "X\\(.*\\)$as_nl";
14678 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14679 esac;
14680 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14681 '
14682 export as_echo_n_body
14683 as_echo_n='sh -c $as_echo_n_body as_echo'
14684 fi
14685 export as_echo_body
14686 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14687fi
14688
5213506e
RW
14689# The user is always right.
14690if test "${PATH_SEPARATOR+set}" != set; then
14691 PATH_SEPARATOR=:
14692 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14693 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14694 PATH_SEPARATOR=';'
14695 }
14696fi
14697
14698
14699# IFS
14700# We need space, tab and new line, in precisely that order. Quoting is
14701# there to prevent editors from complaining about space-tab.
14702# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14703# splitting by setting IFS to empty value.)
14704IFS=" "" $as_nl"
14705
14706# Find who we are. Look in the path if we contain no directory separator.
14707case $0 in #((
14708 *[\\/]* ) as_myself=$0 ;;
14709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710for as_dir in $PATH
14711do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14715 done
14716IFS=$as_save_IFS
14717
14718 ;;
14719esac
14720# We did not find ourselves, most probably we were run as `sh COMMAND'
14721# in which case we are not to be found in the path.
14722if test "x$as_myself" = x; then
14723 as_myself=$0
14724fi
14725if test ! -f "$as_myself"; then
14726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14727 exit 1
14728fi
1c710c3c 14729
5213506e
RW
14730# Unset variables that we do not need and which cause bugs (e.g. in
14731# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14732# suppresses any "Segmentation fault" message there. '((' could
14733# trigger a bug in pdksh 5.2.14.
14734for as_var in BASH_ENV ENV MAIL MAILPATH
14735do eval test x\${$as_var+set} = xset \
14736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14737done
1c710c3c
DJ
14738PS1='$ '
14739PS2='> '
14740PS4='+ '
14741
14742# NLS nuisances.
5213506e
RW
14743LC_ALL=C
14744export LC_ALL
14745LANGUAGE=C
14746export LANGUAGE
14747
14748# CDPATH.
14749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14750
14751
14752# as_fn_error ERROR [LINENO LOG_FD]
14753# ---------------------------------
14754# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14755# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14756# script with status $?, using 1 if that was 0.
14757as_fn_error ()
14758{
14759 as_status=$?; test $as_status -eq 0 && as_status=1
14760 if test "$3"; then
14761 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14762 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14763 fi
5213506e
RW
14764 $as_echo "$as_me: error: $1" >&2
14765 as_fn_exit $as_status
14766} # as_fn_error
14767
14768
14769# as_fn_set_status STATUS
14770# -----------------------
14771# Set $? to STATUS, without forking.
14772as_fn_set_status ()
14773{
14774 return $1
14775} # as_fn_set_status
14776
14777# as_fn_exit STATUS
14778# -----------------
14779# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14780as_fn_exit ()
14781{
14782 set +e
14783 as_fn_set_status $1
14784 exit $1
14785} # as_fn_exit
14786
14787# as_fn_unset VAR
14788# ---------------
14789# Portably unset VAR.
14790as_fn_unset ()
14791{
14792 { eval $1=; unset $1;}
14793}
14794as_unset=as_fn_unset
14795# as_fn_append VAR VALUE
14796# ----------------------
14797# Append the text in VALUE to the end of the definition contained in VAR. Take
14798# advantage of any shell optimizations that allow amortized linear growth over
14799# repeated appends, instead of the typical quadratic growth present in naive
14800# implementations.
14801if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14802 eval 'as_fn_append ()
14803 {
14804 eval $1+=\$2
14805 }'
14806else
14807 as_fn_append ()
14808 {
14809 eval $1=\$$1\$2
14810 }
14811fi # as_fn_append
14812
14813# as_fn_arith ARG...
14814# ------------------
14815# Perform arithmetic evaluation on the ARGs, and store the result in the
14816# global $as_val. Take advantage of shells that can avoid forks. The arguments
14817# must be portable across $(()) and expr.
14818if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14819 eval 'as_fn_arith ()
14820 {
14821 as_val=$(( $* ))
14822 }'
14823else
14824 as_fn_arith ()
14825 {
14826 as_val=`expr "$@" || test $? -eq 1`
14827 }
14828fi # as_fn_arith
14829
1c710c3c 14830
5213506e
RW
14831if expr a : '\(a\)' >/dev/null 2>&1 &&
14832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14833 as_expr=expr
14834else
14835 as_expr=false
14836fi
14837
5213506e 14838if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14839 as_basename=basename
14840else
14841 as_basename=false
14842fi
14843
5213506e
RW
14844if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14845 as_dirname=dirname
14846else
14847 as_dirname=false
14848fi
1c710c3c 14849
5213506e 14850as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14851$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14852 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14853 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14854$as_echo X/"$0" |
14855 sed '/^.*\/\([^/][^/]*\)\/*$/{
14856 s//\1/
14857 q
14858 }
14859 /^X\/\(\/\/\)$/{
14860 s//\1/
14861 q
14862 }
14863 /^X\/\(\/\).*/{
14864 s//\1/
14865 q
14866 }
14867 s/.*/./; q'`
2aeb72e9 14868
2aeb72e9
DD
14869# Avoid depending upon Character Ranges.
14870as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14871as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14872as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14873as_cr_digits='0123456789'
14874as_cr_alnum=$as_cr_Letters$as_cr_digits
14875
5213506e
RW
14876ECHO_C= ECHO_N= ECHO_T=
14877case `echo -n x` in #(((((
14878-n*)
14879 case `echo 'xy\c'` in
14880 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14881 xy) ECHO_C='\c';;
14882 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14883 ECHO_T=' ';;
14884 esac;;
14885*)
14886 ECHO_N='-n';;
1c710c3c
DJ
14887esac
14888
5213506e
RW
14889rm -f conf$$ conf$$.exe conf$$.file
14890if test -d conf$$.dir; then
14891 rm -f conf$$.dir/conf$$.file
1c710c3c 14892else
5213506e
RW
14893 rm -f conf$$.dir
14894 mkdir conf$$.dir 2>/dev/null
1c710c3c 14895fi
5213506e
RW
14896if (echo >conf$$.file) 2>/dev/null; then
14897 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14898 as_ln_s='ln -s'
5213506e
RW
14899 # ... but there are two gotchas:
14900 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14901 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14902 # In both cases, we have to default to `cp -p'.
14903 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14904 as_ln_s='cp -p'
14905 elif ln conf$$.file conf$$ 2>/dev/null; then
14906 as_ln_s=ln
14907 else
14908 as_ln_s='cp -p'
2aeb72e9 14909 fi
1c710c3c
DJ
14910else
14911 as_ln_s='cp -p'
14912fi
5213506e
RW
14913rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14914rmdir conf$$.dir 2>/dev/null
14915
14916
14917# as_fn_mkdir_p
14918# -------------
14919# Create "$as_dir" as a directory, including parents if necessary.
14920as_fn_mkdir_p ()
14921{
14922
14923 case $as_dir in #(
14924 -*) as_dir=./$as_dir;;
14925 esac
14926 test -d "$as_dir" || eval $as_mkdir_p || {
14927 as_dirs=
14928 while :; do
14929 case $as_dir in #(
14930 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14931 *) as_qdir=$as_dir;;
14932 esac
14933 as_dirs="'$as_qdir' $as_dirs"
14934 as_dir=`$as_dirname -- "$as_dir" ||
14935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936 X"$as_dir" : 'X\(//\)[^/]' \| \
14937 X"$as_dir" : 'X\(//\)$' \| \
14938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14939$as_echo X"$as_dir" |
14940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\/\)[^/].*/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\/\)$/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\).*/{
14953 s//\1/
14954 q
14955 }
14956 s/.*/./; q'`
14957 test -d "$as_dir" && break
14958 done
14959 test -z "$as_dirs" || eval "mkdir $as_dirs"
14960 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14961
1c710c3c 14962
5213506e 14963} # as_fn_mkdir_p
1c710c3c 14964if mkdir -p . 2>/dev/null; then
5213506e 14965 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14966else
14967 test -d ./-p && rmdir ./-p
14968 as_mkdir_p=false
14969fi
14970
5213506e
RW
14971if test -x / >/dev/null 2>&1; then
14972 as_test_x='test -x'
14973else
14974 if ls -dL / >/dev/null 2>&1; then
14975 as_ls_L_option=L
14976 else
14977 as_ls_L_option=
14978 fi
14979 as_test_x='
14980 eval sh -c '\''
14981 if test -d "$1"; then
14982 test -d "$1/.";
14983 else
14984 case $1 in #(
14985 -*)set "./$1";;
14986 esac;
14987 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14988 ???[sx]*):;;*)false;;esac;fi
14989 '\'' sh
14990 '
14991fi
14992as_executable_p=$as_test_x
1c710c3c
DJ
14993
14994# Sed expression to map a string onto a valid CPP name.
14995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14996
14997# Sed expression to map a string onto a valid variable name.
14998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14999
15000
1c710c3c 15001exec 6>&1
5213506e
RW
15002## ----------------------------------- ##
15003## Main body of $CONFIG_STATUS script. ##
15004## ----------------------------------- ##
15005_ASEOF
15006test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15007
15008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15009# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15010# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15011# values after options handling.
15012ac_log="
1c710c3c 15013This file was extended by $as_me, which was
5213506e 15014generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15015
15016 CONFIG_FILES = $CONFIG_FILES
15017 CONFIG_HEADERS = $CONFIG_HEADERS
15018 CONFIG_LINKS = $CONFIG_LINKS
15019 CONFIG_COMMANDS = $CONFIG_COMMANDS
15020 $ $0 $@
15021
5213506e
RW
15022on `(hostname || uname -n) 2>/dev/null | sed 1q`
15023"
15024
1c710c3c
DJ
15025_ACEOF
15026
5213506e
RW
15027case $ac_config_files in *"
15028"*) set x $ac_config_files; shift; ac_config_files=$*;;
15029esac
1c710c3c 15030
2aeb72e9 15031
2aeb72e9 15032
5213506e
RW
15033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15034# Files that config.status was made for.
15035config_files="$ac_config_files"
1c710c3c 15036
5213506e 15037_ACEOF
2aeb72e9 15038
5213506e 15039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15040ac_cs_usage="\
5213506e
RW
15041\`$as_me' instantiates files and other configuration actions
15042from templates according to the current configuration. Unless the files
15043and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15044
5213506e 15045Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15046
15047 -h, --help print this help, then exit
5213506e
RW
15048 -V, --version print version number and configuration settings, then exit
15049 -q, --quiet, --silent
15050 do not print progress messages
1c710c3c
DJ
15051 -d, --debug don't remove temporary files
15052 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15053 --file=FILE[:TEMPLATE]
15054 instantiate the configuration file FILE
1c710c3c
DJ
15055
15056Configuration files:
15057$config_files
15058
5213506e 15059Report bugs to the package provider."
2aeb72e9 15060
5213506e
RW
15061_ACEOF
15062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15063ac_cs_version="\\
15064config.status
5213506e
RW
15065configured by $0, generated by GNU Autoconf 2.64,
15066 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15067
5213506e 15068Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15069This config.status script is free software; the Free Software Foundation
15070gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15071
15072ac_pwd='$ac_pwd'
15073srcdir='$srcdir'
15074INSTALL='$INSTALL'
87264276 15075AWK='$AWK'
5213506e 15076test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15077_ACEOF
15078
5213506e
RW
15079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15080# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15081ac_need_defaults=:
15082while test $# != 0
a4b9e93e 15083do
1c710c3c
DJ
15084 case $1 in
15085 --*=*)
5213506e
RW
15086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15088 ac_shift=:
15089 ;;
5213506e 15090 *)
1c710c3c
DJ
15091 ac_option=$1
15092 ac_optarg=$2
15093 ac_shift=shift
15094 ;;
1c710c3c
DJ
15095 esac
15096
15097 case $ac_option in
15098 # Handling of the options.
671aa708 15099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15100 ac_cs_recheck=: ;;
5213506e
RW
15101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15102 $as_echo "$ac_cs_version"; exit ;;
15103 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15104 debug=: ;;
15105 --file | --fil | --fi | --f )
15106 $ac_shift
5213506e
RW
15107 case $ac_optarg in
15108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15109 esac
15110 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15111 ac_need_defaults=false;;
5213506e
RW
15112 --he | --h | --help | --hel | -h )
15113 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15116 ac_cs_silent=: ;;
15117
15118 # This is an error.
5213506e
RW
15119 -*) as_fn_error "unrecognized option: \`$1'
15120Try \`$0 --help' for more information." ;;
1c710c3c 15121
5213506e
RW
15122 *) as_fn_append ac_config_targets " $1"
15123 ac_need_defaults=false ;;
1c710c3c 15124
0b0dc272 15125 esac
1c710c3c 15126 shift
0b0dc272
AM
15127done
15128
1c710c3c 15129ac_configure_extra_args=
0b0dc272 15130
1c710c3c
DJ
15131if $ac_cs_silent; then
15132 exec 6>/dev/null
15133 ac_configure_extra_args="$ac_configure_extra_args --silent"
15134fi
0b0dc272 15135
1c710c3c 15136_ACEOF
5213506e 15137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15138if \$ac_cs_recheck; then
5213506e
RW
15139 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15140 shift
15141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15142 CONFIG_SHELL='$SHELL'
15143 export CONFIG_SHELL
15144 exec "\$@"
1c710c3c
DJ
15145fi
15146
15147_ACEOF
5213506e
RW
15148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149exec 5>>config.log
15150{
15151 echo
15152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15153## Running $as_me. ##
15154_ASBOX
15155 $as_echo "$ac_log"
15156} >&5
1c710c3c 15157
5213506e
RW
15158_ACEOF
15159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15160#
15161# INIT-COMMANDS
15162#
15163extrasub_build="$extrasub_build"
15164 extrasub_host="$extrasub_host"
15165 extrasub_target="$extrasub_target"
15166
5213506e 15167_ACEOF
1c710c3c 15168
5213506e 15169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15170
5213506e 15171# Handling of arguments.
1c710c3c
DJ
15172for ac_config_target in $ac_config_targets
15173do
5213506e
RW
15174 case $ac_config_target in
15175 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15176
15177 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15178 esac
15179done
15180
5213506e 15181
1c710c3c
DJ
15182# If the user did not use the arguments to specify the items to instantiate,
15183# then the envvar interface is used. Set only those that are not.
15184# We use the long form for the default assignment because of an extremely
15185# bizarre bug on SunOS 4.1.3.
15186if $ac_need_defaults; then
15187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15188fi
15189
15190# Have a temporary directory for convenience. Make it in the build tree
5213506e 15191# simply because there is no reason against having it here, and in addition,
1c710c3c 15192# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15193# Hook for its removal unless debugging.
15194# Note that there is a small window in which the directory will not be cleaned:
15195# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15196$debug ||
15197{
5213506e
RW
15198 tmp=
15199 trap 'exit_status=$?
15200 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15201' 0
15202 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15203}
1c710c3c
DJ
15204# Create a (secure) tmp directory for tmp files.
15205
15206{
5213506e 15207 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15208 test -n "$tmp" && test -d "$tmp"
15209} ||
15210{
5213506e
RW
15211 tmp=./conf$$-$RANDOM
15212 (umask 077 && mkdir "$tmp")
15213} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15214
15215# Set up the scripts for CONFIG_FILES section.
15216# No need to generate them if there are no CONFIG_FILES.
15217# This happens for instance with `./config.status config.h'.
15218if test -n "$CONFIG_FILES"; then
15219
15220if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15221 ac_cs_awk_getline=:
15222 ac_cs_awk_pipe_init=
15223 ac_cs_awk_read_file='
15224 while ((getline aline < (F[key])) > 0)
15225 print(aline)
15226 close(F[key])'
15227 ac_cs_awk_pipe_fini=
15228else
15229 ac_cs_awk_getline=false
15230 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15231 ac_cs_awk_read_file='
15232 print "|#_!!_#|"
15233 print "cat " F[key] " &&"
15234 '$ac_cs_awk_pipe_init
15235 # The final `:' finishes the AND list.
15236 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15237fi
15238ac_cr=`echo X | tr X '\015'`
15239# On cygwin, bash can eat \r inside `` if the user requested igncr.
15240# But we know of no other shell where ac_cr would be empty at this
15241# point, so we can use a bashism as a fallback.
15242if test "x$ac_cr" = x; then
15243 eval ac_cr=\$\'\\r\'
15244fi
15245ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15246if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15247 ac_cs_awk_cr='\r'
15248else
15249 ac_cs_awk_cr=$ac_cr
15250fi
15251
15252echo 'BEGIN {' >"$tmp/subs1.awk" &&
15253_ACEOF
15254
15255# Create commands to substitute file output variables.
1c710c3c 15256{
5213506e
RW
15257 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15258 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15259 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15260 echo "_ACAWK" &&
15261 echo "_ACEOF"
15262} >conf$$files.sh &&
15263. ./conf$$files.sh ||
15264 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15265rm -f conf$$files.sh
1c710c3c 15266
5213506e
RW
15267{
15268 echo "cat >conf$$subs.awk <<_ACEOF" &&
15269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15270 echo "_ACEOF"
15271} >conf$$subs.sh ||
15272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15273ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15274ac_delim='%!_!# '
15275for ac_last_try in false false false false false :; do
15276 . ./conf$$subs.sh ||
15277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15278
15279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15280 if test $ac_delim_n = $ac_delim_num; then
15281 break
15282 elif $ac_last_try; then
15283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15284 else
15285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15286 fi
15287done
15288rm -f conf$$subs.sh
15289
15290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15292_ACEOF
5213506e
RW
15293sed -n '
15294h
15295s/^/S["/; s/!.*/"]=/
15296p
15297g
15298s/^[^!]*!//
15299:repl
15300t repl
15301s/'"$ac_delim"'$//
15302t delim
15303:nl
15304h
15305s/\(.\{148\}\).*/\1/
15306t more1
15307s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15308p
15309n
15310b repl
15311:more1
15312s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15313p
15314g
15315s/.\{148\}//
15316t nl
15317:delim
15318h
15319s/\(.\{148\}\).*/\1/
15320t more2
15321s/["\\]/\\&/g; s/^/"/; s/$/"/
15322p
15323b
15324:more2
15325s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15326p
15327g
15328s/.\{148\}//
15329t delim
15330' <conf$$subs.awk | sed '
15331/^[^""]/{
15332 N
15333 s/\n//
15334}
15335' >>$CONFIG_STATUS || ac_write_fail=1
15336rm -f conf$$subs.awk
15337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338_ACAWK
15339cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15340 for (key in S) S_is_set[key] = 1
15341 FS = "\a"
15342 \$ac_cs_awk_pipe_init
15343}
15344{
15345 line = $ 0
15346 nfields = split(line, field, "@")
15347 substed = 0
15348 len = length(field[1])
15349 for (i = 2; i < nfields; i++) {
15350 key = field[i]
15351 keylen = length(key)
15352 if (S_is_set[key]) {
15353 value = S[key]
15354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15355 len += length(value) + length(field[++i])
15356 substed = 1
15357 } else
15358 len += 1 + keylen
15359 }
15360 if (nfields == 3 && !substed) {
15361 key = field[2]
15362 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15363 \$ac_cs_awk_read_file
15364 next
15365 }
15366 }
15367 print line
15368}
15369\$ac_cs_awk_pipe_fini
15370_ACAWK
15371_ACEOF
15372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15373if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15375else
15376 cat
15377fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15378 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15379_ACEOF
15380
15381# VPATH may cause trouble with some makes, so we remove $(srcdir),
15382# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15383# trailing colons and then remove the whole line if VPATH becomes empty
15384# (actually we leave an empty line to preserve line numbers).
15385if test "x$srcdir" = x.; then
15386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15387s/:*\$(srcdir):*/:/
15388s/:*\${srcdir}:*/:/
15389s/:*@srcdir@:*/:/
15390s/^\([^=]*=[ ]*\):*/\1/
15391s/:*$//
15392s/^[^=]*=[ ]*$//
15393}'
15394fi
2aeb72e9 15395
5213506e
RW
15396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15397fi # test -n "$CONFIG_FILES"
2aeb72e9 15398
1c710c3c 15399
5213506e
RW
15400eval set X " :F $CONFIG_FILES "
15401shift
15402for ac_tag
15403do
15404 case $ac_tag in
15405 :[FHLC]) ac_mode=$ac_tag; continue;;
15406 esac
15407 case $ac_mode$ac_tag in
15408 :[FHL]*:*);;
15409 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15410 :[FH]-) ac_tag=-:-;;
15411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15412 esac
15413 ac_save_IFS=$IFS
15414 IFS=:
15415 set x $ac_tag
15416 IFS=$ac_save_IFS
15417 shift
15418 ac_file=$1
15419 shift
79c06341 15420
5213506e
RW
15421 case $ac_mode in
15422 :L) ac_source=$1;;
15423 :[FH])
15424 ac_file_inputs=
15425 for ac_f
15426 do
15427 case $ac_f in
15428 -) ac_f="$tmp/stdin";;
15429 *) # Look for the file first in the build tree, then in the source tree
15430 # (if the path is not absolute). The absolute path cannot be DOS-style,
15431 # because $ac_f cannot contain `:'.
15432 test -f "$ac_f" ||
15433 case $ac_f in
15434 [\\/$]*) false;;
15435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15436 esac ||
15437 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15438 esac
15439 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15440 as_fn_append ac_file_inputs " '$ac_f'"
15441 done
1c710c3c 15442
5213506e
RW
15443 # Let's still pretend it is `configure' which instantiates (i.e., don't
15444 # use $as_me), people would be surprised to read:
15445 # /* config.h. Generated by config.status. */
15446 configure_input='Generated from '`
15447 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15448 `' by configure.'
15449 if test x"$ac_file" != x-; then
15450 configure_input="$ac_file. $configure_input"
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15452$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15453 fi
5213506e
RW
15454 # Neutralize special characters interpreted by sed in replacement strings.
15455 case $configure_input in #(
15456 *\&* | *\|* | *\\* )
15457 ac_sed_conf_input=`$as_echo "$configure_input" |
15458 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15459 *) ac_sed_conf_input=$configure_input;;
15460 esac
11a67599 15461
5213506e
RW
15462 case $ac_tag in
15463 *:-:* | *:-) cat >"$tmp/stdin" \
15464 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15465 esac
15466 ;;
11a67599
ZW
15467 esac
15468
5213506e 15469 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15470$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15471 X"$ac_file" : 'X\(//\)[^/]' \| \
15472 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15474$as_echo X"$ac_file" |
15475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15476 s//\1/
15477 q
15478 }
15479 /^X\(\/\/\)[^/].*/{
15480 s//\1/
15481 q
15482 }
15483 /^X\(\/\/\)$/{
15484 s//\1/
15485 q
15486 }
15487 /^X\(\/\).*/{
15488 s//\1/
15489 q
15490 }
15491 s/.*/./; q'`
15492 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15493 ac_builddir=.
0b0dc272 15494
5213506e
RW
15495case "$ac_dir" in
15496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15497*)
15498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15499 # A ".." for each directory in $ac_dir_suffix.
15500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15501 case $ac_top_builddir_sub in
15502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15504 esac ;;
15505esac
15506ac_abs_top_builddir=$ac_pwd
15507ac_abs_builddir=$ac_pwd$ac_dir_suffix
15508# for backward compatibility:
15509ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15510
15511case $srcdir in
5213506e 15512 .) # We are building in place.
1c710c3c 15513 ac_srcdir=.
5213506e
RW
15514 ac_top_srcdir=$ac_top_builddir_sub
15515 ac_abs_top_srcdir=$ac_pwd ;;
15516 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15517 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15518 ac_top_srcdir=$srcdir
15519 ac_abs_top_srcdir=$srcdir ;;
15520 *) # Relative name.
15521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15522 ac_top_srcdir=$ac_top_build_prefix$srcdir
15523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15524esac
5213506e 15525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15526
0b0dc272 15527
5213506e
RW
15528 case $ac_mode in
15529 :F)
15530 #
15531 # CONFIG_FILE
15532 #
1c710c3c
DJ
15533
15534 case $INSTALL in
15535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15536 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15537 esac
5213506e 15538_ACEOF
11a67599 15539
5213506e
RW
15540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15541# If the template does not know about datarootdir, expand it.
15542# FIXME: This hack should be removed a few years after 2.60.
15543ac_datarootdir_hack=; ac_datarootdir_seen=
15544ac_sed_dataroot='
15545/datarootdir/ {
15546 p
15547 q
15548}
15549/@datadir@/p
15550/@docdir@/p
15551/@infodir@/p
15552/@localedir@/p
15553/@mandir@/p'
15554case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15555*datarootdir*) ac_datarootdir_seen=yes;;
15556*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15558$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15559_ACEOF
5213506e
RW
15560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 ac_datarootdir_hack='
15562 s&@datadir@&$datadir&g
15563 s&@docdir@&$docdir&g
15564 s&@infodir@&$infodir&g
15565 s&@localedir@&$localedir&g
15566 s&@mandir@&$mandir&g
15567 s&\\\${datarootdir}&$datarootdir&g' ;;
15568esac
15569_ACEOF
15570
15571# Neutralize VPATH when `$srcdir' = `.'.
15572# Shell code in configure.ac might set extrasub.
15573# FIXME: do we really want to maintain this feature?
15574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15576$extrasub
15577_ACEOF
5213506e 15578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15579:t
15580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15581s|@configure_input@|$ac_sed_conf_input|;t t
15582s&@top_builddir@&$ac_top_builddir_sub&;t t
15583s&@top_build_prefix@&$ac_top_build_prefix&;t t
15584s&@srcdir@&$ac_srcdir&;t t
15585s&@abs_srcdir@&$ac_abs_srcdir&;t t
15586s&@top_srcdir@&$ac_top_srcdir&;t t
15587s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15588s&@builddir@&$ac_builddir&;t t
15589s&@abs_builddir@&$ac_abs_builddir&;t t
15590s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15591s&@INSTALL@&$ac_INSTALL&;t t
15592$ac_datarootdir_hack
15593"
15594eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15595if $ac_cs_awk_getline; then
15596 $AWK -f "$tmp/subs.awk"
15597else
15598 $AWK -f "$tmp/subs.awk" | $SHELL
15599fi >$tmp/out \
15600 || as_fn_error "could not create $ac_file" "$LINENO" 5
15601
15602test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15606which seems to be undefined. Please make sure it is defined." >&5
15607$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15608which seems to be undefined. Please make sure it is defined." >&2;}
15609
15610 rm -f "$tmp/stdin"
15611 case $ac_file in
15612 -) cat "$tmp/out" && rm -f "$tmp/out";;
15613 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15614 esac \
15615 || as_fn_error "could not create $ac_file" "$LINENO" 5
15616 ;;
11a67599 15617
11a67599 15618
79c06341 15619
5213506e
RW
15620 esac
15621
3e54529c
RW
15622
15623 case $ac_file$ac_mode in
15624 "Makefile":F) sed "$extrasub_build" Makefile |
15625 sed "$extrasub_host" |
15626 sed "$extrasub_target" > mf$$
15627 mv -f mf$$ Makefile ;;
15628
15629 esac
5213506e
RW
15630done # for ac_tag
15631
15632
15633as_fn_exit 0
1c710c3c 15634_ACEOF
1c710c3c
DJ
15635ac_clean_files=$ac_clean_files_save
15636
5213506e
RW
15637test $ac_write_fail = 0 ||
15638 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15639
1c710c3c
DJ
15640
15641# configure is writing to config.log, and then calls config.status.
15642# config.status does its own redirection, appending to config.log.
15643# Unfortunately, on DOS this fails, as config.log is still kept open
15644# by configure, so config.status won't be able to write to it; its
15645# output is simply discarded. So we exec the FD to /dev/null,
15646# effectively closing config.log, so it can be properly (re)opened and
15647# appended to by config.status. When coming back to configure, we
15648# need to make the FD available again.
15649if test "$no_create" != yes; then
15650 ac_cs_success=:
15651 ac_config_status_args=
15652 test "$silent" = yes &&
15653 ac_config_status_args="$ac_config_status_args --quiet"
15654 exec 5>/dev/null
15655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15656 exec 5>>config.log
15657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15658 # would make configure fail if this is the last instruction.
5213506e
RW
15659 $ac_cs_success || as_fn_exit $?
15660fi
15661if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15663$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15664fi
79c06341 15665