]> sourceware.org Git - newlib-cygwin.git/blame - configure
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 233.
[newlib-cygwin.git] / configure
CommitLineData
bafecfd6 1#! /bin/sh
bafecfd6 2# Guess values for system-dependent variables and create Makefiles.
efd58f08
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.
bafecfd6
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
efd58f08
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b58b6ee1 14
efd58f08
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 :
b58b6ee1
DJ
18 emulate sh
19 NULLCMD=:
efd58f08 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b58b6ee1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
efd58f08
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b58b6ee1 31fi
b58b6ee1 32
efd58f08
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 }
b58b6ee1
DJ
79fi
80
81
efd58f08
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
b58b6ee1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
efd58f08
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'\" &&
a8a01987
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"
efd58f08
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
b58b6ee1 184do
efd58f08
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."
b58b6ee1 228 else
efd58f08
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."
b58b6ee1 233 fi
efd58f08
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
b58b6ee1 263
efd58f08
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
b58b6ee1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
efd58f08 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b58b6ee1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
efd58f08
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
b58b6ee1 391
efd58f08 392as_me=`$as_basename -- "$0" ||
b58b6ee1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
efd58f08
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'`
b58b6ee1 410
b58b6ee1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
b58b6ee1 418
efd58f08
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 |
b58b6ee1 428 sed '
efd58f08
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b58b6ee1 433 N
efd58f08
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b58b6ee1 436 t loop
efd58f08 437 s/-\n.*//
b58b6ee1 438 ' >$as_me.lineno &&
efd58f08
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; }
b58b6ee1
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
efd58f08
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b58b6ee1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
efd58f08
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';;
b58b6ee1
DJ
461esac
462
efd58f08
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b58b6ee1 466else
efd58f08
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b58b6ee1 469fi
efd58f08
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b58b6ee1 472 as_ln_s='ln -s'
efd58f08
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'
b58b6ee1 483 fi
b58b6ee1
DJ
484else
485 as_ln_s='cp -p'
486fi
efd58f08
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b58b6ee1
DJ
489
490if mkdir -p . 2>/dev/null; then
efd58f08 491 as_mkdir_p='mkdir -p "$as_dir"'
b58b6ee1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
efd58f08
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
b58b6ee1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
efd58f08 527exec 7<&0 </dev/null 6>&1
bafecfd6 528
b58b6ee1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
b58b6ee1
DJ
534#
535# Initializations.
536#
bafecfd6 537ac_default_prefix=/usr/local
efd58f08 538ac_clean_files=
b58b6ee1 539ac_config_libobj_dir=.
efd58f08 540LIBOBJS=
b58b6ee1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b58b6ee1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
efd58f08 552PACKAGE_URL=
b58b6ee1
DJ
553
554ac_unique_file="move-if-change"
efd58f08 555enable_option_checking=no
bd45d6fa
ILT
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
efd58f08
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
e894eef9 658target_configdirs
efd58f08 659configdirs
efd58f08 660build_configdirs
efd58f08
RW
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
1d694d8e
RW
668target_configargs
669host_configargs
670build_configargs
55662058 671BUILD_CONFIG
efd58f08
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676stage1_languages
bd45d6fa
ILT
677extra_host_libiberty_configure_flags
678libelfinc
679libelflibs
680EGREP
681GREP
682CPP
efd58f08
RW
683clooginc
684clooglibs
685pplinc
686ppllibs
efd58f08 687poststage1_ldflags
f107c370 688poststage1_libs
efd58f08
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
a8a01987
PB
713AWK
714SED
efd58f08
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
efd58f08 800with_boot_libs
f107c370 801with_boot_ldflags
efd58f08
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
bd45d6fa
ILT
810enable_lto
811with_libelf
812with_libelf_include
813with_libelf_lib
efd58f08
RW
814enable_stage1_languages
815enable_objc_gc
816with_build_sysroot
817with_debug_prefix_map
818enable_bootstrap
55662058 819with_build_config
efd58f08
RW
820enable_serial_configure
821with_build_time_tools
822enable_maintainer_mode
823enable_stage1_checking
824enable_werror
efd58f08
RW
825'
826 ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CXX
835CXXFLAGS
836CCC
bd45d6fa 837CPP
1d694d8e
RW
838build_configargs
839host_configargs
840target_configargs
efd58f08
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
bafecfd6
NN
870
871# Initialize some variables set by options.
b58b6ee1
DJ
872ac_init_help=
873ac_init_version=false
efd58f08
RW
874ac_unrecognized_opts=
875ac_unrecognized_sep=
bafecfd6
NN
876# The variables have the same names as the options, with
877# dashes changed to underlines.
b58b6ee1 878cache_file=/dev/null
bafecfd6 879exec_prefix=NONE
bafecfd6 880no_create=
bafecfd6
NN
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
bafecfd6
NN
889verbose=
890x_includes=NONE
891x_libraries=NONE
b58b6ee1
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.
efd58f08 898# (The list follows the same order as the GNU Coding Standards.)
bafecfd6
NN
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
efd58f08
RW
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
bafecfd6
NN
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
bafecfd6
NN
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
efd58f08
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'
a3acbf46 918
bafecfd6 919ac_prev=
efd58f08 920ac_dashdash=
bafecfd6
NN
921for ac_option
922do
bafecfd6
NN
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
efd58f08 925 eval $ac_prev=\$ac_option
bafecfd6
NN
926 ac_prev=
927 continue
928 fi
a3acbf46 929
efd58f08
RW
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
bafecfd6
NN
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
efd58f08
RW
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
bafecfd6
NN
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b58b6ee1 944 bindir=$ac_optarg ;;
bafecfd6
NN
945
946 -build | --build | --buil | --bui | --bu)
b58b6ee1 947 ac_prev=build_alias ;;
bafecfd6 948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b58b6ee1 949 build_alias=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1
DJ
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
bafecfd6 960
efd58f08 961 -datadir | --datadir | --datadi | --datad)
bafecfd6 962 ac_prev=datadir ;;
efd58f08 963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b58b6ee1 964 datadir=$ac_optarg ;;
bafecfd6 965
efd58f08
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
bafecfd6 973 -disable-* | --disable-*)
efd58f08 974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bafecfd6 975 # Reject names that are not valid shell variable names.
efd58f08
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 ;;
bafecfd6
NN
998
999 -enable-* | --enable-*)
efd58f08 1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bafecfd6 1001 # Reject names that are not valid shell variable names.
efd58f08
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=', ';;
bafecfd6 1012 esac
efd58f08 1013 eval enable_$ac_useropt=\$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1022 exec_prefix=$ac_optarg ;;
bafecfd6
NN
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
b58b6ee1
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 ;;
bafecfd6
NN
1034
1035 -host | --host | --hos | --ho)
b58b6ee1 1036 ac_prev=host_alias ;;
bafecfd6 1037 -host=* | --host=* | --hos=* | --ho=*)
b58b6ee1 1038 host_alias=$ac_optarg ;;
bafecfd6 1039
efd58f08
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
bafecfd6
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=*)
b58b6ee1 1051 includedir=$ac_optarg ;;
bafecfd6
NN
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b58b6ee1 1056 infodir=$ac_optarg ;;
bafecfd6
NN
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b58b6ee1 1061 libdir=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1068 libexecdir=$ac_optarg ;;
bafecfd6 1069
efd58f08
RW
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
bafecfd6 1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
efd58f08 1076 | --localstate | --localstat | --localsta | --localst | --locals)
bafecfd6
NN
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
efd58f08 1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b58b6ee1 1080 localstatedir=$ac_optarg ;;
bafecfd6
NN
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b58b6ee1 1085 mandir=$ac_optarg ;;
bafecfd6
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 \
b58b6ee1 1092 | --no-cr | --no-c | -n)
bafecfd6
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=*)
b58b6ee1 1106 oldincludedir=$ac_optarg ;;
bafecfd6
NN
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b58b6ee1 1111 prefix=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1118 program_prefix=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1125 program_suffix=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1142 program_transform_name=$ac_optarg ;;
bafecfd6 1143
efd58f08
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
bafecfd6
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=*)
b58b6ee1 1162 sbindir=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1173 sharedstatedir=$ac_optarg ;;
bafecfd6
NN
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
b58b6ee1 1178 site=$ac_optarg ;;
bafecfd6
NN
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b58b6ee1 1183 srcdir=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1190 sysconfdir=$ac_optarg ;;
bafecfd6
NN
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
b58b6ee1 1193 ac_prev=target_alias ;;
bafecfd6 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b58b6ee1 1195 target_alias=$ac_optarg ;;
bafecfd6
NN
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
b58b6ee1
DJ
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
bafecfd6
NN
1202
1203 -with-* | --with-*)
efd58f08 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bafecfd6 1205 # Reject names that are not valid shell variable names.
efd58f08
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=', ';;
bafecfd6 1216 esac
efd58f08 1217 eval with_$ac_useropt=\$ac_optarg ;;
bafecfd6
NN
1218
1219 -without-* | --without-*)
efd58f08 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bafecfd6 1221 # Reject names that are not valid shell variable names.
efd58f08
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 ;;
bafecfd6
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=*)
b58b6ee1 1244 x_includes=$ac_optarg ;;
bafecfd6
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=*)
b58b6ee1 1251 x_libraries=$ac_optarg ;;
bafecfd6 1252
efd58f08
RW
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information."
bafecfd6
NN
1255 ;;
1256
b58b6ee1
DJ
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
efd58f08
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
b58b6ee1
DJ
1265 export $ac_envvar ;;
1266
bafecfd6 1267 *)
b58b6ee1 1268 # FIXME: should be removed in autoconf 3.0.
efd58f08 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b58b6ee1 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
efd58f08 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b58b6ee1 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
bafecfd6
NN
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
b58b6ee1 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
efd58f08 1280 as_fn_error "missing argument to $ac_option"
bafecfd6 1281fi
bafecfd6 1282
efd58f08
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 ;;
b58b6ee1 1288 esac
efd58f08 1289fi
bafecfd6 1290
efd58f08
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
bafecfd6 1296do
efd58f08
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.
b58b6ee1 1305 case $ac_val in
efd58f08
RW
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
bafecfd6 1308 esac
efd58f08 1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
bafecfd6
NN
1310done
1311
b58b6ee1
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
76402c80 1318
b58b6ee1
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
efd58f08 1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b58b6ee1
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
bafecfd6 1334
bafecfd6 1335
efd58f08
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
bafecfd6
NN
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
efd58f08
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'`
bafecfd6 1371 srcdir=$ac_confdir
efd58f08 1372 if test ! -r "$srcdir/$ac_unique_file"; then
bafecfd6
NN
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
efd58f08
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
3fbb5e3d
PB
1396ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1397
efd58f08
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
b58b6ee1
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
b58b6ee1
DJ
1432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
efd58f08 1434 [$ac_default_prefix]
b58b6ee1 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
efd58f08 1436 [PREFIX]
b58b6ee1
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:
efd58f08
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]
b58b6ee1
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
bafecfd6 1479fi
bafecfd6 1480
b58b6ee1
DJ
1481if test -n "$ac_init_help"; then
1482
1483 cat <<\_ACEOF
1484
1485Optional Features:
efd58f08 1486 --disable-option-checking ignore unrecognized --enable/--with options
b58b6ee1
DJ
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
32c2e09b 1489 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
b301596e
DD
1490 --enable-libada build libada directory
1491 --enable-libssp build libssp directory
121f0eb2 1492 --enable-build-with-cxx build with C++ compiler instead of C compiler
311b6756
JM
1493 --disable-ppl-version-check disable check for PPL version
1494 --disable-cloog-version-check disable check for CLooG version
bd45d6fa 1495 --enable-lto enable link time optimization support
b301596e 1496 --enable-stage1-languages[=all] choose additional languages to build during
b58b6ee1 1497 stage1. Mostly useful for compiler development.
b301596e
DD
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
b58b6ee1 1503 sub-packages for the host, target or build
b301596e 1504 machine, or all sub-packages
b58b6ee1
DJ
1505 --enable-maintainer-mode enable make rules and dependencies not useful
1506 (and sometimes confusing) to the casual installer
b301596e
DD
1507 --enable-stage1-checking[=all] choose additional checking for stage1
1508 of the compiler
b58b6ee1
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
121f0eb2
RW
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
b301596e
DD
1521 --with-mpfr-dir=PATH this option has been REMOVED
1522 --with-mpfr=PATH specify prefix directory for installed MPFR package.
b58b6ee1
DJ
1523 Equivalent to --with-mpfr-include=PATH/include
1524 plus --with-mpfr-lib=PATH/lib
1525 --with-mpfr-include=PATH
b301596e
DD
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.
b58b6ee1
DJ
1530 Equivalent to --with-gmp-include=PATH/include
1531 plus --with-gmp-lib=PATH/lib
b301596e
DD
1532 --with-gmp-include=PATH specify directory for installed GMP include files
1533 --with-gmp-lib=PATH specify directory for the installed GMP library
9f8da9ce
JM
1534 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1535 when linking with PPL
121f0eb2
RW
1536 --with-stage1-ldflags=FLAGS Linker flags for stage1
1537 -with-stage1-libs=LIBS Libraries for stage1
121f0eb2 1538 --with-boot-libs=LIBS Libraries for stage2 and later
f107c370 1539 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
311b6756
JM
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
1545 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1546 Equivalent to --with-cloog-include=PATH/include
1547 plus --with-cloog-lib=PATH/lib
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
bd45d6fa
ILT
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
b301596e 1555 --with-build-sysroot=SYSROOT
b58b6ee1 1556 use sysroot as the system root during the build
fcc5fef0
JM
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
55662058
AO
1559--with-build-config='NAME NAME2...'
1560 Use config/NAME.mk build configuration
b301596e 1561 --with-build-time-tools=PATH
b58b6ee1 1562 use given path to find target tools during the build
b58b6ee1
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>
efd58f08
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>
b8c26111
PB
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
bd45d6fa 1574 CPP C preprocessor
1d694d8e
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
82026593
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
bffcbe34 1590 WINDMC WINDMC for the host
82026593
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
bffcbe34
NC
1623 WINDMC_FOR_TARGET
1624 WINDMC for the target
b58b6ee1
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
efd58f08 1629Report bugs to the package provider.
b58b6ee1 1630_ACEOF
efd58f08 1631ac_status=$?
b58b6ee1
DJ
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
b58b6ee1 1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
efd58f08
RW
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
b58b6ee1
DJ
1640 ac_builddir=.
1641
efd58f08
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
b58b6ee1
DJ
1657
1658case $srcdir in
efd58f08 1659 .) # We are building in place.
b58b6ee1 1660 ac_srcdir=.
efd58f08
RW
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
b58b6ee1 1664 ac_srcdir=$srcdir$ac_dir_suffix;
efd58f08
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 ;;
b58b6ee1 1671esac
efd58f08
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
b58b6ee1 1682 else
efd58f08
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; }
b58b6ee1
DJ
1686 done
1687fi
1688
efd58f08 1689test -n "$ac_init_help" && exit $ac_status
b58b6ee1
DJ
1690if $ac_init_version; then
1691 cat <<\_ACEOF
efd58f08
RW
1692configure
1693generated by GNU Autoconf 2.64
b58b6ee1 1694
efd58f08 1695Copyright (C) 2009 Free Software Foundation, Inc.
b58b6ee1
DJ
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
efd58f08 1699 exit
b58b6ee1 1700fi
efd58f08
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
bd45d6fa
ILT
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
efd58f08 2024cat >config.log <<_ACEOF
b58b6ee1
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
efd58f08 2029generated by GNU Autoconf 2.64. Invocation command line was
b58b6ee1
DJ
2030
2031 $ $0 $@
2032
2033_ACEOF
efd58f08 2034exec 5>>config.log
b58b6ee1
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`
efd58f08 2053/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b58b6ee1
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=.
efd58f08
RW
2065 $as_echo "PATH: $as_dir"
2066 done
2067IFS=$as_save_IFS
b58b6ee1
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=
b58b6ee1
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 ;;
efd58f08
RW
2099 *\'*)
2100 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b58b6ee1
DJ
2101 esac
2102 case $ac_pass in
efd58f08 2103 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b58b6ee1 2104 2)
efd58f08 2105 as_fn_append ac_configure_args1 " '$ac_arg'"
b58b6ee1
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
efd58f08 2121 as_fn_append ac_configure_args " '$ac_arg'"
b58b6ee1
DJ
2122 ;;
2123 esac
2124 done
2125done
efd58f08
RW
2126{ ac_configure_args0=; unset ac_configure_args0;}
2127{ ac_configure_args1=; unset ac_configure_args1;}
b58b6ee1
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.
efd58f08
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.
b58b6ee1
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,
efd58f08
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
b58b6ee1 2162 (set) 2>&1 |
efd58f08
RW
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
b58b6ee1 2165 sed -n \
efd58f08
RW
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
b58b6ee1 2169 *)
efd58f08 2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b58b6ee1 2171 ;;
efd58f08
RW
2172 esac |
2173 sort
2174)
b58b6ee1
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
efd58f08
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'\''"
b58b6ee1
DJ
2190 done | sort
2191 echo
2192
2193 if test -n "$ac_subst_files"; then
2194 cat <<\_ASBOX
efd58f08
RW
2195## ------------------- ##
2196## File substitutions. ##
2197## ------------------- ##
b58b6ee1
DJ
2198_ASBOX
2199 echo
2200 for ac_var in $ac_subst_files
2201 do
efd58f08
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'\''"
b58b6ee1
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
efd58f08 2218 cat confdefs.h
b58b6ee1
DJ
2219 echo
2220 fi
2221 test "$ac_signal" != 0 &&
efd58f08
RW
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
b58b6ee1 2224 } >&5
efd58f08
RW
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b58b6ee1 2227 exit $exit_status
efd58f08 2228' 0
b58b6ee1 2229for ac_signal in 1 2 13 15; do
efd58f08 2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b58b6ee1
DJ
2231done
2232ac_signal=0
2233
2234# confdefs.h avoids OS command line length limits that DEFS can exceed.
efd58f08
RW
2235rm -f -r conftest* confdefs.h
2236
2237$as_echo "/* confdefs.h */" > confdefs.h
b58b6ee1
DJ
2238
2239# Predefined preprocessor variables.
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_NAME "$PACKAGE_NAME"
2243_ACEOF
2244
b58b6ee1
DJ
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247_ACEOF
2248
b58b6ee1
DJ
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_VERSION "$PACKAGE_VERSION"
2251_ACEOF
2252
b58b6ee1
DJ
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_STRING "$PACKAGE_STRING"
2255_ACEOF
2256
b58b6ee1
DJ
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259_ACEOF
2260
efd58f08
RW
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_URL "$PACKAGE_URL"
2263_ACEOF
2264
b58b6ee1
DJ
2265
2266# Let the site file select an alternate cache file if it wants to.
efd58f08
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
bafecfd6 2278fi
efd58f08
RW
2279for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280do
2281 test "x$ac_site_file" = xNONE && continue
bafecfd6 2282 if test -r "$ac_site_file"; then
efd58f08
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;}
b58b6ee1 2285 sed 's/^/| /' "$ac_site_file" >&5
bafecfd6
NN
2286 . "$ac_site_file"
2287 fi
2288done
2289
2290if test -r "$cache_file"; then
b58b6ee1
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
efd58f08
RW
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295$as_echo "$as_me: loading cache $cache_file" >&6;}
b58b6ee1 2296 case $cache_file in
efd58f08
RW
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
b58b6ee1
DJ
2299 esac
2300 fi
bafecfd6 2301else
efd58f08
RW
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303$as_echo "$as_me: creating cache $cache_file" >&6;}
b58b6ee1
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
efd58f08 2310for ac_var in $ac_precious_vars; do
b58b6ee1
DJ
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
efd58f08
RW
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
b58b6ee1
DJ
2315 case $ac_old_set,$ac_new_set in
2316 set,)
efd58f08
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;}
b58b6ee1
DJ
2319 ac_cache_corrupted=: ;;
2320 ,set)
efd58f08
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;}
b58b6ee1
DJ
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
efd58f08
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;}
b58b6ee1
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
efd58f08 2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b58b6ee1
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.
efd58f08 2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b58b6ee1
DJ
2354 esac
2355 fi
2356done
2357if $ac_cache_corrupted; then
efd58f08
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
bafecfd6 2363fi
efd58f08
RW
2364## -------------------- ##
2365## Main body of script. ##
2366## -------------------- ##
bafecfd6
NN
2367
2368ac_ext=c
bafecfd6 2369ac_cpp='$CPP $CPPFLAGS'
b58b6ee1
DJ
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
2374
2375
2376
b58b6ee1
DJ
2377
2378
5546e07b 2379
b58b6ee1 2380
00f8aa9c
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
b58b6ee1
DJ
2409
2410# Find the build, host, and target systems.
bafecfd6 2411ac_aux_dir=
efd58f08
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
bafecfd6
NN
2420done
2421if test -z "$ac_aux_dir"; then
efd58f08 2422 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
bafecfd6 2423fi
efd58f08
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
bafecfd6 2433
b58b6ee1 2434# Make sure we can run config.sub.
efd58f08
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
b58b6ee1 2458build=$ac_cv_build
efd58f08
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
bafecfd6 2470
bafecfd6 2471
b58b6ee1
DJ
2472 case ${build_alias} in
2473 "") build_noncanonical=${build} ;;
2474 *) build_noncanonical=${build_alias} ;;
f69e2532
CM
2475esac
2476
2477
f69e2532 2478
b58b6ee1
DJ
2479 case ${host_alias} in
2480 "") host_noncanonical=${build_noncanonical} ;;
2481 *) host_noncanonical=${host_alias} ;;
f69e2532
CM
2482esac
2483
f69e2532 2484
b58b6ee1
DJ
2485
2486 case ${target_alias} in
2487 "") target_noncanonical=${host_noncanonical} ;;
2488 *) target_noncanonical=${target_alias} ;;
f69e2532
CM
2489esac
2490
f69e2532 2491
b58b6ee1
DJ
2492
2493
2494test "$host_noncanonical" = "$target_noncanonical" &&
bafecfd6
NN
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2496 NONENONEs,x,x, &&
b58b6ee1 2497 program_transform_name=s,y,y,
f69e2532 2498
efd58f08
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
f69e2532 2503else
efd58f08
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
b58b6ee1
DJ
2510
2511fi
efd58f08
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
b58b6ee1 2518host=$ac_cv_host
efd58f08
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
b58b6ee1
DJ
2530
2531
efd58f08
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
b58b6ee1 2536else
efd58f08
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
b58b6ee1 2543
f69e2532 2544fi
efd58f08
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
b58b6ee1 2551target=$ac_cv_target
efd58f08
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
b58b6ee1
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}-
efd58f08 2571
bafecfd6 2572test "$program_prefix" != NONE &&
efd58f08 2573 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bafecfd6
NN
2574# Use a double $ so make ignores it.
2575test "$program_suffix" != NONE &&
efd58f08
RW
2576 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577# Double any \ or $.
b58b6ee1 2578# By default was `s,x,x', remove it if useless.
efd58f08
RW
2579ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f69e2532 2581
bafecfd6
NN
2582
2583
282c0e47
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
b58b6ee1 2592# AmigaOS /C/install, which installs bootblocks on floppy discs
282c0e47
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"
b58b6ee1 2596# OS/2's system install, which has a completely different semantic
282c0e47 2597# ./install, which can be erroneously created by make from ./install.sh.
e30fd60f 2598# Reject install programs that cannot install multiple files.
efd58f08
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; }
282c0e47 2601if test -z "$INSTALL"; then
efd58f08
RW
2602if test "${ac_cv_path_install+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
b58b6ee1
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=.
efd58f08
RW
2610 # Account for people who put trailing slashes in PATH elements.
2611case $as_dir/ in #((
2612 ./ | .// | /[cC]/* | \
b58b6ee1 2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
efd58f08 2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b58b6ee1
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
efd58f08 2622 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
282c0e47 2623 if test $ac_prog = install &&
b58b6ee1 2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
282c0e47
NN
2625 # AIX install. It has an incompatible calling convention.
2626 :
b58b6ee1
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 :
282c0e47 2631 else
e30fd60f
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
282c0e47
NN
2644 fi
2645 fi
2646 done
b58b6ee1
DJ
2647 done
2648 ;;
2649esac
efd58f08
RW
2650
2651 done
2652IFS=$as_save_IFS
b58b6ee1 2653
e30fd60f 2654rm -rf conftest.one conftest.two conftest.dir
282c0e47
NN
2655
2656fi
2657 if test "${ac_cv_path_install+set}" = set; then
b58b6ee1 2658 INSTALL=$ac_cv_path_install
282c0e47 2659 else
e30fd60f
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
282c0e47 2662 # break other packages using the cache if that directory is
e30fd60f 2663 # removed, or if the value is a relative name.
b58b6ee1 2664 INSTALL=$ac_install_sh
282c0e47
NN
2665 fi
2666fi
efd58f08
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668$as_echo "$INSTALL" >&6; }
282c0e47
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
b58b6ee1 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
282c0e47
NN
2675
2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
efd58f08
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
21ff191e
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"
efd58f08
RW
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2697$as_echo "no, using $LN" >&6; }
21ff191e
PB
2698else
2699 LN="$acx_cv_prog_LN"
efd58f08
RW
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701$as_echo "yes" >&6; }
21ff191e
PB
2702fi
2703
efd58f08
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; }
b58b6ee1
DJ
2706LN_S=$as_ln_s
2707if test "$LN_S" = "ln -s"; then
efd58f08
RW
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2709$as_echo "yes" >&6; }
f69e2532 2710else
efd58f08
RW
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2712$as_echo "no, using $LN_S" >&6; }
35269421
PB
2713fi
2714
a8a01987
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
282c0e47 2826
a3acbf46 2827### we might need to use some other shell than /bin/sh for running subshells
a3acbf46
RH
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*)
bafecfd6
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
a3acbf46
RH
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
bafecfd6 2861moveifchange=${srcdir}/move-if-change
a3acbf46 2862
714fa3b8
DJ
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
bafecfd6
NN
2871# Set srcdir to "." if that's what it is.
2872# This is important for multilib support.
2873pwd=`${PWDCMD-pwd}`
bafecfd6
NN
2874if test "${pwd}" = "${srcpwd}" ; then
2875 srcdir=.
a3acbf46
RH
2876fi
2877
bafecfd6 2878topsrcdir=$srcpwd
a3acbf46 2879
bafecfd6 2880extra_host_args=
afdaeaab 2881
bafecfd6
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.
a3acbf46 2885
b58b6ee1 2886# Subdirs will be configured in the order listed in build_configdirs,
bafecfd6 2887# configdirs, or target_configdirs; see the serialization section below.
a3acbf46 2888
b58b6ee1
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
bafecfd6 2891# the Makefile, whether or not it's implicitly specified here.
a3acbf46 2892
bafecfd6
NN
2893# Double entries in build_configdirs, configdirs, or target_configdirs may
2894# cause circular dependencies and break everything horribly.
a3acbf46 2895
2cb47d68
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
607d4caf 2902build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2cb47d68 2903
bafecfd6
NN
2904# these libraries are used by various programs built for the host environment
2905#
5074489a 2906host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
bafecfd6 2907
bafecfd6
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.
32c2e09b 2913# If --enable-gold is used, "gold" may replace "ld".
d0880d62 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"
bafecfd6
NN
2915
2916# libgcj represents the runtime libraries only used by gcj.
2917libgcj="target-libffi \
bafecfd6
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#
1277a9a0
DJ
2925target_libraries="target-libgcc \
2926 target-libiberty \
bafecfd6
NN
2927 target-libgloss \
2928 target-newlib \
a8c17d42 2929 target-libgomp \
76ab491a 2930 target-libstdc++-v3 \
cb2333e8 2931 target-libmudflap \
2c193664 2932 target-libssp \
cb2333e8 2933 target-libgfortran \
e1e5148c 2934 target-boehm-gc \
6f2480fb 2935 ${libgcj} \
d832a288 2936 target-libobjc \
a8c17d42 2937 target-libada"
bafecfd6 2938
5283b643
NN
2939# these tools are built using the target libraries, and are intended to
2940# run only in the target environment
bafecfd6 2941#
5283b643 2942# note: any program that *uses* libraries that are in the "target_libraries"
bafecfd6
NN
2943# list belongs in this list. those programs are also very likely
2944# candidates for the "native_only" list which follows
2945#
1905b739 2946target_tools="target-examples target-groff target-gperf target-rda"
a3acbf46 2947
bafecfd6 2948################################################################################
a3acbf46 2949
bafecfd6
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.
bafecfd6 2955configdirs=`echo ${host_libs} ${host_tools}`
5283b643 2956target_configdirs=`echo ${target_libraries} ${target_tools}`
607d4caf 2957build_configdirs=`echo ${build_libs} ${build_tools}`
9b520963 2958
3fbb5e3d
PB
2959
2960
bafecfd6 2961################################################################################
a3acbf46 2962
bafecfd6 2963srcname="gnu development package"
a3acbf46 2964
bafecfd6
NN
2965# This gets set non-empty for some net releases of packages.
2966appdirs=""
a3acbf46 2967
bafecfd6
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
a3acbf46 2972else
bafecfd6 2973 is_cross_compiler=yes
b58b6ee1 2974fi
a3acbf46 2975
df4b5a9c 2976# Find the build and target subdir names.
9b520963 2977
3160f998
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.
9b520963 2988build_subdir="build-${build_noncanonical}"
b58b6ee1 2989
efd58f08
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"
3160f998
DJ
2993else
2994 build_libsubdir="$build_subdir"
efd58f08
RW
2995fi
2996
7fc2ca22
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
9b520963
NN
3004# No prefix.
3005target_subdir=${target_noncanonical}
b58b6ee1 3006
8980b9ad
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
a3acbf46 3012
bafecfd6
NN
3013# Skipdirs are removed silently.
3014skipdirs=
3015# Noconfigdirs are removed loudly.
3016noconfigdirs=""
a3acbf46 3017
bafecfd6
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
b916272a 3022 noconfigdirs="$noconfigdirs ld gold"
a3acbf46
RH
3023fi
3024
bafecfd6
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"
a3acbf46
RH
3030fi
3031
bd45d6fa
ILT
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
b58b6ee1 3039# some tools are so dependent upon X11 that if we're not building with X,
bafecfd6 3040# it's not even worth trying to configure, much less build, that tool.
a3acbf46 3041
bafecfd6
NN
3042case ${with_x} in
3043 yes | "") ;; # the default value for this tree is that X11 is available
3044 no)
44397772 3045 skipdirs="${skipdirs} tk itcl libgui"
bafecfd6 3046 # We won't be able to build gdbtk without X.
b58b6ee1 3047 enable_gdbtk=no
bafecfd6
NN
3048 ;;
3049 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3050esac
a3acbf46 3051
bafecfd6 3052# Some tools are only suitable for building in a "native" situation.
b58b6ee1 3053# Remove these if host!=target.
89af1688 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"
a3acbf46 3055
bafecfd6
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
a3acbf46 3064
bafecfd6
NN
3065# If both --with-headers and --with-libs are specified, default to
3066# --without-newlib.
09ebdaf7
RS
3067if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3068 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
bafecfd6
NN
3069 if test x"${with_newlib}" = x ; then
3070 with_newlib=no
3071 fi
a3acbf46
RH
3072fi
3073
bafecfd6
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
a3acbf46 3079
b916272a 3080# Handle --enable-gold.
32c2e09b
NC
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
b916272a 3086
efd58f08
RW
3087# Check whether --enable-gold was given.
3088if test "${enable_gold+set}" = set; then :
3089 enableval=$enable_gold; ENABLE_GOLD=$enableval
b916272a
ILT
3090else
3091 ENABLE_GOLD=no
efd58f08
RW
3092fi
3093
32c2e09b
NC
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.
b916272a 3113 case "${target}" in
32c2e09b
NC
3114 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3115 case "${ENABLE_GOLD}" in
3116 both*)
3117 configdirs="$configdirs gold"
3118 ;;
3119 *)
ce28ff6b 3120 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
32c2e09b
NC
3121 ;;
3122 esac
3123 ENABLE_GOLD=yes
b916272a
ILT
3124 ;;
3125 esac
32c2e09b
NC
3126 fi
3127 ;;
3128 no)
3129 ;;
3130 *)
3131 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3132 ;;
b916272a
ILT
3133 esac
3134
bafecfd6 3135# Configure extra directories which are host specific
a3acbf46 3136
bafecfd6
NN
3137case "${host}" in
3138 *-cygwin*)
3139 configdirs="$configdirs libtermcap" ;;
3140esac
a3acbf46 3141
aac893c5
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
b58b6ee1 3146# Remove more programs from consideration, based on the host or
bafecfd6
NN
3147# target this usually means that a port of the program doesn't
3148# exist yet.
a3acbf46 3149
bafecfd6
NN
3150case "${host}" in
3151 hppa*64*-*-*)
3152 noconfigdirs="$noconfigdirs byacc"
3153 ;;
08049c01 3154 i[3456789]86-*-vsta)
44397772 3155 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
bafecfd6 3156 ;;
08049c01 3157 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
44397772 3158 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2245eb63 3159 ;;
6a24f03b
NC
3160 x86_64-*-mingw*)
3161 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3162 ;;
08049c01 3163 i[3456789]86-*-mingw32*)
44397772 3164 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
bc668665 3165 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2245eb63 3166 ;;
08049c01 3167 i[3456789]86-*-beos*)
44397772 3168 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2245eb63 3169 ;;
bafecfd6 3170 *-*-cygwin*)
b18ee8a2 3171 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
bafecfd6
NN
3172 ;;
3173 *-*-netbsd*)
b18ee8a2 3174 noconfigdirs="$noconfigdirs rcs"
bafecfd6
NN
3175 ;;
3176 ppc*-*-pe)
44397772 3177 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
bafecfd6
NN
3178 ;;
3179 powerpc-*-beos*)
44397772 3180 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
bafecfd6 3181 ;;
bafecfd6 3182esac
a3acbf46 3183
cb2333e8 3184
efd58f08
RW
3185# Check whether --enable-libada was given.
3186if test "${enable_libada+set}" = set; then :
3187 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d832a288
DD
3188else
3189 ENABLE_LIBADA=yes
efd58f08
RW
3190fi
3191
d832a288 3192if test "${ENABLE_LIBADA}" != "yes" ; then
7fc2ca22 3193 noconfigdirs="$noconfigdirs gnattools"
d832a288
DD
3194fi
3195
efd58f08
RW
3196# Check whether --enable-libssp was given.
3197if test "${enable_libssp+set}" = set; then :
3198 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
fa19ba07
KH
3199else
3200 ENABLE_LIBSSP=yes
efd58f08
RW
3201fi
3202
fa19ba07 3203
bafecfd6
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
a3acbf46 3219
cb2333e8 3220
f621a0dc
PB
3221# Disable libmudflap on some systems.
3222if test x$enable_libmudflap = x ; then
96979a18 3223 case "${target}" in
9f8da9ce 3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
824cf273 3225 # Enable libmudflap by default in GNU and friends.
96979a18
PB
3226 ;;
3227 *-*-freebsd*)
3228 # Enable libmudflap by default in FreeBSD.
3229 ;;
3230 *)
3231 # Disable it by default everywhere else.
3232 noconfigdirs="$noconfigdirs target-libmudflap"
3233 ;;
3234 esac
f621a0dc 3235fi
cb2333e8 3236
f621a0dc
PB
3237# Disable libgomp on non POSIX hosted systems.
3238if test x$enable_libgomp = x ; then
00bc9d7f
PB
3239 # Enable libgomp by default on hosted POSIX systems.
3240 case "${target}" in
9f8da9ce 3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
00bc9d7f
PB
3242 ;;
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3244 ;;
f90716dd 3245 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
00bc9d7f
PB
3246 ;;
3247 *-*-darwin* | *-*-aix*)
3248 ;;
3249 *)
3250 noconfigdirs="$noconfigdirs target-libgomp"
3251 ;;
3252 esac
f621a0dc 3253fi
00bc9d7f 3254
46093329
DD
3255# Default libgloss CPU subdirectory.
3256libgloss_dir="$target_cpu"
cb2333e8 3257
bafecfd6
NN
3258case "${target}" in
3259 *-*-chorusos)
f9a26685 3260 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 3261 ;;
2926fdf5 3262 powerpc-*-darwin*)
173af0fb 3263 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 3264 noconfigdirs="$noconfigdirs sim target-rda"
5f0d49b5 3265 ;;
41592149
TG
3266 i[3456789]86-*-darwin*)
3267 noconfigdirs="$noconfigdirs ld gprof"
3268 noconfigdirs="$noconfigdirs sim target-rda"
3269 ;;
121f0eb2 3270 x86_64-*-darwin[912]*)
5f0d49b5
TG
3271 noconfigdirs="$noconfigdirs ld gas gprof"
3272 noconfigdirs="$noconfigdirs sim target-rda"
44dc96d1 3273 ;;
4b649dd9 3274 *-*-darwin*)
56fa0798 3275 noconfigdirs="$noconfigdirs ld gas gdb gprof"
bbaae19b 3276 noconfigdirs="$noconfigdirs sim target-rda"
f9a26685 3277 noconfigdirs="$noconfigdirs ${libgcj}"
4b649dd9 3278 ;;
bafecfd6 3279 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
f9a26685 3280 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 3281 ;;
eb2d1dee 3282 *-*-freebsd*)
cb2333e8
DD
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*-*-*) ;;
f107c370 3293 x86_64-*-*) ;;
cb2333e8 3294 *)
f9a26685 3295 noconfigdirs="$noconfigdirs ${libgcj}"
cb2333e8
DD
3296 ;;
3297 esac
3298 ;;
5cd57f01
NC
3299 *-*-kaos*)
3300 # Remove unsupported stuff on all kaOS configurations.
f9a26685 3301 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
5cd57f01
NC
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 ;;
bafecfd6
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*) ;;
09f7abda 3313 arm*-*-netbsdelf*) ;;
bafecfd6 3314 *)
f9a26685 3315 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3316 ;;
3317 esac
3318 ;;
b330724f 3319 *-*-netware*)
f9a26685 3320 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
bafecfd6
NN
3321 ;;
3322 *-*-rtems*)
112afadf 3323 skipdirs="${skipdirs} target-libiberty"
f9a26685 3324 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 3325 ;;
3d93afbc
EC
3326 # The tpf target doesn't support gdb yet.
3327 *-*-tpf*)
f9a26685 3328 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3d93afbc 3329 ;;
1fb9256d 3330 *-*-uclinux*)
f9a26685 3331 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1fb9256d 3332 ;;
bafecfd6 3333 *-*-vxworks*)
f9a26685 3334 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
bafecfd6
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*)
9effb018 3343 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bafecfd6
NN
3344 ;;
3345 alpha*-*-linux*)
3346 # newlib is not 64 bit ready
3347 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348 ;;
bafecfd6
NN
3349 alpha*-*-*)
3350 # newlib is not 64 bit ready
f9a26685 3351 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 3352 ;;
24431cf0 3353 am33_2.0-*-linux*)
f9a26685 3354 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
24431cf0 3355 ;;
bafecfd6 3356 sh-*-linux*)
f9a26685 3357 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
b58b6ee1 3358 ;;
bafecfd6 3359 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f9a26685 3360 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3361 noconfigdirs="$noconfigdirs target-examples"
3362 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
44397772 3363 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
bafecfd6
NN
3364 noconfigdirs="$noconfigdirs expect dejagnu"
3365 # the C++ libraries don't build on top of CE's C libraries
76ab491a 3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
bafecfd6
NN
3367 noconfigdirs="$noconfigdirs target-newlib"
3368 case "${host}" in
3369 *-*-cygwin*) ;; # keep gdb and readline
76ab491a 3370 *) noconfigdirs="$noconfigdirs gdb readline"
bafecfd6
NN
3371 ;;
3372 esac
46093329 3373 libgloss_dir=wince
bafecfd6
NN
3374 ;;
3375 arc-*-*)
f9a26685 3376 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 3377 ;;
3d439922 3378 arm-semi-aof )
3d439922 3379 ;;
bafecfd6 3380 arm-*-coff | strongarm-*-coff | xscale-*-coff)
f9a26685 3381 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 3382 libgloss_dir=arm
bafecfd6 3383 ;;
cbd6bc14 3384 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
bafecfd6 3385 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
46093329 3386 libgloss_dir=arm
bafecfd6 3387 ;;
458e6564 3388 arm*-*-linux-gnueabi)
602c33ba 3389 noconfigdirs="$noconfigdirs target-qthreads"
2ece9217
DD
3390 case ${with_newlib} in
3391 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 esac
46093329 3393 libgloss_dir=arm
458e6564 3394 ;;
07768fdb 3395 arm*-*-symbianelf*)
f9a26685 3396 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
46093329 3397 libgloss_dir=arm
07768fdb 3398 ;;
bafecfd6 3399 arm-*-pe*)
f9a26685 3400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 3401 ;;
bafecfd6 3402 thumb-*-coff)
f9a26685 3403 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
3404 ;;
3405 thumb-*-elf)
f9a26685 3406 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 3407 ;;
bafecfd6 3408 thumb-*-pe)
f9a26685 3409 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
3410 ;;
3411 arm-*-riscix*)
f9a26685 3412 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
bafecfd6
NN
3413 ;;
3414 avr-*-*)
edd8c172 3415 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
bafecfd6 3416 ;;
76402c80 3417 bfin-*-*)
24adf76a
JZ
3418 unsupported_languages="$unsupported_languages java"
3419 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
a68fc753 3420 if test x${is_cross_compiler} != xno ; then
76402c80
CM
3421 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3422 fi
3423 ;;
bafecfd6 3424 c4x-*-* | tic4x-*-*)
f9a26685 3425 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6
NN
3426 ;;
3427 c54x*-*-* | tic54x-*-*)
f9a26685 3428 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
bafecfd6 3429 ;;
dbd35e4d
NC
3430 cr16-*-*)
3431 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3432 ;;
139acfca 3433 cris-*-* | crisv32-*-*)
aac893c5 3434 unsupported_languages="$unsupported_languages java"
139acfca 3435 case "${target}" in
0d3442bf 3436 *-*-aout)
c2105cb9 3437 unsupported_languages="$unsupported_languages fortran"
aac893c5 3438 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
0d3442bf 3439 *-*-elf)
7066fc51 3440 noconfigdirs="$noconfigdirs target-boehm-gc";;
0d3442bf 3441 *-*-linux*)
7066fc51 3442 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
139acfca 3443 *)
c2105cb9 3444 unsupported_languages="$unsupported_languages fortran"
f9a26685 3445 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
139acfca 3446 esac
46093329 3447 libgloss_dir=cris
bafecfd6 3448 ;;
96979a18 3449 crx-*-*)
f9a26685 3450 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
96979a18 3451 ;;
bafecfd6 3452 d10v-*-*)
f9a26685 3453 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6
NN
3454 ;;
3455 d30v-*-*)
f9a26685 3456 noconfigdirs="$noconfigdirs ${libgcj} gdb"
bafecfd6 3457 ;;
46093329
DD
3458 ep9312-*-elf | ep9312-*-coff)
3459 libgloss_dir=arm
3460 ;;
bafecfd6 3461 fr30-*-elf*)
f9a26685 3462 noconfigdirs="$noconfigdirs ${libgcj} gdb"
bafecfd6
NN
3463 ;;
3464 frv-*-*)
f9a26685 3465 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6 3466 ;;
cc074893
NC
3467 moxie-*-*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 noconfigdirs="$noconfigdirs gprof"
3470 ;;
bafecfd6 3471 h8300*-*-*)
f9a26685 3472 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6
NN
3473 ;;
3474 h8500-*-*)
f9a26685 3475 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6 3476 ;;
3d439922 3477 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3d439922 3478 ;;
bafecfd6
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 ;;
53af4f25
JDA
3485 parisc*-*-linux* | hppa*-*-linux*)
3486 ;;
bafecfd6 3487 hppa*-*-*elf* | \
bafecfd6
NN
3488 hppa*-*-lites* | \
3489 hppa*-*-openbsd* | \
3490 hppa*64*-*-*)
f9a26685 3491 noconfigdirs="$noconfigdirs ${libgcj}"
e1e5148c
CD
3492 ;;
3493 hppa*-hp-hpux11*)
3494 noconfigdirs="$noconfigdirs ld shellutils"
bafecfd6 3495 ;;
46093329
DD
3496 hppa*-*-pro*)
3497 libgloss_dir=pa
3498 ;;
bafecfd6
NN
3499 hppa*-*-*)
3500 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3501 # build on HP-UX 10.20.
f9a26685 3502 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
bafecfd6 3503 ;;
7e269125 3504 i960-*-*)
f9a26685 3505 noconfigdirs="$noconfigdirs ${libgcj} gdb"
7e269125 3506 ;;
bafecfd6
NN
3507 ia64*-*-elf*)
3508 # No gdb support yet.
44397772 3509 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
bafecfd6
NN
3510 ;;
3511 ia64*-**-hpux*)
3512 # No gdb or ld support yet.
f9a26685 3513 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
bafecfd6 3514 ;;
608adbed
NC
3515 ia64*-*-*vms*)
3516 # No gdb or ld support yet.
3517 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3518 ;;
3d439922 3519 i370-*-opened*)
3d439922 3520 ;;
08049c01 3521 i[3456789]86-*-coff | i[3456789]86-*-elf)
f9a26685 3522 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 3523 libgloss_dir=i386
bafecfd6 3524 ;;
08049c01 3525 i[3456789]86-*-linux*)
bafecfd6
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*)
f9a26685 3530 noconfigdirs="$noconfigdirs ${libgcj}";;
bafecfd6
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
2245eb63 3536 noconfigdirs="$noconfigdirs target-newlib"
bafecfd6
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 ;;
5074489a
AO
3544 i[3456789]86-w64-mingw*)
3545 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3546 ;;
3547 i[3456789]86-*-mingw*)
bc668665
CV
3548 target_configdirs="$target_configdirs target-winsup"
3549 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b58b6ee1 3550 ;;
6a24f03b 3551 x86_64-*-mingw*)
6a24f03b 3552 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
b58b6ee1 3553 ;;
bafecfd6
NN
3554 *-*-cygwin*)
3555 target_configdirs="$target_configdirs target-libtermcap target-winsup"
121f0eb2 3556 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
99dbec4c 3557 # always build newlib if winsup directory is present.
bc668665 3558 if test -d "$srcdir/winsup/cygwin"; then
99dbec4c 3559 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4ea74b34 3560 elif test -d "$srcdir/newlib"; then
bc668665 3561 echo "Warning: winsup/cygwin is missing so newlib can't be built."
99dbec4c 3562 fi
b58b6ee1 3563 ;;
3d439922
AL
3564 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3565 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3d439922 3566 ;;
08049c01 3567 i[3456789]86-*-pe)
f9a26685 3568 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
bafecfd6 3569 ;;
08049c01 3570 i[3456789]86-*-sco3.2v5*)
bafecfd6
NN
3571 # The linker does not yet know about weak symbols in COFF,
3572 # and is not configured to handle mixed ELF and COFF.
f9a26685 3573 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
bafecfd6 3574 ;;
08049c01 3575 i[3456789]86-*-sco*)
f9a26685 3576 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 3577 ;;
08049c01 3578 i[3456789]86-*-solaris2*)
bafecfd6
NN
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 ;;
08049c01 3581 i[3456789]86-*-sysv4*)
f9a26685 3582 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
bafecfd6 3583 ;;
08049c01 3584 i[3456789]86-*-beos*)
f9a26685 3585 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2245eb63 3586 ;;
22d7108e 3587 i[3456789]86-*-rdos*)
fef3f213
PB
3588 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3589 ;;
7e269125 3590 m32r-*-*)
f9a26685 3591 noconfigdirs="$noconfigdirs ${libgcj}"
7e269125 3592 ;;
bafecfd6 3593 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
f9a26685 3594 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
46093329 3595 libgloss_dir=m68hc11
bafecfd6
NN
3596 ;;
3597 m68k-*-elf*)
f9a26685 3598 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3599 ;;
3600 m68k-*-coff*)
f9a26685 3601 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6 3602 ;;
46093329
DD
3603 m68*-*-* | fido-*-*)
3604 libgloss_dir=m68k
3605 ;;
bafecfd6
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-*-*)
aac893c5 3612 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
c2105cb9 3613 unsupported_languages="$unsupported_languages fortran java"
bafecfd6
NN
3614 ;;
3615 mn10200-*-*)
f9a26685 3616 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3617 ;;
3618 mn10300-*-*)
f9a26685 3619 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6 3620 ;;
74ecef0d 3621 mt-*-*)
66cb6a19
AH
3622 noconfigdirs="$noconfigdirs sim"
3623 ;;
bafecfd6
NN
3624 powerpc-*-aix*)
3625 # copied from rs6000-*-* entry
121f0eb2 3626 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
bafecfd6
NN
3627 ;;
3628 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3629 target_configdirs="$target_configdirs target-winsup"
f9a26685 3630 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
bafecfd6
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*)
f9a26685 3636 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
46093329 3637 libgloss_dir=rs6000
bafecfd6
NN
3638 ;;
3639 powerpc-*-beos*)
f9a26685 3640 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bafecfd6 3641 ;;
bafecfd6 3642 powerpc-*-eabi)
f9a26685 3643 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 3644 libgloss_dir=rs6000
3d439922
AL
3645 ;;
3646 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
46093329 3647 libgloss_dir=rs6000
bafecfd6 3648 ;;
bafecfd6 3649 rs6000-*-lynxos*)
f9a26685 3650 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
bafecfd6
NN
3651 ;;
3652 rs6000-*-aix*)
121f0eb2 3653 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
bafecfd6
NN
3654 ;;
3655 rs6000-*-*)
f9a26685 3656 noconfigdirs="$noconfigdirs gprof ${libgcj}"
bafecfd6
NN
3657 ;;
3658 m68k-apollo-*)
f9a26685 3659 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
bafecfd6 3660 ;;
45f03e33 3661 microblaze*)
65a20d8c 3662 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
45f03e33 3663 ;;
524e4570
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 ;;
bafecfd6 3672 mips*-*-irix5*)
f9a26685 3673 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6
NN
3674 ;;
3675 mips*-*-irix6*)
bafecfd6
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>
f9a26685 3680 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 3681 ;;
bafecfd6 3682 mips*-*-bsd*)
f9a26685 3683 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
bafecfd6 3684 ;;
bafecfd6
NN
3685 mips*-*-linux*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 mips*-*-*)
f9a26685 3689 noconfigdirs="$noconfigdirs gprof ${libgcj}"
46093329 3690 libgloss_dir=mips
bafecfd6
NN
3691 ;;
3692 romp-*-*)
f9a26685 3693 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
bafecfd6 3694 ;;
0d549859 3695 sh-*-* | sh64-*-*)
bafecfd6 3696 case "${host}" in
08049c01
DD
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
bafecfd6
NN
3700 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3701 esac
121f0eb2
RW
3702 case "${target}" in
3703 sh*-*-elf)
3704 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3705 *)
3706 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3707 esac
bafecfd6 3708 ;;
46093329
DD
3709 sparclet-*-aout* | sparc86x-*-*)
3710 libgloss_dir=sparc
3711 ;;
bafecfd6 3712 sparc-*-elf*)
f9a26685 3713 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3714 ;;
3715 sparc64-*-elf*)
f9a26685 3716 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 3717 libgloss_dir=sparc
bafecfd6
NN
3718 ;;
3719 sparclite-*-*)
f9a26685 3720 noconfigdirs="$noconfigdirs ${libgcj}"
46093329 3721 libgloss_dir=sparc
bafecfd6
NN
3722 ;;
3723 sparc-*-sunos4*)
f9a26685 3724 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
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 ;;
2caa45c4 3731 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
f9a26685 3732 noconfigdirs="$noconfigdirs ${libgcj}"
2caa45c4 3733 ;;
bafecfd6
NN
3734 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3735 ;;
6315af0f
JM
3736 tic6x-*-*)
3737 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3738 ;;
bafecfd6 3739 v810-*-*)
f9a26685 3740 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
bafecfd6 3741 ;;
e3d36b30
NC
3742 v850*-*-*)
3743 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3744 ;;
3745 vax-*-vms)
f9a26685 3746 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
bafecfd6
NN
3747 ;;
3748 vax-*-*)
f9a26685 3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
bafecfd6 3750 ;;
a1e856cc 3751 xtensa*-*-*)
f9a26685 3752 noconfigdirs="$noconfigdirs ${libgcj}"
b30e0721 3753 ;;
bafecfd6 3754 ip2k-*-*)
f9a26685 3755 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
bafecfd6 3756 ;;
9f8da9ce 3757 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
bafecfd6
NN
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3759 ;;
3760 *-*-lynxos*)
f9a26685 3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
b58b6ee1 3762 ;;
bafecfd6 3763 *-*-*)
f9a26685 3764 noconfigdirs="$noconfigdirs ${libgcj}"
bafecfd6
NN
3765 ;;
3766esac
a3acbf46 3767
bafecfd6
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
bafecfd6
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"
bafecfd6
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 ;;
08049c01 3846 i[3456789]86-*-sysv5*)
bafecfd6
NN
3847 host_makefile_frag="config/mh-sysv5"
3848 ;;
08049c01 3849 i[3456789]86-*-dgux*)
bafecfd6
NN
3850 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3851 host_makefile_frag="config/mh-dgux386"
3852 ;;
08049c01 3853 i[3456789]86-ncr-sysv4.3*)
bafecfd6
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 ;;
08049c01 3858 i[3456789]86-ncr-sysv4*)
bafecfd6
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 ;;
08049c01 3867 i[3456789]86-*-sco3.2v5*)
bafecfd6 3868 ;;
08049c01 3869 i[3456789]86-*-sco*)
bafecfd6
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 ;;
08049c01 3875 i[3456789]86-*-udk*)
bafecfd6
NN
3876 host_makefile_frag="config/mh-sysv5"
3877 ;;
08049c01 3878 i[3456789]86-*-solaris2*)
bafecfd6
NN
3879 host_makefile_frag="config/mh-sysv4"
3880 ;;
08049c01 3881 i[3456789]86-*-msdosdjgpp*)
bafecfd6
NN
3882 host_makefile_frag="config/mh-djgpp"
3883 ;;
3884 *-cygwin*)
981b79bf 3885
efd58f08
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; }
981b79bf 3888echo a >cygwin-cat-check
5074489a 3889if test `cat cygwin-cat-check` = a ; then
999fa990 3890 rm cygwin-cat-check
efd58f08
RW
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892$as_echo "yes" >&6; }
981b79bf 3893else
999fa990 3894 rm cygwin-cat-check
efd58f08
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.
981b79bf
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
efd58f08 3902 " "$LINENO" 5
981b79bf 3903fi
981b79bf 3904
bafecfd6
NN
3905 host_makefile_frag="config/mh-cygwin"
3906 ;;
617c478d 3907 *-mingw*)
fd1c1753 3908 host_makefile_frag="config/mh-mingw"
6a24f03b 3909 ;;
bafecfd6
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 ;;
9ad2ea2f 3925 hppa*-hp-hpux10*)
bafecfd6 3926 tentative_cc="cc -Wp,-H256000"
9ad2ea2f 3927 host_makefile_frag="config/mh-pa-hpux10"
bafecfd6 3928 ;;
9ad2ea2f
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*)
bafecfd6
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 ;;
99df82b9
PB
3944 powerpc-*-darwin*)
3945 host_makefile_frag="config/mh-ppc-darwin"
3946 ;;
7e958b2e
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 ;;
bafecfd6
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 ;;
8199a77f
DD
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 ;;
bafecfd6
NN
3965esac
3966fi
3967
cfc26d93
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
4413ec01
PB
3988 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3989 AS_FOR_BUILD=${AS_FOR_BUILD-as}
cfc26d93 3990 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4413ec01
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)"
31839eae 4003 CC_FOR_BUILD="\$(CC)"
4413ec01
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)"
b8c26111
PB
4013fi
4014
4015ac_ext=c
b58b6ee1
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
efd58f08
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
b58b6ee1
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=.
efd58f08
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
b58b6ee1 4038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
efd58f08 4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4040 break 2
4041 fi
4042done
efd58f08
RW
4043 done
4044IFS=$as_save_IFS
b58b6ee1
DJ
4045
4046fi
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
efd58f08
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051$as_echo "$CC" >&6; }
b58b6ee1 4052else
efd58f08
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
b58b6ee1
DJ
4055fi
4056
efd58f08 4057
b58b6ee1
DJ
4058fi
4059if test -z "$ac_cv_prog_CC"; then
4060 ac_ct_CC=$CC
2cb47d68 4061 # Extract the first word of "gcc", so it can be a program name with args.
cfc26d93 4062set dummy gcc; ac_word=$2
efd58f08
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
b58b6ee1
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=.
efd58f08
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
b58b6ee1 4078 ac_cv_prog_ac_ct_CC="gcc"
efd58f08 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4080 break 2
4081 fi
4082done
efd58f08
RW
4083 done
4084IFS=$as_save_IFS
b58b6ee1
DJ
4085
4086fi
4087fi
4088ac_ct_CC=$ac_cv_prog_ac_ct_CC
4089if test -n "$ac_ct_CC"; then
efd58f08
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4091$as_echo "$ac_ct_CC" >&6; }
b58b6ee1 4092else
efd58f08
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
b58b6ee1
DJ
4095fi
4096
efd58f08
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
b58b6ee1
DJ
4108else
4109 CC="$ac_cv_prog_CC"
4110fi
4111
4112if test -z "$CC"; then
efd58f08
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.
b58b6ee1 4115set dummy ${ac_tool_prefix}cc; ac_word=$2
efd58f08
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
cfc26d93
NN
4120else
4121 if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123else
b58b6ee1
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=.
efd58f08
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
b58b6ee1 4131 ac_cv_prog_CC="${ac_tool_prefix}cc"
efd58f08 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4133 break 2
4134 fi
4135done
efd58f08
RW
4136 done
4137IFS=$as_save_IFS
b58b6ee1 4138
cfc26d93
NN
4139fi
4140fi
b58b6ee1 4141CC=$ac_cv_prog_CC
cfc26d93 4142if test -n "$CC"; then
efd58f08
RW
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144$as_echo "$CC" >&6; }
b58b6ee1 4145else
efd58f08
RW
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
b58b6ee1
DJ
4148fi
4149
b58b6ee1 4150
efd58f08 4151 fi
b58b6ee1 4152fi
cfc26d93
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
efd58f08
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
cfc26d93
NN
4160else
4161 if test -n "$CC"; then
4162 ac_cv_prog_CC="$CC" # Let the user override the test.
4163else
cfc26d93 4164 ac_prog_rejected=no
b58b6ee1
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=.
efd58f08
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
b58b6ee1
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"
efd58f08 4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4178 break 2
4179 fi
4180done
efd58f08
RW
4181 done
4182IFS=$as_save_IFS
b58b6ee1 4183
cfc26d93
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
b58b6ee1 4188 if test $# != 0; then
cfc26d93
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
b58b6ee1 4193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
cfc26d93
NN
4194 fi
4195fi
4196fi
4197fi
b58b6ee1 4198CC=$ac_cv_prog_CC
cfc26d93 4199if test -n "$CC"; then
efd58f08
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201$as_echo "$CC" >&6; }
cfc26d93 4202else
efd58f08
RW
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
cfc26d93
NN
4205fi
4206
efd58f08 4207
b58b6ee1
DJ
4208fi
4209if test -z "$CC"; then
4210 if test -n "$ac_tool_prefix"; then
efd58f08 4211 for ac_prog in cl.exe
b58b6ee1
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
efd58f08
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
cfc26d93
NN
4219else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222else
b58b6ee1
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=.
efd58f08
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
b58b6ee1 4230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
efd58f08 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1 4232 break 2
76402c80 4233 fi
b58b6ee1 4234done
efd58f08
RW
4235 done
4236IFS=$as_save_IFS
f69e2532 4237
b58b6ee1
DJ
4238fi
4239fi
4240CC=$ac_cv_prog_CC
4241if test -n "$CC"; then
efd58f08
RW
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4243$as_echo "$CC" >&6; }
f69e2532 4244else
efd58f08
RW
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
cfc26d93 4247fi
f69e2532 4248
efd58f08 4249
b58b6ee1
DJ
4250 test -n "$CC" && break
4251 done
f69e2532 4252fi
b58b6ee1
DJ
4253if test -z "$CC"; then
4254 ac_ct_CC=$CC
efd58f08 4255 for ac_prog in cl.exe
b58b6ee1
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
efd58f08
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
f69e2532 4263else
b58b6ee1
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.
76402c80 4266else
b58b6ee1
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=.
efd58f08
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
b58b6ee1 4274 ac_cv_prog_ac_ct_CC="$ac_prog"
efd58f08 4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
4276 break 2
4277 fi
4278done
efd58f08
RW
4279 done
4280IFS=$as_save_IFS
b58b6ee1 4281
f69e2532
CM
4282fi
4283fi
b58b6ee1
DJ
4284ac_ct_CC=$ac_cv_prog_ac_ct_CC
4285if test -n "$ac_ct_CC"; then
efd58f08
RW
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4287$as_echo "$ac_ct_CC" >&6; }
cfc26d93 4288else
efd58f08
RW
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
f69e2532 4291fi
76402c80 4292
efd58f08 4293
b58b6ee1
DJ
4294 test -n "$ac_ct_CC" && break
4295done
4296
efd58f08
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
b58b6ee1
DJ
4308fi
4309
4310fi
4311
4312
efd58f08
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; }
b58b6ee1
DJ
4317
4318# Provide some information about the compiler.
efd58f08
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
b58b6ee1 4331 ac_status=$?
efd58f08
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
b58b6ee1 4342
efd58f08 4343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354ac_clean_files_save=$ac_clean_files
efd58f08 4355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b58b6ee1
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.
efd58f08
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
b58b6ee1 4384 ac_status=$?
efd58f08
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 ''
b58b6ee1
DJ
4393do
4394 test -f "$ac_file" || continue
4395 case $ac_file in
efd58f08 4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b58b6ee1
DJ
4397 ;;
4398 [ab].out )
4399 # We found the default executable, but exeext='' is most
4400 # certainly right.
4401 break;;
4402 *.* )
efd58f08
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.
b58b6ee1
DJ
4412 break;;
4413 * )
4414 break;;
4415 esac
4416done
efd58f08
RW
4417test "$ac_cv_exeext" = no && ac_cv_exeext=
4418
b58b6ee1 4419else
efd58f08
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
b58b6ee1
DJ
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
efd58f08
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; }; }
b58b6ee1 4433fi
b58b6ee1 4434ac_exeext=$ac_cv_exeext
b58b6ee1 4435
efd58f08 4436# Check that the compiler produces executables we can run. If not, either
b58b6ee1 4437# the compiler is broken, or we cross compile.
efd58f08
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; }
b58b6ee1
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'
efd58f08
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
b58b6ee1 4450 ac_status=$?
efd58f08
RW
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; }; then
b58b6ee1
DJ
4453 cross_compiling=no
4454 else
4455 if test "$cross_compiling" = maybe; then
4456 cross_compiling=yes
4457 else
efd58f08
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.
b58b6ee1 4461If you meant to cross compile, use \`--host'.
efd58f08 4462See \`config.log' for more details." "$LINENO" 5; }
b58b6ee1
DJ
4463 fi
4464 fi
4465fi
efd58f08
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467$as_echo "yes" >&6; }
b58b6ee1 4468
efd58f08 4469rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b58b6ee1 4470ac_clean_files=$ac_clean_files_save
efd58f08 4471# Check that the compiler produces executables we can run. If not, either
b58b6ee1 4472# the compiler is broken, or we cross compile.
efd58f08
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
b58b6ee1 4488 ac_status=$?
efd58f08
RW
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }; then :
b58b6ee1
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
efd58f08 4498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b58b6ee1 4499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b58b6ee1
DJ
4500 break;;
4501 * ) break;;
4502 esac
4503done
4504else
efd58f08
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; }
b58b6ee1 4509fi
b58b6ee1 4510rm -f conftest$ac_cv_exeext
efd58f08
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4512$as_echo "$ac_cv_exeext" >&6; }
b58b6ee1
DJ
4513
4514rm -f conftest.$ac_ext
4515EXEEXT=$ac_cv_exeext
4516ac_exeext=$EXEEXT
efd58f08
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
b58b6ee1 4521else
efd58f08 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
4523/* end confdefs.h. */
4524
4525int
4526main ()
4527{
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.o conftest.obj
efd58f08
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
b58b6ee1 4542 ac_status=$?
efd58f08
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;
b58b6ee1 4547 case $ac_file in
efd58f08 4548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b58b6ee1
DJ
4549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4550 break;;
4551 esac
4552done
f69e2532 4553else
efd58f08 4554 $as_echo "$as_me: failed program was:" >&5
b58b6ee1
DJ
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
efd58f08
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; }
b58b6ee1 4561fi
b58b6ee1
DJ
4562rm -f conftest.$ac_cv_objext conftest.$ac_ext
4563fi
efd58f08
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4565$as_echo "$ac_cv_objext" >&6; }
b58b6ee1
DJ
4566OBJEXT=$ac_cv_objext
4567ac_objext=$OBJEXT
efd58f08
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
b58b6ee1 4572else
efd58f08 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
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
efd58f08 4587if ac_fn_c_try_compile "$LINENO"; then :
b58b6ee1
DJ
4588 ac_compiler_gnu=yes
4589else
efd58f08 4590 ac_compiler_gnu=no
b58b6ee1 4591fi
efd58f08 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b58b6ee1
DJ
4593ac_cv_c_compiler_gnu=$ac_compiler_gnu
4594
4595fi
efd58f08
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
b58b6ee1
DJ
4603ac_test_CFLAGS=${CFLAGS+set}
4604ac_save_CFLAGS=$CFLAGS
efd58f08
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
b58b6ee1
DJ
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
efd58f08 4625if ac_fn_c_try_compile "$LINENO"; then :
cfc26d93
NN
4626 ac_cv_prog_cc_g=yes
4627else
efd58f08
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. */
f69e2532 4647
efd58f08
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
76402c80 4660fi
efd58f08 4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b58b6ee1 4662fi
efd58f08
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; }
cfc26d93 4668if test "$ac_test_CFLAGS" = set; then
b58b6ee1 4669 CFLAGS=$ac_save_CFLAGS
cfc26d93
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
efd58f08
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
b58b6ee1 4687else
efd58f08 4688 ac_cv_prog_cc_c89=no
b58b6ee1 4689ac_save_CC=$CC
efd58f08 4690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
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
efd58f08 4718 as 'x'. The following induces an error, until -std is added to get
b58b6ee1
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
efd58f08 4721 that's true only with -std. */
b58b6ee1
DJ
4722int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4723
efd58f08
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
b58b6ee1
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
efd58f08
RW
4743for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b58b6ee1
DJ
4745do
4746 CC="$ac_save_CC $ac_arg"
efd58f08
RW
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_c89=$ac_arg
b58b6ee1 4749fi
efd58f08
RW
4750rm -f core conftest.err conftest.$ac_objext
4751 test "x$ac_cv_prog_cc_c89" != "xno" && break
b58b6ee1 4752done
efd58f08 4753rm -f conftest.$ac_ext
b58b6ee1
DJ
4754CC=$ac_save_CC
4755
4756fi
efd58f08
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; } ;;
b58b6ee1 4765 *)
efd58f08
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; } ;;
b58b6ee1 4769esac
efd58f08 4770if test "x$ac_cv_prog_cc_c89" != xno; then :
b58b6ee1 4771
b58b6ee1
DJ
4772fi
4773
b58b6ee1
DJ
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
cfc26d93 4779
efd58f08 4780ac_ext=cpp
b8c26111
PB
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
efd58f08
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
b8c26111
PB
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
efd58f08
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
b8c26111
PB
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=.
efd58f08
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
b8c26111 4809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
efd58f08 4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b8c26111
PB
4811 break 2
4812 fi
4813done
efd58f08
RW
4814 done
4815IFS=$as_save_IFS
31839eae 4816
b8c26111
PB
4817fi
4818fi
4819CXX=$ac_cv_prog_CXX
4820if test -n "$CXX"; then
efd58f08
RW
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4822$as_echo "$CXX" >&6; }
b8c26111 4823else
efd58f08
RW
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
b8c26111
PB
4826fi
4827
efd58f08 4828
b8c26111
PB
4829 test -n "$CXX" && break
4830 done
4831fi
4832if test -z "$CXX"; then
4833 ac_ct_CXX=$CXX
efd58f08 4834 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
b8c26111
PB
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
efd58f08
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
b8c26111
PB
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=.
efd58f08
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
b8c26111 4853 ac_cv_prog_ac_ct_CXX="$ac_prog"
efd58f08 4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b8c26111 4855 break 2
31839eae 4856 fi
b8c26111 4857done
efd58f08
RW
4858 done
4859IFS=$as_save_IFS
31839eae 4860
b8c26111
PB
4861fi
4862fi
4863ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4864if test -n "$ac_ct_CXX"; then
efd58f08
RW
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4866$as_echo "$ac_ct_CXX" >&6; }
b8c26111 4867else
efd58f08
RW
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
b8c26111
PB
4870fi
4871
efd58f08 4872
b8c26111
PB
4873 test -n "$ac_ct_CXX" && break
4874done
b8c26111 4875
efd58f08
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
b8c26111
PB
4887fi
4888
efd58f08
RW
4889 fi
4890fi
b8c26111 4891# Provide some information about the compiler.
efd58f08
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
b8c26111 4904 ac_status=$?
efd58f08
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
b8c26111 4915
efd58f08
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
b8c26111 4920else
efd58f08 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111
PB
4922/* end confdefs.h. */
4923
4924int
4925main ()
4926{
4927#ifndef __GNUC__
4928 choke me
4929#endif
4930
4931 ;
4932 return 0;
4933}
4934_ACEOF
efd58f08 4935if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111
PB
4936 ac_compiler_gnu=yes
4937else
efd58f08 4938 ac_compiler_gnu=no
b8c26111 4939fi
efd58f08 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b8c26111
PB
4941ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4942
4943fi
efd58f08
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
b8c26111
PB
4951ac_test_CXXFLAGS=${CXXFLAGS+set}
4952ac_save_CXXFLAGS=$CXXFLAGS
efd58f08
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
b8c26111
PB
4963/* end confdefs.h. */
4964
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
efd58f08 4973if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111
PB
4974 ac_cv_prog_cxx_g=yes
4975else
efd58f08
RW
4976 CXXFLAGS=""
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111 4978/* end confdefs.h. */
efd58f08 4979
b8c26111
PB
4980int
4981main ()
4982{
efd58f08 4983
b8c26111
PB
4984 ;
4985 return 0;
4986}
4987_ACEOF
efd58f08 4988if ac_fn_cxx_try_compile "$LINENO"; then :
b8c26111 4989
efd58f08
RW
4990else
4991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4992 CXXFLAGS="-g"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b8c26111 4994/* end confdefs.h. */
efd58f08 4995
b8c26111
PB
4996int
4997main ()
4998{
efd58f08 4999
b8c26111
PB
5000 ;
5001 return 0;
5002}
5003_ACEOF
efd58f08
RW
5004if ac_fn_cxx_try_compile "$LINENO"; then :
5005 ac_cv_prog_cxx_g=yes
b8c26111 5006fi
efd58f08
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
b8c26111 5030fi
b8c26111
PB
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
31839eae
PB
5055fi
5056
5057
5058
5059
b58b6ee1 5060if test -n "$ac_tool_prefix"; then
31839eae
PB
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5062set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
efd58f08
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
cfc26d93 5067else
31839eae
PB
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
cfc26d93 5070else
b58b6ee1
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=.
efd58f08
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
31839eae 5078 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
efd58f08 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
5080 break 2
5081 fi
5082done
efd58f08
RW
5083 done
5084IFS=$as_save_IFS
b58b6ee1 5085
cfc26d93
NN
5086fi
5087fi
31839eae
PB
5088GNATBIND=$ac_cv_prog_GNATBIND
5089if test -n "$GNATBIND"; then
efd58f08
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091$as_echo "$GNATBIND" >&6; }
cfc26d93 5092else
efd58f08
RW
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
cfc26d93
NN
5095fi
5096
efd58f08 5097
b58b6ee1 5098fi
31839eae
PB
5099if test -z "$ac_cv_prog_GNATBIND"; then
5100 ac_ct_GNATBIND=$GNATBIND
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102set dummy gnatbind; ac_word=$2
efd58f08
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
cfc26d93 5107else
31839eae
PB
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
cfc26d93 5110else
b58b6ee1
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=.
efd58f08
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
31839eae 5118 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
efd58f08 5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
5120 break 2
5121 fi
5122done
efd58f08
RW
5123 done
5124IFS=$as_save_IFS
b58b6ee1 5125
cfc26d93
NN
5126fi
5127fi
31839eae
PB
5128ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5129if test -n "$ac_ct_GNATBIND"; then
efd58f08
RW
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131$as_echo "$ac_ct_GNATBIND" >&6; }
cfc26d93 5132else
efd58f08
RW
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
cfc26d93
NN
5135fi
5136
efd58f08
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
893220e0 5148else
31839eae 5149 GNATBIND="$ac_cv_prog_GNATBIND"
cfc26d93
NN
5150fi
5151
60800fb2 5152if test -n "$ac_tool_prefix"; then
31839eae
PB
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
efd58f08
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
60800fb2 5159else
31839eae
PB
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
60800fb2
PB
5162else
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=.
efd58f08
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
31839eae 5170 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
efd58f08 5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60800fb2
PB
5172 break 2
5173 fi
5174done
efd58f08
RW
5175 done
5176IFS=$as_save_IFS
60800fb2
PB
5177
5178fi
5179fi
31839eae
PB
5180GNATMAKE=$ac_cv_prog_GNATMAKE
5181if test -n "$GNATMAKE"; then
efd58f08
RW
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183$as_echo "$GNATMAKE" >&6; }
60800fb2 5184else
efd58f08
RW
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
60800fb2
PB
5187fi
5188
efd58f08 5189
60800fb2 5190fi
31839eae
PB
5191if test -z "$ac_cv_prog_GNATMAKE"; then
5192 ac_ct_GNATMAKE=$GNATMAKE
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194set dummy gnatmake; ac_word=$2
efd58f08
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
60800fb2 5199else
31839eae
PB
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
60800fb2
PB
5202else
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=.
efd58f08
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
31839eae 5210 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
efd58f08 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60800fb2
PB
5212 break 2
5213 fi
5214done
efd58f08
RW
5215 done
5216IFS=$as_save_IFS
60800fb2 5217
60800fb2
PB
5218fi
5219fi
31839eae
PB
5220ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5221if test -n "$ac_ct_GNATMAKE"; then
efd58f08
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223$as_echo "$ac_ct_GNATMAKE" >&6; }
60800fb2 5224else
efd58f08
RW
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
60800fb2
PB
5227fi
5228
efd58f08
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
60800fb2 5240else
31839eae 5241 GNATMAKE="$ac_cv_prog_GNATMAKE"
60800fb2
PB
5242fi
5243
efd58f08
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
cfc26d93
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.
866c244e
DD
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.
cfc26d93 5261errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
866c244e 5262if test x"$errors" = x && test -f conftest.$ac_objext; then
cfc26d93 5263 acx_cv_cc_gcc_supports_ada=yes
cfc26d93
NN
5264fi
5265rm -f conftest.*
5266fi
efd58f08
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; }
cfc26d93 5269
31839eae 5270if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
cfc26d93
NN
5271 have_gnat=yes
5272else
5273 have_gnat=no
5274fi
5275
efd58f08
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
866c244e
DD
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'
cb2333e8
DD
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
866c244e
DD
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
cb2333e8 5293 :
866c244e
DD
5294 else
5295 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5296 fi
5297 fi
5298 rm t1 t2
5299
5300fi
efd58f08
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; }
866c244e
DD
5303do_compare="$gcc_cv_prog_cmp_skip"
5304
5305
cfc26d93 5306
121f0eb2 5307# See if we are building gcc with C++.
efd58f08
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
121f0eb2
RW
5311else
5312 ENABLE_BUILD_WITH_CXX=no
efd58f08
RW
5313fi
5314
121f0eb2 5315
74fabfaf
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
121f0eb2 5346# Check for GMP, MPFR and MPC
1d30ae12 5347gmplibs="-lmpc -lmpfr -lgmp"
cb2333e8 5348gmpinc=
42f55f77 5349have_gmp=no
121f0eb2
RW
5350
5351# Specify a location for mpc
5352# check for this first so it ends up on the link line before mpfr.
5353
efd58f08
RW
5354# Check whether --with-mpc was given.
5355if test "${with_mpc+set}" = set; then :
5356 withval=$with_mpc;
5357fi
121f0eb2 5358
121f0eb2 5359
efd58f08
RW
5360# Check whether --with-mpc_include was given.
5361if test "${with_mpc_include+set}" = set; then :
5362 withval=$with_mpc_include;
5363fi
121f0eb2 5364
121f0eb2 5365
efd58f08
RW
5366# Check whether --with-mpc_lib was given.
5367if test "${with_mpc_lib+set}" = set; then :
5368 withval=$with_mpc_lib;
5369fi
121f0eb2 5370
121f0eb2
RW
5371
5372if test "x$with_mpc" != x; then
1d30ae12
KG
5373 gmplibs="-L$with_mpc/lib $gmplibs"
5374 gmpinc="-I$with_mpc/include $gmpinc"
121f0eb2
RW
5375fi
5376if test "x$with_mpc_include" != x; then
1d30ae12 5377 gmpinc="-I$with_mpc_include $gmpinc"
121f0eb2
RW
5378fi
5379if test "x$with_mpc_lib" != x; then
1d30ae12 5380 gmplibs="-L$with_mpc_lib $gmplibs"
121f0eb2
RW
5381fi
5382if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
74fabfaf 5383 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
1d30ae12 5384 gmpinc='-I$$s/mpc/src '"$gmpinc"
121f0eb2
RW
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.
1d30ae12 5389 have_gmp=yes
121f0eb2 5390fi
42f55f77 5391
cbd6bc14
DD
5392# Specify a location for mpfr
5393# check for this first so it ends up on the link line before gmp.
b58b6ee1 5394
efd58f08
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
cbd6bc14
DD
5401
5402
efd58f08
RW
5403# Check whether --with-mpfr was given.
5404if test "${with_mpfr+set}" = set; then :
5405 withval=$with_mpfr;
5406fi
b58b6ee1 5407
cbd6bc14 5408
efd58f08
RW
5409# Check whether --with-mpfr_include was given.
5410if test "${with_mpfr_include+set}" = set; then :
5411 withval=$with_mpfr_include;
5412fi
b58b6ee1 5413
14a1406e 5414
efd58f08
RW
5415# Check whether --with-mpfr_lib was given.
5416if test "${with_mpfr_lib+set}" = set; then :
5417 withval=$with_mpfr_lib;
5418fi
14a1406e 5419
cbd6bc14
DD
5420
5421if test "x$with_mpfr" != x; then
5422 gmplibs="-L$with_mpfr/lib $gmplibs"
1d30ae12 5423 gmpinc="-I$with_mpfr/include $gmpinc"
cbd6bc14 5424fi
14a1406e 5425if test "x$with_mpfr_include" != x; then
1d30ae12 5426 gmpinc="-I$with_mpfr_include $gmpinc"
14a1406e
PB
5427fi
5428if test "x$with_mpfr_lib" != x; then
5429 gmplibs="-L$with_mpfr_lib $gmplibs"
5430fi
42f55f77 5431if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
74fabfaf 5432 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
42f55f77 5433 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
74fabfaf 5434 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
42f55f77
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
cbd6bc14 5441
cb2333e8 5442# Specify a location for gmp
b58b6ee1 5443
efd58f08
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
cb2333e8
DD
5450
5451
efd58f08
RW
5452# Check whether --with-gmp was given.
5453if test "${with_gmp+set}" = set; then :
5454 withval=$with_gmp;
5455fi
b58b6ee1 5456
cb2333e8 5457
efd58f08
RW
5458# Check whether --with-gmp_include was given.
5459if test "${with_gmp_include+set}" = set; then :
5460 withval=$with_gmp_include;
5461fi
b58b6ee1 5462
14a1406e 5463
efd58f08
RW
5464# Check whether --with-gmp_lib was given.
5465if test "${with_gmp_lib+set}" = set; then :
5466 withval=$with_gmp_lib;
5467fi
14a1406e
PB
5468
5469
cb2333e8 5470
cbd6bc14
DD
5471if test "x$with_gmp" != x; then
5472 gmplibs="-L$with_gmp/lib $gmplibs"
5473 gmpinc="-I$with_gmp/include $gmpinc"
cb2333e8 5474fi
14a1406e
PB
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
42f55f77 5481if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
74fabfaf 5482 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
42f55f77 5483 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
65a20d8c 5484 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
74fabfaf 5485 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
42f55f77
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
cb2333e8 5492
bd74ff2b 5493if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
42f55f77
PB
5494 have_gmp=yes
5495 saved_CFLAGS="$CFLAGS"
5496 CFLAGS="$CFLAGS $gmpinc"
dded80b3
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; }
112afadf
RW
5500
5501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dded80b3
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 :
112afadf 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5520/* end confdefs.h. */
dded80b3 5521#include <gmp.h>
b58b6ee1
DJ
5522int
5523main ()
5524{
cb2333e8 5525
dded80b3
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)
42f55f77
PB
5529 choke me
5530 #endif
b58b6ee1
DJ
5531
5532 ;
5533 return 0;
5534}
5535_ACEOF
efd58f08
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; }
dded80b3
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
b58b6ee1 5544else
efd58f08
RW
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }; have_gmp=no
b58b6ee1 5547fi
efd58f08 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cb2333e8 5549
121f0eb2 5550 # If we have GMP, check the MPFR version.
42f55f77 5551 if test x"$have_gmp" = xyes; then
dded80b3
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; }
efd58f08 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5556/* end confdefs.h. */
75ea5758 5557#include <gmp.h>
42f55f77 5558 #include <mpfr.h>
b58b6ee1
DJ
5559int
5560main ()
5561{
75ea5758 5562
c2e861da 5563 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
42f55f77
PB
5564 choke me
5565 #endif
b58b6ee1
DJ
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
efd58f08
RW
5571if ac_fn_c_try_compile "$LINENO"; then :
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1 5573/* end confdefs.h. */
cb2333e8 5574#include <gmp.h>
42f55f77 5575 #include <mpfr.h>
b58b6ee1
DJ
5576int
5577main ()
5578{
a6a4e782 5579
dded80b3 5580 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
42f55f77
PB
5581 choke me
5582 #endif
121f0eb2
RW
5583
5584 ;
5585 return 0;
5586}
5587_ACEOF
efd58f08
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; }
121f0eb2 5591else
efd58f08
RW
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5593$as_echo "buggy but acceptable" >&6; }
121f0eb2 5594fi
efd58f08 5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2 5596else
efd58f08
RW
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598$as_echo "no" >&6; }; have_gmp=no
121f0eb2 5599fi
efd58f08 5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2
RW
5601 fi
5602
5603 # Check for the MPC header version.
1d30ae12 5604 if test x"$have_gmp" = xyes ; then
dded80b3 5605 # Check for the recommended and required versions of MPC.
efd58f08
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
121f0eb2
RW
5609/* end confdefs.h. */
5610#include <mpc.h>
5611int
5612main ()
5613{
5614
dded80b3
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)
121f0eb2
RW
5632 choke me
5633 #endif
5634
5635 ;
5636 return 0;
5637}
5638_ACEOF
efd58f08
RW
5639if ac_fn_c_try_compile "$LINENO"; then :
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1d30ae12 5641$as_echo "yes" >&6; }
dded80b3
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
121f0eb2 5647else
efd58f08 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1d30ae12 5649$as_echo "no" >&6; }; have_gmp=no
121f0eb2 5650fi
efd58f08 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
121f0eb2
RW
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"
1d30ae12
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; }
efd58f08 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
121f0eb2 5661/* end confdefs.h. */
1d30ae12 5662#include <mpc.h>
121f0eb2
RW
5663int
5664main ()
5665{
5666
5667 mpfr_t n;
5668 mpfr_t x;
1d30ae12 5669 mpc_t c;
121f0eb2
RW
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);
1d30ae12
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);
b58b6ee1
DJ
5684
5685 ;
5686 return 0;
5687}
5688_ACEOF
efd58f08
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; }
b58b6ee1 5692else
efd58f08
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }; have_gmp=no
b58b6ee1 5695fi
efd58f08
RW
5696rm -f core conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
121f0eb2
RW
5698 LIBS="$saved_LIBS"
5699 fi
5700
42f55f77 5701 CFLAGS="$saved_CFLAGS"
cb2333e8 5702
dded80b3
KG
5703# The library versions listed in the error message below should match
5704# the HARD-minimums enforced above.
42f55f77 5705 if test x$have_gmp != xyes; then
dded80b3 5706 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
1d30ae12
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
42f55f77 5715 fi
a6a4e782
DD
5716fi
5717
121f0eb2
RW
5718# Flags needed for both GMP, MPFR and/or MPC.
5719
5720
5721
cb2333e8
DD
5722
5723
5724
9f8da9ce
JM
5725# Allow host libstdc++ to be specified for static linking with PPL.
5726
efd58f08
RW
5727# Check whether --with-host-libstdcxx was given.
5728if test "${with_host_libstdcxx+set}" = set; then :
5729 withval=$with_host_libstdcxx;
5730fi
9f8da9ce 5731
9f8da9ce
JM
5732
5733case $with_host_libstdcxx in
5734 no|yes)
efd58f08 5735 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
9f8da9ce
JM
5736 ;;
5737esac
311b6756 5738
121f0eb2
RW
5739# Linker flags to use for stage1 or when not boostrapping.
5740
efd58f08
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
121f0eb2
RW
5744 stage1_ldflags=
5745 else
5746 stage1_ldflags=$withval
5747 fi
5748else
5749 stage1_ldflags=
efd58f08
RW
5750fi
5751
121f0eb2
RW
5752
5753
5754# Libraries to use for stage1 or when not bootstrapping.
5755
efd58f08
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
121f0eb2
RW
5759 stage1_libs=
5760 else
5761 stage1_libs=$withval
5762 fi
5763else
5764 stage1_libs=$with_host_libstdcxx
efd58f08
RW
5765fi
5766
121f0eb2
RW
5767
5768
121f0eb2
RW
5769# Libraries to use for stage2 and later builds. This defaults to the
5770# argument passed to --with-host-libstdcxx.
5771
efd58f08
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
121f0eb2
RW
5775 poststage1_libs=
5776 else
5777 poststage1_libs=$withval
5778 fi
5779else
5780 poststage1_libs=$with_host_libstdcxx
efd58f08
RW
5781fi
5782
121f0eb2
RW
5783
5784
f107c370
NC
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
311b6756 5806# Check for PPL
121f0eb2 5807ppllibs=" -lppl_c -lppl -lgmpxx"
311b6756
JM
5808pplinc=
5809
5810
efd58f08
RW
5811# Check whether --with-ppl was given.
5812if test "${with_ppl+set}" = set; then :
5813 withval=$with_ppl;
efd58f08 5814fi
311b6756 5815
311b6756 5816
efd58f08
RW
5817# Check whether --with-ppl_include was given.
5818if test "${with_ppl_include+set}" = set; then :
5819 withval=$with_ppl_include;
5820fi
5821
311b6756 5822
efd58f08
RW
5823# Check whether --with-ppl_lib was given.
5824if test "${with_ppl_lib+set}" = set; then :
5825 withval=$with_ppl_lib;
5826fi
311b6756 5827
311b6756 5828
9f8da9ce
JM
5829case $with_ppl in
5830 no)
5831 ppllibs=
5832 ;;
5074489a
AO
5833 "" | yes)
5834 ;;
9f8da9ce 5835 *)
121f0eb2 5836 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
9f8da9ce 5837 pplinc="-I$with_ppl/include $pplinc"
9f8da9ce
JM
5838 ;;
5839esac
311b6756
JM
5840if test "x$with_ppl_include" != x; then
5841 pplinc="-I$with_ppl_include $pplinc"
5842fi
5843if test "x$with_ppl_lib" != x; then
121f0eb2 5844 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
311b6756
JM
5845fi
5846if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
74fabfaf 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 '
5074489a
AO
5848 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5849 enable_ppl_version_check=no
311b6756
JM
5850fi
5851
efd58f08
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
311b6756
JM
5855else
5856 ENABLE_PPL_CHECK=yes
efd58f08
RW
5857fi
5858
311b6756 5859
5074489a 5860if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
311b6756
JM
5861 saved_CFLAGS="$CFLAGS"
5862 CFLAGS="$CFLAGS $pplinc $gmpinc"
112afadf
RW
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; }
efd58f08 5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
311b6756
JM
5866/* end confdefs.h. */
5867#include "ppl_c.h"
5868int
5869main ()
5870{
5871
112afadf 5872 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
311b6756
JM
5873 choke me
5874 #endif
5875
5876 ;
5877 return 0;
5878}
5879_ACEOF
efd58f08
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; }
311b6756 5883else
efd58f08 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074489a 5885$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
311b6756 5886fi
efd58f08 5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
311b6756
JM
5888 CFLAGS="$saved_CFLAGS"
5889fi
5890
5891# Flags needed for PPL
5892
5893
5894
5895
5896# Check for CLOOG
5897clooglibs=" -lcloog "
5898clooginc=" -DCLOOG_PPL_BACKEND "
5899
5900
efd58f08
RW
5901# Check whether --with-cloog was given.
5902if test "${with_cloog+set}" = set; then :
5903 withval=$with_cloog;
efd58f08
RW
5904fi
5905
311b6756 5906
efd58f08
RW
5907# Check whether --with-cloog_include was given.
5908if test "${with_cloog_include+set}" = set; then :
5909 withval=$with_cloog_include;
5910fi
311b6756 5911
311b6756 5912
efd58f08
RW
5913# Check whether --with-cloog_lib was given.
5914if test "${with_cloog_lib+set}" = set; then :
5915 withval=$with_cloog_lib;
5916fi
311b6756 5917
311b6756 5918
5074489a
AO
5919if test "x$with_ppl" = "xno"; then
5920 with_cloog=no
5921fi
5922
9f8da9ce
JM
5923case $with_cloog in
5924 no)
5925 clooglibs=
5926 clooginc=
5927 ;;
5074489a
AO
5928 "" | yes)
5929 ;;
9f8da9ce
JM
5930 *)
5931 clooglibs="-L$with_cloog/lib -lcloog"
5932 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
9f8da9ce
JM
5933 ;;
5934esac
311b6756
JM
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"
311b6756
JM
5940fi
5941if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
74fabfaf 5942 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
311b6756 5943 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5074489a 5944 enable_cloog_version_check=no
311b6756
JM
5945fi
5946
efd58f08
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
311b6756
JM
5950else
5951 ENABLE_CLOOG_CHECK=yes
efd58f08
RW
5952fi
5953
311b6756 5954
5074489a 5955if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
311b6756
JM
5956 saved_CFLAGS="$CFLAGS"
5957 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
f107c370
NC
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; }
efd58f08 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
311b6756
JM
5961/* end confdefs.h. */
5962#include "cloog/cloog.h"
5963int
5964main ()
5965{
5966
f107c370 5967 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
311b6756
JM
5968 choke me
5969 #endif
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
112afadf
RW
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
efd58f08
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; }
112afadf
RW
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
311b6756 5999else
efd58f08
RW
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }; clooglibs= ; clooginc=
311b6756 6002fi
efd58f08 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
311b6756
JM
6004 CFLAGS="$saved_CFLAGS"
6005fi
6006
6007# Flags needed for CLOOG
6008
6009
6010
bd45d6fa
ILT
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
f107c370 6020
0b3906a8 6021ac_ext=c
bd45d6fa
ILT
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
0b3906a8
DK
6419
6420
6421
6422target_elf=no
6423case $target in
6424 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6425 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
112afadf 6426 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
0b3906a8
DK
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
bd45d6fa
ILT
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);
bd45d6fa
ILT
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
112afadf
RW
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
bd45d6fa
ILT
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
5074489a
AO
6674 fi
6675
bd45d6fa
ILT
6676 # Flags needed for libelf.
6677
6678
1a91b8c0
DK
6679 # ELF platforms build the lto-plugin when GOLD is in use.
6680 build_lto_plugin=${ENABLE_GOLD}
bd45d6fa 6681fi
0b3906a8
DK
6682else
6683 if test x"$default_enable_lto" = x"yes" ; then
65a20d8c 6684 case $target in
1a91b8c0 6685 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
65a20d8c
RW
6686 # On other non-ELF platforms, LTO must be explicitly enabled.
6687 *) enable_lto=no ;;
6688 esac
0b3906a8 6689 else
65a20d8c
RW
6690 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6691 # It would also be nice to check the binutils support, but we don't
0b3906a8
DK
6692 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6693 # warn during gcc/ subconfigure; unless you're bootstrapping with
6694 # -flto it won't be needed until after installation anyway.
6695 case $target in
1a91b8c0 6696 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
0b3906a8
DK
6697 *) if test x"$enable_lto" = x"yes"; then
6698 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6699 fi
6700 ;;
6701 esac
6702 fi
1a91b8c0
DK
6703 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6704 case $target in
6705 *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
6706 *) ;;
6707 esac
0b3906a8
DK
6708 default_enable_lto=no
6709fi
6710
bd45d6fa 6711
311b6756 6712
4a95a7fe 6713# By default, C is the only stage 1 language.
75ea5758 6714stage1_languages=,c,
457eaf16 6715
121f0eb2 6716# Target libraries that we bootstrap.
bf01561d 6717bootstrap_target_libs=,target-libgcc,
121f0eb2 6718
cfc26d93
NN
6719# Figure out what language subdirectories are present.
6720# Look if the user specified --enable-languages="..."; if not, use
6721# the environment variable $LANGUAGES if defined. $LANGUAGES might
6722# go away some day.
6723# NB: embedded tabs in this IF block -- do not untabify
6724if test -d ${srcdir}/gcc; then
6725 if test x"${enable_languages+set}" != xset; then
6726 if test x"${LANGUAGES+set}" = xset; then
6727 enable_languages="${LANGUAGES}"
6728 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6729 else
6730 enable_languages=all
6731 fi
6732 else
6733 if test x"${enable_languages}" = x ||
6734 test x"${enable_languages}" = xyes;
6735 then
6736 echo configure.in: --enable-languages needs at least one language argument 1>&2
6737 exit 1
6738 fi
6739 fi
6740 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6741
c2105cb9
DE
6742 # 'f95' is the old name for the 'fortran' language. We issue a warning
6743 # and make the substitution.
6744 case ,${enable_languages}, in
6745 *,f95,*)
6746 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6747 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6748 ;;
6749 esac
6750
cfc26d93
NN
6751 # First scan to see if an enabled language requires some other language.
6752 # We assume that a given config-lang.in will list all the language
6753 # front ends it requires, even if some are required indirectly.
6754 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6755 case ${lang_frag} in
6756 ..) ;;
6757 # The odd quoting in the next line works around
6758 # an apparent bug in bash 1.12 on linux.
6759 ${srcdir}/gcc/[*]/config-lang.in) ;;
6760 *)
6761 # From the config-lang.in, get $language, $lang_requires
6762 language=
6763 lang_requires=
6764 . ${lang_frag}
6765 for other in ${lang_requires} ; do
6766 case ,${enable_languages}, in
6767 *,$other,*) ;;
6768 *,all,*) ;;
6769 *,$language,*)
6770 echo " \`$other' language required by \`$language'; enabling" 1>&2
6771 enable_languages="${enable_languages},${other}"
6772 ;;
6773 esac
6774 done
6775 ;;
6776 esac
6777 done
6778
75ea5758 6779 new_enable_languages=,c,
bd45d6fa
ILT
6780
6781 # If LTO is enabled, add the LTO front end.
6782 extra_host_libiberty_configure_flags=
6783 if test "$enable_lto" = "yes" ; then
6c41e710
RW
6784 case ,${enable_languages}, in
6785 *,lto,*) ;;
6786 *) enable_languages="${enable_languages},lto" ;;
6787 esac
1a91b8c0 6788 if test "${build_lto_plugin}" = "yes" ; then
bd45d6fa
ILT
6789 configdirs="$configdirs lto-plugin"
6790 extra_host_libiberty_configure_flags=--enable-shared
6791 fi
6792 fi
6793
6794
cfc26d93 6795 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
75ea5758 6796 potential_languages=,c,
cfc26d93
NN
6797
6798 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6799 case ${lang_frag} in
6800 ..) ;;
6801 # The odd quoting in the next line works around
6802 # an apparent bug in bash 1.12 on linux.
6803 ${srcdir}/gcc/[*]/config-lang.in) ;;
6804 *)
b58b6ee1 6805 # From the config-lang.in, get $language, $target_libs,
457eaf16 6806 # $lang_dirs, $boot_language, and $build_by_default
cfc26d93
NN
6807 language=
6808 target_libs=
6809 lang_dirs=
f90716dd 6810 subdir_requires=
75ea5758
PB
6811 boot_language=no
6812 build_by_default=yes
cfc26d93 6813 . ${lang_frag}
75ea5758
PB
6814 if test x${language} = x; then
6815 echo "${lang_frag} doesn't set \$language." 1>&2
6816 exit 1
6817 fi
6818
5074489a
AO
6819 if test "$language" = "c++" \
6820 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
121f0eb2
RW
6821 boot_language=yes
6822 fi
6823
75ea5758
PB
6824 case ,${enable_languages}, in
6825 *,${language},*)
cfc26d93
NN
6826 # Language was explicitly selected; include it.
6827 add_this_lang=yes
6828 ;;
75ea5758
PB
6829 *,all,*)
6830 # 'all' was selected, select it if it is a default language
6831 add_this_lang=${build_by_default}
cfc26d93
NN
6832 ;;
6833 *)
6834 add_this_lang=no
6835 ;;
6836 esac
cb2333e8 6837
f90716dd 6838 # Disable languages that need other directories if these aren't available.
37b43cde 6839 for i in $subdir_requires; do
69d5f332 6840 test -f "$srcdir/gcc/$i/config-lang.in" && continue
f90716dd
PB
6841 case ,${enable_languages}, in
6842 *,${language},*)
6843 # Specifically requested language; tell them.
efd58f08 6844 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
f90716dd
PB
6845 ;;
6846 *)
6847 # Silently disable.
75ea5758 6848 add_this_lang=unsupported
f90716dd
PB
6849 ;;
6850 esac
6851 done
6852
75ea5758
PB
6853 # Disable Ada if no preexisting GNAT is available.
6854 case ,${enable_languages},:${language}:${have_gnat} in
6855 *,${language},*:ada:no)
6856 # Specifically requested language; tell them.
efd58f08 6857 as_fn_error "GNAT is required to build $language" "$LINENO" 5
75ea5758
PB
6858 ;;
6859 *:ada:no)
6860 # Silently disable.
6861 add_this_lang=unsupported
6862 ;;
6863 esac
6864
aac893c5
HPN
6865 # Disable a language that is unsupported by the target.
6866 case " $unsupported_languages " in
6867 *" $language "*)
75ea5758 6868 add_this_lang=unsupported
aac893c5
HPN
6869 ;;
6870 esac
6871
cb2333e8 6872 case $add_this_lang in
75ea5758 6873 unsupported)
cfc26d93 6874 # Remove language-dependent dirs.
457eaf16
NN
6875 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6876 ;;
75ea5758
PB
6877 no)
6878 # Remove language-dependent dirs; still show language as supported.
6879 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6880 potential_languages="${potential_languages}${language},"
6881 ;;
6882 yes)
6883 new_enable_languages="${new_enable_languages}${language},"
6884 potential_languages="${potential_languages}${language},"
457eaf16 6885 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
e1762cf3
RW
6886 case "${boot_language}:,$enable_stage1_languages," in
6887 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8ec98d6c 6888 # Add to (comma-separated) list of stage 1 languages.
e1762cf3
RW
6889 case ",$stage1_languages," in
6890 *,$language,* | ,yes, | ,all,) ;;
6891 *) stage1_languages="${stage1_languages}${language}," ;;
6892 esac
121f0eb2
RW
6893 # We need to bootstrap any supporting libraries.
6894 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
457eaf16
NN
6895 ;;
6896 esac
6897 ;;
cfc26d93
NN
6898 esac
6899 ;;
6900 esac
6901 done
6902
efd58f08
RW
6903 # Check whether --enable-stage1-languages was given.
6904if test "${enable_stage1_languages+set}" = set; then :
6905 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
75ea5758
PB
6906 ,no,|,,)
6907 # Set it to something that will have no effect in the loop below
6908 enable_stage1_languages=c ;;
6909 ,yes,)
6910 enable_stage1_languages=`echo $new_enable_languages | \
6911 sed -e "s/^,//" -e "s/,$//" ` ;;
6912 *,all,*)
6913 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6914 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6915 esac
6916
6917 # Add "good" languages from enable_stage1_languages to stage1_languages,
6918 # while "bad" languages go in missing_languages. Leave no duplicates.
6919 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6920 case $potential_languages in
6921 *,$i,*)
6922 case $stage1_languages in
6923 *,$i,*) ;;
6924 *) stage1_languages="$stage1_languages$i," ;;
6925 esac ;;
6926 *)
6927 case $missing_languages in
6928 *,$i,*) ;;
6929 *) missing_languages="$missing_languages$i," ;;
6930 esac ;;
6931 esac
6932 done
efd58f08
RW
6933fi
6934
75ea5758
PB
6935
6936 # Remove leading/trailing commas that were added for simplicity
6937 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
2e93c971 6938 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
75ea5758
PB
6939 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6940 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6941
cfc26d93 6942 if test "x$missing_languages" != x; then
efd58f08 6943 as_fn_error "
57bcaf2d 6944The following requested languages could not be built: ${missing_languages}
efd58f08 6945Supported languages are: ${potential_languages}" "$LINENO" 5
cfc26d93 6946 fi
cfc26d93
NN
6947 if test "x$new_enable_languages" != "x$enable_languages"; then
6948 echo The following languages will be built: ${new_enable_languages}
75ea5758 6949 enable_languages="$new_enable_languages"
cfc26d93 6950 fi
75ea5758 6951
b58b6ee1 6952
0661a4a3 6953 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
cfc26d93
NN
6954fi
6955
f621a0dc
PB
6956# Handle --disable-<component> generically.
6957for dir in $configdirs $build_configdirs $target_configdirs ; do
6958 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
3fbb5e3d
PB
6959 varname=`echo $dirname | sed -e s/+/_/g`
6960 if eval test x\${enable_${varname}} "=" xno ; then
f621a0dc
PB
6961 noconfigdirs="$noconfigdirs $dir"
6962 fi
6963done
6964
e1e5148c 6965# Check for Boehm's garbage collector
efd58f08
RW
6966# Check whether --enable-objc-gc was given.
6967if test "${enable_objc_gc+set}" = set; then :
6968 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
e1e5148c 6969 *,objc,*:*:yes:*target-boehm-gc*)
efd58f08 6970 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
e1e5148c
CD
6971 ;;
6972esac
efd58f08
RW
6973fi
6974
e1e5148c
CD
6975
6976# Make sure we only build Boehm's garbage collector if required.
09fd280c
DA
6977case ,${enable_languages},:${enable_objc_gc} in
6978 *,objc,*:yes)
e1e5148c
CD
6979 # Keep target-boehm-gc if requested for Objective-C.
6980 ;;
e1e5148c 6981 *)
09fd280c
DA
6982 # Otherwise remove target-boehm-gc depending on target-libjava.
6983 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6984 noconfigdirs="$noconfigdirs target-boehm-gc"
6985 fi
e1e5148c
CD
6986 ;;
6987esac
6988
3d439922
AL
6989# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6990# $build_configdirs and $target_configdirs.
cfc26d93
NN
6991# If we have the source for $noconfigdirs entries, add them to $notsupp.
6992
6993notsupp=""
6994for dir in . $skipdirs $noconfigdirs ; do
3d439922 6995 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
cfc26d93
NN
6996 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6997 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6998 if test -r $srcdir/$dirname/configure ; then
6999 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7000 true
7001 else
7002 notsupp="$notsupp $dir"
7003 fi
7004 fi
7005 fi
3d439922
AL
7006 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7007 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7008 if test -r $srcdir/$dirname/configure ; then
7009 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7010 true
7011 else
7012 notsupp="$notsupp $dir"
7013 fi
7014 fi
7015 fi
cfc26d93
NN
7016 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7017 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7018 if test -r $srcdir/$dirname/configure ; then
7019 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7020 true
7021 else
7022 notsupp="$notsupp $dir"
7023 fi
7024 fi
7025 fi
7026done
7027
7028# Sometimes the tools are distributed with libiberty but with no other
7029# libraries. In that case, we don't want to build target-libiberty.
a1c408a1 7030# Don't let libgcc imply libiberty either.
cfc26d93 7031if test -n "${target_configdirs}" ; then
a1c408a1 7032 libgcc=
cfc26d93
NN
7033 others=
7034 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
a1c408a1
NC
7035 if test "$i" = "libgcc"; then
7036 libgcc=target-libgcc
7037 elif test "$i" != "libiberty" ; then
cfc26d93
NN
7038 if test -r $srcdir/$i/configure ; then
7039 others=yes;
7040 break;
7041 fi
7042 fi
7043 done
7044 if test -z "${others}" ; then
a1c408a1 7045 target_configdirs=$libgcc
cfc26d93
NN
7046 fi
7047fi
7048
7049# Quietly strip out all directories which aren't configurable in this tree.
7050# This relies on all configurable subdirectories being autoconfiscated, which
7051# is now the case.
2cb47d68
PB
7052build_configdirs_all="$build_configdirs"
7053build_configdirs=
7054for i in ${build_configdirs_all} ; do
b58b6ee1 7055 j=`echo $i | sed -e s/build-//g`
2cb47d68
PB
7056 if test -f ${srcdir}/$j/configure ; then
7057 build_configdirs="${build_configdirs} $i"
7058 fi
7059done
7060
cfc26d93
NN
7061configdirs_all="$configdirs"
7062configdirs=
7063for i in ${configdirs_all} ; do
7064 if test -f ${srcdir}/$i/configure ; then
7065 configdirs="${configdirs} $i"
7066 fi
7067done
2cb47d68 7068
cfc26d93
NN
7069target_configdirs_all="$target_configdirs"
7070target_configdirs=
7071for i in ${target_configdirs_all} ; do
b58b6ee1 7072 j=`echo $i | sed -e s/target-//g`
cfc26d93
NN
7073 if test -f ${srcdir}/$j/configure ; then
7074 target_configdirs="${target_configdirs} $i"
7075 fi
7076done
7077
7078# Produce a warning message for the subdirs we can't configure.
7079# This isn't especially interesting in the Cygnus tree, but in the individual
7080# FSF releases, it's important to let people know when their machine isn't
7081# supported by the one or two programs in a package.
7082
7083if test -n "${notsupp}" && test -z "${norecursion}" ; then
7084 # If $appdirs is non-empty, at least one of those directories must still
7085 # be configured, or we error out. (E.g., if the gas release supports a
7086 # specified target in some subdirs but not the gas subdir, we shouldn't
7087 # pretend that all is well.)
7088 if test -n "$appdirs" ; then
7089 for dir in $appdirs ; do
7090 if test -r $dir/Makefile.in ; then
7091 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7092 appdirs=""
7093 break
7094 fi
2cb47d68 7095 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
cfc26d93
NN
7096 appdirs=""
7097 break
7098 fi
7099 fi
7100 done
7101 if test -n "$appdirs" ; then
7102 echo "*** This configuration is not supported by this package." 1>&2
7103 exit 1
7104 fi
7105 fi
7106 # Okay, some application will build, or we don't care to check. Still
7107 # notify of subdirs not getting built.
7108 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7109 echo " ${notsupp}" 1>&2
7110 echo " (Any other directories should still work fine.)" 1>&2
7111fi
7112
7113case "$host" in
7114 *msdosdjgpp*)
7115 enable_gdbtk=no ;;
7116esac
7117
b8c26111
PB
7118# To find our prefix, in gcc_cv_tool_prefix.
7119
7120# The user is always right.
7121if test "${PATH_SEPARATOR+set}" != set; then
7122 echo "#! /bin/sh" >conf$$.sh
7123 echo "exit 0" >>conf$$.sh
7124 chmod +x conf$$.sh
7125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7126 PATH_SEPARATOR=';'
7127 else
7128 PATH_SEPARATOR=:
7129 fi
7130 rm -f conf$$.sh
7131fi
7132
7133
7134
7135if test "x$exec_prefix" = xNONE; then
7136 if test "x$prefix" = xNONE; then
7137 gcc_cv_tool_prefix=$ac_default_prefix
7138 else
7139 gcc_cv_tool_prefix=$prefix
7140 fi
7141else
7142 gcc_cv_tool_prefix=$exec_prefix
7143fi
7144
7145# If there is no compiler in the tree, use the PATH only. In any
7146# case, if there is no compiler in the tree nobody should use
7147# AS_FOR_TARGET and LD_FOR_TARGET.
7148if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7149 gcc_version=`cat $srcdir/gcc/BASE-VER`
7150 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7151 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7152 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7153 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7154 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7155 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7156else
7157 gcc_cv_tool_dirs=
7158fi
7159
7160if test x$build = x$target && test -n "$md_exec_prefix"; then
7161 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7162fi
7163
7164
7165
cfc26d93
NN
7166copy_dirs=
7167
b58b6ee1 7168
efd58f08
RW
7169# Check whether --with-build-sysroot was given.
7170if test "${with_build_sysroot+set}" = set; then :
7171 withval=$with_build_sysroot; if test x"$withval" != x ; then
9b992990
MM
7172 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7173 fi
7174else
7175 SYSROOT_CFLAGS_FOR_TARGET=
efd58f08 7176fi
9b992990
MM
7177
7178
fcc5fef0 7179
efd58f08
RW
7180
7181# Check whether --with-debug-prefix-map was given.
7182if test "${with_debug_prefix_map+set}" = set; then :
7183 withval=$with_debug_prefix_map; if test x"$withval" != x; then
fcc5fef0
JM
7184 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7185 for debug_map in $withval; do
7186 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7187 done
7188 fi
7189else
7190 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
efd58f08
RW
7191fi
7192
fcc5fef0
JM
7193
7194
6532abb6
PB
7195# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7196# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7197# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7198# We want to ensure that TARGET libraries (which we know are built with
7199# gcc) are built with "-O2 -g", so include those options when setting
7200# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7201if test "x$CFLAGS_FOR_TARGET" = x; then
7202 CFLAGS_FOR_TARGET=$CFLAGS
7203 case " $CFLAGS " in
7204 *" -O2 "*) ;;
7205 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7206 esac
7207 case " $CFLAGS " in
7208 *" -g "* | *" -g3 "*) ;;
7209 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7210 esac
7211fi
7212
7213
7214if test "x$CXXFLAGS_FOR_TARGET" = x; then
7215 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7216 case " $CXXFLAGS " in
7217 *" -O2 "*) ;;
7218 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7219 esac
7220 case " $CXXFLAGS " in
7221 *" -g "* | *" -g3 "*) ;;
7222 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7223 esac
7224fi
7225
7226
cfc26d93
NN
7227# Handle --with-headers=XXX. If the value is not "yes", the contents of
7228# the named directory are copied to $(tooldir)/sys-include.
7229if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7230 if test x${is_cross_compiler} = xno ; then
7231 echo 1>&2 '***' --with-headers is only supported when cross compiling
7232 exit 1
7233 fi
7234 if test x"${with_headers}" != xyes ; then
b8c26111 7235 x=${gcc_cv_tool_prefix}
b58b6ee1 7236 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
cfc26d93
NN
7237 fi
7238fi
7239
7240# Handle --with-libs=XXX. If the value is not "yes", the contents of
7241# the name directories are copied to $(tooldir)/lib. Multiple directories
7242# are permitted.
7243if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7244 if test x${is_cross_compiler} = xno ; then
7245 echo 1>&2 '***' --with-libs is only supported when cross compiling
7246 exit 1
7247 fi
7248 if test x"${with_libs}" != xyes ; then
7249 # Copy the libraries in reverse order, so that files in the first named
7250 # library override files in subsequent libraries.
b8c26111 7251 x=${gcc_cv_tool_prefix}
cfc26d93 7252 for l in ${with_libs}; do
b58b6ee1 7253 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
cfc26d93
NN
7254 done
7255 fi
7256fi
7257
bd45d6fa 7258# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
fef3f213
PB
7259#
7260# This is done by determining whether or not the appropriate directory
7261# is available, and by checking whether or not specific configurations
7262# have requested that this magic not happen.
b58b6ee1
DJ
7263#
7264# The command line options always override the explicit settings in
fef3f213
PB
7265# configure.in, and the settings in configure.in override this magic.
7266#
b58b6ee1 7267# If the default for a toolchain is to use GNU as and ld, and you don't
fef3f213 7268# want to do that, then you should use the --without-gnu-as and
bd45d6fa
ILT
7269# --without-gnu-ld options for the configure script. Similarly, if
7270# the default is to use the included zlib and you don't want to do that,
7271# you should use the --with-system-zlib option for the configure script.
fef3f213
PB
7272
7273if test x${use_gnu_as} = x &&
7274 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7275 with_gnu_as=yes
7276 extra_host_args="$extra_host_args --with-gnu-as"
7277fi
7278
7279if test x${use_gnu_ld} = x &&
b916272a 7280 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
fef3f213
PB
7281 with_gnu_ld=yes
7282 extra_host_args="$extra_host_args --with-gnu-ld"
7283fi
7284
bd45d6fa
ILT
7285if test x${use_included_zlib} = x &&
7286 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7287 :
7288else
7289 with_system_zlib=yes
7290 extra_host_args="$extra_host_args --with-system-zlib"
7291fi
7292
fef3f213
PB
7293# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7294# can detect this case.
7295
7296if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7297 with_newlib=yes
7298 extra_host_args="$extra_host_args --with-newlib"
7299fi
7300
cfc26d93
NN
7301# Handle ${copy_dirs}
7302set fnord ${copy_dirs}
7303shift
7304while test $# != 0 ; do
7305 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7306 :
7307 else
7308 echo Copying $1 to $2
7309
7310 # Use the install script to create the directory and all required
7311 # parent directories.
7312 if test -d $2 ; then
7313 :
7314 else
7315 echo >config.temp
7316 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7317 fi
7318
7319 # Copy the directory, assuming we have tar.
7320 # FIXME: Should we use B in the second tar? Not all systems support it.
7321 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7322
7323 # It is the responsibility of the user to correctly adjust all
7324 # symlinks. If somebody can figure out how to handle them correctly
7325 # here, feel free to add the code.
7326
7327 echo $1 > $2/COPIED
7328 fi
7329 shift; shift
7330done
7331
fef3f213
PB
7332# Determine a target-dependent exec_prefix that the installed
7333# gcc will search in. Keep this list sorted by triplet, with
7334# the *-*-osname triplets last.
7335md_exec_prefix=
7336case "${target}" in
7337 alpha*-*-*vms*)
7338 md_exec_prefix=/gnu/lib/gcc-lib
7339 ;;
b301596e 7340 i[34567]86-pc-msdosdjgpp*)
fef3f213
PB
7341 md_exec_prefix=/dev/env/DJDIR/bin
7342 ;;
b301596e 7343 i[34567]86-*-sco3.2v5*)
fef3f213
PB
7344 if test $with_gnu_as = yes; then
7345 md_exec_prefix=/usr/gnu/bin
7346 else
7347 md_exec_prefix=/usr/ccs/bin/elf
7348 fi
7349 ;;
7350
7351 mn10300-*-* | \
7352 powerpc-*-chorusos* | \
7353 powerpc*-*-eabi* | \
7354 powerpc*-*-sysv* | \
7355 powerpc*-*-kaos* | \
7356 s390x-ibm-tpf*)
7357 md_exec_prefix=/usr/ccs/bin
7358 ;;
7359 sparc64-*-elf*)
7360 ;;
7361 v850*-*-*)
7362 md_exec_prefix=/usr/ccs/bin
7363 ;;
a1e856cc 7364 xtensa*-*-elf*)
fef3f213
PB
7365 ;;
7366
7367 *-*-beos* | \
7368 *-*-elf* | \
7369 *-*-hpux* | \
7370 *-*-netware* | \
7371 *-*-nto-qnx* | \
7372 *-*-rtems* | \
7373 *-*-solaris2* | \
b301596e 7374 *-*-sysv[45]* | \
fef3f213
PB
7375 *-*-vxworks* | \
7376 *-wrs-windiss)
7377 md_exec_prefix=/usr/ccs/bin
7378 ;;
7379esac
7380
bafecfd6
NN
7381extra_arflags_for_target=
7382extra_nmflags_for_target=
7383extra_ranlibflags_for_target=
7384target_makefile_frag=/dev/null
7385case "${target}" in
4e16301e
DB
7386 mep*-*-*)
7387 target_makefile_frag="config/mt-mep"
7388 ;;
e53c5df0
AM
7389 spu-*-*)
7390 target_makefile_frag="config/mt-spu"
7391 ;;
2ad518b5
RS
7392 mips*-sde-elf*)
7393 target_makefile_frag="config/mt-sde"
7394 ;;
2d2e75dd
RS
7395 mipsisa*-*-elfoabi*)
7396 target_makefile_frag="config/mt-mips-elfoabi"
7397 ;;
59c59569
RS
7398 mips*-*-*linux* | mips*-*-gnu*)
7399 target_makefile_frag="config/mt-mips-gnu"
7400 ;;
b330724f 7401 *-*-netware*)
bafecfd6
NN
7402 target_makefile_frag="config/mt-netware"
7403 ;;
9f8da9ce 7404 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
824cf273 7405 target_makefile_frag="config/mt-gnu"
bafecfd6
NN
7406 ;;
7407 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b58b6ee1 7408 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
bafecfd6
NN
7409 # commands to handle both 32-bit and 64-bit objects. These flags are
7410 # harmless if we're using GNU nm or ar.
7411 extra_arflags_for_target=" -X32_64"
7412 extra_nmflags_for_target=" -B -X32_64"
7413 ;;
105d67cb
JM
7414 *-*-darwin[3-9]*)
7415 # ranlib before Darwin10 requires the -c flag to look at common symbols.
bafecfd6
NN
7416 extra_ranlibflags_for_target=" -c"
7417 ;;
7418 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7419 target_makefile_frag="config/mt-wince"
7420 ;;
7421esac
7422
7423alphaieee_frag=/dev/null
7424case $target in
7425 alpha*-*-*)
7426 # This just makes sure to use the -mieee option to build target libs.
7427 # This should probably be set individually by each library.
7428 alphaieee_frag="config/mt-alphaieee"
7429 ;;
7430esac
7431
7432# If --enable-target-optspace always use -Os instead of -O2 to build
7433# the target libraries, similarly if it is not specified, use -Os
7434# on selected platforms.
7435ospace_frag=/dev/null
7436case "${enable_target_optspace}:${target}" in
7437 yes:*)
7438 ospace_frag="config/mt-ospace"
7439 ;;
7440 :d30v-*)
7441 ospace_frag="config/mt-d30v"
7442 ;;
7443 :m32r-* | :d10v-* | :fr30-*)
7444 ospace_frag="config/mt-ospace"
7445 ;;
7446 no:* | :*)
7447 ;;
7448 *)
7449 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7450 ;;
7451esac
7452
bafecfd6
NN
7453# Default to using --with-stabs for certain targets.
7454if test x${with_stabs} = x ; then
7455 case "${target}" in
4ea8488c 7456 mips*-*-irix[56]*)
bafecfd6
NN
7457 ;;
7458 mips*-*-* | alpha*-*-osf*)
7459 with_stabs=yes;
7460 extra_host_args="${extra_host_args} --with-stabs"
7461 ;;
7462 esac
7463fi
7464
7465# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7466# them automatically.
7467case "${host}" in
b58b6ee1 7468 hppa*64*-*-hpux11*)
bafecfd6
NN
7469 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7470 ;;
7471esac
7472
bafecfd6
NN
7473# Some systems (e.g., one of the i386-aix systems the gas testers are
7474# using) don't handle "\$" correctly, so don't use it here.
b58b6ee1 7475tooldir='${exec_prefix}'/${target_noncanonical}
bafecfd6
NN
7476build_tooldir=${tooldir}
7477
bafecfd6
NN
7478# Create a .gdbinit file which runs the one in srcdir
7479# and tells GDB to look there for source files.
7480
7481if test -r ${srcdir}/.gdbinit ; then
7482 case ${srcdir} in
7483 .) ;;
7484 *) cat > ./.gdbinit <<EOF
7485# ${NO_EDIT}
7486dir ${srcdir}
7487dir .
7488source ${srcdir}/.gdbinit
7489EOF
7490 ;;
7491 esac
7492fi
7493
bafecfd6
NN
7494# Make sure that the compiler is able to generate an executable. If it
7495# can't, we are probably in trouble. We don't care whether we can run the
7496# executable--we might be using a cross compiler--we only care whether it
7497# can be created. At this point the main configure script has set CC.
7498we_are_ok=no
7499echo "int main () { return 0; }" > conftest.c
7500${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7501if test $? = 0 ; then
7502 if test -s conftest || test -s conftest.exe ; then
7503 we_are_ok=yes
7504 fi
b58b6ee1 7505fi
bafecfd6
NN
7506case $we_are_ok in
7507 no)
7508 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7509 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7510 rm -f conftest*
7511 exit 1
7512 ;;
7513esac
7514rm -f conftest*
7515
7516# The Solaris /usr/ucb/cc compiler does not appear to work.
7517case "${host}" in
7518 sparc-sun-solaris2*)
7519 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7520 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7521 could_use=
7522 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7523 if test -d /opt/cygnus/bin ; then
7524 if test "$could_use" = "" ; then
7525 could_use="/opt/cygnus/bin"
7526 else
7527 could_use="$could_use or /opt/cygnus/bin"
7528 fi
7529 fi
7530 if test "$could_use" = "" ; then
7531 echo "Warning: compilation may fail because you're using"
7532 echo "/usr/ucb/cc. You should change your PATH or CC "
7533 echo "variable and rerun configure."
7534 else
7535 echo "Warning: compilation may fail because you're using"
7536 echo "/usr/ucb/cc, when you should use the C compiler from"
7537 echo "$could_use. You should change your"
7538 echo "PATH or CC variable and rerun configure."
7539 fi
7540 fi
7541 ;;
7542esac
7543
8453fdba 7544# Decide which environment variable is used to find dynamic libraries.
bafecfd6
NN
7545case "${host}" in
7546 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
d34bd810 7547 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
8453fdba 7548 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
bafecfd6
NN
7549 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7550esac
7551
8453fdba 7552# On systems where the dynamic library environment variable is PATH,
311b6756
JM
7553# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7554# built executables to PATH.
8453fdba
AL
7555if test "$RPATH_ENVVAR" = PATH; then
7556 GCC_SHLIB_SUBDIR=/shlib
7557else
7558 GCC_SHLIB_SUBDIR=
7559fi
7560
bafecfd6
NN
7561# Record target_configdirs and the configure arguments for target and
7562# build configuration in Makefile.
7563target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2cb47d68 7564build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
bafecfd6 7565
bf01561d
JR
7566# If we are building libgomp, bootstrap it.
7567if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7568 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7569fi
7570
bafecfd6
NN
7571# Determine whether gdb needs tk/tcl or not.
7572# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7573# and in that case we want gdb to be built without tk. Ugh!
7574# In fact I believe gdb is the *only* package directly dependent on tk,
7575# so we should be able to put the 'maybe's in unconditionally and
7576# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7577# 100% sure that that's safe though.
5035a087 7578
44397772 7579gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
bafecfd6
NN
7580case "$enable_gdbtk" in
7581 no)
7582 GDB_TK="" ;;
5035a087
AC
7583 yes)
7584 GDB_TK="${gdb_tk}" ;;
bafecfd6 7585 *)
5035a087
AC
7586 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7587 # distro. Eventually someone will fix this and move Insight, nee
7588 # gdbtk to a separate directory.
7589 if test -d ${srcdir}/gdb/gdbtk ; then
7590 GDB_TK="${gdb_tk}"
7591 else
7592 GDB_TK=""
7593 fi
7594 ;;
bafecfd6 7595esac
81cdf522
DJ
7596CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7597INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
bafecfd6 7598
a7e609d6 7599# Strip out unwanted targets.
9b520963
NN
7600
7601# While at that, we remove Makefiles if we were started for recursive
7602# configuration, so that the top-level Makefile reconfigures them,
7603# like we used to do when configure itself was recursive.
9b520963 7604
94f4a7b9
RW
7605# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7606# but now we're fixing up the Makefile ourselves with the additional
7607# commands passed to AC_CONFIG_FILES. Use separate variables
7608# extrasub-{build,host,target} not because there is any reason to split
7609# the substitutions up that way, but only to remain below the limit of
7610# 99 commands in a script, for HP-UX sed.
7611# Do not nest @if/@endif pairs, because configure will not warn you at all.
9b520963 7612
efd58f08
RW
7613# Check whether --enable-bootstrap was given.
7614if test "${enable_bootstrap+set}" = set; then :
7615 enableval=$enable_bootstrap;
e1666221 7616else
ebc58bf8 7617 enable_bootstrap=default
efd58f08
RW
7618fi
7619
e1666221 7620
ebc58bf8
PB
7621# Issue errors and warnings for invalid/strange bootstrap combinations.
7622case "$configdirs" in
7623 *gcc*) have_compiler=yes ;;
7624 *) have_compiler=no ;;
7625esac
7626
7627case "$have_compiler:$host:$target:$enable_bootstrap" in
7628 *:*:*:no) ;;
7629
15b527ca 7630 # Default behavior. Enable bootstrap if we have a compiler
ebc58bf8
PB
7631 # and we are in a native configuration.
7632 yes:$build:$build:default)
15b527ca 7633 enable_bootstrap=yes ;;
ebc58bf8
PB
7634
7635 *:*:*:default)
7636 enable_bootstrap=no ;;
7637
7638 # We have a compiler and we are in a native configuration, bootstrap is ok
e3c08f94 7639 yes:$build:$build:yes)
ebc58bf8
PB
7640 ;;
7641
7642 # Other configurations, but we have a compiler. Assume the user knows
7643 # what he's doing.
e3c08f94 7644 yes:*:*:yes)
efd58f08
RW
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7646$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ebc58bf8
PB
7647 ;;
7648
7649 # No compiler: if they passed --enable-bootstrap explicitly, fail
e3c08f94 7650 no:*:*:yes)
efd58f08 7651 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ebc58bf8
PB
7652
7653 # Fail if wrong command line
7654 *)
efd58f08 7655 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ebc58bf8
PB
7656 ;;
7657esac
7658
92763ad9
RW
7659case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7660 *,c++,*:yes:yes) ;;
7661 *:yes:yes)
7662 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7663 ;;
7664esac
7665
9d1fd371
RW
7666case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7667 yes:yes:*\ gold\ *:*,c++,*) ;;
7668 yes:yes:*\ gold\ *:*)
7669 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7670 ;;
7671esac
7672
ebc58bf8 7673# Adjust the toplevel makefile according to whether bootstrap was selected.
55662058 7674case $enable_bootstrap in
e1666221 7675 yes)
55662058
AO
7676 bootstrap_suffix=bootstrap
7677 BUILD_CONFIG=bootstrap-debug
7678 ;;
e1666221 7679 no)
55662058
AO
7680 bootstrap_suffix=no-bootstrap
7681 BUILD_CONFIG=
7682 ;;
e1666221
PB
7683esac
7684
55662058
AO
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7686$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7687
7688
7689# Check whether --with-build-config was given.
7690if test "${with_build_config+set}" = set; then :
7691 withval=$with_build_config; case $with_build_config in
7692 yes) with_build_config= ;;
7693 no) with_build_config= BUILD_CONFIG= ;;
7694 esac
7695fi
7696
7697
7698if test "x${with_build_config}" != x; then
7699 BUILD_CONFIG=$with_build_config
7700else
7701 case $BUILD_CONFIG in
7702 bootstrap-debug)
7703 if echo "int f (void) { return 0; }" > conftest.c &&
7704 ${CC} -c conftest.c &&
7705 mv conftest.o conftest.o.g0 &&
7706 ${CC} -c -g conftest.c &&
7707 mv conftest.o conftest.o.g &&
112afadf 7708 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
55662058
AO
7709 :
7710 else
7711 BUILD_CONFIG=
7712 fi
7713 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7714 ;;
7715 esac
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7718$as_echo "$BUILD_CONFIG" >&6; }
7719
7720
94f4a7b9 7721extrasub_build=
2cb47d68 7722for module in ${build_configdirs} ; do
aac4e7d4
CF
7723 if test -z "${no_recursion}" \
7724 && test -f ${build_subdir}/${module}/Makefile; then
7725 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7726 rm -f ${build_subdir}/${module}/Makefile
7727 fi
94f4a7b9 7728 extrasub_build="$extrasub_build
aac4e7d4
CF
7729/^@if build-$module\$/d
7730/^@endif build-$module\$/d
7731/^@if build-$module-$bootstrap_suffix\$/d
7732/^@endif build-$module-$bootstrap_suffix\$/d"
7733done
94f4a7b9 7734extrasub_host=
aac4e7d4 7735for module in ${configdirs} ; do
e3c08f94 7736 if test -z "${no_recursion}"; then
bde7f665 7737 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
e3c08f94
PB
7738 if test -f ${file}; then
7739 echo 1>&2 "*** removing ${file} to force reconfigure"
7740 rm -f ${file}
7741 fi
7742 done
aac4e7d4 7743 fi
94f4a7b9 7744 extrasub_host="$extrasub_host
aac4e7d4
CF
7745/^@if $module\$/d
7746/^@endif $module\$/d
7747/^@if $module-$bootstrap_suffix\$/d
7748/^@endif $module-$bootstrap_suffix\$/d"
7749done
94f4a7b9 7750extrasub_target=
aac4e7d4
CF
7751for module in ${target_configdirs} ; do
7752 if test -z "${no_recursion}" \
7753 && test -f ${target_subdir}/${module}/Makefile; then
7754 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7755 rm -f ${target_subdir}/${module}/Makefile
7756 fi
121f0eb2
RW
7757
7758 # We only bootstrap target libraries listed in bootstrap_target_libs.
7759 case $bootstrap_target_libs in
7760 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7761 *) target_bootstrap_suffix=no-bootstrap ;;
7762 esac
7763
94f4a7b9 7764 extrasub_target="$extrasub_target
aac4e7d4
CF
7765/^@if target-$module\$/d
7766/^@endif target-$module\$/d
121f0eb2
RW
7767/^@if target-$module-$target_bootstrap_suffix\$/d
7768/^@endif target-$module-$target_bootstrap_suffix\$/d"
aac4e7d4
CF
7769done
7770
94f4a7b9
RW
7771# Do the final fixup along with target modules.
7772extrasub_target="$extrasub_target
a7e609d6 7773/^@if /,/^@endif /d"
bafecfd6
NN
7774
7775# Create the serialization dependencies. This uses a temporary file.
7776
efd58f08
RW
7777# Check whether --enable-serial-configure was given.
7778if test "${enable_serial_configure+set}" = set; then :
7779 enableval=$enable_serial_configure;
7780fi
af9955fa
AO
7781
7782
7f74e6a3
DD
7783case ${enable_serial_configure} in
7784 yes)
7785 enable_serial_build_configure=yes
7786 enable_serial_host_configure=yes
7787 enable_serial_target_configure=yes
7788 ;;
7789esac
7790
bafecfd6
NN
7791# These force 'configure's to be done one at a time, to avoid problems
7792# with contention over a shared config.cache.
7793rm -f serdep.tmp
af9955fa 7794echo '# serdep.tmp' > serdep.tmp
bafecfd6 7795olditem=
7f74e6a3 7796test "x${enable_serial_build_configure}" = xyes &&
bafecfd6
NN
7797for item in ${build_configdirs} ; do
7798 case ${olditem} in
7799 "") ;;
af9955fa 7800 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7801 esac
7802 olditem=${item}
7803done
7804olditem=
7f74e6a3 7805test "x${enable_serial_host_configure}" = xyes &&
bafecfd6
NN
7806for item in ${configdirs} ; do
7807 case ${olditem} in
7808 "") ;;
af9955fa 7809 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7810 esac
7811 olditem=${item}
7812done
7813olditem=
7f74e6a3 7814test "x${enable_serial_target_configure}" = xyes &&
bafecfd6
NN
7815for item in ${target_configdirs} ; do
7816 case ${olditem} in
7817 "") ;;
af9955fa 7818 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
bafecfd6
NN
7819 esac
7820 olditem=${item}
7821done
7822serialization_dependencies=serdep.tmp
7823
7824
af9955fa 7825# Base args. Strip norecursion, cache-file, srcdir, host, build,
b58b6ee1 7826# target, nonopt, and variable assignments. These are the ones we
358d4e3c
NC
7827# might not want to pass down to subconfigures. The exception being
7828# --cache-file=/dev/null, which is used to turn off the use of cache
7829# files altogether, and which should be passed on to subconfigures.
7830# Also strip program-prefix, program-suffix, and program-transform-name,
7831# so that we can pass down a consistent program-transform-name.
b58b6ee1
DJ
7832baseargs=
7833keep_next=no
7834skip_next=no
7835eval "set -- $ac_configure_args"
b8c26111
PB
7836for ac_arg
7837do
b58b6ee1
DJ
7838 if test X"$skip_next" = X"yes"; then
7839 skip_next=no
7840 continue
7841 fi
7842 if test X"$keep_next" = X"yes"; then
7843 case $ac_arg in
7844 *\'*)
7845 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7846 esac
7847 baseargs="$baseargs '$ac_arg'"
7848 keep_next=no
7849 continue
7850 fi
7851
7852 # Handle separated arguments. Based on the logic generated by
7853 # autoconf 2.59.
7854 case $ac_arg in
7855 *=* | --config-cache | -C | -disable-* | --disable-* \
7856 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7857 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7858 | -with-* | --with-* | -without-* | --without-* | --x)
7859 separate_arg=no
7860 ;;
7861 -*)
7862 separate_arg=yes
7863 ;;
7864 *)
7865 separate_arg=no
7866 ;;
7867 esac
7868
7869 case "$ac_arg" in
358d4e3c
NC
7870 --cache-file=/dev/null | \
7871 -cache-file=/dev/null )
7872 # Handled here to avoid the test to skip args below.
7873 baseargs="$baseargs '$ac_arg'"
7874 # Assert: $separate_arg should always be no.
7875 keep_next=$separate_arg
7876 ;;
b58b6ee1
DJ
7877 --no*)
7878 continue
7879 ;;
7880 --c* | \
7881 --sr* | \
7882 --ho* | \
7883 --bu* | \
7884 --t* | \
7885 --program-* | \
7886 -cache_file* | \
7887 -srcdir* | \
7888 -host* | \
7889 -build* | \
7890 -target* | \
7891 -program-prefix* | \
7892 -program-suffix* | \
7893 -program-transform-name* )
7894 skip_next=$separate_arg
7895 continue
7896 ;;
7897 -*)
7898 # An option. Add it.
7899 case $ac_arg in
7900 *\'*)
7901 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7902 esac
7903 baseargs="$baseargs '$ac_arg'"
7904 keep_next=$separate_arg
7905 ;;
7906 *)
7907 # Either a variable assignment, or a nonopt (triplet). Don't
7908 # pass it down; let the Makefile handle this.
7909 continue
7910 ;;
7911 esac
7912done
7913# Remove the initial space we just introduced and, as these will be
7914# expanded by make, quote '$'.
7915baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
bafecfd6 7916
eedd1e14
DJ
7917# Add in --program-transform-name, after --program-prefix and
7918# --program-suffix have been applied to it. Autoconf has already
7919# doubled dollar signs and backslashes in program_transform_name; we want
7920# the backslashes un-doubled, and then the entire thing wrapped in single
b58b6ee1 7921# quotes, because this will be expanded first by make and then by the shell.
eedd1e14
DJ
7922# Also, because we want to override the logic in subdir configure scripts to
7923# choose program_transform_name, replace any s,x,x, with s,y,y,.
7924sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7925${program_transform_name}
7926EOF_SED
7927gcc_transform_name=`cat conftestsed.out`
7928rm -f conftestsed.out
7929baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
fc7c811f
BE
7930if test "$silent" = yes; then
7931 baseargs="$baseargs --silent"
7932fi
5546e07b 7933baseargs="$baseargs --disable-option-checking"
eedd1e14 7934
1d694d8e
RW
7935# Record and document user additions to sub configure arguments.
7936
7937
7938
7939
bafecfd6
NN
7940# For the build-side libraries, we just need to pretend we're native,
7941# and not use the same cache file. Multilibs are neither needed nor
7942# desired.
1d694d8e 7943build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
bafecfd6
NN
7944
7945# For host modules, accept cache file option, or specification as blank.
7946case "${cache_file}" in
7947"") # empty
7948 cache_file_option="" ;;
7949/* | [A-Za-z]:[\\/]* ) # absolute path
7950 cache_file_option="--cache-file=${cache_file}" ;;
7951*) # relative path
7952 cache_file_option="--cache-file=../${cache_file}" ;;
7953esac
7954
68c6d8ac
NN
7955# Host dirs don't like to share a cache file either, horribly enough.
7956# This seems to be due to autoconf 2.5x stupidity.
1d694d8e 7957host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
bafecfd6 7958
1d694d8e 7959target_configargs="$target_configargs ${baseargs}"
bafecfd6
NN
7960
7961# Passing a --with-cross-host argument lets the target libraries know
7962# whether they are being built with a cross-compiler or being built
7963# native. However, it would be better to use other mechanisms to make the
7964# sorts of decisions they want to make on this basis. Please consider
7965# this option to be deprecated. FIXME.
7966if test x${is_cross_compiler} = xyes ; then
b58b6ee1 7967 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
bafecfd6
NN
7968fi
7969
5d239c61
RW
7970# Default to --enable-multilib.
7971if test x${enable_multilib} = x ; then
bafecfd6 7972 target_configargs="--enable-multilib ${target_configargs}"
5d239c61 7973fi
bafecfd6
NN
7974
7975# Pass --with-newlib if appropriate. Note that target_configdirs has
7976# changed from the earlier setting of with_newlib.
7977if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7978 target_configargs="--with-newlib ${target_configargs}"
7979fi
7980
5b28b6ef
NN
7981# Different target subdirs use different values of certain variables
7982# (notably CXX). Worse, multilibs use *lots* of different values.
7983# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7984# it doesn't automatically accept command-line overrides of them.
7985# This means it's not safe for target subdirs to share a cache file,
7986# which is disgusting, but there you have it. Hopefully this can be
7987# fixed in future. It's still worthwhile to use a cache file for each
7988# directory. I think.
7989
29730600
MS
7990# Pass the appropriate --build, --host, --target and --cache-file arguments.
7991# We need to pass --target, as newer autoconf's requires consistency
7992# for target_alias and gcc doesn't manage it consistently.
42f55f77 7993target_configargs="--cache-file=./config.cache ${target_configargs}"
bafecfd6 7994
bafecfd6
NN
7995FLAGS_FOR_TARGET=
7996case " $target_configdirs " in
7997 *" newlib "*)
7998 case " $target_configargs " in
7999 *" --with-newlib "*)
8000 case "$target" in
5074489a
AO
8001 *-cygwin*)
8002 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'
8003 ;;
bafecfd6
NN
8004 esac
8005
8006 # If we're not building GCC, don't discard standard headers.
8007 if test -d ${srcdir}/gcc; then
8008 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8009
8010 if test "${build}" != "${host}"; then
8011 # On Canadian crosses, CC_FOR_TARGET will have already been set
8012 # by `configure', so we won't have an opportunity to add -Bgcc/
8013 # to it. This is right: we don't want to search that directory
8014 # for binaries, but we want the header files in there, so add
8015 # them explicitly.
7fc2ca22 8016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
bafecfd6
NN
8017
8018 # Someone might think of using the pre-installed headers on
8019 # Canadian crosses, in case the installed compiler is not fully
8020 # compatible with the compiler being built. In this case, it
8021 # would be better to flag an error than risking having
8022 # incompatible object files being constructed. We can't
8023 # guarantee that an error will be flagged, but let's hope the
8024 # compiler will do it, when presented with incompatible header
8025 # files.
8026 fi
8027 fi
8028
8029 case "${target}-${is_cross_compiler}" in
08049c01 8030 i[3456789]86-*-linux*-no)
bafecfd6
NN
8031 # Here host == target, so we don't need to build gcc,
8032 # so we don't want to discard standard headers.
8033 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8034 ;;
8035 *)
8036 # If we're building newlib, use its generic headers last, but search
8037 # for any libc-related directories first (so make it the last -B
8038 # switch).
8039 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
46093329
DD
8040
8041 # If we're building libgloss, find the startup file, simulator library
8042 # and linker script.
8043 case " $target_configdirs " in
8044 *" libgloss "*)
8045 # Look for startup file, simulator library and maybe linker script.
8046 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8047 # Look for libnosys.a in case the target needs it.
8048 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8049 # Most targets have the linker script in the source directory.
8050 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8051 ;;
8052 esac
bafecfd6
NN
8053 ;;
8054 esac
8055 ;;
8056 esac
8057 ;;
8058esac
5074489a 8059
bc668665 8060case "$target" in
5074489a
AO
8061 x86_64-*mingw* | *-w64-mingw*)
8062 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8063 # however, use a symlink named 'mingw' in ${prefix} .
8064 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8065 ;;
8066 *-mingw*)
8067 # MinGW can't be handled as Cygwin above since it does not use newlib.
8068 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'
8069 ;;
bc668665 8070esac
bafecfd6 8071
e9ea9dec
DD
8072# Allow the user to override the flags for
8073# our build compiler if desired.
77961173
NC
8074if test x"${build}" = x"${host}" ; then
8075 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8076 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8077 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8078fi
e9ea9dec 8079
bafecfd6
NN
8080# On Canadian crosses, we'll be searching the right directories for
8081# the previously-installed cross compiler, so don't bother to add
8082# flags for directories within the install tree of the compiler
8083# being built; programs in there won't even run.
8084if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8085 # Search for pre-installed headers if nothing else fits.
2245eb63 8086 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
bafecfd6
NN
8087fi
8088
8089if test "x${use_gnu_ld}" = x &&
8090 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8091 # Arrange for us to find uninstalled linker scripts.
7fc2ca22 8092 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
bafecfd6
NN
8093fi
8094
ad352d9b
DD
8095# Search for other target-specific linker scripts and such.
8096case "${target}" in
4e16301e
DB
8097 mep*)
8098 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8099 ;;
8100esac
8101
bafecfd6 8102# Makefile fragments.
96979a18
PB
8103for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8104do
8105 eval fragval=\$$frag
8106 if test $fragval != /dev/null; then
8107 eval $frag=${srcdir}/$fragval
8108 fi
8109done
bafecfd6
NN
8110
8111
8112
8113
8114
8115# Miscellanea: directories, flags, etc.
8116
8117
8118
8119
8120
8121
8122
8453fdba 8123
2cb47d68 8124# Build module lists & subconfigure args.
bafecfd6
NN
8125
8126
8127
a7dc05b5
PB
8128# Host module lists & subconfigure args.
8129
8130
8131
e894eef9 8132
a7dc05b5
PB
8133# Target module lists & subconfigure args.
8134
8135
8136
8137# Build tools.
8138
8139
8140
4413ec01
PB
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
a7dc05b5
PB
8155# Generate default definitions for YACC, M4, LEX and other programs that run
8156# on the build machine. These are used if the Makefile can't locate these
8157# programs in objdir.
8158MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8159
8160for ac_prog in 'bison -y' byacc yacc
8161do
b58b6ee1 8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8163set dummy $ac_prog; ac_word=$2
efd58f08
RW
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if test "${ac_cv_prog_YACC+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8168else
8169 if test -n "$YACC"; then
8170 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8171else
b58b6ee1
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
efd58f08
RW
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8179 ac_cv_prog_YACC="$ac_prog"
efd58f08 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8181 break 2
8182 fi
8183done
efd58f08
RW
8184 done
8185IFS=$as_save_IFS
b58b6ee1 8186
a7dc05b5
PB
8187fi
8188fi
b58b6ee1 8189YACC=$ac_cv_prog_YACC
a7dc05b5 8190if test -n "$YACC"; then
efd58f08
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8192$as_echo "$YACC" >&6; }
a7dc05b5 8193else
efd58f08
RW
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
a7dc05b5
PB
8196fi
8197
efd58f08 8198
b58b6ee1 8199 test -n "$YACC" && break
a7dc05b5
PB
8200done
8201test -n "$YACC" || YACC="$MISSING bison -y"
8202
8203case " $build_configdirs " in
8204 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8205 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8206esac
8207
8208for ac_prog in bison
8209do
b58b6ee1 8210 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8211set dummy $ac_prog; ac_word=$2
efd58f08
RW
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if test "${ac_cv_prog_BISON+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8216else
8217 if test -n "$BISON"; then
8218 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8219else
b58b6ee1
DJ
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
efd58f08
RW
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8227 ac_cv_prog_BISON="$ac_prog"
efd58f08 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8229 break 2
8230 fi
8231done
efd58f08
RW
8232 done
8233IFS=$as_save_IFS
b58b6ee1 8234
a7dc05b5
PB
8235fi
8236fi
b58b6ee1 8237BISON=$ac_cv_prog_BISON
a7dc05b5 8238if test -n "$BISON"; then
efd58f08
RW
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8240$as_echo "$BISON" >&6; }
a7dc05b5 8241else
efd58f08
RW
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
a7dc05b5
PB
8244fi
8245
efd58f08 8246
b58b6ee1 8247 test -n "$BISON" && break
a7dc05b5
PB
8248done
8249test -n "$BISON" || BISON="$MISSING bison"
8250
8251case " $build_configdirs " in
8252 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8253esac
8254
8255for ac_prog in gm4 gnum4 m4
8256do
b58b6ee1 8257 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8258set dummy $ac_prog; ac_word=$2
efd58f08
RW
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if test "${ac_cv_prog_M4+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8263else
8264 if test -n "$M4"; then
8265 ac_cv_prog_M4="$M4" # Let the user override the test.
8266else
b58b6ee1
DJ
8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
efd58f08
RW
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8274 ac_cv_prog_M4="$ac_prog"
efd58f08 8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8276 break 2
8277 fi
8278done
efd58f08
RW
8279 done
8280IFS=$as_save_IFS
b58b6ee1 8281
a7dc05b5
PB
8282fi
8283fi
b58b6ee1 8284M4=$ac_cv_prog_M4
a7dc05b5 8285if test -n "$M4"; then
efd58f08
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8287$as_echo "$M4" >&6; }
a7dc05b5 8288else
efd58f08
RW
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
a7dc05b5
PB
8291fi
8292
efd58f08 8293
b58b6ee1 8294 test -n "$M4" && break
a7dc05b5
PB
8295done
8296test -n "$M4" || M4="$MISSING m4"
8297
8298case " $build_configdirs " in
8299 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8300esac
8301
8302for ac_prog in flex lex
8303do
b58b6ee1 8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8305set dummy $ac_prog; ac_word=$2
efd58f08
RW
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307$as_echo_n "checking for $ac_word... " >&6; }
8308if test "${ac_cv_prog_LEX+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8310else
8311 if test -n "$LEX"; then
8312 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8313else
b58b6ee1
DJ
8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
efd58f08
RW
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8321 ac_cv_prog_LEX="$ac_prog"
efd58f08 8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8323 break 2
8324 fi
8325done
efd58f08
RW
8326 done
8327IFS=$as_save_IFS
b58b6ee1 8328
a7dc05b5
PB
8329fi
8330fi
b58b6ee1 8331LEX=$ac_cv_prog_LEX
a7dc05b5 8332if test -n "$LEX"; then
efd58f08
RW
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8334$as_echo "$LEX" >&6; }
a7dc05b5 8335else
efd58f08
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
a7dc05b5
PB
8338fi
8339
efd58f08 8340
b58b6ee1 8341 test -n "$LEX" && break
a7dc05b5
PB
8342done
8343test -n "$LEX" || LEX="$MISSING flex"
8344
8345case " $build_configdirs " in
8346 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8347 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8348esac
8349
8350for ac_prog in flex
8351do
b58b6ee1 8352 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8353set dummy $ac_prog; ac_word=$2
efd58f08
RW
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_FLEX+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8358else
8359 if test -n "$FLEX"; then
8360 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8361else
b58b6ee1
DJ
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
efd58f08
RW
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8369 ac_cv_prog_FLEX="$ac_prog"
efd58f08 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8371 break 2
8372 fi
8373done
efd58f08
RW
8374 done
8375IFS=$as_save_IFS
b58b6ee1 8376
a7dc05b5
PB
8377fi
8378fi
b58b6ee1 8379FLEX=$ac_cv_prog_FLEX
a7dc05b5 8380if test -n "$FLEX"; then
efd58f08
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8382$as_echo "$FLEX" >&6; }
a7dc05b5 8383else
efd58f08
RW
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
a7dc05b5
PB
8386fi
8387
efd58f08 8388
b58b6ee1 8389 test -n "$FLEX" && break
a7dc05b5
PB
8390done
8391test -n "$FLEX" || FLEX="$MISSING flex"
8392
8393case " $build_configdirs " in
8394 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8395esac
8396
8397for ac_prog in makeinfo
8398do
b58b6ee1 8399 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8400set dummy $ac_prog; ac_word=$2
efd58f08
RW
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402$as_echo_n "checking for $ac_word... " >&6; }
8403if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8405else
8406 if test -n "$MAKEINFO"; then
8407 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8408else
b58b6ee1
DJ
8409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
efd58f08
RW
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8416 ac_cv_prog_MAKEINFO="$ac_prog"
efd58f08 8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8418 break 2
8419 fi
8420done
efd58f08
RW
8421 done
8422IFS=$as_save_IFS
b58b6ee1 8423
a7dc05b5
PB
8424fi
8425fi
b58b6ee1 8426MAKEINFO=$ac_cv_prog_MAKEINFO
a7dc05b5 8427if test -n "$MAKEINFO"; then
efd58f08
RW
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8429$as_echo "$MAKEINFO" >&6; }
a7dc05b5 8430else
efd58f08
RW
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432$as_echo "no" >&6; }
a7dc05b5
PB
8433fi
8434
efd58f08 8435
b58b6ee1 8436 test -n "$MAKEINFO" && break
a7dc05b5
PB
8437done
8438test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8439
8440case " $build_configdirs " in
8441 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8442 *)
8443
3ac4fba1 8444 # For an installed makeinfo, we require it to be from texinfo 4.7 or
a7dc05b5
PB
8445 # higher, else we use the "missing" dummy.
8446 if ${MAKEINFO} --version \
3ac4fba1 8447 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
a7dc05b5
PB
8448 :
8449 else
8450 MAKEINFO="$MISSING makeinfo"
8451 fi
8452 ;;
8453
8454esac
bafecfd6 8455
a7dc05b5 8456# FIXME: expect and dejagnu may become build tools?
bafecfd6 8457
a7dc05b5
PB
8458for ac_prog in expect
8459do
b58b6ee1 8460 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8461set dummy $ac_prog; ac_word=$2
efd58f08
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_EXPECT+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8466else
8467 if test -n "$EXPECT"; then
8468 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8469else
b58b6ee1
DJ
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
efd58f08
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8477 ac_cv_prog_EXPECT="$ac_prog"
efd58f08 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8479 break 2
8480 fi
8481done
efd58f08
RW
8482 done
8483IFS=$as_save_IFS
b58b6ee1 8484
a7dc05b5
PB
8485fi
8486fi
b58b6ee1 8487EXPECT=$ac_cv_prog_EXPECT
a7dc05b5 8488if test -n "$EXPECT"; then
efd58f08
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8490$as_echo "$EXPECT" >&6; }
a7dc05b5 8491else
efd58f08
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
a7dc05b5 8494fi
bafecfd6 8495
efd58f08 8496
b58b6ee1 8497 test -n "$EXPECT" && break
a7dc05b5
PB
8498done
8499test -n "$EXPECT" || EXPECT="expect"
bafecfd6 8500
a7dc05b5
PB
8501case " $configdirs " in
8502 *" expect "*)
8503 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8504 ;;
8505esac
bafecfd6 8506
a7dc05b5
PB
8507for ac_prog in runtest
8508do
b58b6ee1 8509 # Extract the first word of "$ac_prog", so it can be a program name with args.
a7dc05b5 8510set dummy $ac_prog; ac_word=$2
efd58f08
RW
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
a7dc05b5
PB
8515else
8516 if test -n "$RUNTEST"; then
8517 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8518else
b58b6ee1
DJ
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
efd58f08
RW
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8526 ac_cv_prog_RUNTEST="$ac_prog"
efd58f08 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8528 break 2
8529 fi
8530done
efd58f08
RW
8531 done
8532IFS=$as_save_IFS
b58b6ee1 8533
a7dc05b5
PB
8534fi
8535fi
b58b6ee1 8536RUNTEST=$ac_cv_prog_RUNTEST
a7dc05b5 8537if test -n "$RUNTEST"; then
efd58f08
RW
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8539$as_echo "$RUNTEST" >&6; }
a7dc05b5 8540else
efd58f08
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
a7dc05b5 8543fi
bafecfd6 8544
efd58f08 8545
b58b6ee1 8546 test -n "$RUNTEST" && break
a7dc05b5
PB
8547done
8548test -n "$RUNTEST" || RUNTEST="runtest"
bafecfd6 8549
a7dc05b5
PB
8550case " $configdirs " in
8551 *" dejagnu "*)
adb51f0a 8552 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
a7dc05b5
PB
8553 ;;
8554esac
bafecfd6
NN
8555
8556
bafecfd6 8557# Host tools.
a0c92996
AC
8558ncn_tool_prefix=
8559test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8560ncn_target_tool_prefix=
8561test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8562
82026593
AO
8563
8564
8565if test -n "$AR"; then
8566 ac_cv_prog_AR=$AR
8567elif test -n "$ac_cv_prog_AR"; then
8568 AR=$ac_cv_prog_AR
8569fi
8570
8571if test -n "$ac_cv_prog_AR"; then
8572 for ncn_progname in ar; do
8573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8574set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if test "${ac_cv_prog_AR+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
82026593
AO
8579else
8580 if test -n "$AR"; then
8581 ac_cv_prog_AR="$AR" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
efd58f08
RW
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 8590 ac_cv_prog_AR="${ncn_progname}"
efd58f08 8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8592 break 2
8593 fi
8594done
efd58f08
RW
8595 done
8596IFS=$as_save_IFS
82026593
AO
8597
8598fi
8599fi
8600AR=$ac_cv_prog_AR
8601if test -n "$AR"; then
efd58f08
RW
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8603$as_echo "$AR" >&6; }
82026593 8604else
efd58f08
RW
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
82026593
AO
8607fi
8608
efd58f08 8609
82026593
AO
8610 done
8611fi
8612
8613for ncn_progname in ar; do
60cfca65
PB
8614 if test -n "$ncn_tool_prefix"; then
8615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618$as_echo_n "checking for $ac_word... " >&6; }
8619if test "${ac_cv_prog_AR+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
a0c92996
AC
8621else
8622 if test -n "$AR"; then
8623 ac_cv_prog_AR="$AR" # Let the user override the test.
8624else
b58b6ee1
DJ
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
efd58f08
RW
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8632 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8634 break 2
8635 fi
8636done
efd58f08
RW
8637 done
8638IFS=$as_save_IFS
b58b6ee1 8639
a0c92996
AC
8640fi
8641fi
b58b6ee1 8642AR=$ac_cv_prog_AR
a0c92996 8643if test -n "$AR"; then
efd58f08
RW
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8645$as_echo "$AR" >&6; }
a0c92996 8646else
efd58f08
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
a0c92996
AC
8649fi
8650
efd58f08 8651
60cfca65
PB
8652 fi
8653 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8655set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657$as_echo_n "checking for $ac_word... " >&6; }
8658if test "${ac_cv_prog_AR+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
a0c92996 8660else
60cfca65
PB
8661 if test -n "$AR"; then
8662 ac_cv_prog_AR="$AR" # Let the user override the test.
a0c92996 8663else
b58b6ee1
DJ
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
efd58f08
RW
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8671 ac_cv_prog_AR="${ncn_progname}"
efd58f08 8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8673 break 2
8674 fi
8675done
efd58f08
RW
8676 done
8677IFS=$as_save_IFS
b58b6ee1 8678
a0c92996
AC
8679fi
8680fi
b58b6ee1 8681AR=$ac_cv_prog_AR
60cfca65 8682if test -n "$AR"; then
efd58f08
RW
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8684$as_echo "$AR" >&6; }
a0c92996 8685else
efd58f08
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
a0c92996 8688fi
b58b6ee1 8689
efd58f08 8690
60cfca65
PB
8691 fi
8692 test -n "$ac_cv_prog_AR" && break
8693done
8694
8695if test -z "$ac_cv_prog_AR" ; then
8696 set dummy ar
8697 if test $build = $host ; then
8698 AR="$2"
a0c92996 8699 else
60cfca65 8700 AR="${ncn_tool_prefix}$2"
a0c92996 8701 fi
a0c92996
AC
8702fi
8703
82026593
AO
8704
8705
8706if test -n "$AS"; then
8707 ac_cv_prog_AS=$AS
8708elif test -n "$ac_cv_prog_AS"; then
8709 AS=$ac_cv_prog_AS
8710fi
8711
8712if test -n "$ac_cv_prog_AS"; then
8713 for ncn_progname in as; do
8714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8715set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717$as_echo_n "checking for $ac_word... " >&6; }
8718if test "${ac_cv_prog_AS+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
82026593
AO
8720else
8721 if test -n "$AS"; then
8722 ac_cv_prog_AS="$AS" # Let the user override the test.
8723else
8724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $PATH
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
efd58f08
RW
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 8731 ac_cv_prog_AS="${ncn_progname}"
efd58f08 8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8733 break 2
8734 fi
8735done
efd58f08
RW
8736 done
8737IFS=$as_save_IFS
82026593
AO
8738
8739fi
8740fi
8741AS=$ac_cv_prog_AS
8742if test -n "$AS"; then
efd58f08
RW
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8744$as_echo "$AS" >&6; }
82026593 8745else
efd58f08
RW
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747$as_echo "no" >&6; }
82026593
AO
8748fi
8749
efd58f08 8750
82026593
AO
8751 done
8752fi
8753
8754for ncn_progname in as; do
60cfca65
PB
8755 if test -n "$ncn_tool_prefix"; then
8756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8757set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759$as_echo_n "checking for $ac_word... " >&6; }
8760if test "${ac_cv_prog_AS+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
a0c92996
AC
8762else
8763 if test -n "$AS"; then
8764 ac_cv_prog_AS="$AS" # Let the user override the test.
b58b6ee1
DJ
8765else
8766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767for as_dir in $PATH
8768do
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
efd58f08
RW
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8773 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8775 break 2
8776 fi
8777done
efd58f08
RW
8778 done
8779IFS=$as_save_IFS
b58b6ee1 8780
a0c92996
AC
8781fi
8782fi
b58b6ee1 8783AS=$ac_cv_prog_AS
a0c92996 8784if test -n "$AS"; then
efd58f08
RW
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8786$as_echo "$AS" >&6; }
a0c92996 8787else
efd58f08
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789$as_echo "no" >&6; }
a0c92996
AC
8790fi
8791
efd58f08 8792
60cfca65
PB
8793 fi
8794 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8796set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798$as_echo_n "checking for $ac_word... " >&6; }
8799if test "${ac_cv_prog_AS+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
a0c92996 8801else
60cfca65
PB
8802 if test -n "$AS"; then
8803 ac_cv_prog_AS="$AS" # Let the user override the test.
a0c92996 8804else
b58b6ee1
DJ
8805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806for as_dir in $PATH
8807do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
efd58f08
RW
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8812 ac_cv_prog_AS="${ncn_progname}"
efd58f08 8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8814 break 2
8815 fi
8816done
efd58f08
RW
8817 done
8818IFS=$as_save_IFS
b58b6ee1 8819
a0c92996
AC
8820fi
8821fi
b58b6ee1 8822AS=$ac_cv_prog_AS
60cfca65 8823if test -n "$AS"; then
efd58f08
RW
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8825$as_echo "$AS" >&6; }
a0c92996 8826else
efd58f08
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828$as_echo "no" >&6; }
a0c92996 8829fi
b58b6ee1 8830
efd58f08 8831
60cfca65
PB
8832 fi
8833 test -n "$ac_cv_prog_AS" && break
8834done
8835
8836if test -z "$ac_cv_prog_AS" ; then
8837 set dummy as
8838 if test $build = $host ; then
8839 AS="$2"
a0c92996 8840 else
60cfca65 8841 AS="${ncn_tool_prefix}$2"
a0c92996 8842 fi
a0c92996
AC
8843fi
8844
82026593
AO
8845
8846
8847if test -n "$DLLTOOL"; then
8848 ac_cv_prog_DLLTOOL=$DLLTOOL
8849elif test -n "$ac_cv_prog_DLLTOOL"; then
8850 DLLTOOL=$ac_cv_prog_DLLTOOL
8851fi
8852
8853if test -n "$ac_cv_prog_DLLTOOL"; then
8854 for ncn_progname in dlltool; do
8855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8856set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858$as_echo_n "checking for $ac_word... " >&6; }
8859if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
82026593
AO
8861else
8862 if test -n "$DLLTOOL"; then
8863 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8864else
8865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866for as_dir in $PATH
8867do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
efd58f08
RW
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 8872 ac_cv_prog_DLLTOOL="${ncn_progname}"
efd58f08 8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
8874 break 2
8875 fi
8876done
efd58f08
RW
8877 done
8878IFS=$as_save_IFS
82026593
AO
8879
8880fi
8881fi
8882DLLTOOL=$ac_cv_prog_DLLTOOL
8883if test -n "$DLLTOOL"; then
efd58f08
RW
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8885$as_echo "$DLLTOOL" >&6; }
82026593 8886else
efd58f08
RW
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888$as_echo "no" >&6; }
82026593
AO
8889fi
8890
efd58f08 8891
82026593
AO
8892 done
8893fi
8894
8895for ncn_progname in dlltool; do
60cfca65
PB
8896 if test -n "$ncn_tool_prefix"; then
8897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8898set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900$as_echo_n "checking for $ac_word... " >&6; }
8901if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
a0c92996
AC
8903else
8904 if test -n "$DLLTOOL"; then
8905 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8906else
b58b6ee1
DJ
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
efd58f08
RW
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8914 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
efd58f08 8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8916 break 2
8917 fi
8918done
efd58f08
RW
8919 done
8920IFS=$as_save_IFS
b58b6ee1 8921
a0c92996
AC
8922fi
8923fi
b58b6ee1 8924DLLTOOL=$ac_cv_prog_DLLTOOL
a0c92996 8925if test -n "$DLLTOOL"; then
efd58f08
RW
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8927$as_echo "$DLLTOOL" >&6; }
a0c92996 8928else
efd58f08
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930$as_echo "no" >&6; }
a0c92996
AC
8931fi
8932
efd58f08 8933
60cfca65
PB
8934 fi
8935 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8937set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939$as_echo_n "checking for $ac_word... " >&6; }
8940if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
a0c92996 8942else
60cfca65
PB
8943 if test -n "$DLLTOOL"; then
8944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
a0c92996 8945else
b58b6ee1
DJ
8946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947for as_dir in $PATH
8948do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
efd58f08
RW
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 8953 ac_cv_prog_DLLTOOL="${ncn_progname}"
efd58f08 8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
8955 break 2
8956 fi
8957done
efd58f08
RW
8958 done
8959IFS=$as_save_IFS
b58b6ee1 8960
a0c92996
AC
8961fi
8962fi
b58b6ee1 8963DLLTOOL=$ac_cv_prog_DLLTOOL
60cfca65 8964if test -n "$DLLTOOL"; then
efd58f08
RW
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8966$as_echo "$DLLTOOL" >&6; }
a0c92996 8967else
efd58f08
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969$as_echo "no" >&6; }
a0c92996 8970fi
b58b6ee1 8971
efd58f08 8972
60cfca65
PB
8973 fi
8974 test -n "$ac_cv_prog_DLLTOOL" && break
8975done
8976
8977if test -z "$ac_cv_prog_DLLTOOL" ; then
8978 set dummy dlltool
8979 if test $build = $host ; then
8980 DLLTOOL="$2"
a0c92996 8981 else
60cfca65 8982 DLLTOOL="${ncn_tool_prefix}$2"
a0c92996 8983 fi
a0c92996
AC
8984fi
8985
82026593
AO
8986
8987
8988if test -n "$LD"; then
8989 ac_cv_prog_LD=$LD
8990elif test -n "$ac_cv_prog_LD"; then
8991 LD=$ac_cv_prog_LD
8992fi
8993
8994if test -n "$ac_cv_prog_LD"; then
8995 for ncn_progname in ld; do
8996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8997set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999$as_echo_n "checking for $ac_word... " >&6; }
9000if test "${ac_cv_prog_LD+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
82026593
AO
9002else
9003 if test -n "$LD"; then
9004 ac_cv_prog_LD="$LD" # Let the user override the test.
9005else
9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
efd58f08
RW
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9013 ac_cv_prog_LD="${ncn_progname}"
efd58f08 9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9015 break 2
9016 fi
9017done
efd58f08
RW
9018 done
9019IFS=$as_save_IFS
82026593
AO
9020
9021fi
9022fi
9023LD=$ac_cv_prog_LD
9024if test -n "$LD"; then
efd58f08
RW
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9026$as_echo "$LD" >&6; }
82026593 9027else
efd58f08
RW
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
82026593
AO
9030fi
9031
efd58f08 9032
82026593
AO
9033 done
9034fi
9035
9036for ncn_progname in ld; do
60cfca65
PB
9037 if test -n "$ncn_tool_prefix"; then
9038 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9039set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041$as_echo_n "checking for $ac_word... " >&6; }
9042if test "${ac_cv_prog_LD+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
a0c92996
AC
9044else
9045 if test -n "$LD"; then
9046 ac_cv_prog_LD="$LD" # Let the user override the test.
9047else
b58b6ee1
DJ
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
efd58f08
RW
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9055 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9057 break 2
9058 fi
9059done
efd58f08
RW
9060 done
9061IFS=$as_save_IFS
b58b6ee1 9062
a0c92996
AC
9063fi
9064fi
b58b6ee1 9065LD=$ac_cv_prog_LD
a0c92996 9066if test -n "$LD"; then
efd58f08
RW
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9068$as_echo "$LD" >&6; }
a0c92996 9069else
efd58f08
RW
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
a0c92996
AC
9072fi
9073
efd58f08 9074
60cfca65
PB
9075 fi
9076 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9078set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080$as_echo_n "checking for $ac_word... " >&6; }
9081if test "${ac_cv_prog_LD+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
a0c92996 9083else
60cfca65
PB
9084 if test -n "$LD"; then
9085 ac_cv_prog_LD="$LD" # Let the user override the test.
76402c80 9086else
b58b6ee1
DJ
9087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088for as_dir in $PATH
9089do
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
efd58f08
RW
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9094 ac_cv_prog_LD="${ncn_progname}"
efd58f08 9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9096 break 2
9097 fi
9098done
efd58f08
RW
9099 done
9100IFS=$as_save_IFS
b58b6ee1 9101
a0c92996
AC
9102fi
9103fi
b58b6ee1 9104LD=$ac_cv_prog_LD
60cfca65 9105if test -n "$LD"; then
efd58f08
RW
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9107$as_echo "$LD" >&6; }
a0c92996 9108else
efd58f08
RW
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110$as_echo "no" >&6; }
a0c92996 9111fi
b58b6ee1 9112
efd58f08 9113
60cfca65
PB
9114 fi
9115 test -n "$ac_cv_prog_LD" && break
9116done
9117
9118if test -z "$ac_cv_prog_LD" ; then
9119 set dummy ld
9120 if test $build = $host ; then
9121 LD="$2"
a0c92996 9122 else
60cfca65 9123 LD="${ncn_tool_prefix}$2"
a0c92996 9124 fi
a0c92996
AC
9125fi
9126
82026593
AO
9127
9128
9129if test -n "$LIPO"; then
9130 ac_cv_prog_LIPO=$LIPO
9131elif test -n "$ac_cv_prog_LIPO"; then
9132 LIPO=$ac_cv_prog_LIPO
9133fi
9134
9135if test -n "$ac_cv_prog_LIPO"; then
9136 for ncn_progname in lipo; do
9137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140$as_echo_n "checking for $ac_word... " >&6; }
9141if test "${ac_cv_prog_LIPO+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
82026593
AO
9143else
9144 if test -n "$LIPO"; then
9145 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9146else
9147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148for as_dir in $PATH
9149do
9150 IFS=$as_save_IFS
9151 test -z "$as_dir" && as_dir=.
efd58f08
RW
9152 for ac_exec_ext in '' $ac_executable_extensions; do
9153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9154 ac_cv_prog_LIPO="${ncn_progname}"
efd58f08 9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9156 break 2
9157 fi
9158done
efd58f08
RW
9159 done
9160IFS=$as_save_IFS
82026593
AO
9161
9162fi
9163fi
9164LIPO=$ac_cv_prog_LIPO
9165if test -n "$LIPO"; then
efd58f08
RW
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9167$as_echo "$LIPO" >&6; }
82026593 9168else
efd58f08
RW
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170$as_echo "no" >&6; }
82026593
AO
9171fi
9172
efd58f08 9173
82026593
AO
9174 done
9175fi
9176
9177for ncn_progname in lipo; do
a7dc05b5
PB
9178 if test -n "$ncn_tool_prefix"; then
9179 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9180set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182$as_echo_n "checking for $ac_word... " >&6; }
9183if test "${ac_cv_prog_LIPO+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9185else
9186 if test -n "$LIPO"; then
9187 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9188else
b58b6ee1
DJ
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
efd58f08
RW
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9196 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9198 break 2
9199 fi
9200done
efd58f08
RW
9201 done
9202IFS=$as_save_IFS
b58b6ee1 9203
a7dc05b5
PB
9204fi
9205fi
b58b6ee1 9206LIPO=$ac_cv_prog_LIPO
a7dc05b5 9207if test -n "$LIPO"; then
efd58f08
RW
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9209$as_echo "$LIPO" >&6; }
a7dc05b5 9210else
efd58f08
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
a7dc05b5
PB
9213fi
9214
efd58f08 9215
a7dc05b5
PB
9216 fi
9217 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9219set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221$as_echo_n "checking for $ac_word... " >&6; }
9222if test "${ac_cv_prog_LIPO+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9224else
9225 if test -n "$LIPO"; then
9226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9227else
b58b6ee1
DJ
9228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229for as_dir in $PATH
9230do
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
efd58f08
RW
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9235 ac_cv_prog_LIPO="${ncn_progname}"
efd58f08 9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9237 break 2
9238 fi
9239done
efd58f08
RW
9240 done
9241IFS=$as_save_IFS
b58b6ee1 9242
a7dc05b5
PB
9243fi
9244fi
b58b6ee1 9245LIPO=$ac_cv_prog_LIPO
a7dc05b5 9246if test -n "$LIPO"; then
efd58f08
RW
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9248$as_echo "$LIPO" >&6; }
a7dc05b5 9249else
efd58f08
RW
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
a7dc05b5 9252fi
b58b6ee1 9253
efd58f08 9254
a7dc05b5
PB
9255 fi
9256 test -n "$ac_cv_prog_LIPO" && break
9257done
9258
9259if test -z "$ac_cv_prog_LIPO" ; then
9260 set dummy lipo
9261 if test $build = $host ; then
9262 LIPO="$2"
9263 else
9264 LIPO="${ncn_tool_prefix}$2"
9265 fi
9266fi
9267
82026593
AO
9268
9269
9270if test -n "$NM"; then
9271 ac_cv_prog_NM=$NM
9272elif test -n "$ac_cv_prog_NM"; then
9273 NM=$ac_cv_prog_NM
9274fi
9275
9276if test -n "$ac_cv_prog_NM"; then
9277 for ncn_progname in nm; do
9278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9279set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281$as_echo_n "checking for $ac_word... " >&6; }
9282if test "${ac_cv_prog_NM+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
a0c92996
AC
9284else
9285 if test -n "$NM"; then
9286 ac_cv_prog_NM="$NM" # Let the user override the test.
9287else
b58b6ee1
DJ
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
efd58f08
RW
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9295 ac_cv_prog_NM="${ncn_progname}"
efd58f08 9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9297 break 2
9298 fi
9299done
efd58f08
RW
9300 done
9301IFS=$as_save_IFS
b58b6ee1 9302
a0c92996
AC
9303fi
9304fi
b58b6ee1 9305NM=$ac_cv_prog_NM
a0c92996 9306if test -n "$NM"; then
efd58f08
RW
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9308$as_echo "$NM" >&6; }
a0c92996 9309else
efd58f08
RW
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311$as_echo "no" >&6; }
a0c92996
AC
9312fi
9313
efd58f08 9314
82026593
AO
9315 done
9316fi
9317
9318for ncn_progname in nm; do
9319 if test -n "$ncn_tool_prefix"; then
9320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9321set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
9324if test "${ac_cv_prog_NM+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
a0c92996 9326else
60cfca65
PB
9327 if test -n "$NM"; then
9328 ac_cv_prog_NM="$NM" # Let the user override the test.
a0c92996 9329else
b58b6ee1
DJ
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
efd58f08
RW
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9337 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9339 break 2
9340 fi
9341done
efd58f08
RW
9342 done
9343IFS=$as_save_IFS
b58b6ee1 9344
a0c92996
AC
9345fi
9346fi
b58b6ee1 9347NM=$ac_cv_prog_NM
60cfca65 9348if test -n "$NM"; then
efd58f08
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9350$as_echo "$NM" >&6; }
a0c92996 9351else
efd58f08
RW
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
a0c92996 9354fi
b58b6ee1 9355
efd58f08 9356
60cfca65 9357 fi
82026593
AO
9358 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9360set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362$as_echo_n "checking for $ac_word... " >&6; }
9363if test "${ac_cv_prog_NM+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
82026593
AO
9365else
9366 if test -n "$NM"; then
9367 ac_cv_prog_NM="$NM" # Let the user override the test.
9368else
9369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
efd58f08
RW
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9376 ac_cv_prog_NM="${ncn_progname}"
efd58f08 9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9378 break 2
9379 fi
9380done
efd58f08
RW
9381 done
9382IFS=$as_save_IFS
82026593
AO
9383
9384fi
9385fi
9386NM=$ac_cv_prog_NM
9387if test -n "$NM"; then
efd58f08
RW
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9389$as_echo "$NM" >&6; }
82026593 9390else
efd58f08
RW
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392$as_echo "no" >&6; }
82026593
AO
9393fi
9394
efd58f08 9395
82026593
AO
9396 fi
9397 test -n "$ac_cv_prog_NM" && break
9398done
9399
9400if test -z "$ac_cv_prog_NM" ; then
9401 set dummy nm
9402 if test $build = $host ; then
9403 NM="$2"
9404 else
9405 NM="${ncn_tool_prefix}$2"
9406 fi
9407fi
9408
9409
9410
9411if test -n "$RANLIB"; then
9412 ac_cv_prog_RANLIB=$RANLIB
9413elif test -n "$ac_cv_prog_RANLIB"; then
9414 RANLIB=$ac_cv_prog_RANLIB
9415fi
9416
9417if test -n "$ac_cv_prog_RANLIB"; then
9418 for ncn_progname in ranlib; do
9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
9423if test "${ac_cv_prog_RANLIB+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
82026593
AO
9425else
9426 if test -n "$RANLIB"; then
9427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9428else
9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
efd58f08
RW
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9436 ac_cv_prog_RANLIB="${ncn_progname}"
efd58f08 9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9438 break 2
9439 fi
9440done
efd58f08
RW
9441 done
9442IFS=$as_save_IFS
82026593
AO
9443
9444fi
9445fi
9446RANLIB=$ac_cv_prog_RANLIB
9447if test -n "$RANLIB"; then
efd58f08
RW
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9449$as_echo "$RANLIB" >&6; }
82026593 9450else
efd58f08
RW
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
82026593
AO
9453fi
9454
efd58f08 9455
82026593
AO
9456 done
9457fi
a0c92996 9458
82026593 9459for ncn_progname in ranlib; do
60cfca65
PB
9460 if test -n "$ncn_tool_prefix"; then
9461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464$as_echo_n "checking for $ac_word... " >&6; }
9465if test "${ac_cv_prog_RANLIB+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
a0c92996
AC
9467else
9468 if test -n "$RANLIB"; then
9469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9470else
b58b6ee1
DJ
9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
efd58f08
RW
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9478 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9480 break 2
9481 fi
9482done
efd58f08
RW
9483 done
9484IFS=$as_save_IFS
b58b6ee1 9485
a0c92996
AC
9486fi
9487fi
b58b6ee1 9488RANLIB=$ac_cv_prog_RANLIB
a0c92996 9489if test -n "$RANLIB"; then
efd58f08
RW
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9491$as_echo "$RANLIB" >&6; }
a0c92996 9492else
efd58f08
RW
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494$as_echo "no" >&6; }
a0c92996
AC
9495fi
9496
efd58f08 9497
60cfca65
PB
9498 fi
9499 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9501set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503$as_echo_n "checking for $ac_word... " >&6; }
9504if test "${ac_cv_prog_RANLIB+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
a0c92996 9506else
60cfca65
PB
9507 if test -n "$RANLIB"; then
9508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a0c92996 9509else
b58b6ee1
DJ
9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511for as_dir in $PATH
9512do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
efd58f08
RW
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9517 ac_cv_prog_RANLIB="${ncn_progname}"
efd58f08 9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9519 break 2
9520 fi
9521done
efd58f08
RW
9522 done
9523IFS=$as_save_IFS
b58b6ee1 9524
a0c92996
AC
9525fi
9526fi
b58b6ee1 9527RANLIB=$ac_cv_prog_RANLIB
60cfca65 9528if test -n "$RANLIB"; then
efd58f08
RW
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9530$as_echo "$RANLIB" >&6; }
a0c92996 9531else
efd58f08
RW
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533$as_echo "no" >&6; }
a0c92996 9534fi
b58b6ee1 9535
efd58f08 9536
a0c92996 9537 fi
60cfca65
PB
9538 test -n "$ac_cv_prog_RANLIB" && break
9539done
9540
9541if test -z "$ac_cv_prog_RANLIB" ; then
56fbdfab 9542 RANLIB="true"
a0c92996
AC
9543fi
9544
82026593
AO
9545
9546
9547if test -n "$STRIP"; then
9548 ac_cv_prog_STRIP=$STRIP
9549elif test -n "$ac_cv_prog_STRIP"; then
9550 STRIP=$ac_cv_prog_STRIP
9551fi
9552
9553if test -n "$ac_cv_prog_STRIP"; then
9554 for ncn_progname in strip; do
9555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9556set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558$as_echo_n "checking for $ac_word... " >&6; }
9559if test "${ac_cv_prog_STRIP+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
82026593
AO
9561else
9562 if test -n "$STRIP"; then
9563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9564else
9565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566for as_dir in $PATH
9567do
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
efd58f08
RW
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9572 ac_cv_prog_STRIP="${ncn_progname}"
efd58f08 9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9574 break 2
9575 fi
9576done
efd58f08
RW
9577 done
9578IFS=$as_save_IFS
82026593
AO
9579
9580fi
9581fi
9582STRIP=$ac_cv_prog_STRIP
9583if test -n "$STRIP"; then
efd58f08
RW
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9585$as_echo "$STRIP" >&6; }
82026593 9586else
efd58f08
RW
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588$as_echo "no" >&6; }
82026593
AO
9589fi
9590
efd58f08 9591
82026593
AO
9592 done
9593fi
9594
9595for ncn_progname in strip; do
a7dc05b5
PB
9596 if test -n "$ncn_tool_prefix"; then
9597 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9598set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600$as_echo_n "checking for $ac_word... " >&6; }
9601if test "${ac_cv_prog_STRIP+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9603else
9604 if test -n "$STRIP"; then
9605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9606else
b58b6ee1
DJ
9607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608for as_dir in $PATH
9609do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
efd58f08
RW
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9614 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9616 break 2
9617 fi
9618done
efd58f08
RW
9619 done
9620IFS=$as_save_IFS
b58b6ee1 9621
a7dc05b5
PB
9622fi
9623fi
b58b6ee1 9624STRIP=$ac_cv_prog_STRIP
a7dc05b5 9625if test -n "$STRIP"; then
efd58f08
RW
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9627$as_echo "$STRIP" >&6; }
a7dc05b5 9628else
efd58f08
RW
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630$as_echo "no" >&6; }
a7dc05b5
PB
9631fi
9632
efd58f08 9633
a7dc05b5
PB
9634 fi
9635 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9637set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639$as_echo_n "checking for $ac_word... " >&6; }
9640if test "${ac_cv_prog_STRIP+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
a7dc05b5
PB
9642else
9643 if test -n "$STRIP"; then
9644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9645else
b58b6ee1
DJ
9646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647for as_dir in $PATH
9648do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
efd58f08
RW
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9653 ac_cv_prog_STRIP="${ncn_progname}"
efd58f08 9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9655 break 2
9656 fi
9657done
efd58f08
RW
9658 done
9659IFS=$as_save_IFS
b58b6ee1 9660
a7dc05b5
PB
9661fi
9662fi
b58b6ee1 9663STRIP=$ac_cv_prog_STRIP
a7dc05b5 9664if test -n "$STRIP"; then
efd58f08
RW
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9666$as_echo "$STRIP" >&6; }
a7dc05b5 9667else
efd58f08
RW
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669$as_echo "no" >&6; }
a7dc05b5 9670fi
b58b6ee1 9671
efd58f08 9672
a7dc05b5
PB
9673 fi
9674 test -n "$ac_cv_prog_STRIP" && break
9675done
9676
9677if test -z "$ac_cv_prog_STRIP" ; then
56fbdfab 9678 STRIP="true"
a7dc05b5
PB
9679fi
9680
82026593
AO
9681
9682
9683if test -n "$WINDRES"; then
9684 ac_cv_prog_WINDRES=$WINDRES
9685elif test -n "$ac_cv_prog_WINDRES"; then
9686 WINDRES=$ac_cv_prog_WINDRES
9687fi
9688
9689if test -n "$ac_cv_prog_WINDRES"; then
9690 for ncn_progname in windres; do
9691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9692set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694$as_echo_n "checking for $ac_word... " >&6; }
9695if test "${ac_cv_prog_WINDRES+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
82026593
AO
9697else
9698 if test -n "$WINDRES"; then
9699 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
efd58f08
RW
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9708 ac_cv_prog_WINDRES="${ncn_progname}"
efd58f08 9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9710 break 2
9711 fi
9712done
efd58f08
RW
9713 done
9714IFS=$as_save_IFS
82026593
AO
9715
9716fi
9717fi
9718WINDRES=$ac_cv_prog_WINDRES
9719if test -n "$WINDRES"; then
efd58f08
RW
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9721$as_echo "$WINDRES" >&6; }
82026593 9722else
efd58f08
RW
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
82026593
AO
9725fi
9726
efd58f08 9727
82026593
AO
9728 done
9729fi
9730
9731for ncn_progname in windres; do
60cfca65
PB
9732 if test -n "$ncn_tool_prefix"; then
9733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9734set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
9737if test "${ac_cv_prog_WINDRES+set}" = set; then :
9738 $as_echo_n "(cached) " >&6
a0c92996
AC
9739else
9740 if test -n "$WINDRES"; then
9741 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9742else
b58b6ee1
DJ
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
efd58f08
RW
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9750 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9752 break 2
9753 fi
9754done
efd58f08
RW
9755 done
9756IFS=$as_save_IFS
b58b6ee1 9757
a0c92996
AC
9758fi
9759fi
b58b6ee1 9760WINDRES=$ac_cv_prog_WINDRES
a0c92996 9761if test -n "$WINDRES"; then
efd58f08
RW
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9763$as_echo "$WINDRES" >&6; }
a0c92996 9764else
efd58f08
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766$as_echo "no" >&6; }
a0c92996
AC
9767fi
9768
efd58f08 9769
60cfca65
PB
9770 fi
9771 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9773set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775$as_echo_n "checking for $ac_word... " >&6; }
9776if test "${ac_cv_prog_WINDRES+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
a0c92996 9778else
60cfca65
PB
9779 if test -n "$WINDRES"; then
9780 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
a0c92996 9781else
b58b6ee1
DJ
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
efd58f08
RW
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 9789 ac_cv_prog_WINDRES="${ncn_progname}"
efd58f08 9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
9791 break 2
9792 fi
9793done
efd58f08
RW
9794 done
9795IFS=$as_save_IFS
b58b6ee1 9796
a0c92996
AC
9797fi
9798fi
b58b6ee1 9799WINDRES=$ac_cv_prog_WINDRES
60cfca65 9800if test -n "$WINDRES"; then
efd58f08
RW
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9802$as_echo "$WINDRES" >&6; }
a0c92996 9803else
efd58f08
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
a0c92996 9806fi
b58b6ee1 9807
efd58f08 9808
60cfca65
PB
9809 fi
9810 test -n "$ac_cv_prog_WINDRES" && break
9811done
9812
9813if test -z "$ac_cv_prog_WINDRES" ; then
9814 set dummy windres
9815 if test $build = $host ; then
9816 WINDRES="$2"
a0c92996 9817 else
60cfca65 9818 WINDRES="${ncn_tool_prefix}$2"
a0c92996 9819 fi
a0c92996
AC
9820fi
9821
82026593
AO
9822
9823
bffcbe34
NC
9824if test -n "$WINDMC"; then
9825 ac_cv_prog_WINDMC=$WINDMC
9826elif test -n "$ac_cv_prog_WINDMC"; then
9827 WINDMC=$ac_cv_prog_WINDMC
9828fi
9829
9830if test -n "$ac_cv_prog_WINDMC"; then
9831 for ncn_progname in windmc; do
9832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9833set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835$as_echo_n "checking for $ac_word... " >&6; }
9836if test "${ac_cv_prog_WINDMC+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
bffcbe34
NC
9838else
9839 if test -n "$WINDMC"; then
9840 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9841else
9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $PATH
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
efd58f08
RW
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 9849 ac_cv_prog_WINDMC="${ncn_progname}"
efd58f08 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9851 break 2
9852 fi
9853done
efd58f08
RW
9854 done
9855IFS=$as_save_IFS
bffcbe34
NC
9856
9857fi
9858fi
9859WINDMC=$ac_cv_prog_WINDMC
9860if test -n "$WINDMC"; then
efd58f08
RW
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9862$as_echo "$WINDMC" >&6; }
bffcbe34 9863else
efd58f08
RW
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865$as_echo "no" >&6; }
bffcbe34
NC
9866fi
9867
efd58f08 9868
bffcbe34
NC
9869 done
9870fi
9871
9872for ncn_progname in windmc; do
9873 if test -n "$ncn_tool_prefix"; then
9874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9875set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877$as_echo_n "checking for $ac_word... " >&6; }
9878if test "${ac_cv_prog_WINDMC+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
bffcbe34
NC
9880else
9881 if test -n "$WINDMC"; then
9882 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9883else
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
efd58f08
RW
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 9891 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
efd58f08 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9893 break 2
9894 fi
9895done
efd58f08
RW
9896 done
9897IFS=$as_save_IFS
bffcbe34
NC
9898
9899fi
9900fi
9901WINDMC=$ac_cv_prog_WINDMC
9902if test -n "$WINDMC"; then
efd58f08
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9904$as_echo "$WINDMC" >&6; }
bffcbe34 9905else
efd58f08
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
bffcbe34
NC
9908fi
9909
efd58f08 9910
bffcbe34
NC
9911 fi
9912 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_WINDMC+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
bffcbe34
NC
9919else
9920 if test -n "$WINDMC"; then
9921 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
efd58f08
RW
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 9930 ac_cv_prog_WINDMC="${ncn_progname}"
efd58f08 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
9932 break 2
9933 fi
9934done
efd58f08
RW
9935 done
9936IFS=$as_save_IFS
bffcbe34
NC
9937
9938fi
9939fi
9940WINDMC=$ac_cv_prog_WINDMC
9941if test -n "$WINDMC"; then
efd58f08
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9943$as_echo "$WINDMC" >&6; }
bffcbe34 9944else
efd58f08
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
bffcbe34
NC
9947fi
9948
efd58f08 9949
bffcbe34
NC
9950 fi
9951 test -n "$ac_cv_prog_WINDMC" && break
9952done
9953
9954if test -z "$ac_cv_prog_WINDMC" ; then
9955 set dummy windmc
9956 if test $build = $host ; then
9957 WINDMC="$2"
9958 else
9959 WINDMC="${ncn_tool_prefix}$2"
9960 fi
9961fi
9962
9963
9964
82026593
AO
9965if test -n "$OBJCOPY"; then
9966 ac_cv_prog_OBJCOPY=$OBJCOPY
9967elif test -n "$ac_cv_prog_OBJCOPY"; then
9968 OBJCOPY=$ac_cv_prog_OBJCOPY
9969fi
9970
9971if test -n "$ac_cv_prog_OBJCOPY"; then
9972 for ncn_progname in objcopy; do
9973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9974set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976$as_echo_n "checking for $ac_word... " >&6; }
9977if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
82026593
AO
9979else
9980 if test -n "$OBJCOPY"; then
9981 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9982else
9983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in $PATH
9985do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
efd58f08
RW
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 9990 ac_cv_prog_OBJCOPY="${ncn_progname}"
efd58f08 9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
9992 break 2
9993 fi
9994done
efd58f08
RW
9995 done
9996IFS=$as_save_IFS
82026593
AO
9997
9998fi
9999fi
10000OBJCOPY=$ac_cv_prog_OBJCOPY
10001if test -n "$OBJCOPY"; then
efd58f08
RW
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10003$as_echo "$OBJCOPY" >&6; }
82026593 10004else
efd58f08
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006$as_echo "no" >&6; }
82026593
AO
10007fi
10008
efd58f08 10009
82026593
AO
10010 done
10011fi
10012
10013for ncn_progname in objcopy; do
60cfca65
PB
10014 if test -n "$ncn_tool_prefix"; then
10015 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10016set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
a0c92996
AC
10021else
10022 if test -n "$OBJCOPY"; then
10023 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10024else
b58b6ee1
DJ
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
efd58f08
RW
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10032 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
efd58f08 10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10034 break 2
10035 fi
10036done
efd58f08
RW
10037 done
10038IFS=$as_save_IFS
b58b6ee1 10039
a0c92996
AC
10040fi
10041fi
b58b6ee1 10042OBJCOPY=$ac_cv_prog_OBJCOPY
a0c92996 10043if test -n "$OBJCOPY"; then
efd58f08
RW
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10045$as_echo "$OBJCOPY" >&6; }
a0c92996 10046else
efd58f08
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
a0c92996
AC
10049fi
10050
efd58f08 10051
60cfca65
PB
10052 fi
10053 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10055set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057$as_echo_n "checking for $ac_word... " >&6; }
10058if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
a0c92996 10060else
60cfca65
PB
10061 if test -n "$OBJCOPY"; then
10062 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
a0c92996 10063else
b58b6ee1
DJ
10064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $PATH
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
efd58f08
RW
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10071 ac_cv_prog_OBJCOPY="${ncn_progname}"
efd58f08 10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10073 break 2
10074 fi
10075done
efd58f08
RW
10076 done
10077IFS=$as_save_IFS
b58b6ee1 10078
a0c92996
AC
10079fi
10080fi
b58b6ee1 10081OBJCOPY=$ac_cv_prog_OBJCOPY
60cfca65 10082if test -n "$OBJCOPY"; then
efd58f08
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10084$as_echo "$OBJCOPY" >&6; }
a0c92996 10085else
efd58f08
RW
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087$as_echo "no" >&6; }
a0c92996 10088fi
b58b6ee1 10089
efd58f08 10090
60cfca65
PB
10091 fi
10092 test -n "$ac_cv_prog_OBJCOPY" && break
10093done
10094
10095if test -z "$ac_cv_prog_OBJCOPY" ; then
10096 set dummy objcopy
10097 if test $build = $host ; then
10098 OBJCOPY="$2"
a0c92996 10099 else
60cfca65 10100 OBJCOPY="${ncn_tool_prefix}$2"
a0c92996 10101 fi
a0c92996
AC
10102fi
10103
82026593
AO
10104
10105
10106if test -n "$OBJDUMP"; then
10107 ac_cv_prog_OBJDUMP=$OBJDUMP
10108elif test -n "$ac_cv_prog_OBJDUMP"; then
10109 OBJDUMP=$ac_cv_prog_OBJDUMP
10110fi
10111
10112if test -n "$ac_cv_prog_OBJDUMP"; then
10113 for ncn_progname in objdump; do
10114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10115set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117$as_echo_n "checking for $ac_word... " >&6; }
10118if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
82026593
AO
10120else
10121 if test -n "$OBJDUMP"; then
10122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10123else
10124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125for as_dir in $PATH
10126do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
efd58f08
RW
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10131 ac_cv_prog_OBJDUMP="${ncn_progname}"
efd58f08 10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10133 break 2
10134 fi
10135done
efd58f08
RW
10136 done
10137IFS=$as_save_IFS
82026593
AO
10138
10139fi
10140fi
10141OBJDUMP=$ac_cv_prog_OBJDUMP
10142if test -n "$OBJDUMP"; then
efd58f08
RW
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10144$as_echo "$OBJDUMP" >&6; }
82026593 10145else
efd58f08
RW
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147$as_echo "no" >&6; }
82026593
AO
10148fi
10149
efd58f08 10150
82026593
AO
10151 done
10152fi
10153
10154for ncn_progname in objdump; do
60cfca65
PB
10155 if test -n "$ncn_tool_prefix"; then
10156 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10157set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159$as_echo_n "checking for $ac_word... " >&6; }
10160if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
a0c92996
AC
10162else
10163 if test -n "$OBJDUMP"; then
10164 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10165else
b58b6ee1
DJ
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
efd58f08
RW
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10173 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
efd58f08 10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10175 break 2
10176 fi
10177done
efd58f08
RW
10178 done
10179IFS=$as_save_IFS
b58b6ee1 10180
a0c92996
AC
10181fi
10182fi
b58b6ee1 10183OBJDUMP=$ac_cv_prog_OBJDUMP
a0c92996 10184if test -n "$OBJDUMP"; then
efd58f08
RW
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10186$as_echo "$OBJDUMP" >&6; }
a0c92996 10187else
efd58f08
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
a0c92996
AC
10190fi
10191
efd58f08 10192
60cfca65
PB
10193 fi
10194 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10196set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
a0c92996 10201else
60cfca65
PB
10202 if test -n "$OBJDUMP"; then
10203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
a0c92996 10204else
b58b6ee1
DJ
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
efd58f08
RW
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10212 ac_cv_prog_OBJDUMP="${ncn_progname}"
efd58f08 10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10214 break 2
10215 fi
10216done
efd58f08
RW
10217 done
10218IFS=$as_save_IFS
b58b6ee1 10219
a0c92996
AC
10220fi
10221fi
b58b6ee1 10222OBJDUMP=$ac_cv_prog_OBJDUMP
60cfca65 10223if test -n "$OBJDUMP"; then
efd58f08
RW
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10225$as_echo "$OBJDUMP" >&6; }
a0c92996 10226else
efd58f08
RW
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228$as_echo "no" >&6; }
a0c92996 10229fi
b58b6ee1 10230
efd58f08 10231
60cfca65
PB
10232 fi
10233 test -n "$ac_cv_prog_OBJDUMP" && break
10234done
10235
10236if test -z "$ac_cv_prog_OBJDUMP" ; then
10237 set dummy objdump
10238 if test $build = $host ; then
10239 OBJDUMP="$2"
a0c92996 10240 else
60cfca65 10241 OBJDUMP="${ncn_tool_prefix}$2"
a0c92996 10242 fi
a0c92996
AC
10243fi
10244
bafecfd6
NN
10245
10246
10247
10248
10249
a7dc05b5 10250# Target tools.
b58b6ee1 10251
efd58f08
RW
10252# Check whether --with-build-time-tools was given.
10253if test "${with_build_time_tools+set}" = set; then :
10254 withval=$with_build_time_tools; case x"$withval" in
fef3f213
PB
10255 x/*) ;;
10256 *)
10257 with_build_time_tools=
efd58f08
RW
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10259$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
fef3f213
PB
10260 ;;
10261 esac
a0c92996 10262else
fef3f213 10263 with_build_time_tools=
efd58f08
RW
10264fi
10265
a0c92996 10266
82026593
AO
10267
10268
10269if test -n "$CC_FOR_TARGET"; then
10270 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10271elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10272 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10273fi
10274
10275if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10276 for ncn_progname in cc gcc; do
10277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10278set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280$as_echo_n "checking for $ac_word... " >&6; }
10281if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
82026593
AO
10283else
10284 if test -n "$CC_FOR_TARGET"; then
10285 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10286else
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
efd58f08
RW
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10294 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
efd58f08 10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10296 break 2
10297 fi
10298done
efd58f08
RW
10299 done
10300IFS=$as_save_IFS
82026593
AO
10301
10302fi
10303fi
10304CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10305if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10307$as_echo "$CC_FOR_TARGET" >&6; }
82026593 10308else
efd58f08
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310$as_echo "no" >&6; }
82026593
AO
10311fi
10312
efd58f08 10313
82026593
AO
10314 done
10315fi
10316
10317if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10318 for ncn_progname in cc gcc; do
efd58f08
RW
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10320$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10321 if test -x $with_build_time_tools/${ncn_progname}; then
10322 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10324$as_echo "yes" >&6; }
f69e2532 10325 break
fef3f213 10326 else
efd58f08
RW
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }
f69e2532
CM
10329 fi
10330 done
5fb28bcc
PB
10331fi
10332
fef3f213
PB
10333if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10334 for ncn_progname in cc gcc; do
10335 if test -n "$ncn_target_tool_prefix"; then
10336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10337set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339$as_echo_n "checking for $ac_word... " >&6; }
10340if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10342else
10343 if test -n "$CC_FOR_TARGET"; then
10344 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10345else
b58b6ee1
DJ
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
efd58f08
RW
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10353 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10355 break 2
10356 fi
10357done
efd58f08
RW
10358 done
10359IFS=$as_save_IFS
b58b6ee1 10360
5fb28bcc
PB
10361fi
10362fi
b58b6ee1 10363CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
5fb28bcc 10364if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10366$as_echo "$CC_FOR_TARGET" >&6; }
5fb28bcc 10367else
efd58f08
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369$as_echo "no" >&6; }
5fb28bcc
PB
10370fi
10371
efd58f08 10372
fef3f213
PB
10373 fi
10374 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10376set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
10379if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
5fb28bcc 10381else
60cfca65
PB
10382 if test -n "$CC_FOR_TARGET"; then
10383 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10384else
b58b6ee1
DJ
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
efd58f08
RW
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10392 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
efd58f08 10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10394 break 2
10395 fi
10396done
efd58f08
RW
10397 done
10398IFS=$as_save_IFS
b58b6ee1 10399
5fb28bcc
PB
10400fi
10401fi
b58b6ee1 10402CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
60cfca65 10403if test -n "$CC_FOR_TARGET"; then
efd58f08
RW
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10405$as_echo "$CC_FOR_TARGET" >&6; }
5fb28bcc 10406else
efd58f08
RW
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
5fb28bcc 10409fi
b58b6ee1 10410
efd58f08 10411
fef3f213
PB
10412 fi
10413 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10414 done
10415fi
b58b6ee1 10416
60cfca65
PB
10417if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10418 set dummy cc gcc
10419 if test $build = $target ; then
10420 CC_FOR_TARGET="$2"
5fb28bcc 10421 else
60cfca65 10422 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 10423 fi
d058b81b
MS
10424else
10425 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
5fb28bcc
PB
10426fi
10427
82026593
AO
10428
10429
10430if test -n "$CXX_FOR_TARGET"; then
10431 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10432elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10433 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10434fi
10435
10436if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10437 for ncn_progname in c++ g++ cxx gxx; do
10438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10439set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441$as_echo_n "checking for $ac_word... " >&6; }
10442if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
82026593
AO
10444else
10445 if test -n "$CXX_FOR_TARGET"; then
10446 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10447else
10448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $PATH
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
efd58f08
RW
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10455 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
efd58f08 10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10457 break 2
10458 fi
10459done
efd58f08
RW
10460 done
10461IFS=$as_save_IFS
82026593
AO
10462
10463fi
10464fi
10465CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10466if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10468$as_echo "$CXX_FOR_TARGET" >&6; }
82026593 10469else
efd58f08
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
82026593
AO
10472fi
10473
efd58f08 10474
82026593
AO
10475 done
10476fi
10477
10478if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10479 for ncn_progname in c++ g++ cxx gxx; do
efd58f08
RW
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10481$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10482 if test -x $with_build_time_tools/${ncn_progname}; then
10483 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485$as_echo "yes" >&6; }
fef3f213
PB
10486 break
10487 else
efd58f08
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
fef3f213
PB
10490 fi
10491 done
10492fi
10493
10494if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10495 for ncn_progname in c++ g++ cxx gxx; do
10496 if test -n "$ncn_target_tool_prefix"; then
10497 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10498set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500$as_echo_n "checking for $ac_word... " >&6; }
10501if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10503else
10504 if test -n "$CXX_FOR_TARGET"; then
10505 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10506else
b58b6ee1
DJ
10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $PATH
10509do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
efd58f08
RW
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10514 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10516 break 2
10517 fi
10518done
efd58f08
RW
10519 done
10520IFS=$as_save_IFS
b58b6ee1 10521
5fb28bcc
PB
10522fi
10523fi
b58b6ee1 10524CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
5fb28bcc 10525if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10527$as_echo "$CXX_FOR_TARGET" >&6; }
5fb28bcc 10528else
efd58f08
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
5fb28bcc
PB
10531fi
10532
efd58f08 10533
fef3f213
PB
10534 fi
10535 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10537set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
10540if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
5fb28bcc 10542else
60cfca65
PB
10543 if test -n "$CXX_FOR_TARGET"; then
10544 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
5fb28bcc 10545else
b58b6ee1
DJ
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
efd58f08
RW
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10553 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
efd58f08 10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10555 break 2
10556 fi
10557done
efd58f08
RW
10558 done
10559IFS=$as_save_IFS
b58b6ee1 10560
5fb28bcc
PB
10561fi
10562fi
b58b6ee1 10563CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
60cfca65 10564if test -n "$CXX_FOR_TARGET"; then
efd58f08
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10566$as_echo "$CXX_FOR_TARGET" >&6; }
5fb28bcc 10567else
efd58f08
RW
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569$as_echo "no" >&6; }
5fb28bcc 10570fi
b58b6ee1 10571
efd58f08 10572
fef3f213
PB
10573 fi
10574 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10575 done
10576fi
b58b6ee1 10577
60cfca65
PB
10578if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10579 set dummy c++ g++ cxx gxx
10580 if test $build = $target ; then
10581 CXX_FOR_TARGET="$2"
5fb28bcc 10582 else
60cfca65 10583 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 10584 fi
d058b81b
MS
10585else
10586 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
a0c92996
AC
10587fi
10588
82026593
AO
10589
10590
10591if test -n "$GCC_FOR_TARGET"; then
10592 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10593elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10594 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10595fi
10596
10597if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10598 for ncn_progname in gcc; do
10599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10600set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602$as_echo_n "checking for $ac_word... " >&6; }
10603if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
82026593
AO
10605else
10606 if test -n "$GCC_FOR_TARGET"; then
10607 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10608else
10609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610for as_dir in $PATH
10611do
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
efd58f08
RW
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10616 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
efd58f08 10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10618 break 2
10619 fi
10620done
efd58f08
RW
10621 done
10622IFS=$as_save_IFS
82026593
AO
10623
10624fi
10625fi
10626GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10627if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10629$as_echo "$GCC_FOR_TARGET" >&6; }
82026593 10630else
efd58f08
RW
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632$as_echo "no" >&6; }
82026593
AO
10633fi
10634
efd58f08 10635
82026593
AO
10636 done
10637fi
10638
10639if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10640 for ncn_progname in gcc; do
efd58f08
RW
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10642$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10643 if test -x $with_build_time_tools/${ncn_progname}; then
10644 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646$as_echo "yes" >&6; }
fef3f213
PB
10647 break
10648 else
efd58f08
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
fef3f213
PB
10651 fi
10652 done
10653fi
10654
10655if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10656 for ncn_progname in gcc; do
10657 if test -n "$ncn_target_tool_prefix"; then
10658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10659set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661$as_echo_n "checking for $ac_word... " >&6; }
10662if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
a0c92996 10664else
fef3f213
PB
10665 if test -n "$GCC_FOR_TARGET"; then
10666 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10667else
b58b6ee1
DJ
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
efd58f08
RW
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10675 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10677 break 2
10678 fi
10679done
efd58f08
RW
10680 done
10681IFS=$as_save_IFS
b58b6ee1 10682
5fb28bcc
PB
10683fi
10684fi
b58b6ee1 10685GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
5fb28bcc 10686if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10688$as_echo "$GCC_FOR_TARGET" >&6; }
5fb28bcc 10689else
efd58f08
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691$as_echo "no" >&6; }
5fb28bcc
PB
10692fi
10693
efd58f08 10694
fef3f213
PB
10695 fi
10696 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10698set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
5fb28bcc 10703else
60cfca65
PB
10704 if test -n "$GCC_FOR_TARGET"; then
10705 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5fb28bcc 10706else
b58b6ee1
DJ
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
efd58f08
RW
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10714 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
efd58f08 10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10716 break 2
10717 fi
10718done
efd58f08
RW
10719 done
10720IFS=$as_save_IFS
b58b6ee1 10721
5fb28bcc
PB
10722fi
10723fi
b58b6ee1 10724GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
60cfca65 10725if test -n "$GCC_FOR_TARGET"; then
efd58f08
RW
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10727$as_echo "$GCC_FOR_TARGET" >&6; }
5fb28bcc 10728else
efd58f08
RW
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
5fb28bcc 10731fi
b58b6ee1 10732
efd58f08 10733
fef3f213
PB
10734 fi
10735 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10736 done
10737fi
b58b6ee1 10738
60cfca65
PB
10739if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10740 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d058b81b
MS
10741else
10742 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5fb28bcc
PB
10743fi
10744
82026593
AO
10745
10746
10747if test -n "$GCJ_FOR_TARGET"; then
10748 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10749elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10750 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10751fi
10752
10753if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10754 for ncn_progname in gcj; do
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758$as_echo_n "checking for $ac_word... " >&6; }
10759if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
82026593
AO
10761else
10762 if test -n "$GCJ_FOR_TARGET"; then
10763 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
efd58f08
RW
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10772 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
efd58f08 10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10774 break 2
10775 fi
10776done
efd58f08
RW
10777 done
10778IFS=$as_save_IFS
82026593
AO
10779
10780fi
10781fi
10782GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10783if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10785$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10786else
efd58f08
RW
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788$as_echo "no" >&6; }
82026593
AO
10789fi
10790
efd58f08 10791
82026593
AO
10792 done
10793fi
10794
10795if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10796 for ncn_progname in gcj; do
efd58f08
RW
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10798$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10799 if test -x $with_build_time_tools/${ncn_progname}; then
10800 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10802$as_echo "yes" >&6; }
fef3f213
PB
10803 break
10804 else
efd58f08
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
fef3f213
PB
10807 fi
10808 done
10809fi
10810
10811if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10812 for ncn_progname in gcj; do
10813 if test -n "$ncn_target_tool_prefix"; then
10814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10815set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10820else
10821 if test -n "$GCJ_FOR_TARGET"; then
10822 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10823else
b58b6ee1
DJ
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
efd58f08
RW
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10831 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10833 break 2
10834 fi
10835done
efd58f08
RW
10836 done
10837IFS=$as_save_IFS
b58b6ee1 10838
5fb28bcc
PB
10839fi
10840fi
82026593
AO
10841GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10842if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10844$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10845else
efd58f08
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
82026593
AO
10848fi
10849
efd58f08 10850
82026593
AO
10851 fi
10852 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
82026593
AO
10859else
10860 if test -n "$GCJ_FOR_TARGET"; then
10861 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
efd58f08
RW
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10870 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
efd58f08 10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
10872 break 2
10873 fi
10874done
efd58f08
RW
10875 done
10876IFS=$as_save_IFS
82026593
AO
10877
10878fi
10879fi
10880GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10881if test -n "$GCJ_FOR_TARGET"; then
efd58f08
RW
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10883$as_echo "$GCJ_FOR_TARGET" >&6; }
82026593 10884else
efd58f08
RW
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
82026593
AO
10887fi
10888
efd58f08 10889
82026593
AO
10890 fi
10891 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10892 done
10893fi
10894
10895if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10896 set dummy gcj
10897 if test $build = $target ; then
10898 GCJ_FOR_TARGET="$2"
10899 else
10900 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10901 fi
d058b81b
MS
10902else
10903 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
82026593
AO
10904fi
10905
10906
10907
10908if test -n "$GFORTRAN_FOR_TARGET"; then
10909 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10910elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10911 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc
PB
10912fi
10913
82026593
AO
10914if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10915 for ncn_progname in gfortran; do
10916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 10917set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919$as_echo_n "checking for $ac_word... " >&6; }
10920if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
5fb28bcc 10922else
82026593
AO
10923 if test -n "$GFORTRAN_FOR_TARGET"; then
10924 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5fb28bcc 10925else
b58b6ee1
DJ
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
efd58f08
RW
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 10933 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
efd58f08 10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10935 break 2
10936 fi
10937done
efd58f08
RW
10938 done
10939IFS=$as_save_IFS
b58b6ee1 10940
5fb28bcc
PB
10941fi
10942fi
82026593
AO
10943GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10944if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10946$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 10947else
efd58f08
RW
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949$as_echo "no" >&6; }
5fb28bcc 10950fi
b58b6ee1 10951
efd58f08 10952
fef3f213
PB
10953 done
10954fi
b58b6ee1 10955
82026593 10956if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 10957 for ncn_progname in gfortran; do
efd58f08
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10959$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
10960 if test -x $with_build_time_tools/${ncn_progname}; then
10961 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963$as_echo "yes" >&6; }
fef3f213
PB
10964 break
10965 else
efd58f08
RW
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
fef3f213
PB
10968 fi
10969 done
10970fi
10971
10972if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10973 for ncn_progname in gfortran; do
10974 if test -n "$ncn_target_tool_prefix"; then
10975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 10976set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978$as_echo_n "checking for $ac_word... " >&6; }
10979if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
5fb28bcc
PB
10981else
10982 if test -n "$GFORTRAN_FOR_TARGET"; then
10983 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10984else
b58b6ee1
DJ
10985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
efd58f08
RW
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 10992 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
10994 break 2
10995 fi
10996done
efd58f08
RW
10997 done
10998IFS=$as_save_IFS
b58b6ee1 10999
5fb28bcc
PB
11000fi
11001fi
b58b6ee1 11002GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
5fb28bcc 11003if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11005$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 11006else
efd58f08
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
5fb28bcc
PB
11009fi
11010
efd58f08 11011
fef3f213
PB
11012 fi
11013 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 11015set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017$as_echo_n "checking for $ac_word... " >&6; }
11018if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
5fb28bcc 11020else
60cfca65 11021 if test -n "$GFORTRAN_FOR_TARGET"; then
b58b6ee1
DJ
11022 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11023else
11024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in $PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
efd58f08
RW
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11031 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
efd58f08 11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11033 break 2
11034 fi
11035done
efd58f08
RW
11036 done
11037IFS=$as_save_IFS
b58b6ee1 11038
5fb28bcc
PB
11039fi
11040fi
b58b6ee1 11041GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
60cfca65 11042if test -n "$GFORTRAN_FOR_TARGET"; then
efd58f08
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11044$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
5fb28bcc 11045else
efd58f08
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
5fb28bcc 11048fi
b58b6ee1 11049
efd58f08 11050
fef3f213
PB
11051 fi
11052 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11053 done
11054fi
b58b6ee1 11055
60cfca65
PB
11056if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11057 set dummy gfortran
11058 if test $build = $target ; then
11059 GFORTRAN_FOR_TARGET="$2"
5fb28bcc 11060 else
60cfca65 11061 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5fb28bcc 11062 fi
d058b81b
MS
11063else
11064 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
a0c92996
AC
11065fi
11066
fef3f213
PB
11067
11068
fef3f213
PB
11069cat > conftest.c << \EOF
11070#ifdef __GNUC__
11071 gcc_yay;
11072#endif
11073EOF
11074if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11075 have_gcc_for_target=yes
a0c92996 11076else
fef3f213
PB
11077 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11078 have_gcc_for_target=no
a0c92996 11079fi
fef3f213
PB
11080rm conftest.c
11081
11082
11083
a0c92996 11084
fef3f213
PB
11085if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11086 if test -n "$with_build_time_tools"; then
efd58f08
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11088$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
207258c8
PB
11089 if test -x $with_build_time_tools/ar; then
11090 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11091 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
efd58f08
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11093$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
207258c8 11094 else
efd58f08
RW
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096$as_echo "no" >&6; }
207258c8 11097 fi
fef3f213
PB
11098 elif test $build != $host && test $have_gcc_for_target = yes; then
11099 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d058b81b
MS
11100 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11101 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
60cfca65 11102 fi
fef3f213 11103fi
b58b6ee1 11104if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11105 # Extract the first word of "ar", so it can be a program name with args.
11106set dummy ar; ac_word=$2
efd58f08
RW
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
11109if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
a0c92996 11111else
b58b6ee1
DJ
11112 case $AR_FOR_TARGET in
11113 [\\/]* | ?:[\\/]*)
fef3f213
PB
11114 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11115 ;;
fef3f213 11116 *)
b58b6ee1
DJ
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $gcc_cv_tool_dirs
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
efd58f08
RW
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11124 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11126 break 2
11127 fi
11128done
efd58f08
RW
11129 done
11130IFS=$as_save_IFS
b58b6ee1 11131
fef3f213
PB
11132 ;;
11133esac
a0c92996 11134fi
b58b6ee1 11135AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
fef3f213 11136if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11138$as_echo "$AR_FOR_TARGET" >&6; }
a0c92996 11139else
efd58f08
RW
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141$as_echo "no" >&6; }
a0c92996 11142fi
60cfca65 11143
efd58f08 11144
fef3f213
PB
11145fi
11146if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
82026593
AO
11147
11148
11149if test -n "$AR_FOR_TARGET"; then
11150 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11151elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11152 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11153fi
11154
11155if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11156 for ncn_progname in ar; do
11157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
82026593
AO
11163else
11164 if test -n "$AR_FOR_TARGET"; then
11165 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
efd58f08
RW
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 11174 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
efd58f08 11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11176 break 2
11177 fi
11178done
efd58f08
RW
11179 done
11180IFS=$as_save_IFS
82026593
AO
11181
11182fi
11183fi
11184AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11185if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11187$as_echo "$AR_FOR_TARGET" >&6; }
82026593 11188else
efd58f08
RW
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
82026593
AO
11191fi
11192
efd58f08 11193
82026593
AO
11194 done
11195fi
11196
11197if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11198 for ncn_progname in ar; do
efd58f08
RW
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11200$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11201 if test -x $with_build_time_tools/${ncn_progname}; then
11202 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204$as_echo "yes" >&6; }
fef3f213
PB
11205 break
11206 else
efd58f08
RW
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208$as_echo "no" >&6; }
fef3f213
PB
11209 fi
11210 done
a0c92996
AC
11211fi
11212
fef3f213
PB
11213if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11214 for ncn_progname in ar; do
11215 if test -n "$ncn_target_tool_prefix"; then
11216 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 11217set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219$as_echo_n "checking for $ac_word... " >&6; }
11220if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
6a33f745 11222else
fef3f213
PB
11223 if test -n "$AR_FOR_TARGET"; then
11224 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
6a33f745 11225else
b58b6ee1
DJ
11226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227for as_dir in $PATH
11228do
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
efd58f08
RW
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11233 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11235 break 2
11236 fi
11237done
efd58f08
RW
11238 done
11239IFS=$as_save_IFS
b58b6ee1 11240
6a33f745
GK
11241fi
11242fi
b58b6ee1 11243AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 11244if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11246$as_echo "$AR_FOR_TARGET" >&6; }
6a33f745 11247else
efd58f08
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
6a33f745
GK
11250fi
11251
efd58f08 11252
fef3f213
PB
11253 fi
11254 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 11256set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258$as_echo_n "checking for $ac_word... " >&6; }
11259if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
6a33f745 11261else
fef3f213
PB
11262 if test -n "$AR_FOR_TARGET"; then
11263 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
f69e2532 11264else
b58b6ee1
DJ
11265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266for as_dir in $PATH
11267do
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
efd58f08
RW
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11272 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
efd58f08 11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11274 break 2
11275 fi
11276done
efd58f08
RW
11277 done
11278IFS=$as_save_IFS
b58b6ee1 11279
6a33f745
GK
11280fi
11281fi
b58b6ee1 11282AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
fef3f213 11283if test -n "$AR_FOR_TARGET"; then
efd58f08
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11285$as_echo "$AR_FOR_TARGET" >&6; }
6a33f745 11286else
efd58f08
RW
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288$as_echo "no" >&6; }
6a33f745 11289fi
b58b6ee1 11290
efd58f08 11291
fef3f213
PB
11292 fi
11293 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11294 done
11295fi
b58b6ee1 11296
fef3f213
PB
11297if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11298 set dummy ar
6a33f745 11299 if test $build = $target ; then
fef3f213 11300 AR_FOR_TARGET="$2"
6a33f745 11301 else
fef3f213 11302 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
6a33f745 11303 fi
d058b81b
MS
11304else
11305 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
6a33f745
GK
11306fi
11307
207258c8
PB
11308else
11309 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
fef3f213
PB
11310fi
11311
11312
11313
11314
11315if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11316 if test -n "$with_build_time_tools"; then
efd58f08
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11318$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
207258c8
PB
11319 if test -x $with_build_time_tools/as; then
11320 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11321 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
efd58f08
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11323$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
207258c8 11324 else
efd58f08
RW
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326$as_echo "no" >&6; }
207258c8 11327 fi
fef3f213
PB
11328 elif test $build != $host && test $have_gcc_for_target = yes; then
11329 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d058b81b
MS
11330 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11331 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
fef3f213
PB
11332 fi
11333fi
b58b6ee1 11334if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11335 # Extract the first word of "as", so it can be a program name with args.
11336set dummy as; ac_word=$2
efd58f08
RW
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
11339if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
fef3f213 11341else
b58b6ee1
DJ
11342 case $AS_FOR_TARGET in
11343 [\\/]* | ?:[\\/]*)
fef3f213
PB
11344 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11345 ;;
fef3f213 11346 *)
b58b6ee1
DJ
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $gcc_cv_tool_dirs
11349do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
efd58f08
RW
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11354 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11356 break 2
11357 fi
11358done
efd58f08
RW
11359 done
11360IFS=$as_save_IFS
b58b6ee1 11361
fef3f213
PB
11362 ;;
11363esac
11364fi
b58b6ee1 11365AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
fef3f213 11366if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11368$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11369else
efd58f08
RW
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371$as_echo "no" >&6; }
fef3f213
PB
11372fi
11373
efd58f08 11374
fef3f213
PB
11375fi
11376if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
82026593
AO
11377
11378
11379if test -n "$AS_FOR_TARGET"; then
11380 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11381elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11382 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11383fi
11384
11385if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11386 for ncn_progname in as; do
11387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11388set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
11391if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
82026593
AO
11393else
11394 if test -n "$AS_FOR_TARGET"; then
11395 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
efd58f08
RW
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 11404 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
efd58f08 11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11406 break 2
11407 fi
11408done
efd58f08
RW
11409 done
11410IFS=$as_save_IFS
82026593
AO
11411
11412fi
11413fi
11414AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11415if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11417$as_echo "$AS_FOR_TARGET" >&6; }
82026593 11418else
efd58f08
RW
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
82026593
AO
11421fi
11422
efd58f08 11423
82026593
AO
11424 done
11425fi
11426
11427if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11428 for ncn_progname in as; do
efd58f08
RW
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11430$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11431 if test -x $with_build_time_tools/${ncn_progname}; then
11432 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434$as_echo "yes" >&6; }
fef3f213
PB
11435 break
11436 else
efd58f08
RW
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
fef3f213
PB
11439 fi
11440 done
11441fi
11442
11443if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11444 for ncn_progname in as; do
11445 if test -n "$ncn_target_tool_prefix"; then
11446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11447set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449$as_echo_n "checking for $ac_word... " >&6; }
11450if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
fef3f213
PB
11452else
11453 if test -n "$AS_FOR_TARGET"; then
11454 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11455else
b58b6ee1
DJ
11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
efd58f08
RW
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11463 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11465 break 2
11466 fi
11467done
efd58f08
RW
11468 done
11469IFS=$as_save_IFS
b58b6ee1 11470
fef3f213
PB
11471fi
11472fi
b58b6ee1 11473AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 11474if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11476$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11477else
efd58f08
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479$as_echo "no" >&6; }
fef3f213
PB
11480fi
11481
efd58f08 11482
fef3f213
PB
11483 fi
11484 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488$as_echo_n "checking for $ac_word... " >&6; }
11489if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
fef3f213
PB
11491else
11492 if test -n "$AS_FOR_TARGET"; then
11493 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11494else
b58b6ee1
DJ
11495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496for as_dir in $PATH
11497do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
efd58f08
RW
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11502 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
efd58f08 11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11504 break 2
11505 fi
11506done
efd58f08
RW
11507 done
11508IFS=$as_save_IFS
b58b6ee1 11509
fef3f213
PB
11510fi
11511fi
b58b6ee1 11512AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
fef3f213 11513if test -n "$AS_FOR_TARGET"; then
efd58f08
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11515$as_echo "$AS_FOR_TARGET" >&6; }
fef3f213 11516else
efd58f08
RW
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518$as_echo "no" >&6; }
fef3f213 11519fi
b58b6ee1 11520
efd58f08 11521
fef3f213
PB
11522 fi
11523 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11524 done
11525fi
b58b6ee1 11526
fef3f213
PB
11527if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11528 set dummy as
11529 if test $build = $target ; then
11530 AS_FOR_TARGET="$2"
11531 else
11532 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11533 fi
d058b81b
MS
11534else
11535 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
fef3f213
PB
11536fi
11537
207258c8
PB
11538else
11539 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
fef3f213
PB
11540fi
11541
11542
11543
11544
11545if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11546 if test -n "$with_build_time_tools"; then
efd58f08
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11548$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
207258c8
PB
11549 if test -x $with_build_time_tools/dlltool; then
11550 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11551 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
efd58f08
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11553$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
207258c8 11554 else
efd58f08
RW
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556$as_echo "no" >&6; }
207258c8 11557 fi
fef3f213
PB
11558 elif test $build != $host && test $have_gcc_for_target = yes; then
11559 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d058b81b
MS
11560 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11561 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
fef3f213
PB
11562 fi
11563fi
b58b6ee1 11564if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11565 # Extract the first word of "dlltool", so it can be a program name with args.
11566set dummy dlltool; ac_word=$2
efd58f08
RW
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
fef3f213 11571else
b58b6ee1
DJ
11572 case $DLLTOOL_FOR_TARGET in
11573 [\\/]* | ?:[\\/]*)
fef3f213
PB
11574 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11575 ;;
fef3f213 11576 *)
b58b6ee1
DJ
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $gcc_cv_tool_dirs
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
efd58f08
RW
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11584 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11586 break 2
11587 fi
11588done
efd58f08
RW
11589 done
11590IFS=$as_save_IFS
b58b6ee1 11591
fef3f213
PB
11592 ;;
11593esac
11594fi
b58b6ee1 11595DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
fef3f213 11596if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11598$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11599else
efd58f08
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
fef3f213
PB
11602fi
11603
efd58f08 11604
fef3f213
PB
11605fi
11606if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
82026593
AO
11607
11608
11609if test -n "$DLLTOOL_FOR_TARGET"; then
11610 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11611elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11612 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11613fi
11614
11615if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11616 for ncn_progname in dlltool; do
11617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620$as_echo_n "checking for $ac_word... " >&6; }
11621if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
82026593
AO
11623else
11624 if test -n "$DLLTOOL_FOR_TARGET"; then
11625 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11626else
11627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628for as_dir in $PATH
11629do
11630 IFS=$as_save_IFS
11631 test -z "$as_dir" && as_dir=.
efd58f08
RW
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 11634 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
efd58f08 11635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11636 break 2
11637 fi
11638done
efd58f08
RW
11639 done
11640IFS=$as_save_IFS
82026593
AO
11641
11642fi
11643fi
11644DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11645if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11647$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
82026593 11648else
efd58f08
RW
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
82026593
AO
11651fi
11652
efd58f08 11653
82026593
AO
11654 done
11655fi
11656
11657if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11658 for ncn_progname in dlltool; do
efd58f08
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11660$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11661 if test -x $with_build_time_tools/${ncn_progname}; then
11662 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664$as_echo "yes" >&6; }
fef3f213
PB
11665 break
11666 else
efd58f08
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
fef3f213
PB
11669 fi
11670 done
11671fi
11672
11673if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11674 for ncn_progname in dlltool; do
11675 if test -n "$ncn_target_tool_prefix"; then
11676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11677set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
11680if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
fef3f213
PB
11682else
11683 if test -n "$DLLTOOL_FOR_TARGET"; then
11684 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11685else
b58b6ee1
DJ
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
11688do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
efd58f08
RW
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11693 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11695 break 2
11696 fi
11697done
efd58f08
RW
11698 done
11699IFS=$as_save_IFS
b58b6ee1 11700
fef3f213
PB
11701fi
11702fi
b58b6ee1 11703DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 11704if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11706$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11707else
efd58f08
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
fef3f213
PB
11710fi
11711
efd58f08 11712
fef3f213
PB
11713 fi
11714 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11716set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718$as_echo_n "checking for $ac_word... " >&6; }
11719if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
fef3f213
PB
11721else
11722 if test -n "$DLLTOOL_FOR_TARGET"; then
11723 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11724else
b58b6ee1
DJ
11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $PATH
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
efd58f08
RW
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11732 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
efd58f08 11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11734 break 2
11735 fi
11736done
efd58f08
RW
11737 done
11738IFS=$as_save_IFS
b58b6ee1 11739
fef3f213
PB
11740fi
11741fi
b58b6ee1 11742DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
fef3f213 11743if test -n "$DLLTOOL_FOR_TARGET"; then
efd58f08
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11745$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
fef3f213 11746else
efd58f08
RW
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
fef3f213 11749fi
b58b6ee1 11750
efd58f08 11751
fef3f213
PB
11752 fi
11753 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11754 done
11755fi
b58b6ee1 11756
fef3f213
PB
11757if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11758 set dummy dlltool
11759 if test $build = $target ; then
11760 DLLTOOL_FOR_TARGET="$2"
11761 else
11762 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11763 fi
d058b81b
MS
11764else
11765 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
fef3f213
PB
11766fi
11767
207258c8
PB
11768else
11769 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
fef3f213
PB
11770fi
11771
11772
11773
11774
11775if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11776 if test -n "$with_build_time_tools"; then
efd58f08
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11778$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
207258c8
PB
11779 if test -x $with_build_time_tools/ld; then
11780 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11781 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
efd58f08
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11783$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
207258c8 11784 else
efd58f08
RW
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
207258c8 11787 fi
fef3f213
PB
11788 elif test $build != $host && test $have_gcc_for_target = yes; then
11789 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d058b81b
MS
11790 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11791 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
fef3f213
PB
11792 fi
11793fi
b58b6ee1 11794if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
11795 # Extract the first word of "ld", so it can be a program name with args.
11796set dummy ld; ac_word=$2
efd58f08
RW
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798$as_echo_n "checking for $ac_word... " >&6; }
11799if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
fef3f213 11801else
b58b6ee1
DJ
11802 case $LD_FOR_TARGET in
11803 [\\/]* | ?:[\\/]*)
fef3f213
PB
11804 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11805 ;;
fef3f213 11806 *)
b58b6ee1
DJ
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $gcc_cv_tool_dirs
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
efd58f08
RW
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11814 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11816 break 2
11817 fi
11818done
efd58f08
RW
11819 done
11820IFS=$as_save_IFS
b58b6ee1 11821
fef3f213
PB
11822 ;;
11823esac
11824fi
b58b6ee1 11825LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
fef3f213 11826if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11828$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 11829else
efd58f08
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831$as_echo "no" >&6; }
fef3f213
PB
11832fi
11833
efd58f08 11834
fef3f213
PB
11835fi
11836if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
82026593
AO
11837
11838
11839if test -n "$LD_FOR_TARGET"; then
11840 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11841elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11842 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11843fi
11844
11845if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11846 for ncn_progname in ld; do
11847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11848set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
11851if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11852 $as_echo_n "(cached) " >&6
82026593
AO
11853else
11854 if test -n "$LD_FOR_TARGET"; then
11855 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
efd58f08
RW
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 11864 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
efd58f08 11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
11866 break 2
11867 fi
11868done
efd58f08
RW
11869 done
11870IFS=$as_save_IFS
82026593
AO
11871
11872fi
11873fi
11874LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11875if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11877$as_echo "$LD_FOR_TARGET" >&6; }
82026593 11878else
efd58f08
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
82026593
AO
11881fi
11882
efd58f08 11883
82026593
AO
11884 done
11885fi
11886
11887if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 11888 for ncn_progname in ld; do
efd58f08
RW
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11890$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
11891 if test -x $with_build_time_tools/${ncn_progname}; then
11892 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894$as_echo "yes" >&6; }
fef3f213
PB
11895 break
11896 else
efd58f08
RW
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
fef3f213
PB
11899 fi
11900 done
11901fi
11902
11903if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11904 for ncn_progname in ld; do
11905 if test -n "$ncn_target_tool_prefix"; then
11906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11907set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909$as_echo_n "checking for $ac_word... " >&6; }
11910if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
fef3f213
PB
11912else
11913 if test -n "$LD_FOR_TARGET"; then
11914 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11915else
b58b6ee1
DJ
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
efd58f08
RW
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11923 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11925 break 2
11926 fi
11927done
efd58f08
RW
11928 done
11929IFS=$as_save_IFS
b58b6ee1 11930
fef3f213
PB
11931fi
11932fi
b58b6ee1 11933LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 11934if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11936$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 11937else
efd58f08
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
fef3f213
PB
11940fi
11941
efd58f08 11942
fef3f213
PB
11943 fi
11944 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948$as_echo_n "checking for $ac_word... " >&6; }
11949if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
fef3f213
PB
11951else
11952 if test -n "$LD_FOR_TARGET"; then
11953 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11954else
b58b6ee1
DJ
11955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
efd58f08
RW
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 11962 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
efd58f08 11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
11964 break 2
11965 fi
11966done
efd58f08
RW
11967 done
11968IFS=$as_save_IFS
b58b6ee1 11969
fef3f213
PB
11970fi
11971fi
b58b6ee1 11972LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
fef3f213 11973if test -n "$LD_FOR_TARGET"; then
efd58f08
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11975$as_echo "$LD_FOR_TARGET" >&6; }
fef3f213 11976else
efd58f08
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
fef3f213 11979fi
b58b6ee1 11980
efd58f08 11981
fef3f213
PB
11982 fi
11983 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11984 done
11985fi
b58b6ee1 11986
fef3f213
PB
11987if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11988 set dummy ld
11989 if test $build = $target ; then
11990 LD_FOR_TARGET="$2"
11991 else
11992 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11993 fi
d058b81b
MS
11994else
11995 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
fef3f213
PB
11996fi
11997
207258c8
PB
11998else
11999 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
fef3f213
PB
12000fi
12001
12002
12003
12004
12005if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12006 if test -n "$with_build_time_tools"; then
efd58f08
RW
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12008$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
207258c8
PB
12009 if test -x $with_build_time_tools/lipo; then
12010 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12011 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
efd58f08
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12013$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
207258c8 12014 else
efd58f08
RW
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016$as_echo "no" >&6; }
207258c8 12017 fi
fef3f213
PB
12018 elif test $build != $host && test $have_gcc_for_target = yes; then
12019 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d058b81b
MS
12020 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12021 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
fef3f213
PB
12022 fi
12023fi
82026593
AO
12024if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12025 # Extract the first word of "lipo", so it can be a program name with args.
12026set dummy lipo; ac_word=$2
efd58f08
RW
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028$as_echo_n "checking for $ac_word... " >&6; }
12029if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
82026593
AO
12031else
12032 case $LIPO_FOR_TARGET in
12033 [\\/]* | ?:[\\/]*)
12034 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12035 ;;
12036 *)
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $gcc_cv_tool_dirs
12039do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
efd58f08
RW
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 12044 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12046 break 2
12047 fi
12048done
efd58f08
RW
12049 done
12050IFS=$as_save_IFS
82026593
AO
12051
12052 ;;
12053esac
12054fi
12055LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
82026593 12056if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12058$as_echo "$LIPO_FOR_TARGET" >&6; }
82026593 12059else
efd58f08
RW
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061$as_echo "no" >&6; }
82026593
AO
12062fi
12063
efd58f08 12064
82026593
AO
12065fi
12066if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12067
12068
12069if test -n "$LIPO_FOR_TARGET"; then
12070 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12071elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12072 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12073fi
12074
12075if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12076 for ncn_progname in lipo; do
12077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12078set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080$as_echo_n "checking for $ac_word... " >&6; }
12081if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
fef3f213 12083else
82026593
AO
12084 if test -n "$LIPO_FOR_TARGET"; then
12085 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12086else
12087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088for as_dir in $PATH
b58b6ee1
DJ
12089do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
efd58f08
RW
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 12094 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
efd58f08 12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12096 break 2
12097 fi
12098done
efd58f08
RW
12099 done
12100IFS=$as_save_IFS
b58b6ee1 12101
fef3f213 12102fi
82026593
AO
12103fi
12104LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12105if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12107$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12108else
efd58f08
RW
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
fef3f213
PB
12111fi
12112
efd58f08 12113
82026593 12114 done
fef3f213 12115fi
82026593
AO
12116
12117if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12118 for ncn_progname in lipo; do
efd58f08
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12120$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12121 if test -x $with_build_time_tools/${ncn_progname}; then
12122 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124$as_echo "yes" >&6; }
fef3f213
PB
12125 break
12126 else
efd58f08
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
fef3f213
PB
12129 fi
12130 done
12131fi
12132
12133if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12134 for ncn_progname in lipo; do
12135 if test -n "$ncn_target_tool_prefix"; then
12136 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12137set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139$as_echo_n "checking for $ac_word... " >&6; }
12140if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
fef3f213
PB
12142else
12143 if test -n "$LIPO_FOR_TARGET"; then
12144 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12145else
b58b6ee1
DJ
12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147for as_dir in $PATH
12148do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
efd58f08
RW
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12153 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12155 break 2
12156 fi
12157done
efd58f08
RW
12158 done
12159IFS=$as_save_IFS
b58b6ee1 12160
fef3f213
PB
12161fi
12162fi
b58b6ee1 12163LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12164if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12166$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12167else
efd58f08
RW
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169$as_echo "no" >&6; }
fef3f213
PB
12170fi
12171
efd58f08 12172
fef3f213
PB
12173 fi
12174 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12176set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178$as_echo_n "checking for $ac_word... " >&6; }
12179if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
fef3f213
PB
12181else
12182 if test -n "$LIPO_FOR_TARGET"; then
12183 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12184else
b58b6ee1
DJ
12185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186for as_dir in $PATH
12187do
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
efd58f08
RW
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12192 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
efd58f08 12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12194 break 2
12195 fi
12196done
efd58f08
RW
12197 done
12198IFS=$as_save_IFS
b58b6ee1 12199
fef3f213
PB
12200fi
12201fi
b58b6ee1 12202LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
fef3f213 12203if test -n "$LIPO_FOR_TARGET"; then
efd58f08
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12205$as_echo "$LIPO_FOR_TARGET" >&6; }
fef3f213 12206else
efd58f08
RW
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208$as_echo "no" >&6; }
fef3f213 12209fi
b58b6ee1 12210
efd58f08 12211
fef3f213
PB
12212 fi
12213 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12214 done
12215fi
b58b6ee1 12216
fef3f213
PB
12217if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12218 set dummy lipo
12219 if test $build = $target ; then
12220 LIPO_FOR_TARGET="$2"
12221 else
12222 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12223 fi
d058b81b
MS
12224else
12225 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
fef3f213
PB
12226fi
12227
207258c8
PB
12228else
12229 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
fef3f213
PB
12230fi
12231
12232
12233
12234
12235if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12236 if test -n "$with_build_time_tools"; then
efd58f08
RW
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12238$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
207258c8
PB
12239 if test -x $with_build_time_tools/nm; then
12240 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12241 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
efd58f08
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12243$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
207258c8 12244 else
efd58f08
RW
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
207258c8 12247 fi
fef3f213
PB
12248 elif test $build != $host && test $have_gcc_for_target = yes; then
12249 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d058b81b
MS
12250 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12251 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
fef3f213
PB
12252 fi
12253fi
b58b6ee1 12254if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12255 # Extract the first word of "nm", so it can be a program name with args.
12256set dummy nm; ac_word=$2
efd58f08
RW
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
fef3f213 12261else
b58b6ee1
DJ
12262 case $NM_FOR_TARGET in
12263 [\\/]* | ?:[\\/]*)
fef3f213
PB
12264 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12265 ;;
fef3f213 12266 *)
b58b6ee1
DJ
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268for as_dir in $gcc_cv_tool_dirs
12269do
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
efd58f08
RW
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12274 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12276 break 2
12277 fi
12278done
efd58f08
RW
12279 done
12280IFS=$as_save_IFS
b58b6ee1 12281
fef3f213
PB
12282 ;;
12283esac
12284fi
b58b6ee1 12285NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
fef3f213 12286if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12288$as_echo "$NM_FOR_TARGET" >&6; }
fef3f213 12289else
efd58f08
RW
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
fef3f213
PB
12292fi
12293
efd58f08 12294
fef3f213
PB
12295fi
12296if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
82026593
AO
12297
12298
12299if test -n "$NM_FOR_TARGET"; then
12300 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12301elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12302 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12303fi
12304
12305if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12306 for ncn_progname in nm; do
12307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12308set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310$as_echo_n "checking for $ac_word... " >&6; }
12311if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
82026593
AO
12313else
12314 if test -n "$NM_FOR_TARGET"; then
12315 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12316else
12317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318for as_dir in $PATH
12319do
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
efd58f08
RW
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 12324 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
efd58f08 12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12326 break 2
12327 fi
12328done
efd58f08
RW
12329 done
12330IFS=$as_save_IFS
82026593
AO
12331
12332fi
12333fi
12334NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12335if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12337$as_echo "$NM_FOR_TARGET" >&6; }
82026593 12338else
efd58f08
RW
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340$as_echo "no" >&6; }
82026593
AO
12341fi
12342
efd58f08 12343
82026593
AO
12344 done
12345fi
12346
12347if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12348 for ncn_progname in nm; do
efd58f08
RW
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12350$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12351 if test -x $with_build_time_tools/${ncn_progname}; then
12352 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12354$as_echo "yes" >&6; }
fef3f213
PB
12355 break
12356 else
efd58f08
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
fef3f213
PB
12359 fi
12360 done
12361fi
12362
12363if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12364 for ncn_progname in nm; do
12365 if test -n "$ncn_target_tool_prefix"; then
12366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 12367set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369$as_echo_n "checking for $ac_word... " >&6; }
12370if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
a0c92996 12372else
5fb28bcc
PB
12373 if test -n "$NM_FOR_TARGET"; then
12374 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 12375else
b58b6ee1
DJ
12376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
efd58f08
RW
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12383 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12385 break 2
12386 fi
12387done
efd58f08
RW
12388 done
12389IFS=$as_save_IFS
b58b6ee1 12390
a0c92996
AC
12391fi
12392fi
b58b6ee1 12393NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
5fb28bcc 12394if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12396$as_echo "$NM_FOR_TARGET" >&6; }
a0c92996 12397else
efd58f08
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
a0c92996
AC
12400fi
12401
efd58f08 12402
fef3f213
PB
12403 fi
12404 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 12406set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408$as_echo_n "checking for $ac_word... " >&6; }
12409if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
a0c92996 12411else
60cfca65
PB
12412 if test -n "$NM_FOR_TARGET"; then
12413 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
a0c92996 12414else
b58b6ee1
DJ
12415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416for as_dir in $PATH
12417do
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
efd58f08
RW
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12422 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
efd58f08 12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12424 break 2
12425 fi
12426done
efd58f08
RW
12427 done
12428IFS=$as_save_IFS
b58b6ee1 12429
a0c92996
AC
12430fi
12431fi
b58b6ee1 12432NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
60cfca65 12433if test -n "$NM_FOR_TARGET"; then
efd58f08
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12435$as_echo "$NM_FOR_TARGET" >&6; }
a0c92996 12436else
efd58f08
RW
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
a0c92996 12439fi
b58b6ee1 12440
efd58f08 12441
fef3f213
PB
12442 fi
12443 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12444 done
12445fi
b58b6ee1 12446
60cfca65
PB
12447if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12448 set dummy nm
12449 if test $build = $target ; then
12450 NM_FOR_TARGET="$2"
a0c92996 12451 else
60cfca65 12452 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 12453 fi
d058b81b
MS
12454else
12455 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
a0c92996
AC
12456fi
12457
207258c8
PB
12458else
12459 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
fef3f213
PB
12460fi
12461
12462
12463
12464
12465if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12466 if test -n "$with_build_time_tools"; then
efd58f08
RW
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12468$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
207258c8
PB
12469 if test -x $with_build_time_tools/objdump; then
12470 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12471 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
efd58f08
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12473$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
207258c8 12474 else
efd58f08
RW
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
207258c8 12477 fi
fef3f213
PB
12478 elif test $build != $host && test $have_gcc_for_target = yes; then
12479 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d058b81b
MS
12480 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12481 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
fef3f213
PB
12482 fi
12483fi
b58b6ee1 12484if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12485 # Extract the first word of "objdump", so it can be a program name with args.
12486set dummy objdump; ac_word=$2
efd58f08
RW
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488$as_echo_n "checking for $ac_word... " >&6; }
12489if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
fef3f213 12491else
b58b6ee1
DJ
12492 case $OBJDUMP_FOR_TARGET in
12493 [\\/]* | ?:[\\/]*)
fef3f213
PB
12494 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12495 ;;
fef3f213 12496 *)
b58b6ee1
DJ
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $gcc_cv_tool_dirs
12499do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
efd58f08
RW
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12504 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12506 break 2
12507 fi
12508done
efd58f08
RW
12509 done
12510IFS=$as_save_IFS
b58b6ee1 12511
fef3f213
PB
12512 ;;
12513esac
12514fi
b58b6ee1 12515OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
fef3f213 12516if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12518$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
fef3f213 12519else
efd58f08
RW
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521$as_echo "no" >&6; }
fef3f213
PB
12522fi
12523
efd58f08 12524
fef3f213
PB
12525fi
12526if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
82026593
AO
12527
12528
12529if test -n "$OBJDUMP_FOR_TARGET"; then
12530 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12531elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12532 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12533fi
12534
12535if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12536 for ncn_progname in objdump; do
12537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12538set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540$as_echo_n "checking for $ac_word... " >&6; }
12541if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
82026593
AO
12543else
12544 if test -n "$OBJDUMP_FOR_TARGET"; then
12545 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12546else
12547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548for as_dir in $PATH
12549do
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
efd58f08
RW
12552 for ac_exec_ext in '' $ac_executable_extensions; do
12553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 12554 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
efd58f08 12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12556 break 2
12557 fi
12558done
efd58f08
RW
12559 done
12560IFS=$as_save_IFS
82026593
AO
12561
12562fi
12563fi
12564OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12565if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12567$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
82026593 12568else
efd58f08
RW
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
82026593
AO
12571fi
12572
efd58f08 12573
82026593
AO
12574 done
12575fi
12576
12577if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12578 for ncn_progname in objdump; do
efd58f08
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12580$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12581 if test -x $with_build_time_tools/${ncn_progname}; then
12582 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584$as_echo "yes" >&6; }
fef3f213
PB
12585 break
12586 else
efd58f08
RW
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588$as_echo "no" >&6; }
fef3f213
PB
12589 fi
12590 done
12591fi
12592
12593if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12594 for ncn_progname in objdump; do
12595 if test -n "$ncn_target_tool_prefix"; then
12596 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 12597set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599$as_echo_n "checking for $ac_word... " >&6; }
12600if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
51c8a213
DJ
12602else
12603 if test -n "$OBJDUMP_FOR_TARGET"; then
12604 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12605else
b58b6ee1
DJ
12606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607for as_dir in $PATH
12608do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
efd58f08
RW
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12613 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12615 break 2
12616 fi
12617done
efd58f08
RW
12618 done
12619IFS=$as_save_IFS
b58b6ee1 12620
51c8a213
DJ
12621fi
12622fi
b58b6ee1 12623OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 12624if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12626$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
51c8a213 12627else
efd58f08
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
51c8a213
DJ
12630fi
12631
efd58f08 12632
fef3f213
PB
12633 fi
12634 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
51c8a213 12636set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
12639if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
51c8a213
DJ
12641else
12642 if test -n "$OBJDUMP_FOR_TARGET"; then
12643 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12644else
b58b6ee1
DJ
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
efd58f08
RW
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12652 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
efd58f08 12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12654 break 2
12655 fi
12656done
efd58f08
RW
12657 done
12658IFS=$as_save_IFS
b58b6ee1 12659
51c8a213
DJ
12660fi
12661fi
b58b6ee1 12662OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
51c8a213 12663if test -n "$OBJDUMP_FOR_TARGET"; then
efd58f08
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12665$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
51c8a213 12666else
efd58f08
RW
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
51c8a213 12669fi
b58b6ee1 12670
efd58f08 12671
fef3f213
PB
12672 fi
12673 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12674 done
12675fi
b58b6ee1 12676
51c8a213
DJ
12677if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12678 set dummy objdump
12679 if test $build = $target ; then
12680 OBJDUMP_FOR_TARGET="$2"
12681 else
12682 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12683 fi
d058b81b
MS
12684else
12685 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
51c8a213
DJ
12686fi
12687
207258c8
PB
12688else
12689 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
fef3f213
PB
12690fi
12691
12692
12693
12694
12695if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12696 if test -n "$with_build_time_tools"; then
efd58f08
RW
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12698$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
207258c8
PB
12699 if test -x $with_build_time_tools/ranlib; then
12700 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12701 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
efd58f08
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12703$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
207258c8 12704 else
efd58f08
RW
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706$as_echo "no" >&6; }
207258c8 12707 fi
fef3f213
PB
12708 elif test $build != $host && test $have_gcc_for_target = yes; then
12709 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d058b81b
MS
12710 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12711 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
fef3f213
PB
12712 fi
12713fi
b58b6ee1 12714if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12715 # Extract the first word of "ranlib", so it can be a program name with args.
12716set dummy ranlib; ac_word=$2
efd58f08
RW
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718$as_echo_n "checking for $ac_word... " >&6; }
12719if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
fef3f213 12721else
b58b6ee1
DJ
12722 case $RANLIB_FOR_TARGET in
12723 [\\/]* | ?:[\\/]*)
fef3f213
PB
12724 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12725 ;;
fef3f213 12726 *)
b58b6ee1
DJ
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $gcc_cv_tool_dirs
12729do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
efd58f08
RW
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12734 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12736 break 2
12737 fi
12738done
efd58f08
RW
12739 done
12740IFS=$as_save_IFS
b58b6ee1 12741
fef3f213
PB
12742 ;;
12743esac
12744fi
b58b6ee1 12745RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
fef3f213 12746if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12748$as_echo "$RANLIB_FOR_TARGET" >&6; }
fef3f213 12749else
efd58f08
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
fef3f213
PB
12752fi
12753
efd58f08 12754
fef3f213
PB
12755fi
12756if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
82026593
AO
12757
12758
12759if test -n "$RANLIB_FOR_TARGET"; then
12760 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12761elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12762 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12763fi
12764
12765if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12766 for ncn_progname in ranlib; do
12767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12768set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
12771if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
82026593
AO
12773else
12774 if test -n "$RANLIB_FOR_TARGET"; then
12775 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
efd58f08
RW
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 12784 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
efd58f08 12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
12786 break 2
12787 fi
12788done
efd58f08
RW
12789 done
12790IFS=$as_save_IFS
82026593
AO
12791
12792fi
12793fi
12794RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12795if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12797$as_echo "$RANLIB_FOR_TARGET" >&6; }
82026593 12798else
efd58f08
RW
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
82026593
AO
12801fi
12802
efd58f08 12803
82026593
AO
12804 done
12805fi
12806
12807if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 12808 for ncn_progname in ranlib; do
efd58f08
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12810$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
12811 if test -x $with_build_time_tools/${ncn_progname}; then
12812 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814$as_echo "yes" >&6; }
fef3f213
PB
12815 break
12816 else
efd58f08
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818$as_echo "no" >&6; }
fef3f213
PB
12819 fi
12820 done
12821fi
12822
12823if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12824 for ncn_progname in ranlib; do
12825 if test -n "$ncn_target_tool_prefix"; then
12826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
51c8a213 12827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
12830if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
a0c92996 12832else
5fb28bcc
PB
12833 if test -n "$RANLIB_FOR_TARGET"; then
12834 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 12835else
b58b6ee1
DJ
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
efd58f08
RW
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12843 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12845 break 2
12846 fi
12847done
efd58f08
RW
12848 done
12849IFS=$as_save_IFS
b58b6ee1 12850
a0c92996
AC
12851fi
12852fi
b58b6ee1 12853RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
5fb28bcc 12854if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12856$as_echo "$RANLIB_FOR_TARGET" >&6; }
a0c92996 12857else
efd58f08
RW
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
a0c92996
AC
12860fi
12861
efd58f08 12862
fef3f213
PB
12863 fi
12864 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 12866set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868$as_echo_n "checking for $ac_word... " >&6; }
12869if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
a0c92996 12871else
60cfca65
PB
12872 if test -n "$RANLIB_FOR_TARGET"; then
12873 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
a0c92996 12874else
b58b6ee1
DJ
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
efd58f08
RW
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12882 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
efd58f08 12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12884 break 2
12885 fi
12886done
efd58f08
RW
12887 done
12888IFS=$as_save_IFS
b58b6ee1 12889
a0c92996
AC
12890fi
12891fi
b58b6ee1 12892RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
60cfca65 12893if test -n "$RANLIB_FOR_TARGET"; then
efd58f08
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12895$as_echo "$RANLIB_FOR_TARGET" >&6; }
a0c92996 12896else
efd58f08
RW
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
a0c92996 12899fi
b58b6ee1 12900
efd58f08 12901
fef3f213
PB
12902 fi
12903 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12904 done
12905fi
b58b6ee1 12906
fef3f213
PB
12907if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12908 set dummy ranlib
12909 if test $build = $target ; then
12910 RANLIB_FOR_TARGET="$2"
12911 else
12912 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 12913 fi
d058b81b
MS
12914else
12915 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
fef3f213 12916fi
60cfca65 12917
207258c8
PB
12918else
12919 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
a0c92996
AC
12920fi
12921
fef3f213
PB
12922
12923
12924
12925if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12926 if test -n "$with_build_time_tools"; then
efd58f08
RW
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12928$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
207258c8
PB
12929 if test -x $with_build_time_tools/strip; then
12930 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12931 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
efd58f08
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12933$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
207258c8 12934 else
efd58f08
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
207258c8 12937 fi
fef3f213
PB
12938 elif test $build != $host && test $have_gcc_for_target = yes; then
12939 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d058b81b
MS
12940 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12941 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
fef3f213
PB
12942 fi
12943fi
b58b6ee1 12944if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
12945 # Extract the first word of "strip", so it can be a program name with args.
12946set dummy strip; ac_word=$2
efd58f08
RW
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948$as_echo_n "checking for $ac_word... " >&6; }
12949if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
fef3f213 12951else
b58b6ee1
DJ
12952 case $STRIP_FOR_TARGET in
12953 [\\/]* | ?:[\\/]*)
fef3f213
PB
12954 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12955 ;;
fef3f213 12956 *)
b58b6ee1
DJ
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958for as_dir in $gcc_cv_tool_dirs
12959do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
efd58f08
RW
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 12964 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
12966 break 2
12967 fi
12968done
efd58f08
RW
12969 done
12970IFS=$as_save_IFS
b58b6ee1 12971
fef3f213
PB
12972 ;;
12973esac
12974fi
b58b6ee1 12975STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
fef3f213 12976if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12978$as_echo "$STRIP_FOR_TARGET" >&6; }
fef3f213 12979else
efd58f08
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981$as_echo "no" >&6; }
fef3f213
PB
12982fi
12983
efd58f08 12984
fef3f213
PB
12985fi
12986if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
82026593
AO
12987
12988
12989if test -n "$STRIP_FOR_TARGET"; then
12990 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12991elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12992 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12993fi
12994
12995if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12996 for ncn_progname in strip; do
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
13001if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
82026593
AO
13003else
13004 if test -n "$STRIP_FOR_TARGET"; then
13005 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13006else
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
efd58f08
RW
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 13014 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
efd58f08 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
13016 break 2
13017 fi
13018done
efd58f08
RW
13019 done
13020IFS=$as_save_IFS
82026593
AO
13021
13022fi
13023fi
13024STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13025if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13027$as_echo "$STRIP_FOR_TARGET" >&6; }
82026593 13028else
efd58f08
RW
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
82026593
AO
13031fi
13032
efd58f08 13033
82026593
AO
13034 done
13035fi
13036
13037if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 13038 for ncn_progname in strip; do
efd58f08
RW
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13040$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
13041 if test -x $with_build_time_tools/${ncn_progname}; then
13042 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044$as_echo "yes" >&6; }
fef3f213
PB
13045 break
13046 else
efd58f08
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
fef3f213
PB
13049 fi
13050 done
13051fi
13052
13053if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13054 for ncn_progname in strip; do
13055 if test -n "$ncn_target_tool_prefix"; then
13056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6a33f745 13057set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059$as_echo_n "checking for $ac_word... " >&6; }
13060if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
6a33f745
GK
13062else
13063 if test -n "$STRIP_FOR_TARGET"; then
13064 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
b58b6ee1
DJ
13065else
13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
efd58f08
RW
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 13073 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13075 break 2
13076 fi
13077done
efd58f08
RW
13078 done
13079IFS=$as_save_IFS
b58b6ee1 13080
6a33f745
GK
13081fi
13082fi
b58b6ee1 13083STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 13084if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13086$as_echo "$STRIP_FOR_TARGET" >&6; }
6a33f745 13087else
efd58f08
RW
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
6a33f745
GK
13090fi
13091
efd58f08 13092
fef3f213
PB
13093 fi
13094 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6a33f745 13096set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098$as_echo_n "checking for $ac_word... " >&6; }
13099if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
6a33f745
GK
13101else
13102 if test -n "$STRIP_FOR_TARGET"; then
13103 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13104else
b58b6ee1
DJ
13105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106for as_dir in $PATH
13107do
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
efd58f08
RW
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 13112 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
efd58f08 13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13114 break 2
13115 fi
13116done
efd58f08
RW
13117 done
13118IFS=$as_save_IFS
b58b6ee1 13119
6a33f745
GK
13120fi
13121fi
b58b6ee1 13122STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
6a33f745 13123if test -n "$STRIP_FOR_TARGET"; then
efd58f08
RW
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13125$as_echo "$STRIP_FOR_TARGET" >&6; }
6a33f745 13126else
efd58f08
RW
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
6a33f745 13129fi
b58b6ee1 13130
efd58f08 13131
fef3f213
PB
13132 fi
13133 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13134 done
13135fi
b58b6ee1 13136
6a33f745
GK
13137if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13138 set dummy strip
13139 if test $build = $target ; then
13140 STRIP_FOR_TARGET="$2"
13141 else
13142 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13143 fi
d058b81b
MS
13144else
13145 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6a33f745
GK
13146fi
13147
207258c8
PB
13148else
13149 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
fef3f213
PB
13150fi
13151
13152
13153
13154
13155if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13156 if test -n "$with_build_time_tools"; then
efd58f08
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13158$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
207258c8
PB
13159 if test -x $with_build_time_tools/windres; then
13160 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13161 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
efd58f08
RW
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13163$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
207258c8 13164 else
efd58f08
RW
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166$as_echo "no" >&6; }
207258c8 13167 fi
fef3f213
PB
13168 elif test $build != $host && test $have_gcc_for_target = yes; then
13169 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d058b81b
MS
13170 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13171 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
fef3f213
PB
13172 fi
13173fi
b58b6ee1 13174if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
fef3f213
PB
13175 # Extract the first word of "windres", so it can be a program name with args.
13176set dummy windres; ac_word=$2
efd58f08
RW
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178$as_echo_n "checking for $ac_word... " >&6; }
13179if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
fef3f213 13181else
b58b6ee1
DJ
13182 case $WINDRES_FOR_TARGET in
13183 [\\/]* | ?:[\\/]*)
fef3f213
PB
13184 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13185 ;;
fef3f213 13186 *)
b58b6ee1
DJ
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $gcc_cv_tool_dirs
13189do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
efd58f08
RW
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 13194 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13196 break 2
13197 fi
13198done
efd58f08
RW
13199 done
13200IFS=$as_save_IFS
b58b6ee1 13201
fef3f213
PB
13202 ;;
13203esac
13204fi
b58b6ee1 13205WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
fef3f213 13206if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13208$as_echo "$WINDRES_FOR_TARGET" >&6; }
fef3f213 13209else
efd58f08
RW
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211$as_echo "no" >&6; }
fef3f213
PB
13212fi
13213
efd58f08 13214
fef3f213
PB
13215fi
13216if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
82026593
AO
13217
13218
13219if test -n "$WINDRES_FOR_TARGET"; then
13220 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13221elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13222 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13223fi
13224
13225if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13226 for ncn_progname in windres; do
13227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13228set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230$as_echo_n "checking for $ac_word... " >&6; }
13231if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
82026593
AO
13233else
13234 if test -n "$WINDRES_FOR_TARGET"; then
13235 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13236else
13237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238for as_dir in $PATH
13239do
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
efd58f08
RW
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
82026593 13244 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
efd58f08 13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82026593
AO
13246 break 2
13247 fi
13248done
efd58f08
RW
13249 done
13250IFS=$as_save_IFS
82026593
AO
13251
13252fi
13253fi
13254WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13255if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13257$as_echo "$WINDRES_FOR_TARGET" >&6; }
82026593 13258else
efd58f08
RW
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260$as_echo "no" >&6; }
82026593
AO
13261fi
13262
efd58f08 13263
82026593
AO
13264 done
13265fi
13266
13267if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
fef3f213 13268 for ncn_progname in windres; do
efd58f08
RW
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13270$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
207258c8
PB
13271 if test -x $with_build_time_tools/${ncn_progname}; then
13272 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274$as_echo "yes" >&6; }
fef3f213
PB
13275 break
13276 else
efd58f08
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
fef3f213
PB
13279 fi
13280 done
13281fi
13282
13283if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13284 for ncn_progname in windres; do
13285 if test -n "$ncn_target_tool_prefix"; then
13286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
60cfca65 13287set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
13290if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
a0c92996 13292else
5fb28bcc
PB
13293 if test -n "$WINDRES_FOR_TARGET"; then
13294 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 13295else
b58b6ee1
DJ
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
efd58f08
RW
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 13303 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13305 break 2
13306 fi
13307done
efd58f08
RW
13308 done
13309IFS=$as_save_IFS
b58b6ee1 13310
a0c92996
AC
13311fi
13312fi
b58b6ee1 13313WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
5fb28bcc 13314if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13316$as_echo "$WINDRES_FOR_TARGET" >&6; }
a0c92996 13317else
efd58f08
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
a0c92996
AC
13320fi
13321
efd58f08 13322
fef3f213
PB
13323 fi
13324 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
60cfca65 13326set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328$as_echo_n "checking for $ac_word... " >&6; }
13329if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
a0c92996 13331else
60cfca65
PB
13332 if test -n "$WINDRES_FOR_TARGET"; then
13333 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
a0c92996 13334else
b58b6ee1
DJ
13335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336for as_dir in $PATH
13337do
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
efd58f08
RW
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b58b6ee1 13342 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
efd58f08 13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b58b6ee1
DJ
13344 break 2
13345 fi
13346done
efd58f08
RW
13347 done
13348IFS=$as_save_IFS
b58b6ee1 13349
a0c92996
AC
13350fi
13351fi
b58b6ee1 13352WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
60cfca65 13353if test -n "$WINDRES_FOR_TARGET"; then
efd58f08
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13355$as_echo "$WINDRES_FOR_TARGET" >&6; }
a0c92996 13356else
efd58f08
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358$as_echo "no" >&6; }
a0c92996 13359fi
b58b6ee1 13360
efd58f08 13361
fef3f213
PB
13362 fi
13363 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13364 done
13365fi
b58b6ee1 13366
60cfca65
PB
13367if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13368 set dummy windres
13369 if test $build = $target ; then
13370 WINDRES_FOR_TARGET="$2"
a0c92996 13371 else
60cfca65 13372 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
a0c92996 13373 fi
d058b81b
MS
13374else
13375 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
a0c92996
AC
13376fi
13377
207258c8
PB
13378else
13379 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
fef3f213
PB
13380fi
13381
712e2a32 13382
bffcbe34
NC
13383
13384
13385if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13386 if test -n "$with_build_time_tools"; then
efd58f08
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13388$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
bffcbe34
NC
13389 if test -x $with_build_time_tools/windmc; then
13390 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13391 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
efd58f08
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13393$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
bffcbe34 13394 else
efd58f08
RW
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396$as_echo "no" >&6; }
bffcbe34
NC
13397 fi
13398 elif test $build != $host && test $have_gcc_for_target = yes; then
13399 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13400 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13401 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13402 fi
13403fi
13404if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13405 # Extract the first word of "windmc", so it can be a program name with args.
13406set dummy windmc; ac_word=$2
efd58f08
RW
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408$as_echo_n "checking for $ac_word... " >&6; }
13409if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
bffcbe34
NC
13411else
13412 case $WINDMC_FOR_TARGET in
13413 [\\/]* | ?:[\\/]*)
13414 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13415 ;;
13416 *)
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418for as_dir in $gcc_cv_tool_dirs
13419do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
efd58f08
RW
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 13424 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
efd58f08 13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
13426 break 2
13427 fi
13428done
efd58f08
RW
13429 done
13430IFS=$as_save_IFS
bffcbe34
NC
13431
13432 ;;
13433esac
13434fi
13435WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
bffcbe34 13436if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13438$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 13439else
efd58f08
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
bffcbe34
NC
13442fi
13443
efd58f08 13444
bffcbe34
NC
13445fi
13446if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13447
13448
13449if test -n "$WINDMC_FOR_TARGET"; then
13450 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13451elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13452 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13453fi
13454
13455if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13456 for ncn_progname in windmc; do
13457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460$as_echo_n "checking for $ac_word... " >&6; }
13461if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
bffcbe34
NC
13463else
13464 if test -n "$WINDMC_FOR_TARGET"; then
13465 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13466else
13467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468for as_dir in $PATH
13469do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
efd58f08
RW
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 13474 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
efd58f08 13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
13476 break 2
13477 fi
13478done
efd58f08
RW
13479 done
13480IFS=$as_save_IFS
bffcbe34
NC
13481
13482fi
13483fi
13484WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13485if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13487$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 13488else
efd58f08
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490$as_echo "no" >&6; }
bffcbe34
NC
13491fi
13492
efd58f08 13493
bffcbe34
NC
13494 done
13495fi
13496
13497if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13498 for ncn_progname in windmc; do
efd58f08
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13500$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
bffcbe34
NC
13501 if test -x $with_build_time_tools/${ncn_progname}; then
13502 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
efd58f08
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13504$as_echo "yes" >&6; }
bffcbe34
NC
13505 break
13506 else
efd58f08
RW
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
bffcbe34
NC
13509 fi
13510 done
13511fi
13512
13513if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13514 for ncn_progname in windmc; do
13515 if test -n "$ncn_target_tool_prefix"; then
13516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13517set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
efd58f08
RW
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519$as_echo_n "checking for $ac_word... " >&6; }
13520if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
bffcbe34
NC
13522else
13523 if test -n "$WINDMC_FOR_TARGET"; then
13524 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13525else
13526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527for as_dir in $PATH
13528do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
efd58f08
RW
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 13533 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
efd58f08 13534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
13535 break 2
13536 fi
13537done
efd58f08
RW
13538 done
13539IFS=$as_save_IFS
bffcbe34
NC
13540
13541fi
13542fi
13543WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13544if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13546$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 13547else
efd58f08
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549$as_echo "no" >&6; }
bffcbe34
NC
13550fi
13551
efd58f08 13552
bffcbe34
NC
13553 fi
13554 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556set dummy ${ncn_progname}; ac_word=$2
efd58f08
RW
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558$as_echo_n "checking for $ac_word... " >&6; }
13559if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
bffcbe34
NC
13561else
13562 if test -n "$WINDMC_FOR_TARGET"; then
13563 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13564else
13565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
efd58f08
RW
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bffcbe34 13572 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
efd58f08 13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bffcbe34
NC
13574 break 2
13575 fi
13576done
efd58f08
RW
13577 done
13578IFS=$as_save_IFS
bffcbe34
NC
13579
13580fi
13581fi
13582WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13583if test -n "$WINDMC_FOR_TARGET"; then
efd58f08
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13585$as_echo "$WINDMC_FOR_TARGET" >&6; }
bffcbe34 13586else
efd58f08
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
bffcbe34
NC
13589fi
13590
efd58f08 13591
bffcbe34
NC
13592 fi
13593 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13594 done
13595fi
13596
13597if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13598 set dummy windmc
13599 if test $build = $target ; then
13600 WINDMC_FOR_TARGET="$2"
13601 else
13602 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13603 fi
13604else
13605 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13606fi
13607
13608else
13609 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13610fi
13611
13612
a7dc05b5
PB
13613RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13614
efd58f08
RW
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13616$as_echo_n "checking where to find the target ar... " >&6; }
a7dc05b5 13617if test "x${build}" != "x${host}" ; then
fef3f213
PB
13618 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13619 # We already found the complete path
7a81a717 13620 ac_dir=`dirname $AR_FOR_TARGET`
efd58f08
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13622$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13623 else
13624 # Canadian cross, just use what we found
efd58f08
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13626$as_echo "pre-installed" >&6; }
fef3f213 13627 fi
a7dc05b5
PB
13628else
13629 ok=yes
13630 case " ${configdirs} " in
13631 *" binutils "*) ;;
13632 *) ok=no ;;
13633 esac
b58b6ee1 13634
a7dc05b5
PB
13635 if test $ok = yes; then
13636 # An in-tree tool is available and we can use it
13637 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
efd58f08
RW
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13639$as_echo "just compiled" >&6; }
fef3f213
PB
13640 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
7a81a717 13642 ac_dir=`dirname $AR_FOR_TARGET`
efd58f08
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13645 elif test "x$target" = "x$host"; then
13646 # We can use an host tool
13647 AR_FOR_TARGET='$(AR)'
efd58f08
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13649$as_echo "host tool" >&6; }
a7dc05b5
PB
13650 else
13651 # We need a cross tool
efd58f08
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13654 fi
13655fi
42f55f77 13656
efd58f08
RW
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13658$as_echo_n "checking where to find the target as... " >&6; }
a7dc05b5 13659if test "x${build}" != "x${host}" ; then
fef3f213
PB
13660 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13661 # We already found the complete path
7a81a717 13662 ac_dir=`dirname $AS_FOR_TARGET`
efd58f08
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13664$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13665 else
13666 # Canadian cross, just use what we found
efd58f08
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13668$as_echo "pre-installed" >&6; }
fef3f213 13669 fi
a7dc05b5
PB
13670else
13671 ok=yes
13672 case " ${configdirs} " in
13673 *" gas "*) ;;
13674 *) ok=no ;;
13675 esac
b58b6ee1 13676
a7dc05b5
PB
13677 if test $ok = yes; then
13678 # An in-tree tool is available and we can use it
13679 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
efd58f08
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13681$as_echo "just compiled" >&6; }
fef3f213
PB
13682 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
7a81a717 13684 ac_dir=`dirname $AS_FOR_TARGET`
efd58f08
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13687 elif test "x$target" = "x$host"; then
13688 # We can use an host tool
13689 AS_FOR_TARGET='$(AS)'
efd58f08
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13691$as_echo "host tool" >&6; }
a7dc05b5
PB
13692 else
13693 # We need a cross tool
efd58f08
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13696 fi
13697fi
42f55f77 13698
efd58f08
RW
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13700$as_echo_n "checking where to find the target cc... " >&6; }
a7dc05b5 13701if test "x${build}" != "x${host}" ; then
fef3f213
PB
13702 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
7a81a717 13704 ac_dir=`dirname $CC_FOR_TARGET`
efd58f08
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13707 else
13708 # Canadian cross, just use what we found
efd58f08
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
fef3f213 13711 fi
a7dc05b5
PB
13712else
13713 ok=yes
13714 case " ${configdirs} " in
13715 *" gcc "*) ;;
13716 *) ok=no ;;
13717 esac
b58b6ee1 13718
a7dc05b5
PB
13719 if test $ok = yes; then
13720 # An in-tree tool is available and we can use it
13721 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723$as_echo "just compiled" >&6; }
fef3f213
PB
13724 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
7a81a717 13726 ac_dir=`dirname $CC_FOR_TARGET`
efd58f08
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13729 elif test "x$target" = "x$host"; then
13730 # We can use an host tool
13731 CC_FOR_TARGET='$(CC)'
efd58f08
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733$as_echo "host tool" >&6; }
a7dc05b5
PB
13734 else
13735 # We need a cross tool
efd58f08
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13738 fi
13739fi
42f55f77 13740
efd58f08
RW
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13742$as_echo_n "checking where to find the target c++... " >&6; }
a7dc05b5 13743if test "x${build}" != "x${host}" ; then
fef3f213
PB
13744 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
7a81a717 13746 ac_dir=`dirname $CXX_FOR_TARGET`
efd58f08
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13749 else
13750 # Canadian cross, just use what we found
efd58f08
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752$as_echo "pre-installed" >&6; }
fef3f213 13753 fi
a7dc05b5
PB
13754else
13755 ok=yes
13756 case " ${configdirs} " in
13757 *" gcc "*) ;;
13758 *) ok=no ;;
13759 esac
13760 case ,${enable_languages}, in
13761 *,c++,*) ;;
13762 *) ok=no ;;
13763 esac
13764 if test $ok = yes; then
13765 # An in-tree tool is available and we can use it
13766 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'
efd58f08
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13768$as_echo "just compiled" >&6; }
fef3f213
PB
13769 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
7a81a717 13771 ac_dir=`dirname $CXX_FOR_TARGET`
efd58f08
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13774 elif test "x$target" = "x$host"; then
13775 # We can use an host tool
13776 CXX_FOR_TARGET='$(CXX)'
efd58f08
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13778$as_echo "host tool" >&6; }
a7dc05b5
PB
13779 else
13780 # We need a cross tool
efd58f08
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13782$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13783 fi
13784fi
42f55f77 13785
efd58f08
RW
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13787$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
a7dc05b5 13788if test "x${build}" != "x${host}" ; then
fef3f213
PB
13789 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
7a81a717 13791 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
efd58f08
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13794 else
13795 # Canadian cross, just use what we found
efd58f08
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
fef3f213 13798 fi
a7dc05b5
PB
13799else
13800 ok=yes
13801 case " ${configdirs} " in
13802 *" gcc "*) ;;
13803 *) ok=no ;;
13804 esac
13805 case ,${enable_languages}, in
13806 *,c++,*) ;;
13807 *) ok=no ;;
13808 esac
13809 if test $ok = yes; then
13810 # An in-tree tool is available and we can use it
13811 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'
efd58f08
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13813$as_echo "just compiled" >&6; }
fef3f213
PB
13814 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
7a81a717 13816 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
efd58f08
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13819 elif test "x$target" = "x$host"; then
13820 # We can use an host tool
13821 RAW_CXX_FOR_TARGET='$(CXX)'
efd58f08
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13823$as_echo "host tool" >&6; }
a7dc05b5
PB
13824 else
13825 # We need a cross tool
efd58f08
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13828 fi
13829fi
42f55f77 13830
efd58f08
RW
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13832$as_echo_n "checking where to find the target dlltool... " >&6; }
a7dc05b5 13833if test "x${build}" != "x${host}" ; then
fef3f213
PB
13834 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
7a81a717 13836 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
efd58f08
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13839 else
13840 # Canadian cross, just use what we found
efd58f08
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13842$as_echo "pre-installed" >&6; }
fef3f213 13843 fi
a7dc05b5
PB
13844else
13845 ok=yes
13846 case " ${configdirs} " in
13847 *" binutils "*) ;;
13848 *) ok=no ;;
13849 esac
b58b6ee1 13850
a7dc05b5
PB
13851 if test $ok = yes; then
13852 # An in-tree tool is available and we can use it
13853 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
efd58f08
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13855$as_echo "just compiled" >&6; }
fef3f213
PB
13856 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
7a81a717 13858 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
efd58f08
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13861 elif test "x$target" = "x$host"; then
13862 # We can use an host tool
13863 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
efd58f08
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13865$as_echo "host tool" >&6; }
a7dc05b5
PB
13866 else
13867 # We need a cross tool
efd58f08
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13870 fi
13871fi
42f55f77 13872
efd58f08
RW
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13874$as_echo_n "checking where to find the target gcc... " >&6; }
a7dc05b5 13875if test "x${build}" != "x${host}" ; then
fef3f213
PB
13876 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13877 # We already found the complete path
7a81a717 13878 ac_dir=`dirname $GCC_FOR_TARGET`
efd58f08
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13880$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13881 else
13882 # Canadian cross, just use what we found
efd58f08
RW
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13884$as_echo "pre-installed" >&6; }
fef3f213 13885 fi
a7dc05b5
PB
13886else
13887 ok=yes
13888 case " ${configdirs} " in
13889 *" gcc "*) ;;
13890 *) ok=no ;;
13891 esac
b58b6ee1 13892
a7dc05b5
PB
13893 if test $ok = yes; then
13894 # An in-tree tool is available and we can use it
13895 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13897$as_echo "just compiled" >&6; }
fef3f213
PB
13898 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
7a81a717 13900 ac_dir=`dirname $GCC_FOR_TARGET`
efd58f08
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13903 elif test "x$target" = "x$host"; then
13904 # We can use an host tool
13905 GCC_FOR_TARGET='$()'
efd58f08
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13907$as_echo "host tool" >&6; }
a7dc05b5
PB
13908 else
13909 # We need a cross tool
efd58f08
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13911$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13912 fi
13913fi
42f55f77 13914
efd58f08
RW
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13916$as_echo_n "checking where to find the target gcj... " >&6; }
a7dc05b5 13917if test "x${build}" != "x${host}" ; then
fef3f213
PB
13918 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
7a81a717 13920 ac_dir=`dirname $GCJ_FOR_TARGET`
efd58f08
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13923 else
13924 # Canadian cross, just use what we found
efd58f08
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13926$as_echo "pre-installed" >&6; }
fef3f213 13927 fi
a7dc05b5
PB
13928else
13929 ok=yes
13930 case " ${configdirs} " in
13931 *" gcc "*) ;;
13932 *) ok=no ;;
13933 esac
13934 case ,${enable_languages}, in
13935 *,java,*) ;;
13936 *) ok=no ;;
13937 esac
13938 if test $ok = yes; then
13939 # An in-tree tool is available and we can use it
13940 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13942$as_echo "just compiled" >&6; }
fef3f213
PB
13943 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13944 # We already found the complete path
7a81a717 13945 ac_dir=`dirname $GCJ_FOR_TARGET`
efd58f08
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13947$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13948 elif test "x$target" = "x$host"; then
13949 # We can use an host tool
13950 GCJ_FOR_TARGET='$(GCJ)'
efd58f08
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13952$as_echo "host tool" >&6; }
a7dc05b5
PB
13953 else
13954 # We need a cross tool
efd58f08
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13956$as_echo "pre-installed" >&6; }
a7dc05b5
PB
13957 fi
13958fi
42f55f77 13959
efd58f08
RW
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13961$as_echo_n "checking where to find the target gfortran... " >&6; }
a7dc05b5 13962if test "x${build}" != "x${host}" ; then
fef3f213
PB
13963 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
7a81a717 13965 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
efd58f08
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
13968 else
13969 # Canadian cross, just use what we found
efd58f08
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
fef3f213 13972 fi
a7dc05b5
PB
13973else
13974 ok=yes
13975 case " ${configdirs} " in
13976 *" gcc "*) ;;
13977 *) ok=no ;;
13978 esac
13979 case ,${enable_languages}, in
13980 *,fortran,*) ;;
13981 *) ok=no ;;
13982 esac
13983 if test $ok = yes; then
13984 # An in-tree tool is available and we can use it
13985 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
efd58f08
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13987$as_echo "just compiled" >&6; }
fef3f213
PB
13988 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13989 # We already found the complete path
7a81a717 13990 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
efd58f08
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13992$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
13993 elif test "x$target" = "x$host"; then
13994 # We can use an host tool
13995 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
efd58f08
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13997$as_echo "host tool" >&6; }
a7dc05b5
PB
13998 else
13999 # We need a cross tool
efd58f08
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14001$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14002 fi
14003fi
42f55f77 14004
efd58f08
RW
14005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14006$as_echo_n "checking where to find the target ld... " >&6; }
a7dc05b5 14007if test "x${build}" != "x${host}" ; then
fef3f213
PB
14008 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
7a81a717 14010 ac_dir=`dirname $LD_FOR_TARGET`
efd58f08
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14013 else
14014 # Canadian cross, just use what we found
efd58f08
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016$as_echo "pre-installed" >&6; }
fef3f213 14017 fi
a7dc05b5
PB
14018else
14019 ok=yes
14020 case " ${configdirs} " in
14021 *" ld "*) ;;
14022 *) ok=no ;;
14023 esac
b58b6ee1 14024
a7dc05b5
PB
14025 if test $ok = yes; then
14026 # An in-tree tool is available and we can use it
14027 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
efd58f08
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14029$as_echo "just compiled" >&6; }
fef3f213
PB
14030 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
7a81a717 14032 ac_dir=`dirname $LD_FOR_TARGET`
efd58f08
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14035 elif test "x$target" = "x$host"; then
14036 # We can use an host tool
14037 LD_FOR_TARGET='$(LD)'
efd58f08
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14039$as_echo "host tool" >&6; }
a7dc05b5
PB
14040 else
14041 # We need a cross tool
efd58f08
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14043$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14044 fi
14045fi
42f55f77 14046
efd58f08
RW
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14048$as_echo_n "checking where to find the target lipo... " >&6; }
a7dc05b5 14049if test "x${build}" != "x${host}" ; then
fef3f213
PB
14050 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
7a81a717 14052 ac_dir=`dirname $LIPO_FOR_TARGET`
efd58f08
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14055 else
14056 # Canadian cross, just use what we found
efd58f08
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058$as_echo "pre-installed" >&6; }
fef3f213 14059 fi
a7dc05b5 14060else
fef3f213
PB
14061 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14062 # We already found the complete path
7a81a717 14063 ac_dir=`dirname $LIPO_FOR_TARGET`
efd58f08
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14065$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213 14066 elif test "x$target" = "x$host"; then
a7dc05b5
PB
14067 # We can use an host tool
14068 LIPO_FOR_TARGET='$(LIPO)'
efd58f08
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14070$as_echo "host tool" >&6; }
a7dc05b5
PB
14071 else
14072 # We need a cross tool
efd58f08
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14075 fi
14076fi
42f55f77 14077
efd58f08
RW
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14079$as_echo_n "checking where to find the target nm... " >&6; }
a7dc05b5 14080if test "x${build}" != "x${host}" ; then
fef3f213
PB
14081 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
7a81a717 14083 ac_dir=`dirname $NM_FOR_TARGET`
efd58f08
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14086 else
14087 # Canadian cross, just use what we found
efd58f08
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089$as_echo "pre-installed" >&6; }
fef3f213 14090 fi
a7dc05b5
PB
14091else
14092 ok=yes
14093 case " ${configdirs} " in
14094 *" binutils "*) ;;
14095 *) ok=no ;;
14096 esac
b58b6ee1 14097
a7dc05b5
PB
14098 if test $ok = yes; then
14099 # An in-tree tool is available and we can use it
14100 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
efd58f08
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14102$as_echo "just compiled" >&6; }
fef3f213
PB
14103 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14104 # We already found the complete path
7a81a717 14105 ac_dir=`dirname $NM_FOR_TARGET`
efd58f08
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14108 elif test "x$target" = "x$host"; then
14109 # We can use an host tool
14110 NM_FOR_TARGET='$(NM)'
efd58f08
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14112$as_echo "host tool" >&6; }
a7dc05b5
PB
14113 else
14114 # We need a cross tool
efd58f08
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14117 fi
14118fi
42f55f77 14119
efd58f08
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14121$as_echo_n "checking where to find the target objdump... " >&6; }
a7dc05b5 14122if test "x${build}" != "x${host}" ; then
fef3f213
PB
14123 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
7a81a717 14125 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
efd58f08
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14128 else
14129 # Canadian cross, just use what we found
efd58f08
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131$as_echo "pre-installed" >&6; }
fef3f213 14132 fi
a7dc05b5
PB
14133else
14134 ok=yes
14135 case " ${configdirs} " in
14136 *" binutils "*) ;;
14137 *) ok=no ;;
14138 esac
b58b6ee1 14139
a7dc05b5
PB
14140 if test $ok = yes; then
14141 # An in-tree tool is available and we can use it
14142 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
efd58f08
RW
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14144$as_echo "just compiled" >&6; }
fef3f213
PB
14145 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14146 # We already found the complete path
7a81a717 14147 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
efd58f08
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14149$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14150 elif test "x$target" = "x$host"; then
14151 # We can use an host tool
14152 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
efd58f08
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14154$as_echo "host tool" >&6; }
a7dc05b5
PB
14155 else
14156 # We need a cross tool
efd58f08
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14158$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14159 fi
14160fi
42f55f77 14161
efd58f08
RW
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14163$as_echo_n "checking where to find the target ranlib... " >&6; }
a7dc05b5 14164if test "x${build}" != "x${host}" ; then
fef3f213
PB
14165 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
7a81a717 14167 ac_dir=`dirname $RANLIB_FOR_TARGET`
efd58f08
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14170 else
14171 # Canadian cross, just use what we found
efd58f08
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14173$as_echo "pre-installed" >&6; }
fef3f213 14174 fi
a7dc05b5
PB
14175else
14176 ok=yes
14177 case " ${configdirs} " in
14178 *" binutils "*) ;;
14179 *) ok=no ;;
14180 esac
b58b6ee1 14181
a7dc05b5
PB
14182 if test $ok = yes; then
14183 # An in-tree tool is available and we can use it
14184 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
efd58f08
RW
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14186$as_echo "just compiled" >&6; }
fef3f213
PB
14187 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14188 # We already found the complete path
7a81a717 14189 ac_dir=`dirname $RANLIB_FOR_TARGET`
efd58f08
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14191$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14192 elif test "x$target" = "x$host"; then
14193 # We can use an host tool
14194 RANLIB_FOR_TARGET='$(RANLIB)'
efd58f08
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14196$as_echo "host tool" >&6; }
a7dc05b5
PB
14197 else
14198 # We need a cross tool
efd58f08
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14200$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14201 fi
14202fi
42f55f77 14203
efd58f08
RW
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14205$as_echo_n "checking where to find the target strip... " >&6; }
a7dc05b5 14206if test "x${build}" != "x${host}" ; then
fef3f213
PB
14207 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
7a81a717 14209 ac_dir=`dirname $STRIP_FOR_TARGET`
efd58f08
RW
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14212 else
14213 # Canadian cross, just use what we found
efd58f08
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14215$as_echo "pre-installed" >&6; }
fef3f213 14216 fi
a7dc05b5
PB
14217else
14218 ok=yes
14219 case " ${configdirs} " in
14220 *" binutils "*) ;;
14221 *) ok=no ;;
14222 esac
b58b6ee1 14223
a7dc05b5
PB
14224 if test $ok = yes; then
14225 # An in-tree tool is available and we can use it
14226 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
efd58f08
RW
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14228$as_echo "just compiled" >&6; }
fef3f213
PB
14229 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
7a81a717 14231 ac_dir=`dirname $STRIP_FOR_TARGET`
efd58f08
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14234 elif test "x$target" = "x$host"; then
14235 # We can use an host tool
14236 STRIP_FOR_TARGET='$(STRIP)'
efd58f08
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14238$as_echo "host tool" >&6; }
a7dc05b5
PB
14239 else
14240 # We need a cross tool
efd58f08
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14242$as_echo "pre-installed" >&6; }
a7dc05b5
PB
14243 fi
14244fi
42f55f77 14245
efd58f08
RW
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14247$as_echo_n "checking where to find the target windres... " >&6; }
a7dc05b5 14248if test "x${build}" != "x${host}" ; then
fef3f213
PB
14249 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14250 # We already found the complete path
7a81a717 14251 ac_dir=`dirname $WINDRES_FOR_TARGET`
efd58f08
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253$as_echo "pre-installed in $ac_dir" >&6; }
fef3f213
PB
14254 else
14255 # Canadian cross, just use what we found
efd58f08
RW
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14257$as_echo "pre-installed" >&6; }
fef3f213 14258 fi
a7dc05b5
PB
14259else
14260 ok=yes
14261 case " ${configdirs} " in
14262 *" binutils "*) ;;
14263 *) ok=no ;;
14264 esac
b58b6ee1 14265
a7dc05b5
PB
14266 if test $ok = yes; then
14267 # An in-tree tool is available and we can use it
14268 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
efd58f08
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14270$as_echo "just compiled" >&6; }
fef3f213
PB
14271 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
7a81a717 14273 ac_dir=`dirname $WINDRES_FOR_TARGET`
efd58f08
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275$as_echo "pre-installed in $ac_dir" >&6; }
a7dc05b5
PB
14276 elif test "x$target" = "x$host"; then
14277 # We can use an host tool
14278 WINDRES_FOR_TARGET='$(WINDRES)'
efd58f08
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14280$as_echo "host tool" >&6; }
a7dc05b5
PB
14281 else
14282 # We need a cross tool
efd58f08
RW
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284$as_echo "pre-installed" >&6; }
a7dc05b5 14285 fi
bafecfd6 14286fi
ef76efc6 14287
efd58f08
RW
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14289$as_echo_n "checking where to find the target windmc... " >&6; }
bffcbe34
NC
14290if test "x${build}" != "x${host}" ; then
14291 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $WINDMC_FOR_TARGET`
efd58f08
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295$as_echo "pre-installed in $ac_dir" >&6; }
bffcbe34
NC
14296 else
14297 # Canadian cross, just use what we found
efd58f08
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299$as_echo "pre-installed" >&6; }
bffcbe34
NC
14300 fi
14301else
14302 ok=yes
14303 case " ${configdirs} " in
14304 *" binutils "*) ;;
14305 *) ok=no ;;
14306 esac
14307
14308 if test $ok = yes; then
14309 # An in-tree tool is available and we can use it
14310 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
efd58f08
RW
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14312$as_echo "just compiled" >&6; }
bffcbe34
NC
14313 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $WINDMC_FOR_TARGET`
efd58f08
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317$as_echo "pre-installed in $ac_dir" >&6; }
bffcbe34
NC
14318 elif test "x$target" = "x$host"; then
14319 # We can use an host tool
14320 WINDMC_FOR_TARGET='$(WINDMC)'
efd58f08
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14322$as_echo "host tool" >&6; }
bffcbe34
NC
14323 else
14324 # We need a cross tool
efd58f08
RW
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326$as_echo "pre-installed" >&6; }
bffcbe34
NC
14327 fi
14328fi
14329
ef76efc6
NN
14330
14331
a7dc05b5 14332
42f55f77 14333
bafecfd6
NN
14334# Certain tools may need extra flags.
14335AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14336RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14337NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14338
a7dc05b5
PB
14339# When building target libraries, except in a Canadian cross, we use
14340# the same toolchain as the compiler we just built.
14341COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14342COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14343COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14344if test $host = $build; then
14345 case " $configdirs " in
14346 *" gcc "*)
14347 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14348 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14349 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14350 ;;
14351 esac
14352fi
14353
14354
14355
14356
14357
efd58f08
RW
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14359$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14360# Check whether --enable-maintainer-mode was given.
14361if test "${enable_maintainer_mode+set}" = set; then :
14362 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
51dcf285
AO
14363else
14364 USE_MAINTAINER_MODE=no
efd58f08
RW
14365fi
14366
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14368$as_echo "$USE_MAINTAINER_MODE" >&6; }
51dcf285
AO
14369
14370
14371if test "$USE_MAINTAINER_MODE" = yes; then
14372 MAINTAINER_MODE_TRUE=
14373 MAINTAINER_MODE_FALSE='#'
14374else
14375 MAINTAINER_MODE_TRUE='#'
14376 MAINTAINER_MODE_FALSE=
b58b6ee1 14377fi
51dcf285
AO
14378MAINT=$MAINTAINER_MODE_TRUE
14379
457eaf16
NN
14380# ---------------------
14381# GCC bootstrap support
14382# ---------------------
14383
14384# Stage specific cflags for build.
14385stage1_cflags="-g"
14386case $build in
14387 vax-*-*)
14388 case ${GCC} in
14389 yes) stage1_cflags="-g -Wa,-J" ;;
14390 *) stage1_cflags="-g -J" ;;
14391 esac ;;
457eaf16
NN
14392esac
14393
c684482d 14394# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
121f0eb2 14395if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
c684482d
PB
14396 saved_CFLAGS="$CFLAGS"
14397
14398 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14399 CFLAGS="$CFLAGS -fkeep-inline-functions"
efd58f08
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14401$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b58b6ee1
DJ
14403/* end confdefs.h. */
14404
540baa7b
PB
14405#if (__GNUC__ < 3) \
14406 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14407 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14408#error http://gcc.gnu.org/PR29382
14409#endif
14410
b58b6ee1
DJ
14411int
14412main ()
14413{
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
efd58f08
RW
14419if ac_fn_c_try_compile "$LINENO"; then :
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14421$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b58b6ee1 14422else
efd58f08
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
b58b6ee1 14425fi
efd58f08 14426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c684482d
PB
14427
14428 CFLAGS="$saved_CFLAGS"
14429fi
14430
14431
457eaf16 14432
14a1406e 14433# Enable --enable-checking in stage1 of the compiler.
efd58f08
RW
14434# Check whether --enable-stage1-checking was given.
14435if test "${enable_stage1_checking+set}" = set; then :
14436 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14a1406e 14437else
1b410bcf 14438 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
3c527a31 14439 stage1_checking=--enable-checking=yes,types
14a1406e 14440else
1b410bcf 14441 stage1_checking=--enable-checking=$enable_checking,types
14a1406e 14442fi
efd58f08 14443fi
14a1406e
PB
14444
14445
b58b6ee1 14446
efd58f08
RW
14447# Enable -Werror in bootstrap stage2 and later.
14448# Check whether --enable-werror was given.
14449if test "${enable_werror+set}" = set; then :
14450 enableval=$enable_werror;
457eaf16 14451else
e6659c00 14452 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
457eaf16 14453 enable_werror=yes
48edcc3f
PB
14454else
14455 enable_werror=no
14456fi
efd58f08
RW
14457fi
14458
f06f3d7c
NN
14459case ${enable_werror} in
14460 yes) stage2_werror_flag="--enable-werror-always" ;;
14461 *) stage2_werror_flag="" ;;
457eaf16
NN
14462esac
14463
14464
121f0eb2
RW
14465# Specify what files to not compare during bootstrap.
14466
14467compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14468case "$target" in
14469 hppa*64*-*-hpux*) ;;
14470 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14471esac
5074489a
AO
14472case " $configdirs " in
14473*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14474esac
121f0eb2
RW
14475
14476
efd58f08
RW
14477ac_config_files="$ac_config_files Makefile"
14478
b58b6ee1 14479cat >confcache <<\_ACEOF
bafecfd6
NN
14480# This file is a shell script that caches the results of configure
14481# tests run on this system so they can be shared between configure
b58b6ee1
DJ
14482# scripts and configure runs, see configure's option --config-cache.
14483# It is not useful on other systems. If it contains results you don't
14484# want to keep, you may remove or edit it.
bafecfd6 14485#
b58b6ee1
DJ
14486# config.status only pays attention to the cache file if you give it
14487# the --recheck option to rerun configure.
bafecfd6 14488#
b58b6ee1
DJ
14489# `ac_cv_env_foo' variables (set or unset) will be overridden when
14490# loading this file, other *unset* `ac_cv_foo' will be assigned the
14491# following values.
14492
14493_ACEOF
14494
bafecfd6
NN
14495# The following way of writing the cache mishandles newlines in values,
14496# but we know of no workaround that is simple, portable, and efficient.
efd58f08 14497# So, we kill variables containing newlines.
bafecfd6
NN
14498# Ultrix sh set writes to stderr and can't be redirected directly,
14499# and sets the high bit in the cache file unless we assign to the vars.
efd58f08
RW
14500(
14501 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14502 eval ac_val=\$$ac_var
14503 case $ac_val in #(
14504 *${as_nl}*)
14505 case $ac_var in #(
14506 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14507$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14508 esac
14509 case $ac_var in #(
14510 _ | IFS | as_nl) ;; #(
14511 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14512 *) { eval $ac_var=; unset $ac_var;} ;;
14513 esac ;;
14514 esac
14515 done
14516
b58b6ee1 14517 (set) 2>&1 |
efd58f08
RW
14518 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14519 *${as_nl}ac_space=\ *)
14520 # `set' does not quote correctly, so add quotes: double-quote
14521 # substitution turns \\\\ into \\, and sed turns \\ into \.
b58b6ee1
DJ
14522 sed -n \
14523 "s/'/'\\\\''/g;
14524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
efd58f08 14525 ;; #(
b58b6ee1
DJ
14526 *)
14527 # `set' quotes correctly as required by POSIX, so do not add quotes.
efd58f08 14528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b58b6ee1 14529 ;;
efd58f08
RW
14530 esac |
14531 sort
14532) |
b58b6ee1 14533 sed '
efd58f08 14534 /^ac_cv_env_/b end
b58b6ee1 14535 t clear
efd58f08 14536 :clear
b58b6ee1
DJ
14537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14538 t end
efd58f08
RW
14539 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14540 :end' >>confcache
14541if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14542 if test -w "$cache_file"; then
14543 test "x$cache_file" != "x/dev/null" &&
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14545$as_echo "$as_me: updating cache $cache_file" >&6;}
b58b6ee1 14546 cat confcache >$cache_file
bafecfd6 14547 else
efd58f08
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14549$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bafecfd6 14550 fi
712e2a32 14551fi
bafecfd6 14552rm -f confcache
712e2a32 14553
bafecfd6
NN
14554test "x$prefix" = xNONE && prefix=$ac_default_prefix
14555# Let make expand exec_prefix.
14556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
712e2a32 14557
bafecfd6
NN
14558# Transform confdefs.h into DEFS.
14559# Protect against shell expansion while executing Makefile rules.
14560# Protect against Makefile macro expansion.
b58b6ee1
DJ
14561#
14562# If the first sed substitution is executed (which looks for macros that
efd58f08 14563# take arguments), then branch to the quote section. Otherwise,
b58b6ee1 14564# look for a macro that doesn't take arguments.
efd58f08
RW
14565ac_script='
14566:mline
14567/\\$/{
14568 N
14569 s,\\\n,,
14570 b mline
14571}
b58b6ee1 14572t clear
efd58f08
RW
14573:clear
14574s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b58b6ee1 14575t quote
efd58f08 14576s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b58b6ee1 14577t quote
efd58f08
RW
14578b any
14579:quote
14580s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14581s/\[/\\&/g
14582s/\]/\\&/g
14583s/\$/$$/g
14584H
14585:any
14586${
14587 g
14588 s/^\n//
14589 s/\n/ /g
14590 p
14591}
14592'
14593DEFS=`sed -n "$ac_script" confdefs.h`
b58b6ee1
DJ
14594
14595
14596ac_libobjs=
14597ac_ltlibobjs=
14598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14599 # 1. Remove the extension, and $U if already installed.
efd58f08
RW
14600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14603 # will be set to the directory where LIBOBJS objects are built.
14604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b58b6ee1
DJ
14606done
14607LIBOBJS=$ac_libobjs
712e2a32 14608
b58b6ee1 14609LTLIBOBJS=$ac_ltlibobjs
76402c80 14610
f69e2532 14611
b58b6ee1
DJ
14612
14613: ${CONFIG_STATUS=./config.status}
efd58f08 14614ac_write_fail=0
b58b6ee1
DJ
14615ac_clean_files_save=$ac_clean_files
14616ac_clean_files="$ac_clean_files $CONFIG_STATUS"
efd58f08
RW
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14618$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14619as_write_fail=0
14620cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b58b6ee1
DJ
14621#! $SHELL
14622# Generated by $as_me.
bafecfd6 14623# Run this file to recreate the current configuration.
bafecfd6 14624# Compiler output produced by configure, useful for debugging
b58b6ee1 14625# configure, is in config.log if it exists.
76402c80 14626
b58b6ee1
DJ
14627debug=false
14628ac_cs_recheck=false
14629ac_cs_silent=false
b58b6ee1 14630
efd58f08
RW
14631SHELL=\${CONFIG_SHELL-$SHELL}
14632export SHELL
14633_ASEOF
14634cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14635## -------------------- ##
14636## M4sh Initialization. ##
14637## -------------------- ##
14638
14639# Be more Bourne compatible
14640DUALCASE=1; export DUALCASE # for MKS sh
14641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b58b6ee1
DJ
14642 emulate sh
14643 NULLCMD=:
efd58f08 14644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b58b6ee1
DJ
14645 # is contrary to our usage. Disable this feature.
14646 alias -g '${1+"$@"}'='"$@"'
efd58f08
RW
14647 setopt NO_GLOB_SUBST
14648else
14649 case `(set -o) 2>/dev/null` in #(
14650 *posix*) :
14651 set -o posix ;; #(
14652 *) :
14653 ;;
14654esac
b58b6ee1 14655fi
b58b6ee1 14656
efd58f08
RW
14657
14658as_nl='
14659'
14660export as_nl
14661# Printing a long string crashes Solaris 7 /usr/bin/printf.
14662as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14665# Prefer a ksh shell builtin over an external printf program on Solaris,
14666# but without wasting forks for bash or zsh.
14667if test -z "$BASH_VERSION$ZSH_VERSION" \
14668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14669 as_echo='print -r --'
14670 as_echo_n='print -rn --'
14671elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14672 as_echo='printf %s\n'
14673 as_echo_n='printf %s'
14674else
14675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14677 as_echo_n='/usr/ucb/echo -n'
14678 else
14679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14680 as_echo_n_body='eval
14681 arg=$1;
14682 case $arg in #(
14683 *"$as_nl"*)
14684 expr "X$arg" : "X\\(.*\\)$as_nl";
14685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14686 esac;
14687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14688 '
14689 export as_echo_n_body
14690 as_echo_n='sh -c $as_echo_n_body as_echo'
14691 fi
14692 export as_echo_body
14693 as_echo='sh -c $as_echo_body as_echo'
b58b6ee1
DJ
14694fi
14695
efd58f08
RW
14696# The user is always right.
14697if test "${PATH_SEPARATOR+set}" != set; then
14698 PATH_SEPARATOR=:
14699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14701 PATH_SEPARATOR=';'
14702 }
14703fi
14704
14705
14706# IFS
14707# We need space, tab and new line, in precisely that order. Quoting is
14708# there to prevent editors from complaining about space-tab.
14709# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14710# splitting by setting IFS to empty value.)
14711IFS=" "" $as_nl"
14712
14713# Find who we are. Look in the path if we contain no directory separator.
14714case $0 in #((
14715 *[\\/]* ) as_myself=$0 ;;
14716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14717for as_dir in $PATH
14718do
14719 IFS=$as_save_IFS
14720 test -z "$as_dir" && as_dir=.
14721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14722 done
14723IFS=$as_save_IFS
14724
14725 ;;
14726esac
14727# We did not find ourselves, most probably we were run as `sh COMMAND'
14728# in which case we are not to be found in the path.
14729if test "x$as_myself" = x; then
14730 as_myself=$0
14731fi
14732if test ! -f "$as_myself"; then
14733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14734 exit 1
14735fi
b58b6ee1 14736
efd58f08
RW
14737# Unset variables that we do not need and which cause bugs (e.g. in
14738# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14739# suppresses any "Segmentation fault" message there. '((' could
14740# trigger a bug in pdksh 5.2.14.
14741for as_var in BASH_ENV ENV MAIL MAILPATH
14742do eval test x\${$as_var+set} = xset \
14743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14744done
b58b6ee1
DJ
14745PS1='$ '
14746PS2='> '
14747PS4='+ '
14748
14749# NLS nuisances.
efd58f08
RW
14750LC_ALL=C
14751export LC_ALL
14752LANGUAGE=C
14753export LANGUAGE
14754
14755# CDPATH.
14756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14757
14758
14759# as_fn_error ERROR [LINENO LOG_FD]
14760# ---------------------------------
14761# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14762# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14763# script with status $?, using 1 if that was 0.
14764as_fn_error ()
14765{
14766 as_status=$?; test $as_status -eq 0 && as_status=1
14767 if test "$3"; then
14768 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b58b6ee1 14770 fi
efd58f08
RW
14771 $as_echo "$as_me: error: $1" >&2
14772 as_fn_exit $as_status
14773} # as_fn_error
14774
14775
14776# as_fn_set_status STATUS
14777# -----------------------
14778# Set $? to STATUS, without forking.
14779as_fn_set_status ()
14780{
14781 return $1
14782} # as_fn_set_status
14783
14784# as_fn_exit STATUS
14785# -----------------
14786# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14787as_fn_exit ()
14788{
14789 set +e
14790 as_fn_set_status $1
14791 exit $1
14792} # as_fn_exit
14793
14794# as_fn_unset VAR
14795# ---------------
14796# Portably unset VAR.
14797as_fn_unset ()
14798{
14799 { eval $1=; unset $1;}
14800}
14801as_unset=as_fn_unset
14802# as_fn_append VAR VALUE
14803# ----------------------
14804# Append the text in VALUE to the end of the definition contained in VAR. Take
14805# advantage of any shell optimizations that allow amortized linear growth over
14806# repeated appends, instead of the typical quadratic growth present in naive
14807# implementations.
14808if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14809 eval 'as_fn_append ()
14810 {
14811 eval $1+=\$2
14812 }'
14813else
14814 as_fn_append ()
14815 {
14816 eval $1=\$$1\$2
14817 }
14818fi # as_fn_append
14819
14820# as_fn_arith ARG...
14821# ------------------
14822# Perform arithmetic evaluation on the ARGs, and store the result in the
14823# global $as_val. Take advantage of shells that can avoid forks. The arguments
14824# must be portable across $(()) and expr.
14825if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14826 eval 'as_fn_arith ()
14827 {
14828 as_val=$(( $* ))
14829 }'
14830else
14831 as_fn_arith ()
14832 {
14833 as_val=`expr "$@" || test $? -eq 1`
14834 }
14835fi # as_fn_arith
14836
b58b6ee1 14837
efd58f08
RW
14838if expr a : '\(a\)' >/dev/null 2>&1 &&
14839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b58b6ee1
DJ
14840 as_expr=expr
14841else
14842 as_expr=false
14843fi
14844
efd58f08 14845if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b58b6ee1
DJ
14846 as_basename=basename
14847else
14848 as_basename=false
14849fi
14850
efd58f08
RW
14851if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14852 as_dirname=dirname
14853else
14854 as_dirname=false
14855fi
b58b6ee1 14856
efd58f08 14857as_me=`$as_basename -- "$0" ||
b58b6ee1
DJ
14858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14859 X"$0" : 'X\(//\)$' \| \
efd58f08
RW
14860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14861$as_echo X/"$0" |
14862 sed '/^.*\/\([^/][^/]*\)\/*$/{
14863 s//\1/
14864 q
14865 }
14866 /^X\/\(\/\/\)$/{
14867 s//\1/
14868 q
14869 }
14870 /^X\/\(\/\).*/{
14871 s//\1/
14872 q
14873 }
14874 s/.*/./; q'`
b58b6ee1 14875
b58b6ee1
DJ
14876# Avoid depending upon Character Ranges.
14877as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14878as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14879as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14880as_cr_digits='0123456789'
14881as_cr_alnum=$as_cr_Letters$as_cr_digits
14882
efd58f08
RW
14883ECHO_C= ECHO_N= ECHO_T=
14884case `echo -n x` in #(((((
14885-n*)
14886 case `echo 'xy\c'` in
14887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14888 xy) ECHO_C='\c';;
14889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14890 ECHO_T=' ';;
14891 esac;;
14892*)
14893 ECHO_N='-n';;
b58b6ee1
DJ
14894esac
14895
efd58f08
RW
14896rm -f conf$$ conf$$.exe conf$$.file
14897if test -d conf$$.dir; then
14898 rm -f conf$$.dir/conf$$.file
b58b6ee1 14899else
efd58f08
RW
14900 rm -f conf$$.dir
14901 mkdir conf$$.dir 2>/dev/null
b58b6ee1 14902fi
efd58f08
RW
14903if (echo >conf$$.file) 2>/dev/null; then
14904 if ln -s conf$$.file conf$$ 2>/dev/null; then
b58b6ee1 14905 as_ln_s='ln -s'
efd58f08
RW
14906 # ... but there are two gotchas:
14907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14909 # In both cases, we have to default to `cp -p'.
14910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14911 as_ln_s='cp -p'
14912 elif ln conf$$.file conf$$ 2>/dev/null; then
14913 as_ln_s=ln
14914 else
14915 as_ln_s='cp -p'
b58b6ee1 14916 fi
b58b6ee1
DJ
14917else
14918 as_ln_s='cp -p'
14919fi
efd58f08
RW
14920rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14921rmdir conf$$.dir 2>/dev/null
14922
14923
14924# as_fn_mkdir_p
14925# -------------
14926# Create "$as_dir" as a directory, including parents if necessary.
14927as_fn_mkdir_p ()
14928{
14929
14930 case $as_dir in #(
14931 -*) as_dir=./$as_dir;;
14932 esac
14933 test -d "$as_dir" || eval $as_mkdir_p || {
14934 as_dirs=
14935 while :; do
14936 case $as_dir in #(
14937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14938 *) as_qdir=$as_dir;;
14939 esac
14940 as_dirs="'$as_qdir' $as_dirs"
14941 as_dir=`$as_dirname -- "$as_dir" ||
14942$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14943 X"$as_dir" : 'X\(//\)[^/]' \| \
14944 X"$as_dir" : 'X\(//\)$' \| \
14945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14946$as_echo X"$as_dir" |
14947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14948 s//\1/
14949 q
14950 }
14951 /^X\(\/\/\)[^/].*/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)$/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\).*/{
14960 s//\1/
14961 q
14962 }
14963 s/.*/./; q'`
14964 test -d "$as_dir" && break
14965 done
14966 test -z "$as_dirs" || eval "mkdir $as_dirs"
14967 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14968
b58b6ee1 14969
efd58f08 14970} # as_fn_mkdir_p
b58b6ee1 14971if mkdir -p . 2>/dev/null; then
efd58f08 14972 as_mkdir_p='mkdir -p "$as_dir"'
b58b6ee1
DJ
14973else
14974 test -d ./-p && rmdir ./-p
14975 as_mkdir_p=false
14976fi
14977
efd58f08
RW
14978if test -x / >/dev/null 2>&1; then
14979 as_test_x='test -x'
14980else
14981 if ls -dL / >/dev/null 2>&1; then
14982 as_ls_L_option=L
14983 else
14984 as_ls_L_option=
14985 fi
14986 as_test_x='
14987 eval sh -c '\''
14988 if test -d "$1"; then
14989 test -d "$1/.";
14990 else
14991 case $1 in #(
14992 -*)set "./$1";;
14993 esac;
14994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14995 ???[sx]*):;;*)false;;esac;fi
14996 '\'' sh
14997 '
14998fi
14999as_executable_p=$as_test_x
b58b6ee1
DJ
15000
15001# Sed expression to map a string onto a valid CPP name.
15002as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15003
15004# Sed expression to map a string onto a valid variable name.
15005as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15006
15007
b58b6ee1 15008exec 6>&1
efd58f08
RW
15009## ----------------------------------- ##
15010## Main body of $CONFIG_STATUS script. ##
15011## ----------------------------------- ##
15012_ASEOF
15013test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15014
15015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15016# Save the log message, to keep $0 and so on meaningful, and to
b58b6ee1 15017# report actual input values of CONFIG_FILES etc. instead of their
efd58f08
RW
15018# values after options handling.
15019ac_log="
b58b6ee1 15020This file was extended by $as_me, which was
efd58f08 15021generated by GNU Autoconf 2.64. Invocation command line was
b58b6ee1
DJ
15022
15023 CONFIG_FILES = $CONFIG_FILES
15024 CONFIG_HEADERS = $CONFIG_HEADERS
15025 CONFIG_LINKS = $CONFIG_LINKS
15026 CONFIG_COMMANDS = $CONFIG_COMMANDS
15027 $ $0 $@
15028
efd58f08
RW
15029on `(hostname || uname -n) 2>/dev/null | sed 1q`
15030"
15031
b58b6ee1
DJ
15032_ACEOF
15033
efd58f08
RW
15034case $ac_config_files in *"
15035"*) set x $ac_config_files; shift; ac_config_files=$*;;
15036esac
b58b6ee1 15037
b58b6ee1 15038
b58b6ee1 15039
efd58f08
RW
15040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041# Files that config.status was made for.
15042config_files="$ac_config_files"
b58b6ee1 15043
efd58f08 15044_ACEOF
b58b6ee1 15045
efd58f08 15046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1 15047ac_cs_usage="\
efd58f08
RW
15048\`$as_me' instantiates files and other configuration actions
15049from templates according to the current configuration. Unless the files
15050and actions are specified as TAGs, all are instantiated by default.
b58b6ee1 15051
efd58f08 15052Usage: $0 [OPTION]... [TAG]...
b58b6ee1
DJ
15053
15054 -h, --help print this help, then exit
efd58f08
RW
15055 -V, --version print version number and configuration settings, then exit
15056 -q, --quiet, --silent
15057 do not print progress messages
b58b6ee1
DJ
15058 -d, --debug don't remove temporary files
15059 --recheck update $as_me by reconfiguring in the same conditions
efd58f08
RW
15060 --file=FILE[:TEMPLATE]
15061 instantiate the configuration file FILE
b58b6ee1
DJ
15062
15063Configuration files:
15064$config_files
15065
efd58f08 15066Report bugs to the package provider."
b58b6ee1 15067
efd58f08
RW
15068_ACEOF
15069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b58b6ee1
DJ
15070ac_cs_version="\\
15071config.status
efd58f08
RW
15072configured by $0, generated by GNU Autoconf 2.64,
15073 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b58b6ee1 15074
efd58f08 15075Copyright (C) 2009 Free Software Foundation, Inc.
b58b6ee1
DJ
15076This config.status script is free software; the Free Software Foundation
15077gives unlimited permission to copy, distribute and modify it."
efd58f08
RW
15078
15079ac_pwd='$ac_pwd'
15080srcdir='$srcdir'
15081INSTALL='$INSTALL'
a8a01987 15082AWK='$AWK'
efd58f08 15083test -n "\$AWK" || AWK=awk
b58b6ee1
DJ
15084_ACEOF
15085
efd58f08
RW
15086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087# The default lists apply if the user does not specify any file.
b58b6ee1
DJ
15088ac_need_defaults=:
15089while test $# != 0
bafecfd6 15090do
b58b6ee1
DJ
15091 case $1 in
15092 --*=*)
efd58f08
RW
15093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b58b6ee1
DJ
15095 ac_shift=:
15096 ;;
efd58f08 15097 *)
b58b6ee1
DJ
15098 ac_option=$1
15099 ac_optarg=$2
15100 ac_shift=shift
15101 ;;
b58b6ee1
DJ
15102 esac
15103
15104 case $ac_option in
15105 # Handling of the options.
bafecfd6 15106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b58b6ee1 15107 ac_cs_recheck=: ;;
efd58f08
RW
15108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15109 $as_echo "$ac_cs_version"; exit ;;
15110 --debug | --debu | --deb | --de | --d | -d )
b58b6ee1
DJ
15111 debug=: ;;
15112 --file | --fil | --fi | --f )
15113 $ac_shift
efd58f08
RW
15114 case $ac_optarg in
15115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15116 esac
15117 as_fn_append CONFIG_FILES " '$ac_optarg'"
b58b6ee1 15118 ac_need_defaults=false;;
efd58f08
RW
15119 --he | --h | --help | --hel | -h )
15120 $as_echo "$ac_cs_usage"; exit ;;
b58b6ee1
DJ
15121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15123 ac_cs_silent=: ;;
15124
15125 # This is an error.
efd58f08
RW
15126 -*) as_fn_error "unrecognized option: \`$1'
15127Try \`$0 --help' for more information." ;;
b58b6ee1 15128
efd58f08
RW
15129 *) as_fn_append ac_config_targets " $1"
15130 ac_need_defaults=false ;;
b58b6ee1 15131
76402c80 15132 esac
b58b6ee1 15133 shift
76402c80
CM
15134done
15135
b58b6ee1 15136ac_configure_extra_args=
76402c80 15137
b58b6ee1
DJ
15138if $ac_cs_silent; then
15139 exec 6>/dev/null
15140 ac_configure_extra_args="$ac_configure_extra_args --silent"
15141fi
76402c80 15142
b58b6ee1 15143_ACEOF
efd58f08 15144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b58b6ee1 15145if \$ac_cs_recheck; then
efd58f08
RW
15146 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15147 shift
15148 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15149 CONFIG_SHELL='$SHELL'
15150 export CONFIG_SHELL
15151 exec "\$@"
b58b6ee1
DJ
15152fi
15153
15154_ACEOF
efd58f08
RW
15155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15156exec 5>>config.log
15157{
15158 echo
15159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15160## Running $as_me. ##
15161_ASBOX
15162 $as_echo "$ac_log"
15163} >&5
b58b6ee1 15164
efd58f08
RW
15165_ACEOF
15166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94f4a7b9
RW
15167#
15168# INIT-COMMANDS
15169#
15170extrasub_build="$extrasub_build"
15171 extrasub_host="$extrasub_host"
15172 extrasub_target="$extrasub_target"
15173
efd58f08 15174_ACEOF
b58b6ee1 15175
efd58f08 15176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1 15177
efd58f08 15178# Handling of arguments.
b58b6ee1
DJ
15179for ac_config_target in $ac_config_targets
15180do
efd58f08
RW
15181 case $ac_config_target in
15182 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15183
15184 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b58b6ee1
DJ
15185 esac
15186done
15187
efd58f08 15188
b58b6ee1
DJ
15189# If the user did not use the arguments to specify the items to instantiate,
15190# then the envvar interface is used. Set only those that are not.
15191# We use the long form for the default assignment because of an extremely
15192# bizarre bug on SunOS 4.1.3.
15193if $ac_need_defaults; then
15194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15195fi
15196
15197# Have a temporary directory for convenience. Make it in the build tree
efd58f08 15198# simply because there is no reason against having it here, and in addition,
b58b6ee1 15199# creating and moving files from /tmp can sometimes cause problems.
efd58f08
RW
15200# Hook for its removal unless debugging.
15201# Note that there is a small window in which the directory will not be cleaned:
15202# after its creation but before its name has been assigned to `$tmp'.
b58b6ee1
DJ
15203$debug ||
15204{
efd58f08
RW
15205 tmp=
15206 trap 'exit_status=$?
15207 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15208' 0
15209 trap 'as_fn_exit 1' 1 2 13 15
b58b6ee1 15210}
b58b6ee1
DJ
15211# Create a (secure) tmp directory for tmp files.
15212
15213{
efd58f08 15214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b58b6ee1
DJ
15215 test -n "$tmp" && test -d "$tmp"
15216} ||
15217{
efd58f08
RW
15218 tmp=./conf$$-$RANDOM
15219 (umask 077 && mkdir "$tmp")
15220} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15221
15222# Set up the scripts for CONFIG_FILES section.
15223# No need to generate them if there are no CONFIG_FILES.
15224# This happens for instance with `./config.status config.h'.
15225if test -n "$CONFIG_FILES"; then
15226
15227if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15228 ac_cs_awk_getline=:
15229 ac_cs_awk_pipe_init=
15230 ac_cs_awk_read_file='
15231 while ((getline aline < (F[key])) > 0)
15232 print(aline)
15233 close(F[key])'
15234 ac_cs_awk_pipe_fini=
15235else
15236 ac_cs_awk_getline=false
15237 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15238 ac_cs_awk_read_file='
15239 print "|#_!!_#|"
15240 print "cat " F[key] " &&"
15241 '$ac_cs_awk_pipe_init
15242 # The final `:' finishes the AND list.
15243 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15244fi
15245ac_cr=`echo X | tr X '\015'`
15246# On cygwin, bash can eat \r inside `` if the user requested igncr.
15247# But we know of no other shell where ac_cr would be empty at this
15248# point, so we can use a bashism as a fallback.
15249if test "x$ac_cr" = x; then
15250 eval ac_cr=\$\'\\r\'
15251fi
15252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15254 ac_cs_awk_cr='\r'
15255else
15256 ac_cs_awk_cr=$ac_cr
15257fi
15258
15259echo 'BEGIN {' >"$tmp/subs1.awk" &&
15260_ACEOF
15261
15262# Create commands to substitute file output variables.
b58b6ee1 15263{
efd58f08
RW
15264 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15265 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15266 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15267 echo "_ACAWK" &&
15268 echo "_ACEOF"
15269} >conf$$files.sh &&
15270. ./conf$$files.sh ||
15271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15272rm -f conf$$files.sh
b58b6ee1 15273
efd58f08
RW
15274{
15275 echo "cat >conf$$subs.awk <<_ACEOF" &&
15276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15277 echo "_ACEOF"
15278} >conf$$subs.sh ||
15279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15280ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15281ac_delim='%!_!# '
15282for ac_last_try in false false false false false :; do
15283 . ./conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285
15286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15287 if test $ac_delim_n = $ac_delim_num; then
15288 break
15289 elif $ac_last_try; then
15290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15291 else
15292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15293 fi
15294done
15295rm -f conf$$subs.sh
15296
15297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15298cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
b58b6ee1 15299_ACEOF
efd58f08
RW
15300sed -n '
15301h
15302s/^/S["/; s/!.*/"]=/
15303p
15304g
15305s/^[^!]*!//
15306:repl
15307t repl
15308s/'"$ac_delim"'$//
15309t delim
15310:nl
15311h
15312s/\(.\{148\}\).*/\1/
15313t more1
15314s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15315p
15316n
15317b repl
15318:more1
15319s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15320p
15321g
15322s/.\{148\}//
15323t nl
15324:delim
15325h
15326s/\(.\{148\}\).*/\1/
15327t more2
15328s/["\\]/\\&/g; s/^/"/; s/$/"/
15329p
15330b
15331:more2
15332s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15333p
15334g
15335s/.\{148\}//
15336t delim
15337' <conf$$subs.awk | sed '
15338/^[^""]/{
15339 N
15340 s/\n//
15341}
15342' >>$CONFIG_STATUS || ac_write_fail=1
15343rm -f conf$$subs.awk
15344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345_ACAWK
15346cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15347 for (key in S) S_is_set[key] = 1
15348 FS = "\a"
15349 \$ac_cs_awk_pipe_init
15350}
15351{
15352 line = $ 0
15353 nfields = split(line, field, "@")
15354 substed = 0
15355 len = length(field[1])
15356 for (i = 2; i < nfields; i++) {
15357 key = field[i]
15358 keylen = length(key)
15359 if (S_is_set[key]) {
15360 value = S[key]
15361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15362 len += length(value) + length(field[++i])
15363 substed = 1
15364 } else
15365 len += 1 + keylen
15366 }
15367 if (nfields == 3 && !substed) {
15368 key = field[2]
15369 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15370 \$ac_cs_awk_read_file
15371 next
15372 }
15373 }
15374 print line
15375}
15376\$ac_cs_awk_pipe_fini
15377_ACAWK
15378_ACEOF
15379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15380if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15382else
15383 cat
15384fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15385 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15386_ACEOF
15387
15388# VPATH may cause trouble with some makes, so we remove $(srcdir),
15389# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15390# trailing colons and then remove the whole line if VPATH becomes empty
15391# (actually we leave an empty line to preserve line numbers).
15392if test "x$srcdir" = x.; then
15393 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15394s/:*\$(srcdir):*/:/
15395s/:*\${srcdir}:*/:/
15396s/:*@srcdir@:*/:/
15397s/^\([^=]*=[ ]*\):*/\1/
15398s/:*$//
15399s/^[^=]*=[ ]*$//
15400}'
15401fi
b58b6ee1 15402
efd58f08
RW
15403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15404fi # test -n "$CONFIG_FILES"
b58b6ee1 15405
b58b6ee1 15406
efd58f08
RW
15407eval set X " :F $CONFIG_FILES "
15408shift
15409for ac_tag
15410do
15411 case $ac_tag in
15412 :[FHLC]) ac_mode=$ac_tag; continue;;
15413 esac
15414 case $ac_mode$ac_tag in
15415 :[FHL]*:*);;
15416 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15417 :[FH]-) ac_tag=-:-;;
15418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15419 esac
15420 ac_save_IFS=$IFS
15421 IFS=:
15422 set x $ac_tag
15423 IFS=$ac_save_IFS
15424 shift
15425 ac_file=$1
15426 shift
a3acbf46 15427
efd58f08
RW
15428 case $ac_mode in
15429 :L) ac_source=$1;;
15430 :[FH])
15431 ac_file_inputs=
15432 for ac_f
15433 do
15434 case $ac_f in
15435 -) ac_f="$tmp/stdin";;
15436 *) # Look for the file first in the build tree, then in the source tree
15437 # (if the path is not absolute). The absolute path cannot be DOS-style,
15438 # because $ac_f cannot contain `:'.
15439 test -f "$ac_f" ||
15440 case $ac_f in
15441 [\\/$]*) false;;
15442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15443 esac ||
15444 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15445 esac
15446 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15447 as_fn_append ac_file_inputs " '$ac_f'"
15448 done
b58b6ee1 15449
efd58f08
RW
15450 # Let's still pretend it is `configure' which instantiates (i.e., don't
15451 # use $as_me), people would be surprised to read:
15452 # /* config.h. Generated by config.status. */
15453 configure_input='Generated from '`
15454 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15455 `' by configure.'
15456 if test x"$ac_file" != x-; then
15457 configure_input="$ac_file. $configure_input"
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15459$as_echo "$as_me: creating $ac_file" >&6;}
bafecfd6 15460 fi
efd58f08
RW
15461 # Neutralize special characters interpreted by sed in replacement strings.
15462 case $configure_input in #(
15463 *\&* | *\|* | *\\* )
15464 ac_sed_conf_input=`$as_echo "$configure_input" |
15465 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15466 *) ac_sed_conf_input=$configure_input;;
15467 esac
f69e2532 15468
efd58f08
RW
15469 case $ac_tag in
15470 *:-:* | *:-) cat >"$tmp/stdin" \
15471 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15472 esac
15473 ;;
bafecfd6 15474 esac
a3acbf46 15475
efd58f08 15476 ac_dir=`$as_dirname -- "$ac_file" ||
b58b6ee1
DJ
15477$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15478 X"$ac_file" : 'X\(//\)[^/]' \| \
15479 X"$ac_file" : 'X\(//\)$' \| \
efd58f08
RW
15480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15481$as_echo X"$ac_file" |
15482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15483 s//\1/
15484 q
15485 }
15486 /^X\(\/\/\)[^/].*/{
15487 s//\1/
15488 q
15489 }
15490 /^X\(\/\/\)$/{
15491 s//\1/
15492 q
15493 }
15494 /^X\(\/\).*/{
15495 s//\1/
15496 q
15497 }
15498 s/.*/./; q'`
15499 as_dir="$ac_dir"; as_fn_mkdir_p
b58b6ee1 15500 ac_builddir=.
a3acbf46 15501
efd58f08
RW
15502case "$ac_dir" in
15503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15504*)
15505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15506 # A ".." for each directory in $ac_dir_suffix.
15507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15508 case $ac_top_builddir_sub in
15509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15511 esac ;;
15512esac
15513ac_abs_top_builddir=$ac_pwd
15514ac_abs_builddir=$ac_pwd$ac_dir_suffix
15515# for backward compatibility:
15516ac_top_builddir=$ac_top_build_prefix
b58b6ee1
DJ
15517
15518case $srcdir in
efd58f08 15519 .) # We are building in place.
b58b6ee1 15520 ac_srcdir=.
efd58f08
RW
15521 ac_top_srcdir=$ac_top_builddir_sub
15522 ac_abs_top_srcdir=$ac_pwd ;;
15523 [\\/]* | ?:[\\/]* ) # Absolute name.
b58b6ee1 15524 ac_srcdir=$srcdir$ac_dir_suffix;
efd58f08
RW
15525 ac_top_srcdir=$srcdir
15526 ac_abs_top_srcdir=$srcdir ;;
15527 *) # Relative name.
15528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15529 ac_top_srcdir=$ac_top_build_prefix$srcdir
15530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b58b6ee1 15531esac
efd58f08 15532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a3acbf46 15533
a3acbf46 15534
efd58f08
RW
15535 case $ac_mode in
15536 :F)
15537 #
15538 # CONFIG_FILE
15539 #
b58b6ee1
DJ
15540
15541 case $INSTALL in
15542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
efd58f08 15543 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
bafecfd6 15544 esac
efd58f08 15545_ACEOF
a3acbf46 15546
efd58f08
RW
15547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548# If the template does not know about datarootdir, expand it.
15549# FIXME: This hack should be removed a few years after 2.60.
15550ac_datarootdir_hack=; ac_datarootdir_seen=
15551ac_sed_dataroot='
15552/datarootdir/ {
15553 p
15554 q
15555}
15556/@datadir@/p
15557/@docdir@/p
15558/@infodir@/p
15559/@localedir@/p
15560/@mandir@/p'
15561case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15562*datarootdir*) ac_datarootdir_seen=yes;;
15563*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15565$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b58b6ee1 15566_ACEOF
efd58f08
RW
15567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 ac_datarootdir_hack='
15569 s&@datadir@&$datadir&g
15570 s&@docdir@&$docdir&g
15571 s&@infodir@&$infodir&g
15572 s&@localedir@&$localedir&g
15573 s&@mandir@&$mandir&g
15574 s&\\\${datarootdir}&$datarootdir&g' ;;
15575esac
15576_ACEOF
15577
15578# Neutralize VPATH when `$srcdir' = `.'.
15579# Shell code in configure.ac might set extrasub.
15580# FIXME: do we really want to maintain this feature?
15581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15582ac_sed_extra="$ac_vpsub
b58b6ee1
DJ
15583$extrasub
15584_ACEOF
efd58f08 15585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b58b6ee1
DJ
15586:t
15587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
efd58f08
RW
15588s|@configure_input@|$ac_sed_conf_input|;t t
15589s&@top_builddir@&$ac_top_builddir_sub&;t t
15590s&@top_build_prefix@&$ac_top_build_prefix&;t t
15591s&@srcdir@&$ac_srcdir&;t t
15592s&@abs_srcdir@&$ac_abs_srcdir&;t t
15593s&@top_srcdir@&$ac_top_srcdir&;t t
15594s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15595s&@builddir@&$ac_builddir&;t t
15596s&@abs_builddir@&$ac_abs_builddir&;t t
15597s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15598s&@INSTALL@&$ac_INSTALL&;t t
15599$ac_datarootdir_hack
15600"
15601eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15602if $ac_cs_awk_getline; then
15603 $AWK -f "$tmp/subs.awk"
15604else
15605 $AWK -f "$tmp/subs.awk" | $SHELL
15606fi >$tmp/out \
15607 || as_fn_error "could not create $ac_file" "$LINENO" 5
15608
15609test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15610 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15613which seems to be undefined. Please make sure it is defined." >&5
15614$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15615which seems to be undefined. Please make sure it is defined." >&2;}
15616
15617 rm -f "$tmp/stdin"
15618 case $ac_file in
15619 -) cat "$tmp/out" && rm -f "$tmp/out";;
15620 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15621 esac \
15622 || as_fn_error "could not create $ac_file" "$LINENO" 5
15623 ;;
9f35b464 15624
9f35b464 15625
9f35b464 15626
efd58f08
RW
15627 esac
15628
94f4a7b9
RW
15629
15630 case $ac_file$ac_mode in
15631 "Makefile":F) sed "$extrasub_build" Makefile |
15632 sed "$extrasub_host" |
15633 sed "$extrasub_target" > mf$$
15634 mv -f mf$$ Makefile ;;
15635
15636 esac
efd58f08
RW
15637done # for ac_tag
15638
15639
15640as_fn_exit 0
b58b6ee1 15641_ACEOF
b58b6ee1
DJ
15642ac_clean_files=$ac_clean_files_save
15643
efd58f08
RW
15644test $ac_write_fail = 0 ||
15645 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15646
b58b6ee1
DJ
15647
15648# configure is writing to config.log, and then calls config.status.
15649# config.status does its own redirection, appending to config.log.
15650# Unfortunately, on DOS this fails, as config.log is still kept open
15651# by configure, so config.status won't be able to write to it; its
15652# output is simply discarded. So we exec the FD to /dev/null,
15653# effectively closing config.log, so it can be properly (re)opened and
15654# appended to by config.status. When coming back to configure, we
15655# need to make the FD available again.
15656if test "$no_create" != yes; then
15657 ac_cs_success=:
15658 ac_config_status_args=
15659 test "$silent" = yes &&
15660 ac_config_status_args="$ac_config_status_args --quiet"
15661 exec 5>/dev/null
15662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15663 exec 5>>config.log
15664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15665 # would make configure fail if this is the last instruction.
efd58f08
RW
15666 $ac_cs_success || as_fn_exit $?
15667fi
15668if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15670$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b58b6ee1 15671fi
9f35b464 15672
This page took 2.443322 seconds and 5 git commands to generate.