]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
cloog.m4: Set up to work against ISL only.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
78767fd9 559POSTSTAGE1_CONFIGURE_FLAGS
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
632e2a07 583GOC_FOR_TARGET
5213506e
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
aae29963 626target_configdirs
5213506e 627configdirs
5213506e 628build_configdirs
5213506e
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
ffedf511
RW
636target_configargs
637host_configargs
638build_configargs
e12c4094 639BUILD_CONFIG
6f57bdf6 640LDFLAGS_FOR_TARGET
5213506e
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
d7f09764 646extra_host_libiberty_configure_flags
5213506e
RW
647clooginc
648clooglibs
33ad93b9
RG
649islinc
650isllibs
5213506e 651poststage1_ldflags
ed2eaa9f 652poststage1_libs
5213506e
RW
653stage1_libs
654stage1_ldflags
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
a4a2c37d 673EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
87264276
PB
678AWK
679SED
5213506e
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
21539e2e 748enable_ld
87e6d9dc
TB
749enable_libquadmath
750enable_libquadmath_support
5213506e
RW
751enable_libada
752enable_libssp
a4a2c37d 753enable_static_libjava
ff3ac0f4 754enable_bootstrap
5213506e 755enable_build_with_cxx
78767fd9 756enable_build_poststage1_with_cxx
5213506e
RW
757with_mpc
758with_mpc_include
759with_mpc_lib
760with_mpfr_dir
761with_mpfr
762with_mpfr_include
763with_mpfr_lib
764with_gmp_dir
765with_gmp
766with_gmp_include
767with_gmp_lib
768with_host_libstdcxx
769with_stage1_ldflags
770with_stage1_libs
5213506e 771with_boot_libs
ed2eaa9f 772with_boot_ldflags
33ad93b9
RG
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
5213506e
RW
777with_cloog
778with_cloog_include
779with_cloog_lib
780enable_cloog_version_check
d7f09764 781enable_lto
5213506e
RW
782enable_stage1_languages
783enable_objc_gc
784with_build_sysroot
785with_debug_prefix_map
5646b7b9 786with_build_config
5213506e
RW
787enable_serial_configure
788with_build_time_tools
789enable_maintainer_mode
790enable_stage1_checking
791enable_werror
5213506e
RW
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CXX
802CXXFLAGS
803CCC
ffedf511
RW
804build_configargs
805host_configargs
806target_configargs
5213506e
RW
807AR
808AS
809DLLTOOL
810LD
811LIPO
812NM
813RANLIB
814STRIP
815WINDRES
816WINDMC
817OBJCOPY
818OBJDUMP
e7a82751 819READELF
5213506e
RW
820CC_FOR_TARGET
821CXX_FOR_TARGET
822GCC_FOR_TARGET
823GCJ_FOR_TARGET
824GFORTRAN_FOR_TARGET
632e2a07 825GOC_FOR_TARGET
5213506e
RW
826AR_FOR_TARGET
827AS_FOR_TARGET
828DLLTOOL_FOR_TARGET
829LD_FOR_TARGET
830LIPO_FOR_TARGET
831NM_FOR_TARGET
832OBJDUMP_FOR_TARGET
833RANLIB_FOR_TARGET
e7a82751 834READELF_FOR_TARGET
5213506e
RW
835STRIP_FOR_TARGET
836WINDRES_FOR_TARGET
837WINDMC_FOR_TARGET'
838
671aa708
NN
839
840# Initialize some variables set by options.
1c710c3c
DJ
841ac_init_help=
842ac_init_version=false
5213506e
RW
843ac_unrecognized_opts=
844ac_unrecognized_sep=
671aa708
NN
845# The variables have the same names as the options, with
846# dashes changed to underlines.
1c710c3c 847cache_file=/dev/null
671aa708 848exec_prefix=NONE
671aa708 849no_create=
671aa708
NN
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
671aa708
NN
858verbose=
859x_includes=NONE
860x_libraries=NONE
1c710c3c
DJ
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 867# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
5213506e
RW
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
671aa708
NN
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
671aa708
NN
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
5213506e
RW
878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
79c06341 887
671aa708 888ac_prev=
5213506e 889ac_dashdash=
671aa708
NN
890for ac_option
891do
671aa708
NN
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
5213506e 894 eval $ac_prev=\$ac_option
671aa708
NN
895 ac_prev=
896 continue
897 fi
79c06341 898
5213506e
RW
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
671aa708
NN
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
5213506e
RW
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
671aa708
NN
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 913 bindir=$ac_optarg ;;
671aa708
NN
914
915 -build | --build | --buil | --bui | --bu)
1c710c3c 916 ac_prev=build_alias ;;
671aa708 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 918 build_alias=$ac_optarg ;;
671aa708
NN
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
671aa708 929
5213506e 930 -datadir | --datadir | --datadi | --datad)
671aa708 931 ac_prev=datadir ;;
5213506e 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 933 datadir=$ac_optarg ;;
671aa708 934
5213506e
RW
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
671aa708 942 -disable-* | --disable-*)
5213506e 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 944 # Reject names that are not valid shell variable names.
5213506e
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
671aa708
NN
967
968 -enable-* | --enable-*)
5213506e 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 970 # Reject names that are not valid shell variable names.
5213506e
RW
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
2aeb72e9 981 esac
5213506e 982 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
1c710c3c 991 exec_prefix=$ac_optarg ;;
671aa708
NN
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
1c710c3c
DJ
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
671aa708
NN
1003
1004 -host | --host | --hos | --ho)
1c710c3c 1005 ac_prev=host_alias ;;
671aa708 1006 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1007 host_alias=$ac_optarg ;;
671aa708 1008
5213506e
RW
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
671aa708
NN
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1020 includedir=$ac_optarg ;;
671aa708
NN
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1025 infodir=$ac_optarg ;;
671aa708
NN
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1030 libdir=$ac_optarg ;;
671aa708
NN
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1037 libexecdir=$ac_optarg ;;
671aa708 1038
5213506e
RW
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
671aa708 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1045 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1049 localstatedir=$ac_optarg ;;
671aa708
NN
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1054 mandir=$ac_optarg ;;
671aa708
NN
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1061 | --no-cr | --no-c | -n)
671aa708
NN
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1075 oldincludedir=$ac_optarg ;;
671aa708
NN
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1080 prefix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1087 program_prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1094 program_suffix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1111 program_transform_name=$ac_optarg ;;
671aa708 1112
5213506e
RW
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
671aa708
NN
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1c710c3c 1131 sbindir=$ac_optarg ;;
671aa708
NN
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1c710c3c 1142 sharedstatedir=$ac_optarg ;;
671aa708
NN
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1c710c3c 1147 site=$ac_optarg ;;
671aa708
NN
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1152 srcdir=$ac_optarg ;;
671aa708
NN
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1159 sysconfdir=$ac_optarg ;;
671aa708
NN
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1162 ac_prev=target_alias ;;
671aa708 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1164 target_alias=$ac_optarg ;;
671aa708
NN
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1c710c3c
DJ
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
671aa708
NN
1171
1172 -with-* | --with-*)
5213506e 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1174 # Reject names that are not valid shell variable names.
5213506e
RW
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181"with_$ac_useropt"
1182"*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
2aeb72e9 1185 esac
5213506e 1186 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1187
1188 -without-* | --without-*)
5213506e 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1190 # Reject names that are not valid shell variable names.
5213506e
RW
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
671aa708
NN
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1213 x_includes=$ac_optarg ;;
671aa708
NN
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1220 x_libraries=$ac_optarg ;;
671aa708 1221
5213506e
RW
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information."
671aa708
NN
1224 ;;
1225
1c710c3c
DJ
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
5213506e
RW
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1234 export $ac_envvar ;;
1235
671aa708 1236 *)
1c710c3c 1237 # FIXME: should be removed in autoconf 3.0.
5213506e 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
1c710c3c 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1249 as_fn_error "missing argument to $ac_option"
af71363e 1250fi
af71363e 1251
5213506e
RW
1252if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1257 esac
5213506e 1258fi
2aeb72e9 1259
5213506e
RW
1260# Check all directory arguments for consistency.
1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
2aeb72e9 1265do
5213506e
RW
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
2aeb72e9 1274 case $ac_val in
5213506e
RW
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1277 esac
5213506e 1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1279done
1280
1c710c3c
DJ
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
0b0dc272 1287
1c710c3c
DJ
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
5213506e 1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
671aa708 1303
671aa708 1304
5213506e
RW
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
671aa708
NN
1313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
5213506e
RW
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
671aa708 1340 srcdir=$ac_confdir
5213506e 1341 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
5213506e
RW
1347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350fi
1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
87841584
AM
1365case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369esac
ac9e6043
RW
1370ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
5213506e
RW
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1c710c3c
DJ
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1c710c3c
DJ
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1408 [$ac_default_prefix]
1c710c3c 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1410 [PREFIX]
1c710c3c
DJ
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
5213506e
RW
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459Optional Features:
5213506e 1460 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
30b74385
RW
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
a4a2c37d
MK
1470 --enable-static-libjava[=ARG]
1471 build static libjava [default=no]
ff3ac0f4 1472 --enable-bootstrap enable bootstrapping [yes if native build]
00020c16 1473 --enable-build-with-cxx build with C++ compiler instead of C compiler
78767fd9
ILT
1474 --enable-build-poststage1-with-cxx
1475 build stages 2 and 3 with C++, not C
33ad93b9
RG
1476 --disable-isl-version-check
1477 disable check for ISL version
d32ef397
AS
1478 --disable-cloog-version-check
1479 disable check for CLooG version
d7f09764 1480 --enable-lto enable link time optimization support
33e39b66
AS
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
30b74385 1486 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1c710c3c
DJ
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
1c710c3c 1511 --with-mpfr-include=PATH
30b74385
RW
1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
30b74385
RW
1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
33ad93b9 1529 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1530 package. Equivalent to
33ad93b9
RG
1531 --with-isl-include=PATH/include plus
1532 --with-isl-lib=PATH/lib
1533 --with-isl-include=PATH Specify directory for installed ISL include files
1534 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
30b74385 1543 --with-build-sysroot=SYSROOT
1c710c3c 1544 use sysroot as the system root during the build
c8aea42c 1545 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
30b74385 1549 --with-build-time-tools=PATH
1c710c3c 1550 use given path to find target tools during the build
1c710c3c
DJ
1551
1552Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
5213506e
RW
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
ffedf511
RW
1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
278a7a38
AO
1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
901119ae 1577 WINDMC WINDMC for the host
278a7a38
AO
1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
e7a82751 1580 READELF READELF for the host
278a7a38
AO
1581 CC_FOR_TARGET
1582 CC for the target
1583 CXX_FOR_TARGET
1584 CXX for the target
1585 GCC_FOR_TARGET
1586 GCC for the target
1587 GCJ_FOR_TARGET
1588 GCJ for the target
1589 GFORTRAN_FOR_TARGET
1590 GFORTRAN for the target
632e2a07
ILT
1591 GOC_FOR_TARGET
1592 GOC for the target
278a7a38
AO
1593 AR_FOR_TARGET
1594 AR for the target
1595 AS_FOR_TARGET
1596 AS for the target
1597 DLLTOOL_FOR_TARGET
1598 DLLTOOL for the target
1599 LD_FOR_TARGET
1600 LD for the target
1601 LIPO_FOR_TARGET
1602 LIPO for the target
1603 NM_FOR_TARGET
1604 NM for the target
1605 OBJDUMP_FOR_TARGET
1606 OBJDUMP for the target
1607 RANLIB_FOR_TARGET
1608 RANLIB for the target
e7a82751
RM
1609 READELF_FOR_TARGET
1610 READELF for the target
278a7a38
AO
1611 STRIP_FOR_TARGET
1612 STRIP for the target
1613 WINDRES_FOR_TARGET
1614 WINDRES for the target
901119ae
KT
1615 WINDMC_FOR_TARGET
1616 WINDMC for the target
1c710c3c
DJ
1617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
5213506e 1621Report bugs to the package provider.
1c710c3c 1622_ACEOF
5213506e 1623ac_status=$?
1c710c3c
DJ
1624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1c710c3c 1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
1c710c3c
DJ
1632 ac_builddir=.
1633
5213506e
RW
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1649
1650case $srcdir in
5213506e 1651 .) # We are building in place.
1c710c3c 1652 ac_srcdir=.
5213506e
RW
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1656 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1663esac
5213506e
RW
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1674 else
5213506e
RW
1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1678 done
1679fi
1680
5213506e 1681test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1682if $ac_init_version; then
1683 cat <<\_ACEOF
5213506e
RW
1684configure
1685generated by GNU Autoconf 2.64
1c710c3c 1686
5213506e 1687Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1688This configure script is free software; the Free Software Foundation
1689gives unlimited permission to copy, distribute and modify it.
1690_ACEOF
5213506e 1691 exit
0b0dc272 1692fi
5213506e
RW
1693
1694## ------------------------ ##
1695## Autoconf initialization. ##
1696## ------------------------ ##
1697
1698# ac_fn_c_try_compile LINENO
1699# --------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_compile ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734} # ac_fn_c_try_compile
1735
1736# ac_fn_cxx_try_compile LINENO
1737# ----------------------------
1738# Try to compile conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_cxx_try_compile ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext
1743 if { { ac_try="$ac_compile"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_cxx_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772} # ac_fn_cxx_try_compile
1773
1774# ac_fn_c_try_link LINENO
1775# -----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_link ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818} # ac_fn_c_try_link
33ad93b9
RG
1819
1820# ac_fn_c_try_run LINENO
1821# ----------------------
1822# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823# that executables *can* be run.
1824ac_fn_c_try_run ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1828case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1848 ac_retval=0
1849else
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=$ac_status
1855fi
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860} # ac_fn_c_try_run
5213506e 1861cat >config.log <<_ACEOF
1c710c3c
DJ
1862This file contains any messages produced by compilers while
1863running configure, to aid debugging if configure makes a mistake.
1864
1865It was created by $as_me, which was
5213506e 1866generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1867
1868 $ $0 $@
1869
1870_ACEOF
5213506e 1871exec 5>>config.log
1c710c3c
DJ
1872{
1873cat <<_ASUNAME
1874## --------- ##
1875## Platform. ##
1876## --------- ##
1877
1878hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1890/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1891/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895_ASUNAME
1896
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
5213506e
RW
1902 $as_echo "PATH: $as_dir"
1903 done
1904IFS=$as_save_IFS
1c710c3c
DJ
1905
1906} >&5
1907
1908cat >&5 <<_ACEOF
1909
1910
1911## ----------- ##
1912## Core tests. ##
1913## ----------- ##
1914
1915_ACEOF
1916
1917
1918# Keep a trace of the command line.
1919# Strip out --no-create and --no-recursion so they do not pile up.
1920# Strip out --silent because we don't want to record it for future runs.
1921# Also quote any args containing shell meta-characters.
1922# Make two passes to allow for proper duplicate-argument suppression.
1923ac_configure_args=
1924ac_configure_args0=
1925ac_configure_args1=
1c710c3c
DJ
1926ac_must_keep_next=false
1927for ac_pass in 1 2
1928do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
5213506e
RW
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1938 esac
1939 case $ac_pass in
5213506e 1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1941 2)
5213506e 1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
5213506e 1958 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1959 ;;
1960 esac
1961 done
1962done
5213506e
RW
1963{ ac_configure_args0=; unset ac_configure_args0;}
1964{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1965
1966# When interrupted or exit'd, cleanup temporary files, and complete
1967# config.log. We remove comments because anyway the quotes in there
1968# would cause problems or look ugly.
5213506e
RW
1969# WARNING: Use '\'' to represent an apostrophe within the trap.
1970# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1971trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 cat <<\_ASBOX
1977## ---------------- ##
1978## Cache variables. ##
1979## ---------------- ##
1980_ASBOX
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1983(
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1c710c3c 1999 (set) 2>&1 |
5213506e
RW
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
1c710c3c 2002 sed -n \
5213506e
RW
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
1c710c3c 2006 *)
5213506e 2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2008 ;;
5213506e
RW
2009 esac |
2010 sort
2011)
1c710c3c
DJ
2012 echo
2013
2014 cat <<\_ASBOX
2015## ----------------- ##
2016## Output variables. ##
2017## ----------------- ##
2018_ASBOX
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
5213506e
RW
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 cat <<\_ASBOX
5213506e
RW
2032## ------------------- ##
2033## File substitutions. ##
2034## ------------------- ##
1c710c3c
DJ
2035_ASBOX
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
5213506e
RW
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 cat <<\_ASBOX
2050## ----------- ##
2051## confdefs.h. ##
2052## ----------- ##
2053_ASBOX
2054 echo
5213506e 2055 cat confdefs.h
1c710c3c
DJ
2056 echo
2057 fi
2058 test "$ac_signal" != 0 &&
5213506e
RW
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
1c710c3c 2061 } >&5
5213506e
RW
2062 rm -f core *.core core.conftest.* &&
2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2064 exit $exit_status
5213506e 2065' 0
1c710c3c 2066for ac_signal in 1 2 13 15; do
5213506e 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2068done
2069ac_signal=0
2070
2071# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2072rm -f -r conftest* confdefs.h
2073
2074$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2075
2076# Predefined preprocessor variables.
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_NAME "$PACKAGE_NAME"
2080_ACEOF
2081
1c710c3c
DJ
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084_ACEOF
2085
1c710c3c
DJ
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_VERSION "$PACKAGE_VERSION"
2088_ACEOF
0b0dc272 2089
1c710c3c
DJ
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_STRING "$PACKAGE_STRING"
2092_ACEOF
2093
1c710c3c
DJ
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096_ACEOF
2097
5213506e
RW
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_URL "$PACKAGE_URL"
2100_ACEOF
2101
1c710c3c
DJ
2102
2103# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2104# Prefer an explicitly selected file to automatically selected ones.
2105ac_site_file1=NONE
2106ac_site_file2=NONE
2107if test -n "$CONFIG_SITE"; then
2108 ac_site_file1=$CONFIG_SITE
2109elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2115fi
5213506e
RW
2116for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117do
2118 test "x$ac_site_file" = xNONE && continue
671aa708 2119 if test -r "$ac_site_file"; then
5213506e
RW
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2122 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2123 . "$ac_site_file"
2124 fi
2125done
2126
2127if test -r "$cache_file"; then
1c710c3c
DJ
2128 # Some versions of bash will fail to source /dev/null (special
2129 # files actually), so we avoid doing that.
2130 if test -f "$cache_file"; then
5213506e
RW
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2133 case $cache_file in
5213506e
RW
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
1c710c3c
DJ
2136 esac
2137 fi
671aa708 2138else
5213506e
RW
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2141 >$cache_file
2142fi
2143
2144# Check that the precious variables saved in the cache have kept the same
2145# value.
2146ac_cache_corrupted=false
5213506e 2147for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2152 case $ac_old_set,$ac_new_set in
2153 set,)
5213506e
RW
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2156 ac_cache_corrupted=: ;;
2157 ,set)
5213506e
RW
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
5213506e 2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2191 esac
2192 fi
2193done
2194if $ac_cache_corrupted; then
5213506e
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2200fi
5213506e
RW
2201## -------------------- ##
2202## Main body of script. ##
2203## -------------------- ##
671aa708 2204
2aeb72e9
DD
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
1c710c3c
DJ
2211
2212
2213
1c710c3c
DJ
2214
2215
0115d4a3 2216
1c710c3c 2217
ad33ff57
RW
2218
2219progname=$0
2220# if PWD already has a value, it is probably wrong.
2221if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2222
2223# Export original configure arguments for use by sub-configures.
2224# Quote arguments with shell meta charatcers.
2225TOPLEVEL_CONFIGURE_ARGUMENTS=
2226set -- "$progname" "$@"
2227for ac_arg
2228do
2229 case "$ac_arg" in
2230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2231 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2232 # if the argument is of the form -foo=baz, quote the baz part only
2233 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2234 *) ;;
2235 esac
2236 # Add the quoted argument to the list.
2237 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2238done
2239if test "$silent" = yes; then
2240 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2241fi
2242# Remove the initial space we just introduced and, as these will be
2243# expanded by make, quote '$'.
2244TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2245
1c710c3c
DJ
2246
2247# Find the build, host, and target systems.
671aa708 2248ac_aux_dir=
5213506e
RW
2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 for ac_t in install-sh install.sh shtool; do
2251 if test -f "$ac_dir/$ac_t"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/$ac_t -c"
2254 break 2
2255 fi
2256 done
671aa708
NN
2257done
2258if test -z "$ac_aux_dir"; then
5213506e 2259 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2260fi
5213506e
RW
2261
2262# These three variables are undocumented and unsupported,
2263# and are intended to be withdrawn in a future Autoconf release.
2264# They can cause serious problems if a builder's source tree is in a directory
2265# whose full name contains unusual characters.
2266ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2267ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2268ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2269
671aa708 2270
1c710c3c 2271# Make sure we can run config.sub.
5213506e
RW
2272$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2273 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2274
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2276$as_echo_n "checking build system type... " >&6; }
2277if test "${ac_cv_build+set}" = set; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 ac_build_alias=$build_alias
2281test "x$ac_build_alias" = x &&
2282 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2283test "x$ac_build_alias" = x &&
2284 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2285ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2286 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2287
2288fi
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2290$as_echo "$ac_cv_build" >&6; }
2291case $ac_cv_build in
2292*-*-*) ;;
2293*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2294esac
1c710c3c 2295build=$ac_cv_build
5213506e
RW
2296ac_save_IFS=$IFS; IFS='-'
2297set x $ac_cv_build
2298shift
2299build_cpu=$1
2300build_vendor=$2
2301shift; shift
2302# Remember, the first character of IFS is used to create $*,
2303# except with old shells:
2304build_os=$*
2305IFS=$ac_save_IFS
2306case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2307
671aa708 2308
1c710c3c
DJ
2309 case ${build_alias} in
2310 "") build_noncanonical=${build} ;;
2311 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2312esac
2313
2314
af71363e 2315
1c710c3c
DJ
2316 case ${host_alias} in
2317 "") host_noncanonical=${build_noncanonical} ;;
2318 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2319esac
2320
af71363e 2321
1c710c3c
DJ
2322
2323 case ${target_alias} in
2324 "") target_noncanonical=${host_noncanonical} ;;
2325 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2326esac
2327
af71363e 2328
1c710c3c
DJ
2329
2330
2331test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2332 test "$program_prefix$program_suffix$program_transform_name" = \
2333 NONENONEs,x,x, &&
1c710c3c 2334 program_transform_name=s,y,y,
af71363e 2335
5213506e
RW
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2337$as_echo_n "checking host system type... " >&6; }
2338if test "${ac_cv_host+set}" = set; then :
2339 $as_echo_n "(cached) " >&6
af71363e 2340else
5213506e
RW
2341 if test "x$host_alias" = x; then
2342 ac_cv_host=$ac_cv_build
2343else
2344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2345 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2346fi
1c710c3c 2347
af71363e 2348fi
5213506e
RW
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2350$as_echo "$ac_cv_host" >&6; }
2351case $ac_cv_host in
2352*-*-*) ;;
2353*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2354esac
1c710c3c 2355host=$ac_cv_host
5213506e
RW
2356ac_save_IFS=$IFS; IFS='-'
2357set x $ac_cv_host
2358shift
2359host_cpu=$1
2360host_vendor=$2
2361shift; shift
2362# Remember, the first character of IFS is used to create $*,
2363# except with old shells:
2364host_os=$*
2365IFS=$ac_save_IFS
2366case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2367
2368
5213506e
RW
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2370$as_echo_n "checking target system type... " >&6; }
2371if test "${ac_cv_target+set}" = set; then :
2372 $as_echo_n "(cached) " >&6
1c710c3c 2373else
5213506e
RW
2374 if test "x$target_alias" = x; then
2375 ac_cv_target=$ac_cv_host
2376else
2377 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2378 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2379fi
1c710c3c
DJ
2380
2381fi
5213506e
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2383$as_echo "$ac_cv_target" >&6; }
2384case $ac_cv_target in
2385*-*-*) ;;
2386*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2387esac
1c710c3c 2388target=$ac_cv_target
5213506e
RW
2389ac_save_IFS=$IFS; IFS='-'
2390set x $ac_cv_target
2391shift
2392target_cpu=$1
2393target_vendor=$2
2394shift; shift
2395# Remember, the first character of IFS is used to create $*,
2396# except with old shells:
2397target_os=$*
2398IFS=$ac_save_IFS
2399case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2400
2401
2402# The aliases save the names the user supplied, while $host etc.
2403# will get canonicalized.
2404test -n "$target_alias" &&
2405 test "$program_prefix$program_suffix$program_transform_name" = \
2406 NONENONEs,x,x, &&
2407 program_prefix=${target_alias}-
5213506e 2408
671aa708 2409test "$program_prefix" != NONE &&
5213506e 2410 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2411# Use a double $ so make ignores it.
2412test "$program_suffix" != NONE &&
5213506e
RW
2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2414# Double any \ or $.
1c710c3c 2415# By default was `s,x,x', remove it if useless.
5213506e
RW
2416ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2417program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2418
671aa708
NN
2419
2420
775956d0
NN
2421# Get 'install' or 'install-sh' and its variants.
2422# Find a good install program. We prefer a C program (faster),
2423# so one script is as good as another. But avoid the broken or
2424# incompatible versions:
2425# SysV /etc/install, /usr/sbin/install
2426# SunOS /usr/etc/install
2427# IRIX /sbin/install
2428# AIX /bin/install
1c710c3c 2429# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2433# OS/2's system install, which has a completely different semantic
775956d0 2434# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2435# Reject install programs that cannot install multiple files.
5213506e
RW
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2438if test -z "$INSTALL"; then
5213506e
RW
2439if test "${ac_cv_path_install+set}" = set; then :
2440 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2441else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
5213506e
RW
2447 # Account for people who put trailing slashes in PATH elements.
2448case $as_dir/ in #((
2449 ./ | .// | /[cC]/* | \
1c710c3c 2450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2452 /usr/ucb/* ) ;;
2453 *)
2454 # OSF1 and SCO ODT 3.0 have their own names for install.
2455 # Don't use installbsd from OSF since it installs stuff as root
2456 # by default.
2457 for ac_prog in ginstall scoinst install; do
2458 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2459 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2460 if test $ac_prog = install &&
1c710c3c 2461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2462 # AIX install. It has an incompatible calling convention.
2463 :
1c710c3c
DJ
2464 elif test $ac_prog = install &&
2465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # program-specific install script used by HP pwplus--don't use.
2467 :
775956d0 2468 else
38d24731
RW
2469 rm -rf conftest.one conftest.two conftest.dir
2470 echo one > conftest.one
2471 echo two > conftest.two
2472 mkdir conftest.dir
2473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474 test -s conftest.one && test -s conftest.two &&
2475 test -s conftest.dir/conftest.one &&
2476 test -s conftest.dir/conftest.two
2477 then
2478 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2479 break 3
2480 fi
775956d0
NN
2481 fi
2482 fi
2483 done
1c710c3c
DJ
2484 done
2485 ;;
2486esac
5213506e
RW
2487
2488 done
2489IFS=$as_save_IFS
1c710c3c 2490
38d24731 2491rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2492
2493fi
2494 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2495 INSTALL=$ac_cv_path_install
775956d0 2496 else
38d24731
RW
2497 # As a last resort, use the slow shell script. Don't cache a
2498 # value for INSTALL within a source directory, because that will
775956d0 2499 # break other packages using the cache if that directory is
38d24731 2500 # removed, or if the value is a relative name.
1c710c3c 2501 INSTALL=$ac_install_sh
775956d0
NN
2502 fi
2503fi
5213506e
RW
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505$as_echo "$INSTALL" >&6; }
775956d0
NN
2506
2507# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508# It thinks the first close brace ends the variable substitution.
2509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510
1c710c3c 2511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2512
2513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514
5213506e
RW
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2516$as_echo_n "checking whether ln works... " >&6; }
2517if test "${acx_cv_prog_LN+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
ad6717df
PB
2519else
2520 rm -f conftestdata_t
2521echo >conftestdata_f
2522if ln conftestdata_f conftestdata_t 2>/dev/null
2523then
2524 acx_cv_prog_LN=ln
2525else
2526 acx_cv_prog_LN=no
2527fi
2528rm -f conftestdata_f conftestdata_t
2529
2530fi
2531if test $acx_cv_prog_LN = no; then
2532 LN="cp"
5213506e
RW
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2534$as_echo "no, using $LN" >&6; }
ad6717df
PB
2535else
2536 LN="$acx_cv_prog_LN"
5213506e
RW
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538$as_echo "yes" >&6; }
ad6717df
PB
2539fi
2540
5213506e
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2542$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2543LN_S=$as_ln_s
2544if test "$LN_S" = "ln -s"; then
5213506e
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546$as_echo "yes" >&6; }
fb0103e5 2547else
5213506e
RW
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2549$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2550fi
2551
87264276
PB
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2553$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2554if test "${ac_cv_path_SED+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556else
2557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2558 for ac_i in 1 2 3 4 5 6 7; do
2559 ac_script="$ac_script$as_nl$ac_script"
2560 done
2561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2562 { ac_script=; unset ac_script;}
2563 if test -z "$SED"; then
2564 ac_path_SED_found=false
2565 # Loop through the user's path and test for each of PROGNAME-LIST
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_prog in sed gsed; do
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2574 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2575# Check for GNU ac_path_SED and select it if it is found.
2576 # Check for GNU $ac_path_SED
2577case `"$ac_path_SED" --version 2>&1` in
2578*GNU*)
2579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2580*)
2581 ac_count=0
2582 $as_echo_n 0123456789 >"conftest.in"
2583 while :
2584 do
2585 cat "conftest.in" "conftest.in" >"conftest.tmp"
2586 mv "conftest.tmp" "conftest.in"
2587 cp "conftest.in" "conftest.nl"
2588 $as_echo '' >> "conftest.nl"
2589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2591 as_fn_arith $ac_count + 1 && ac_count=$as_val
2592 if test $ac_count -gt ${ac_path_SED_max-0}; then
2593 # Best one so far, save it but keep looking for a better one
2594 ac_cv_path_SED="$ac_path_SED"
2595 ac_path_SED_max=$ac_count
2596 fi
2597 # 10*(2^10) chars as input seems more than enough
2598 test $ac_count -gt 10 && break
2599 done
2600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2601esac
2602
2603 $ac_path_SED_found && break 3
2604 done
2605 done
2606 done
2607IFS=$as_save_IFS
2608 if test -z "$ac_cv_path_SED"; then
2609 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2610 fi
2611else
2612 ac_cv_path_SED=$SED
2613fi
2614
2615fi
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2617$as_echo "$ac_cv_path_SED" >&6; }
2618 SED="$ac_cv_path_SED"
2619 rm -f conftest.sed
2620
2621for ac_prog in gawk mawk nawk awk
2622do
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624set dummy $ac_prog; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
2627if test "${ac_cv_prog_AWK+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629else
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644done
2645 done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650AWK=$ac_cv_prog_AWK
2651if test -n "$AWK"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2653$as_echo "$AWK" >&6; }
2654else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659
2660 test -n "$AWK" && break
2661done
2662
775956d0 2663
ee6a22df
L
2664srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2665
2666# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2667# a relative path.
2668if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2669 INSTALL="${srcpwd}/install-sh -c"
2670fi
2671
671aa708
NN
2672# Set srcdir to "." if that's what it is.
2673# This is important for multilib support.
2674pwd=`${PWDCMD-pwd}`
671aa708
NN
2675if test "${pwd}" = "${srcpwd}" ; then
2676 srcdir=.
79c06341
JL
2677fi
2678
671aa708 2679topsrcdir=$srcpwd
5d4a5ee6 2680
671aa708 2681extra_host_args=
afabd8e6 2682
671aa708
NN
2683### To add a new directory to the tree, first choose whether it is a target
2684### or a host dependent tool. Then put it into the appropriate list
2685### (library or tools, host or target), doing a dependency sort.
79c06341 2686
1c710c3c 2687# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2688# configdirs, or target_configdirs; see the serialization section below.
79c06341 2689
1c710c3c
DJ
2690# Dependency sorting is only needed when *configuration* must be done in
2691# a particular order. In all cases a dependency should be specified in
671aa708 2692# the Makefile, whether or not it's implicitly specified here.
79c06341 2693
671aa708
NN
2694# Double entries in build_configdirs, configdirs, or target_configdirs may
2695# cause circular dependencies and break everything horribly.
79c06341 2696
23f6b2f9
PB
2697# these library is used by various programs built for the build
2698# environment
2699#
2700build_libs="build-libiberty"
2701
2702# these tools are built for the build environment
85bfb75e 2703build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2704
671aa708
NN
2705# these libraries are used by various programs built for the host environment
2706#
33ad93b9 2707host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2708
671aa708
NN
2709# these tools are built for the host environment
2710# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2711# know that we are building the simulator.
2712# binutils, gas and ld appear in that order because it makes sense to run
2713# "make check" in that particular order.
38e3d868 2714# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2715host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2716
2717# libgcj represents the runtime libraries only used by gcj.
2718libgcj="target-libffi \
671aa708 2719 target-zlib \
671aa708
NN
2720 target-libjava"
2721
2722# these libraries are built for the target environment, and are built after
2723# the host libraries and the host tools (which may be a cross compiler)
8499116a 2724# Note that libiberty is not a target library.
291f172e 2725target_libraries="target-libgcc \
671aa708
NN
2726 target-libgloss \
2727 target-newlib \
6d3b5aea 2728 target-libgomp \
48310492 2729 target-libatomic \
0a35513e 2730 target-libitm \
cb543528 2731 target-libstdc++-v3 \
6de9cd9a 2732 target-libmudflap \
77008252 2733 target-libssp \
1ec601bf 2734 target-libquadmath \
6de9cd9a 2735 target-libgfortran \
7cd0cf9c 2736 target-boehm-gc \
77d187bc 2737 ${libgcj} \
d9cdb878 2738 target-libobjc \
632e2a07
ILT
2739 target-libada \
2740 target-libgo"
671aa708 2741
4dbda6f0
NN
2742# these tools are built using the target libraries, and are intended to
2743# run only in the target environment
671aa708 2744#
4dbda6f0 2745# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2746# list belongs in this list.
671aa708 2747#
85bfb75e 2748target_tools="target-rda"
79c06341 2749
671aa708 2750################################################################################
79c06341 2751
671aa708
NN
2752## All tools belong in one of the four categories, and are assigned above
2753## We assign ${configdirs} this way to remove all embedded newlines. This
2754## is important because configure will choke if they ever get through.
2755## ${configdirs} is directories we build using the host tools.
2756## ${target_configdirs} is directories we build using the target tools.
671aa708 2757configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2758target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2759build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2760
ac9e6043
RW
2761
2762
671aa708 2763################################################################################
79c06341 2764
671aa708 2765srcname="gnu development package"
79c06341 2766
671aa708
NN
2767# This gets set non-empty for some net releases of packages.
2768appdirs=""
79c06341 2769
671aa708
NN
2770# Define is_cross_compiler to save on calls to 'test'.
2771is_cross_compiler=
2772if test x"${host}" = x"${target}" ; then
2773 is_cross_compiler=no
79c06341 2774else
671aa708 2775 is_cross_compiler=yes
1c710c3c 2776fi
79c06341 2777
b4acb5ef 2778# Find the build and target subdir names.
8b87bb96 2779
2e9e6f68
DJ
2780# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2781# have matching libraries, they should use host libraries: Makefile.tpl
2782# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2783# However, they still use the build modules, because the corresponding
2784# host modules (e.g. bison) are only built for the host when bootstrap
2785# finishes. So:
2786# - build_subdir is where we find build modules, and never changes.
2787# - build_libsubdir is where we find build libraries, and can be overridden.
2788
2789# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2790build_subdir="build-${build_noncanonical}"
1c710c3c 2791
5213506e
RW
2792# Check whether --with-build-libsubdir was given.
2793if test "${with_build_libsubdir+set}" = set; then :
2794 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2795else
2796 build_libsubdir="$build_subdir"
5213506e
RW
2797fi
2798
215c351a
PB
2799# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2800if ( test $srcdir = . && test -d gcc ) \
2801 || test -d $srcdir/../host-${host_noncanonical}; then
2802 host_subdir="host-${host_noncanonical}"
2803else
2804 host_subdir=.
2805fi
8b87bb96
NN
2806# No prefix.
2807target_subdir=${target_noncanonical}
1c710c3c 2808
0db770bd
RW
2809# Be sure to cover against remnants of an in-tree build.
2810if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2811 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2812Use a pristine source tree when building in a separate tree" "$LINENO" 5
2813fi
79c06341 2814
671aa708
NN
2815# Skipdirs are removed silently.
2816skipdirs=
2817# Noconfigdirs are removed loudly.
2818noconfigdirs=""
79c06341 2819
671aa708
NN
2820use_gnu_ld=
2821# Make sure we don't let GNU ld be added if we didn't want it.
2822if test x$with_gnu_ld = xno ; then
2823 use_gnu_ld=no
5afab7ad 2824 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2825fi
2826
671aa708
NN
2827use_gnu_as=
2828# Make sure we don't let GNU as be added if we didn't want it.
2829if test x$with_gnu_as = xno ; then
2830 use_gnu_as=no
2831 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2832fi
2833
d7f09764
DN
2834use_included_zlib=
2835# Make sure we don't let ZLIB be added if we didn't want it.
2836if test x$with_system_zlib = xyes ; then
2837 use_included_zlib=no
2838 noconfigdirs="$noconfigdirs zlib"
2839fi
2840
1c710c3c 2841# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2842# it's not even worth trying to configure, much less build, that tool.
79c06341 2843
671aa708
NN
2844case ${with_x} in
2845 yes | "") ;; # the default value for this tree is that X11 is available
2846 no)
b4f96efe 2847 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2848 # We won't be able to build gdbtk without X.
1c710c3c 2849 enable_gdbtk=no
671aa708
NN
2850 ;;
2851 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2852esac
79c06341 2853
1bcce263 2854# Some are only suitable for cross toolchains.
671aa708
NN
2855# Remove these if host=target.
2856cross_only="target-libgloss target-newlib target-opcodes"
2857
2858case $is_cross_compiler in
2859 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2860esac
79c06341 2861
671aa708
NN
2862# If both --with-headers and --with-libs are specified, default to
2863# --without-newlib.
ee6a22df
L
2864if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2865 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2866 if test x"${with_newlib}" = x ; then
2867 with_newlib=no
2868 fi
79c06341
JL
2869fi
2870
671aa708
NN
2871# Recognize --with-newlib/--without-newlib.
2872case ${with_newlib} in
2873 no) skipdirs="${skipdirs} target-newlib" ;;
2874 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2875esac
79c06341 2876
21539e2e
MK
2877# Handle --enable-gold, --enable-ld.
2878# --disable-gold [--enable-ld]
2879# Build only ld. Default option.
9580395f
L
2880# --enable-gold [--enable-ld]
2881# Build both gold and ld. Install gold as "ld.gold", install ld
2882# as "ld.bfd" and "ld".
2883# --enable-gold=default [--enable-ld]
21539e2e
MK
2884# Build both gold and ld. Install gold as "ld.gold" and "ld",
2885# install ld as "ld.bfd".
2886# --enable-gold[=default] --disable-ld
2887# Build only gold, which is then installed as both "ld.gold" and "ld".
2888# --enable-gold --enable-ld=default
9580395f
L
2889# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2890# and ld.bfd).
21539e2e
MK
2891# In other words, ld is default
2892# --enable-gold=default --enable-ld=default
2893# Error.
2894
2895default_ld=
5213506e
RW
2896# Check whether --enable-gold was given.
2897if test "${enable_gold+set}" = set; then :
2898 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2899else
2900 ENABLE_GOLD=no
5213506e
RW
2901fi
2902
21539e2e
MK
2903case "${ENABLE_GOLD}" in
2904 yes|default)
38e3d868
RM
2905 # Check for ELF target.
2906 is_elf=no
2907 case "${target}" in
2908 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2909 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2910 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2911 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2912 case "${target}" in
2913 *-*-linux*aout* | *-*-linux*oldld*)
2914 ;;
2915 *)
2916 is_elf=yes
2917 ;;
2918 esac
2919 esac
2920
2921 if test "$is_elf" = "yes"; then
2922 # Check for target supported by gold.
5afab7ad 2923 case "${target}" in
38e3d868 2924 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2925 configdirs="$configdirs gold"
2926 if test x${ENABLE_GOLD} = xdefault; then
2927 default_ld=gold
2928 fi
38e3d868 2929 ENABLE_GOLD=yes
5afab7ad
ILT
2930 ;;
2931 esac
38e3d868
RM
2932 fi
2933 ;;
2934 no)
2935 ;;
2936 *)
2937 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2938 ;;
21539e2e
MK
2939esac
2940
2941# Check whether --enable-ld was given.
2942if test "${enable_ld+set}" = set; then :
2943 enableval=$enable_ld; ENABLE_LD=$enableval
2944else
2945 ENABLE_LD=yes
2946fi
2947
2948
2949case "${ENABLE_LD}" in
2950 default)
9580395f 2951 if test x${default_ld} != x; then
21539e2e
MK
2952 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2953 fi
2954 ;;
2955 yes)
2956 ;;
2957 no)
2958 if test x${ENABLE_GOLD} != xyes; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2960$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2961 fi
2962 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2963 ;;
2964 *)
2965 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2966 ;;
2967esac
5afab7ad 2968
671aa708 2969# Configure extra directories which are host specific
79c06341 2970
671aa708
NN
2971case "${host}" in
2972 *-cygwin*)
2973 configdirs="$configdirs libtermcap" ;;
2974esac
79c06341 2975
4fab7234
HPN
2976# A target can indicate whether a language isn't supported for some reason.
2977# Only spaces may be used in this macro; not newlines or tabs.
2978unsupported_languages=
2979
1c710c3c 2980# Remove more programs from consideration, based on the host or
671aa708
NN
2981# target this usually means that a port of the program doesn't
2982# exist yet.
ec8d6ddc 2983
671aa708 2984case "${host}" in
111eeb6e 2985 i[3456789]86-*-msdosdjgpp*)
c9bdb152 2986 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 2987 ;;
671aa708 2988esac
ec8d6ddc 2989
6de9cd9a 2990
87e6d9dc
TB
2991# Check whether --enable-libquadmath was given.
2992if test "${enable_libquadmath+set}" = set; then :
2993 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2994else
2995 ENABLE_LIBQUADMATH=yes
2996fi
2997
2998if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2999 noconfigdirs="$noconfigdirs target-libquadmath"
3000fi
3001
3002
3003# Check whether --enable-libquadmath-support was given.
3004if test "${enable_libquadmath_support+set}" = set; then :
3005 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3006else
3007 ENABLE_LIBQUADMATH_SUPPORT=yes
3008fi
3009
3010enable_libquadmath_support=
3011if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3012 enable_libquadmath_support=no
3013fi
3014
3015
5213506e
RW
3016# Check whether --enable-libada was given.
3017if test "${enable_libada+set}" = set; then :
3018 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3019else
3020 ENABLE_LIBADA=yes
5213506e
RW
3021fi
3022
d9cdb878 3023if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3024 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3025fi
3026
5213506e
RW
3027# Check whether --enable-libssp was given.
3028if test "${enable_libssp+set}" = set; then :
3029 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3030else
3031 ENABLE_LIBSSP=yes
5213506e
RW
3032fi
3033
ef0087a7 3034
671aa708
NN
3035# Save it here so that, even in case of --enable-libgcj, if the Java
3036# front-end isn't enabled, we still get libgcj disabled.
3037libgcj_saved=$libgcj
3038case $enable_libgcj in
3039yes)
3040 # If we reset it here, it won't get added to noconfigdirs in the
3041 # target-specific build rules, so it will be forcibly enabled
3042 # (unless the Java language itself isn't enabled).
3043 libgcj=
3044 ;;
3045no)
3046 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3047 # Don't disable libffi, though, other languages use it.
3048 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3049 # Clear libgcj_saved so that even if java is enabled libffi won't be
3050 # built.
3051 libgcj_saved=
671aa708
NN
3052 ;;
3053esac
ec8d6ddc 3054
a4a2c37d
MK
3055# Check whether --enable-static-libjava was given.
3056if test "${enable_static_libjava+set}" = set; then :
3057 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3058else
3059 ENABLE_STATIC_LIBJAVA=no
3060fi
3061
3062enable_static_libjava=
3063if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3064 enable_static_libjava=yes
3065fi
3066
3067if test x$enable_static_libjava != xyes ; then
3068 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3069fi
3070
6de9cd9a 3071
27079765
AH
3072# Disable libmudflap on some systems.
3073if test x$enable_libmudflap = x ; then
dfcada9a 3074 case "${target}" in
416ac4d4 3075 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3076 # Enable libmudflap by default in GNU and friends.
dfcada9a 3077 ;;
a3e8d8b4
LR
3078 *-*-freebsd*)
3079 # Enable libmudflap by default in FreeBSD.
3080 ;;
dfcada9a
MM
3081 *)
3082 # Disable it by default everywhere else.
3083 noconfigdirs="$noconfigdirs target-libmudflap"
3084 ;;
3085 esac
27079765 3086fi
6de9cd9a 3087
27079765
AH
3088# Disable libgomp on non POSIX hosted systems.
3089if test x$enable_libgomp = x ; then
953ff289
DN
3090 # Enable libgomp by default on hosted POSIX systems.
3091 case "${target}" in
416ac4d4 3092 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3093 ;;
8c6d158a 3094 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3095 ;;
b24513a1 3096 *-*-solaris2* | *-*-hpux11*)
953ff289 3097 ;;
cac90078 3098 *-*-darwin* | *-*-aix*)
953ff289
DN
3099 ;;
3100 *)
3101 noconfigdirs="$noconfigdirs target-libgomp"
3102 ;;
3103 esac
27079765 3104fi
953ff289 3105
48310492
RH
3106# Disable libatomic on unsupported systems.
3107if test -d ${srcdir}/libatomic; then
3108 if test x$enable_libatomic = x; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3110$as_echo_n "checking for libatomic support... " >&6; }
3111 if (srcdir=${srcdir}/libatomic; \
3112 . ${srcdir}/configure.tgt; \
3113 test -n "$UNSUPPORTED")
3114 then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116$as_echo "no" >&6; }
3117 noconfigdirs="$noconfigdirs target-libatomic"
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120$as_echo "yes" >&6; }
3121 fi
3122 fi
3123fi
3124
e948157d
RH
3125# Disable libitm on unsupported systems.
3126if test -d ${srcdir}/libitm; then
3127 if test x$enable_libitm = x; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3129$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3130 if (srcdir=${srcdir}/libitm; \
3131 . ${srcdir}/configure.tgt; \
3132 test -n "$UNSUPPORTED")
3133 then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3135$as_echo "no" >&6; }
e948157d
RH
3136 noconfigdirs="$noconfigdirs target-libitm"
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3139$as_echo "yes" >&6; }
e948157d
RH
3140 fi
3141 fi
0a35513e
AH
3142fi
3143
1e9e0e23
JM
3144# Disable libssp for some systems.
3145case "${target}" in
3146 avr-*-*)
b318fb4b 3147 # No hosted I/O support.
1e9e0e23
JM
3148 noconfigdirs="$noconfigdirs target-libssp"
3149 ;;
3150 powerpc-*-aix* | rs6000-*-aix*)
3151 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3152 ;;
3153 rl78-*-*)
7cb62ef1
EB
3154 # libssp uses a misaligned load to trigger a fault, but the RL78
3155 # doesn't fault for those - instead, it gives a build-time error
3156 # for explicit misaligned loads.
85b8555e 3157 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3158 ;;
1e9e0e23
JM
3159esac
3160
1e9e0e23
JM
3161# Disable libstdc++-v3 for some systems.
3162case "${target}" in
3163 *-*-vxworks*)
3164 # VxWorks uses the Dinkumware C++ library.
3165 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3166 ;;
3167 arm*-wince-pe*)
3168 # the C++ libraries don't build on top of CE's C libraries
3169 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3170 ;;
3171 avr-*-*)
3172 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3173 ;;
3174esac
3175
3176# Disable Fortran for some systems.
3177case "${target}" in
3178 mmix-*-*)
3179 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3180 unsupported_languages="$unsupported_languages fortran"
3181 ;;
3182esac
3183
80f81134 3184# Disable Java if libffi is not supported.
2909494b 3185case "${target}" in
80f81134
JM
3186 alpha*-*-*)
3187 ;;
3188 arm*-*-*)
3189 ;;
3190 cris-*-*)
3191 ;;
3192 frv-*-*)
3193 ;;
3194 hppa*-*-linux*)
3195 ;;
3196 hppa*-*-hpux*)
3197 ;;
3198 i?86-*-*)
3199 ;;
3200 ia64*-*-*)
3201 ;;
3202 m32r*-*-*)
3203 ;;
3204 m68k-*-*)
3205 ;;
b24513a1 3206 mips*-*-rtems*)
80f81134
JM
3207 ;;
3208 mips*-*-linux*)
3209 ;;
3210 powerpc*-*-linux*)
3211 ;;
3212 powerpc-*-darwin*)
3213 ;;
3214 powerpc-*-aix* | rs6000-*-aix*)
3215 ;;
3216 powerpc-*-freebsd*)
3217 ;;
3218 powerpc64-*-freebsd*)
3219 ;;
3220 powerpc*-*-rtems*)
2909494b 3221 ;;
80f81134
JM
3222 s390-*-* | s390x-*-*)
3223 ;;
3224 sh-*-* | sh[34]*-*-*)
3225 ;;
3226 sh64-*-* | sh5*-*-*)
3227 ;;
3228 sparc*-*-*)
3229 ;;
3230 x86_64-*-*)
3231 ;;
3232 *-*-*)
3233 unsupported_languages="$unsupported_languages java"
3234 ;;
3235esac
3236
3237# Disable Java, libgcj or related libraries for some systems.
3238case "${target}" in
2909494b
JM
3239 powerpc-*-darwin*)
3240 ;;
3241 i[3456789]86-*-darwin*)
3242 ;;
3243 x86_64-*-darwin[912]*)
3244 ;;
3245 *-*-darwin*)
3246 noconfigdirs="$noconfigdirs ${libgcj}"
3247 ;;
2909494b
JM
3248 *-*-netware*)
3249 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ;;
3251 *-*-rtems*)
3252 noconfigdirs="$noconfigdirs ${libgcj}"
3253 ;;
3254 *-*-tpf*)
3255 noconfigdirs="$noconfigdirs ${libgcj}"
3256 ;;
3257 *-*-uclinux*)
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 ;;
3260 *-*-vxworks*)
3261 noconfigdirs="$noconfigdirs ${libgcj}"
3262 ;;
2909494b
JM
3263 alpha*-*-*vms*)
3264 noconfigdirs="$noconfigdirs ${libgcj}"
3265 ;;
80f81134 3266 arm-wince-pe)
2909494b
JM
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 ;;
2909494b
JM
3269 arm*-*-symbianelf*)
3270 noconfigdirs="$noconfigdirs ${libgcj}"
3271 ;;
2909494b 3272 bfin-*-*)
2909494b
JM
3273 noconfigdirs="$noconfigdirs target-boehm-gc"
3274 ;;
2909494b
JM
3275 cris-*-* | crisv32-*-*)
3276 unsupported_languages="$unsupported_languages java"
3277 case "${target}" in
3278 *-*-linux*)
3279 ;;
3280 *) # See PR46792 regarding target-libffi.
3281 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3282 esac
3283 ;;
2909494b
JM
3284 hppa*64*-*-linux*)
3285 # In this case, it's because the hppa64-linux target is for
3286 # the kernel only at this point and has no libc, and thus no
3287 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3288 unsupported_languages="$unsupported_languages java"
2909494b 3289 ;;
fddf9ee7 3290 hppa*64*-*-hpux*)
2909494b
JM
3291 noconfigdirs="$noconfigdirs ${libgcj}"
3292 ;;
3293 hppa*-hp-hpux11*)
3294 ;;
fddf9ee7 3295 hppa*-*-hpux*)
2909494b
JM
3296 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3297 # build on HP-UX 10.20.
3298 noconfigdirs="$noconfigdirs ${libgcj}"
3299 ;;
2909494b
JM
3300 ia64*-*-*vms*)
3301 noconfigdirs="$noconfigdirs ${libgcj}"
3302 ;;
2909494b
JM
3303 i[3456789]86-w64-mingw*)
3304 noconfigdirs="$noconfigdirs ${libgcj}"
3305 ;;
3306 i[3456789]86-*-mingw*)
3307 noconfigdirs="$noconfigdirs ${libgcj}"
3308 ;;
3309 x86_64-*-mingw*)
3310 noconfigdirs="$noconfigdirs ${libgcj}"
3311 ;;
2909494b
JM
3312 mmix-*-*)
3313 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3314 ;;
3315 powerpc-*-aix*)
3316 # copied from rs6000-*-* entry
3317 noconfigdirs="$noconfigdirs ${libgcj}"
3318 ;;
2909494b
JM
3319 rs6000-*-aix*)
3320 noconfigdirs="$noconfigdirs ${libgcj}"
3321 ;;
2909494b
JM
3322 *-*-lynxos*)
3323 noconfigdirs="$noconfigdirs ${libgcj}"
3324 ;;
2909494b
JM
3325esac
3326
c03353e2
RIL
3327# Default libgloss CPU subdirectory.
3328libgloss_dir="$target_cpu"
6de9cd9a 3329
fbcf0dca
JM
3330case "${target}" in
3331 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3332 libgloss_dir=wince
3333 ;;
3334 arm*-*-*)
3335 libgloss_dir=arm
3336 ;;
3337 cris-*-* | crisv32-*-*)
3338 libgloss_dir=cris
3339 ;;
3340 hppa*-*-*)
3341 libgloss_dir=pa
3342 ;;
3343 i[3456789]86-*-*)
3344 libgloss_dir=i386
3345 ;;
3346 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3347 libgloss_dir=m68hc11
3348 ;;
3349 m68*-*-* | fido-*-*)
3350 libgloss_dir=m68k
3351 ;;
3352 mips*-*-*)
3353 libgloss_dir=mips
3354 ;;
3355 powerpc*-*-*)
3356 libgloss_dir=rs6000
3357 ;;
3358 sparc*-*-*)
3359 libgloss_dir=sparc
3360 ;;
3361esac
3362
6a789d5e 3363# Disable newlib and libgloss for various target OSes.
671aa708 3364case "${target}" in
6a789d5e
JM
3365 alpha*-dec-osf*)
3366 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3367 ;;
3368 i[3456789]86-*-linux*)
3369 # This section makes it possible to build newlib natively on linux.
3370 # If we are using a cross compiler then don't configure newlib.
3371 if test x${is_cross_compiler} != xno ; then
3372 noconfigdirs="$noconfigdirs target-newlib"
3373 fi
3374 noconfigdirs="$noconfigdirs target-libgloss"
3375 # If we are not using a cross compiler, do configure newlib.
3376 # Note however, that newlib will only be configured in this situation
3377 # if the --with-newlib option has been given, because otherwise
3378 # 'target-newlib' will appear in skipdirs.
3379 ;;
3380 i[3456789]86-*-rdos*)
3381 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3382 ;;
3383 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 sparc-*-sunos4*)
3387 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3388 ;;
3389 *-*-aix*)
3390 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 ;;
3392 *-*-beos*)
3393 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3394 ;;
671aa708 3395 *-*-chorusos)
0036370f 3396 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3397 ;;
6a789d5e
JM
3398 *-*-dragonfly*)
3399 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3400 ;;
3401 *-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3403 ;;
3404 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3405 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3406 ;;
3407 *-*-lynxos*)
3408 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3409 ;;
3410 *-*-mingw*)
3411 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3412 ;;
3413 *-*-netbsd*)
3414 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3415 ;;
3416 *-*-netware*)
3417 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3418 ;;
3419 *-*-tpf*)
3420 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3421 ;;
3422 *-*-uclinux*)
3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 ;;
3425 *-*-vxworks*)
3426 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3427 ;;
3428esac
3429
3430case "${target}" in
3431 *-*-chorusos)
3432 ;;
75eeae1a 3433 powerpc-*-darwin*)
e1514c3f 3434 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3435 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3436 ;;
354ebf88
RW
3437 i[3456789]86-*-darwin*)
3438 noconfigdirs="$noconfigdirs ld gprof"
3439 noconfigdirs="$noconfigdirs sim target-rda"
3440 ;;
3441 x86_64-*-darwin[912]*)
0db3a858
TG
3442 noconfigdirs="$noconfigdirs ld gas gprof"
3443 noconfigdirs="$noconfigdirs sim target-rda"
3444 ;;
42c1cd8a
AT
3445 *-*-darwin*)
3446 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3447 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3448 ;;
8c6d158a 3449 *-*-dragonfly*)
8c6d158a 3450 ;;
c3f84f61 3451 *-*-freebsd*)
6de9cd9a
DN
3452 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3453 && test -f /usr/local/include/gmp.h; then
3454 with_gmp=/usr/local
3455 fi
6de9cd9a 3456 ;;
ef4e7569
US
3457 *-*-kaos*)
3458 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3459 noconfigdirs="$noconfigdirs target-libgloss"
3460 ;;
671aa708 3461 *-*-netbsd*)
671aa708 3462 ;;
61fec9ff 3463 *-*-netware*)
671aa708
NN
3464 ;;
3465 *-*-rtems*)
2909494b 3466 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3467 ;;
a8ba31f2
EC
3468 # The tpf target doesn't support gdb yet.
3469 *-*-tpf*)
6a789d5e 3470 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3471 ;;
5785c0ed 3472 *-*-uclinux*)
6a789d5e 3473 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3474 ;;
671aa708 3475 *-*-vxworks*)
671aa708
NN
3476 ;;
3477 alpha*-dec-osf*)
3478 # ld works, but does not support shared libraries.
671aa708 3479 # gas doesn't generate exception information.
6a789d5e 3480 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3481 ;;
3482 alpha*-*-*vms*)
2909494b 3483 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3484 ;;
671aa708
NN
3485 alpha*-*-*)
3486 # newlib is not 64 bit ready
2909494b 3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3488 ;;
671aa708 3489 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3490 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3491 ;;
3492 arc-*-*)
ebb9f8b0 3493 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3494 ;;
671aa708 3495 arm-*-pe*)
2909494b 3496 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3497 ;;
671aa708 3498 arm-*-riscix*)
0036370f 3499 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3500 ;;
671aa708 3501 c4x-*-* | tic4x-*-*)
0036370f 3502 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3503 ;;
0036370f
JM
3504 tic54x-*-*)
3505 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3506 ;;
671aa708 3507 d10v-*-*)
0036370f 3508 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3509 ;;
3510 d30v-*-*)
0036370f 3511 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3512 ;;
3513 fr30-*-elf*)
2909494b 3514 noconfigdirs="$noconfigdirs gdb"
671aa708 3515 ;;
55f2d967 3516 moxie-*-*)
55f2d967
AG
3517 noconfigdirs="$noconfigdirs gprof"
3518 ;;
671aa708 3519 h8300*-*-*)
2909494b 3520 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3521 ;;
3522 h8500-*-*)
0036370f 3523 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3524 ;;
ee6a22df 3525 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3526 ;;
4569f85e 3527 hppa*64*-*-linux*)
671aa708 3528 ;;
56f8587a 3529 hppa*-*-linux*)
3e732ba0 3530 ;;
671aa708 3531 hppa*-*-*elf* | \
671aa708
NN
3532 hppa*-*-lites* | \
3533 hppa*-*-openbsd* | \
3534 hppa*64*-*-*)
671aa708 3535 ;;
2a332582 3536 hppa*-hp-hpux11*)
1bcce263 3537 noconfigdirs="$noconfigdirs ld"
2a332582 3538 ;;
c03353e2 3539 hppa*-*-pro*)
c03353e2 3540 ;;
671aa708 3541 hppa*-*-*)
2909494b 3542 noconfigdirs="$noconfigdirs ld"
671aa708 3543 ;;
fb87ad5d 3544 i960-*-*)
0036370f 3545 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3546 ;;
671aa708
NN
3547 ia64*-*-elf*)
3548 # No gdb support yet.
1bcce263 3549 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3550 ;;
3551 ia64*-**-hpux*)
5a2931d1 3552 # No ld support yet.
2909494b 3553 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3554 ;;
52535a64 3555 ia64*-*-*vms*)
091fe9ca
TG
3556 # No ld support yet.
3557 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3558 ;;
ef4c4300 3559 i[3456789]86-w64-mingw*)
ef4c4300
KT
3560 ;;
3561 i[3456789]86-*-mingw*)
b91f0a41 3562 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3563 ;;
671aa708
NN
3564 *-*-cygwin*)
3565 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3566 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3567 # always build newlib if winsup directory is present.
b91f0a41 3568 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3569 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3570 elif test -d "$srcdir/newlib"; then
b91f0a41 3571 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3572 fi
1c710c3c 3573 ;;
f2a0e225 3574 i[3456789]86-*-pe)
ebb9f8b0 3575 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3576 ;;
f2a0e225 3577 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3578 # The linker does not yet know about weak symbols in COFF,
3579 # and is not configured to handle mixed ELF and COFF.
0036370f 3580 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3581 ;;
f2a0e225 3582 i[3456789]86-*-sco*)
0036370f 3583 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3584 ;;
fbdd5d87 3585 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3586 noconfigdirs="$noconfigdirs target-libgloss"
3587 ;;
f2a0e225 3588 i[3456789]86-*-sysv4*)
0036370f 3589 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3590 ;;
f2a0e225 3591 i[3456789]86-*-beos*)
6a789d5e 3592 noconfigdirs="$noconfigdirs gdb"
3aa83176 3593 ;;
d1f8db0c 3594 i[3456789]86-*-rdos*)
6a789d5e 3595 noconfigdirs="$noconfigdirs gdb"
c03353e2 3596 ;;
671aa708 3597 mmix-*-*)
2909494b 3598 noconfigdirs="$noconfigdirs gdb"
671aa708 3599 ;;
ab34901f 3600 mt-*-*)
79dd769c
AH
3601 noconfigdirs="$noconfigdirs sim"
3602 ;;
671aa708
NN
3603 powerpc-*-aix*)
3604 # copied from rs6000-*-* entry
6a789d5e 3605 noconfigdirs="$noconfigdirs gprof"
671aa708 3606 ;;
4569f85e 3607 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3608 target_configdirs="$target_configdirs target-winsup"
0036370f 3609 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3610 # always build newlib.
3611 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3612 ;;
3613 # This is temporary until we can link against shared libraries
3614 powerpcle-*-solaris*)
0036370f 3615 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3616 ;;
3617 powerpc-*-beos*)
6a789d5e 3618 noconfigdirs="$noconfigdirs gdb"
671aa708 3619 ;;
671aa708 3620 rs6000-*-lynxos*)
6a789d5e 3621 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3622 ;;
3623 rs6000-*-aix*)
6a789d5e 3624 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3625 ;;
3626 rs6000-*-*)
2909494b 3627 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3628 ;;
3629 m68k-apollo-*)
0036370f 3630 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3631 ;;
ca9fe997 3632 microblaze*)
2909494b 3633 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3634 ;;
d9dced13 3635 mips*-sde-elf*)
d9dced13
RS
3636 if test x$with_newlib = xyes; then
3637 noconfigdirs="$noconfigdirs gprof"
3638 fi
d9dced13 3639 ;;
671aa708 3640 mips*-*-irix5*)
0036370f 3641 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3642 ;;
3643 mips*-*-irix6*)
2909494b 3644 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3645 ;;
671aa708 3646 mips*-*-bsd*)
0036370f 3647 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3648 ;;
671aa708 3649 mips*-*-linux*)
671aa708
NN
3650 ;;
3651 mips*-*-*)
2909494b 3652 noconfigdirs="$noconfigdirs gprof"
671aa708 3653 ;;
669f01d8 3654 sh-*-* | sh64-*-*)
ea2002ba
CB
3655 case "${target}" in
3656 sh*-*-elf)
2909494b 3657 ;;
ea2002ba 3658 *)
2909494b 3659 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3660 esac
671aa708 3661 ;;
671aa708 3662 sparc-*-sunos4*)
6a789d5e 3663 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3664 use_gnu_ld=no
3665 fi
3666 ;;
b42f0d7e 3667 tic6x-*-*)
0d557ff8 3668 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3669 ;;
db1d217c
WL
3670 tilepro-*-* | tilegx-*-*)
3671 noconfigdirs="$noconfigdirs sim"
3672 ;;
671aa708 3673 v810-*-*)
0036370f 3674 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3675 ;;
3676 vax-*-*)
2909494b 3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3678 ;;
671aa708 3679esac
79c06341 3680
671aa708
NN
3681# If we aren't building newlib, then don't build libgloss, since libgloss
3682# depends upon some newlib header files.
3683case "${noconfigdirs}" in
3684 *target-libgloss*) ;;
3685 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3686esac
3687
671aa708 3688# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3689host_makefile_frag=/dev/null
3690if test -d ${srcdir}/config ; then
3691case "${host}" in
f2a0e225 3692 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3693 host_makefile_frag="config/mh-djgpp"
3694 ;;
3695 *-cygwin*)
2a79c47f 3696
5213506e
RW
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3699echo a >cygwin-cat-check
e25a8c82 3700if test `cat cygwin-cat-check` = a ; then
2a79c47f 3701 rm cygwin-cat-check
5213506e
RW
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
2a79c47f
NC
3704else
3705 rm cygwin-cat-check
5213506e
RW
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711set -o igncr
3712export SHELLOPTS
5213506e 3713 " "$LINENO" 5
2a79c47f
NC
3714fi
3715
671aa708
NN
3716 host_makefile_frag="config/mh-cygwin"
3717 ;;
c53a18d3 3718 *-mingw*)
1f5a6b84 3719 host_makefile_frag="config/mh-mingw"
95af8923 3720 ;;
efd41714 3721 hppa*-hp-hpux10*)
efd41714 3722 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3723 ;;
111eeb6e 3724 hppa*-hp-hpux*)
efd41714
PB
3725 host_makefile_frag="config/mh-pa"
3726 ;;
3727 hppa*-*)
3728 host_makefile_frag="config/mh-pa"
3729 ;;
d8ed14ce
IS
3730 *-*-darwin*)
3731 host_makefile_frag="config/mh-darwin"
be8fff81 3732 ;;
d19bca38
PB
3733 powerpc-*-aix*)
3734 host_makefile_frag="config/mh-ppc-aix"
3735 ;;
3736 rs6000-*-aix*)
3737 host_makefile_frag="config/mh-ppc-aix"
3738 ;;
671aa708
NN
3739esac
3740fi
3741
55ffb5ed 3742if test "${build}" != "${host}" ; then
0999159b
PB
3743 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3744 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3745 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3746 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3747 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3748 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3749 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3750 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3751 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3752 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3753 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3754 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3755 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3756else
3757 AR_FOR_BUILD="\$(AR)"
3758 AS_FOR_BUILD="\$(AS)"
fb0103e5 3759 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3760 CXX_FOR_BUILD="\$(CXX)"
3761 GCJ_FOR_BUILD="\$(GCJ)"
3762 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3763 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3764 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3765 LD_FOR_BUILD="\$(LD)"
3766 NM_FOR_BUILD="\$(NM)"
3767 RANLIB_FOR_BUILD="\$(RANLIB)"
3768 WINDRES_FOR_BUILD="\$(WINDRES)"
3769 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3770fi
3771
3772ac_ext=c
1c710c3c
DJ
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3784else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
5213506e
RW
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3797 break 2
3798 fi
3799done
5213506e
RW
3800 done
3801IFS=$as_save_IFS
1c710c3c
DJ
3802
3803fi
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
5213506e
RW
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808$as_echo "$CC" >&6; }
1c710c3c 3809else
5213506e
RW
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
1c710c3c
DJ
3812fi
3813
5213506e 3814
1c710c3c
DJ
3815fi
3816if test -z "$ac_cv_prog_CC"; then
3817 ac_ct_CC=$CC
fb0103e5
RG
3818 # Extract the first word of "gcc", so it can be a program name with args.
3819set dummy gcc; ac_word=$2
5213506e
RW
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
3822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3824else
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
5213506e
RW
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3835 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3837 break 2
3838 fi
3839done
5213506e
RW
3840 done
3841IFS=$as_save_IFS
1c710c3c
DJ
3842
3843fi
3844fi
3845ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846if test -n "$ac_ct_CC"; then
5213506e
RW
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3849else
5213506e
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
1c710c3c
DJ
3852fi
3853
5213506e
RW
3854 if test "x$ac_ct_CC" = x; then
3855 CC=""
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858yes:)
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861ac_tool_warned=yes ;;
3862esac
3863 CC=$ac_ct_CC
3864 fi
1c710c3c
DJ
3865else
3866 CC="$ac_cv_prog_CC"
3867fi
3868
3869if test -z "$CC"; then
5213506e
RW
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3872set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874$as_echo_n "checking for $ac_word... " >&6; }
3875if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3877else
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880else
1c710c3c
DJ
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
5213506e
RW
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3888 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3890 break 2
3891 fi
3892done
5213506e
RW
3893 done
3894IFS=$as_save_IFS
1c710c3c 3895
0b0dc272 3896fi
0b0dc272 3897fi
1c710c3c 3898CC=$ac_cv_prog_CC
af71363e 3899if test -n "$CC"; then
5213506e
RW
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901$as_echo "$CC" >&6; }
2aeb72e9 3902else
5213506e
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
2aeb72e9
DD
3905fi
3906
2aeb72e9 3907
5213506e 3908 fi
1c710c3c 3909fi
55ffb5ed
NN
3910if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912set dummy cc; ac_word=$2
5213506e
RW
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3917else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920else
0b0dc272 3921 ac_prog_rejected=no
1c710c3c
DJ
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
5213506e
RW
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected=yes
3931 continue
3932 fi
3933 ac_cv_prog_CC="cc"
5213506e 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3935 break 2
3936 fi
3937done
5213506e
RW
3938 done
3939IFS=$as_save_IFS
1c710c3c 3940
55ffb5ed
NN
3941if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy $ac_cv_prog_CC
3944 shift
1c710c3c 3945 if test $# != 0; then
55ffb5ed
NN
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3949 shift
1c710c3c 3950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3951 fi
3952fi
3953fi
3954fi
1c710c3c 3955CC=$ac_cv_prog_CC
55ffb5ed 3956if test -n "$CC"; then
5213506e
RW
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958$as_echo "$CC" >&6; }
55ffb5ed 3959else
5213506e
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
55ffb5ed
NN
3962fi
3963
5213506e 3964
1c710c3c
DJ
3965fi
3966if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
5213506e 3968 for ac_prog in cl.exe
1c710c3c
DJ
3969 do
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
3974if test "${ac_cv_prog_CC+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3976else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979else
1c710c3c
DJ
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
5213506e
RW
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3989 break 2
3990 fi
3991done
5213506e
RW
3992 done
3993IFS=$as_save_IFS
1c710c3c 3994
55ffb5ed
NN
3995fi
3996fi
1c710c3c 3997CC=$ac_cv_prog_CC
55ffb5ed 3998if test -n "$CC"; then
5213506e
RW
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000$as_echo "$CC" >&6; }
a4b9e93e 4001else
5213506e
RW
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
fb0103e5 4004fi
af71363e 4005
5213506e 4006
1c710c3c
DJ
4007 test -n "$CC" && break
4008 done
af71363e 4009fi
1c710c3c
DJ
4010if test -z "$CC"; then
4011 ac_ct_CC=$CC
5213506e 4012 for ac_prog in cl.exe
1c710c3c
DJ
4013do
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015set dummy $ac_prog; ac_word=$2
5213506e
RW
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017$as_echo_n "checking for $ac_word... " >&6; }
4018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
0b0dc272 4020else
1c710c3c
DJ
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4023else
1c710c3c
DJ
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
5213506e
RW
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4031 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4033 break 2
4034 fi
4035done
5213506e
RW
4036 done
4037IFS=$as_save_IFS
1c710c3c 4038
af71363e
AS
4039fi
4040fi
1c710c3c
DJ
4041ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042if test -n "$ac_ct_CC"; then
5213506e
RW
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4045else
5213506e
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
af71363e 4048fi
0b0dc272 4049
5213506e 4050
1c710c3c
DJ
4051 test -n "$ac_ct_CC" && break
4052done
4053
5213506e
RW
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058yes:)
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061ac_tool_warned=yes ;;
4062esac
4063 CC=$ac_ct_CC
4064 fi
1c710c3c
DJ
4065fi
4066
4067fi
4068
4069
5213506e
RW
4070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error "no acceptable C compiler found in \$PATH
4073See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4074
4075# Provide some information about the compiler.
5213506e
RW
4076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077set X $ac_compile
4078ac_compiler=$2
4079for ac_option in --version -v -V -qversion; do
4080 { { ac_try="$ac_compiler $ac_option >&5"
4081case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086$as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4088 ac_status=$?
5213506e
RW
4089 if test -s conftest.err; then
4090 sed '10a\
4091... rest of stderr output deleted ...
4092 10q' conftest.err >conftest.er1
4093 cat conftest.er1 >&5
4094 rm -f conftest.er1 conftest.err
4095 fi
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098done
1c710c3c 4099
5213506e 4100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111ac_clean_files_save=$ac_clean_files
5213506e 4112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4113# Try to create an executable without -o first, disregard a.out.
4114# It will help us diagnose broken compilers, and finding out an intuition
4115# of exeext.
5213506e
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117$as_echo_n "checking for C compiler default output file name... " >&6; }
4118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4119
4120# The possible output files:
4121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122
4123ac_rmfiles=
4124for ac_file in $ac_files
4125do
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4129 esac
4130done
4131rm -f $ac_rmfiles
4132
4133if { { ac_try="$ac_link_default"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139$as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link_default") 2>&5
1c710c3c 4141 ac_status=$?
5213506e
RW
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146# in a Makefile. We should not override ac_cv_exeext if it was cached,
4147# so that the user can short-circuit this test for compilers unknown to
4148# Autoconf.
4149for ac_file in $ac_files ''
1c710c3c
DJ
4150do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
5213506e 4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4154 ;;
4155 [ab].out )
4156 # We found the default executable, but exeext='' is most
4157 # certainly right.
4158 break;;
4159 *.* )
5213506e
RW
4160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4161 then :; else
4162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163 fi
4164 # We set ac_cv_exeext here because the later test for it is not
4165 # safe: cross compilers may not add the suffix if given an `-o'
4166 # argument, so we may need to know it at that point already.
4167 # Even if this section looks crufty: it has the advantage of
4168 # actually working.
1c710c3c
DJ
4169 break;;
4170 * )
4171 break;;
4172 esac
4173done
5213506e
RW
4174test "$ac_cv_exeext" = no && ac_cv_exeext=
4175
1c710c3c 4176else
5213506e
RW
4177 ac_file=''
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180$as_echo "$ac_file" >&6; }
4181if test -z "$ac_file"; then :
4182 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
5213506e
RW
4185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187{ as_fn_set_status 77
4188as_fn_error "C compiler cannot create executables
4189See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4190fi
1c710c3c 4191ac_exeext=$ac_cv_exeext
1c710c3c 4192
5213506e 4193# Check that the compiler produces executables we can run. If not, either
1c710c3c 4194# the compiler is broken, or we cross compile.
5213506e
RW
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4197# If not cross compiling, check that we can run a simple program.
4198if test "$cross_compiling" != yes; then
4199 if { ac_try='./$ac_file'
5213506e
RW
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205$as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
1c710c3c 4207 ac_status=$?
5213506e
RW
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
1c710c3c
DJ
4210 cross_compiling=no
4211 else
4212 if test "$cross_compiling" = maybe; then
4213 cross_compiling=yes
4214 else
5213506e
RW
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217as_fn_error "cannot run C compiled programs.
1c710c3c 4218If you meant to cross compile, use \`--host'.
5213506e 4219See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4220 fi
4221 fi
4222fi
5213506e
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224$as_echo "yes" >&6; }
1c710c3c 4225
5213506e 4226rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4227ac_clean_files=$ac_clean_files_save
5213506e 4228# Check that the compiler produces executables we can run. If not, either
1c710c3c 4229# the compiler is broken, or we cross compile.
5213506e
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231$as_echo_n "checking whether we are cross compiling... " >&6; }
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233$as_echo "$cross_compiling" >&6; }
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236$as_echo_n "checking for suffix of executables... " >&6; }
4237if { { ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
1c710c3c 4245 ac_status=$?
5213506e
RW
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; then :
1c710c3c
DJ
4248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4250# work properly (i.e., refer to `conftest.exe'), while it won't with
4251# `rm'.
4252for ac_file in conftest.exe conftest conftest.*; do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
5213506e 4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4257 break;;
4258 * ) break;;
4259 esac
4260done
af71363e 4261else
5213506e
RW
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264as_fn_error "cannot compute suffix of executables: cannot compile and link
4265See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4266fi
1c710c3c 4267rm -f conftest$ac_cv_exeext
5213506e
RW
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4270
4271rm -f conftest.$ac_ext
4272EXEEXT=$ac_cv_exeext
4273ac_exeext=$EXEEXT
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275$as_echo_n "checking for suffix of object files... " >&6; }
4276if test "${ac_cv_objext+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
1c710c3c 4278else
5213506e 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4280/* end confdefs.h. */
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.o conftest.obj
5213506e
RW
4291if { { ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297$as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
1c710c3c 4299 ac_status=$?
5213506e
RW
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
1c710c3c 4304 case $ac_file in
5213506e 4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309done
4310else
5213506e 4311 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
5213506e
RW
4314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error "cannot compute suffix of object files: cannot compile
4317See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4318fi
1c710c3c
DJ
4319rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320fi
5213506e
RW
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4323OBJEXT=$ac_cv_objext
4324ac_objext=$OBJEXT
5213506e
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
1c710c3c 4329else
5213506e 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4331/* end confdefs.h. */
4332
4333int
4334main ()
4335{
4336#ifndef __GNUC__
4337 choke me
4338#endif
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
5213506e 4344if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4345 ac_compiler_gnu=yes
4346else
5213506e 4347 ac_compiler_gnu=no
1c710c3c 4348fi
5213506e 4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4350ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352fi
5213506e
RW
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357else
4358 GCC=
4359fi
1c710c3c
DJ
4360ac_test_CFLAGS=${CFLAGS+set}
4361ac_save_CFLAGS=$CFLAGS
5213506e
RW
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363$as_echo_n "checking whether $CC accepts -g... " >&6; }
4364if test "${ac_cv_prog_cc_g+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4372/* end confdefs.h. */
4373
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
5213506e 4382if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4383 ac_cv_prog_cc_g=yes
4384else
5213506e
RW
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397if ac_fn_c_try_compile "$LINENO"; then :
4398
4399else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
af71363e 4404
5213506e
RW
4405int
4406main ()
4407{
4408
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4417fi
5213506e 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4419fi
5213506e
RW
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4425if test "$ac_test_CFLAGS" = set; then
1c710c3c 4426 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4427elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4432 fi
4433else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4438 fi
4439fi
5213506e
RW
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
1c710c3c 4444else
5213506e 4445 ac_cv_prog_cc_c89=no
1c710c3c 4446ac_save_CC=$CC
5213506e 4447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4448/* end confdefs.h. */
4449#include <stdarg.h>
4450#include <stdio.h>
4451#include <sys/types.h>
4452#include <sys/stat.h>
4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454struct buf { int x; };
4455FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456static char *e (p, i)
4457 char **p;
4458 int i;
4459{
4460 return p[i];
4461}
4462static char *f (char * (*g) (char **, int), char **p, ...)
4463{
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4470}
4471
4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
5213506e 4475 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4478 that's true only with -std. */
1c710c3c
DJ
4479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
5213506e
RW
4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483#define FOO(x) 'x'
4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
1c710c3c
DJ
4486int test (int i, double x);
4487struct s1 {int (*f) (int a);};
4488struct s2 {int (*f) (double a);};
4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490int argc;
4491char **argv;
4492int
4493main ()
4494{
4495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4496 ;
4497 return 0;
4498}
4499_ACEOF
5213506e
RW
4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4502do
4503 CC="$ac_save_CC $ac_arg"
5213506e
RW
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4506fi
5213506e
RW
4507rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4509done
5213506e 4510rm -f conftest.$ac_ext
1c710c3c
DJ
4511CC=$ac_save_CC
4512
4513fi
5213506e
RW
4514# AC_CACHE_VAL
4515case "x$ac_cv_prog_cc_c89" in
4516 x)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518$as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521$as_echo "unsupported" >&6; } ;;
1c710c3c 4522 *)
5213506e
RW
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4526esac
5213506e 4527if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4528
2aeb72e9
DD
4529fi
4530
2aeb72e9
DD
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
5213506e 4537ac_ext=cpp
2aeb72e9
DD
4538ac_cpp='$CXXCPP $CPPFLAGS'
4539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4542if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4544 CXX=$CCC
4545 else
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4548 do
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
4553if test "${ac_cv_prog_CXX+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4555else
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
5213506e
RW
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4568 break 2
4569 fi
4570done
5213506e
RW
4571 done
4572IFS=$as_save_IFS
55ffb5ed 4573
c3a86da9
DJ
4574fi
4575fi
4576CXX=$ac_cv_prog_CXX
4577if test -n "$CXX"; then
5213506e
RW
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579$as_echo "$CXX" >&6; }
c3a86da9 4580else
5213506e
RW
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
c3a86da9
DJ
4583fi
4584
5213506e 4585
c3a86da9
DJ
4586 test -n "$CXX" && break
4587 done
4588fi
4589if test -z "$CXX"; then
4590 ac_ct_CXX=$CXX
5213506e 4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4592do
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
5213506e
RW
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4599else
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
5213506e
RW
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4612 break 2
4613 fi
4614done
5213506e
RW
4615 done
4616IFS=$as_save_IFS
c3a86da9
DJ
4617
4618fi
4619fi
4620ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621if test -n "$ac_ct_CXX"; then
5213506e
RW
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4624else
5213506e
RW
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
c3a86da9
DJ
4627fi
4628
5213506e 4629
c3a86da9
DJ
4630 test -n "$ac_ct_CXX" && break
4631done
c3a86da9 4632
5213506e
RW
4633 if test "x$ac_ct_CXX" = x; then
4634 CXX="g++"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637yes:)
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
4642 CXX=$ac_ct_CXX
4643 fi
c3a86da9
DJ
4644fi
4645
5213506e
RW
4646 fi
4647fi
c3a86da9 4648# Provide some information about the compiler.
5213506e
RW
4649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650set X $ac_compile
4651ac_compiler=$2
4652for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
4658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4661 ac_status=$?
5213506e
RW
4662 if test -s conftest.err; then
4663 sed '10a\
4664... rest of stderr output deleted ...
4665 10q' conftest.err >conftest.er1
4666 cat conftest.er1 >&5
4667 rm -f conftest.er1 conftest.err
4668 fi
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671done
c3a86da9 4672
5213506e
RW
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
c3a86da9 4677else
5213506e 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684#ifndef __GNUC__
4685 choke me
4686#endif
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
5213506e 4692if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4693 ac_compiler_gnu=yes
4694else
5213506e 4695 ac_compiler_gnu=no
c3a86da9 4696fi
5213506e 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700fi
5213506e
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703if test $ac_compiler_gnu = yes; then
4704 GXX=yes
4705else
4706 GXX=
4707fi
c3a86da9
DJ
4708ac_test_CXXFLAGS=${CXXFLAGS+set}
4709ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag=yes
4717 ac_cv_prog_cxx_g=no
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
5213506e 4730if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4731 ac_cv_prog_cxx_g=yes
4732else
5213506e
RW
4733 CXXFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4735/* end confdefs.h. */
5213506e 4736
c3a86da9
DJ
4737int
4738main ()
4739{
5213506e 4740
c3a86da9
DJ
4741 ;
4742 return 0;
4743}
4744_ACEOF
5213506e 4745if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4746
5213506e
RW
4747else
4748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4751/* end confdefs.h. */
5213506e 4752
c3a86da9
DJ
4753int
4754main ()
4755{
5213506e 4756
c3a86da9
DJ
4757 ;
4758 return 0;
4759}
4760_ACEOF
5213506e
RW
4761if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
11a67599 4763fi
5213506e
RW
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772$as_echo "$ac_cv_prog_cxx_g" >&6; }
4773if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS=$ac_save_CXXFLAGS
4775elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-g -O2"
4778 else
4779 CXXFLAGS="-g"
4780 fi
4781else
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-O2"
4784 else
4785 CXXFLAGS=
4786 fi
c3a86da9 4787fi
c3a86da9
DJ
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795# We must set the default linker to the linker used by gcc for the correct
4796# operation of libtool. If LD is not defined and we are using gcc, try to
4797# set the LD default to the ld used by gcc.
4798if test -z "$LD"; then
4799 if test "$GCC" = yes; then
4800 case $build in
4801 *-*-mingw*)
4802 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4803 *)
4804 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4805 esac
4806 case $gcc_prog_ld in
4807 # Accept absolute paths.
4808 [\\/]* | [A-Za-z]:[\\/]*)
4809 LD="$gcc_prog_ld" ;;
4810 esac
4811 fi
23f6b2f9
PB
4812fi
4813
23f6b2f9
PB
4814
4815
55ffb5ed 4816
1c710c3c
DJ
4817if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4819set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4824else
4825 if test -n "$GNATBIND"; then
4826 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4827else
1c710c3c
DJ
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
5213506e
RW
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4835 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4837 break 2
4838 fi
4839done
5213506e
RW
4840 done
4841IFS=$as_save_IFS
1c710c3c 4842
55ffb5ed
NN
4843fi
4844fi
1c710c3c 4845GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4846if test -n "$GNATBIND"; then
5213506e
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4848$as_echo "$GNATBIND" >&6; }
55ffb5ed 4849else
5213506e
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
55ffb5ed
NN
4852fi
4853
5213506e 4854
1c710c3c 4855fi
55ffb5ed 4856if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4857 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4858 # Extract the first word of "gnatbind", so it can be a program name with args.
4859set dummy gnatbind; ac_word=$2
5213506e
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
55ffb5ed 4864else
1c710c3c
DJ
4865 if test -n "$ac_ct_GNATBIND"; then
4866 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4867else
1c710c3c
DJ
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
5213506e
RW
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4875 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4877 break 2
4878 fi
4879done
5213506e
RW
4880 done
4881IFS=$as_save_IFS
1c710c3c 4882
55ffb5ed
NN
4883fi
4884fi
1c710c3c
DJ
4885ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4886if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4888$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4889else
5213506e
RW
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
55ffb5ed
NN
4892fi
4893
5213506e
RW
4894 if test "x$ac_ct_GNATBIND" = x; then
4895 GNATBIND="no"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903 GNATBIND=$ac_ct_GNATBIND
4904 fi
55ffb5ed 4905else
1c710c3c 4906 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4907fi
4908
1c710c3c
DJ
4909if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4911set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
5305be7e
RG
4916else
4917 if test -n "$GNATMAKE"; then
4918 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4919else
1c710c3c
DJ
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
5213506e
RW
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4927 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4929 break 2
4930 fi
4931done
5213506e
RW
4932 done
4933IFS=$as_save_IFS
1c710c3c 4934
5305be7e
RG
4935fi
4936fi
1c710c3c 4937GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4938if test -n "$GNATMAKE"; then
5213506e
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4940$as_echo "$GNATMAKE" >&6; }
5305be7e 4941else
5213506e
RW
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
5305be7e
RG
4944fi
4945
5213506e 4946
1c710c3c 4947fi
5305be7e 4948if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4949 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4950 # Extract the first word of "gnatmake", so it can be a program name with args.
4951set dummy gnatmake; ac_word=$2
5213506e
RW
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
5305be7e 4956else
1c710c3c
DJ
4957 if test -n "$ac_ct_GNATMAKE"; then
4958 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4959else
1c710c3c
DJ
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
5213506e
RW
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4967 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4969 break 2
4970 fi
4971done
5213506e
RW
4972 done
4973IFS=$as_save_IFS
1c710c3c 4974
5305be7e
RG
4975fi
4976fi
1c710c3c
DJ
4977ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4978if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4980$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4981else
5213506e
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
5305be7e
RG
4984fi
4985
5213506e
RW
4986 if test "x$ac_ct_GNATMAKE" = x; then
4987 GNATMAKE="no"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 GNATMAKE=$ac_ct_GNATMAKE
4996 fi
5305be7e 4997else
1c710c3c 4998 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4999fi
5000
5213506e
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5002$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5003if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5005else
5006 cat >conftest.adb <<EOF
5007procedure conftest is begin null; end conftest;
5008EOF
5009acx_cv_cc_gcc_supports_ada=no
5010# There is a bug in old released versions of GCC which causes the
5011# driver to exit successfully when the appropriate language module
5012# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5013# Therefore we must check for the error message as well as an
5014# unsuccessful exit.
1db673ca
RO
5015# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5016# given a .adb file, but produce no object file. So we must check
5017# if an object file was really produced to guard against this.
55ffb5ed 5018errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5019if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5020 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5021fi
5022rm -f conftest.*
5023fi
5213506e
RW
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5025$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5026
7cb62ef1 5027if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5028 have_gnat=yes
5029else
5030 have_gnat=no
5031fi
5032
5213506e
RW
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5034$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5035if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
a76494aa
PB
5037else
5038 echo abfoo >t1
5039 echo cdfoo >t2
5040 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5041 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5042 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5043 :
5044 else
5045 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5046 fi
5047 fi
a76494aa
PB
5048 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5049 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5050 :
a76494aa
PB
5051 else
5052 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5053 fi
5054 fi
5055 rm t1 t2
5056
5057fi
5213506e
RW
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5059$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5060do_compare="$gcc_cv_prog_cmp_skip"
5061
5062
55ffb5ed 5063
ff3ac0f4
ILT
5064# Check whether --enable-bootstrap was given.
5065if test "${enable_bootstrap+set}" = set; then :
5066 enableval=$enable_bootstrap;
5067else
5068 enable_bootstrap=default
5069fi
5070
5071
5072# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5073if test -r $srcdir/gcc/configure; then
5074 have_compiler=yes
5075else
5076 have_compiler=no
5077fi
ff3ac0f4
ILT
5078
5079case "$have_compiler:$host:$target:$enable_bootstrap" in
5080 *:*:*:no) ;;
5081
5082 # Default behavior. Enable bootstrap if we have a compiler
5083 # and we are in a native configuration.
5084 yes:$build:$build:default)
5085 enable_bootstrap=yes ;;
5086
5087 *:*:*:default)
5088 enable_bootstrap=no ;;
5089
5090 # We have a compiler and we are in a native configuration, bootstrap is ok
5091 yes:$build:$build:yes)
5092 ;;
5093
5094 # Other configurations, but we have a compiler. Assume the user knows
5095 # what he's doing.
5096 yes:*:*:yes)
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5098$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5099 ;;
5100
5101 # No compiler: if they passed --enable-bootstrap explicitly, fail
5102 no:*:*:yes)
5103 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5104
5105 # Fail if wrong command line
5106 *)
5107 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5108 ;;
5109esac
5110
00020c16 5111# See if we are building gcc with C++.
5213506e
RW
5112# Check whether --enable-build-with-cxx was given.
5113if test "${enable_build_with_cxx+set}" = set; then :
5114 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5115else
5116 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5117fi
5118
00020c16 5119
78767fd9
ILT
5120# Build stage1 with C and build stages 2 and 3 with C++.
5121# Check whether --enable-build-poststage1-with-cxx was given.
5122if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5123 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5124else
5125 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5126fi
5127
5128
592c90ff
KG
5129# Used for setting $lt_cv_objdir
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131$as_echo_n "checking for objdir... " >&6; }
5132if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 rm -f .libs 2>/dev/null
5136mkdir .libs 2>/dev/null
5137if test -d .libs; then
5138 lt_cv_objdir=.libs
5139else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142fi
5143rmdir .libs 2>/dev/null
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146$as_echo "$lt_cv_objdir" >&6; }
5147objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LT_OBJDIR "$lt_cv_objdir/"
5155_ACEOF
5156
5157
5158
acd26225 5159# Check for GMP, MPFR and MPC
3a5729ea 5160gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5161gmpinc=
e69bf64b 5162have_gmp=no
acd26225
KG
5163
5164# Specify a location for mpc
5165# check for this first so it ends up on the link line before mpfr.
5166
5213506e
RW
5167# Check whether --with-mpc was given.
5168if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170fi
acd26225 5171
acd26225 5172
9965e3cd 5173# Check whether --with-mpc-include was given.
5213506e
RW
5174if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176fi
acd26225 5177
acd26225 5178
9965e3cd 5179# Check whether --with-mpc-lib was given.
5213506e
RW
5180if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182fi
acd26225 5183
acd26225
KG
5184
5185if test "x$with_mpc" != x; then
3a5729ea
KG
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5188fi
5189if test "x$with_mpc_include" != x; then
3a5729ea 5190 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5191fi
5192if test "x$with_mpc_lib" != x; then
3a5729ea 5193 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5194fi
5195if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
3a5729ea 5202 have_gmp=yes
acd26225 5203fi
e69bf64b 5204
bebf829d
PB
5205# Specify a location for mpfr
5206# check for this first so it ends up on the link line before gmp.
1c710c3c 5207
5213506e
RW
5208# Check whether --with-mpfr-dir was given.
5209if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212fi
5213
bebf829d
PB
5214
5215
5213506e
RW
5216# Check whether --with-mpfr was given.
5217if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219fi
1c710c3c 5220
bebf829d 5221
9965e3cd 5222# Check whether --with-mpfr-include was given.
5213506e
RW
5223if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225fi
1c710c3c 5226
8a877c9c 5227
9965e3cd 5228# Check whether --with-mpfr-lib was given.
5213506e
RW
5229if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231fi
8a877c9c 5232
bebf829d
PB
5233
5234if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5236 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5237fi
8a877c9c 5238if test "x$with_mpfr_include" != x; then
3a5729ea 5239 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5240fi
5241if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243fi
e69bf64b 5244if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5245 # MPFR v3.1.0 moved the sources into a src sub-directory.
5246 if test -d ${srcdir}/mpfr/src; then
5247 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5248 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5249 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5250 else
5251 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5252 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5253 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5254 fi
e69bf64b
PB
5255 # Do not test the mpfr version. Assume that it is sufficient, since
5256 # it is in the source tree, and the library has not been built yet
5257 # but it would be included on the link line in the version check below
5258 # hence making the test fail.
5259 have_gmp=yes
5260fi
bebf829d 5261
6de9cd9a 5262# Specify a location for gmp
1c710c3c 5263
5213506e
RW
5264# Check whether --with-gmp-dir was given.
5265if test "${with_gmp_dir+set}" = set; then :
5266 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5267Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5268fi
5269
6de9cd9a 5270
6de9cd9a 5271
5213506e
RW
5272# Check whether --with-gmp was given.
5273if test "${with_gmp+set}" = set; then :
5274 withval=$with_gmp;
5275fi
1c710c3c 5276
6de9cd9a 5277
9965e3cd 5278# Check whether --with-gmp-include was given.
5213506e
RW
5279if test "${with_gmp_include+set}" = set; then :
5280 withval=$with_gmp_include;
5281fi
1c710c3c 5282
8a877c9c 5283
9965e3cd 5284# Check whether --with-gmp-lib was given.
5213506e
RW
5285if test "${with_gmp_lib+set}" = set; then :
5286 withval=$with_gmp_lib;
5287fi
8a877c9c
KG
5288
5289
6de9cd9a 5290
bebf829d
PB
5291if test "x$with_gmp" != x; then
5292 gmplibs="-L$with_gmp/lib $gmplibs"
5293 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5294fi
8a877c9c
KG
5295if test "x$with_gmp_include" != x; then
5296 gmpinc="-I$with_gmp_include $gmpinc"
5297fi
5298if test "x$with_gmp_lib" != x; then
5299 gmplibs="-L$with_gmp_lib $gmplibs"
5300fi
e69bf64b 5301if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5302 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5303 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5304 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5305 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5306 # Do not test the gmp version. Assume that it is sufficient, since
5307 # it is in the source tree, and the library has not been built yet
5308 # but it would be included on the link line in the version check below
5309 # hence making the test fail.
5310 have_gmp=yes
5311fi
6de9cd9a 5312
d943d7c4 5313if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5314 have_gmp=yes
5315 saved_CFLAGS="$CFLAGS"
5316 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5317 # Check for the recommended and required versions of GMP.
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5319$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5320
5321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5322/* end confdefs.h. */
5323#include "gmp.h"
5324int
5325main ()
5326{
5327
5328 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5329 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5330 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5331 choke me
5332 #endif
5333
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5340/* end confdefs.h. */
362c6d2f 5341#include <gmp.h>
1c710c3c
DJ
5342int
5343main ()
5344{
6de9cd9a 5345
362c6d2f
KG
5346 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5347 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5348 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5349 choke me
5350 #endif
1c710c3c
DJ
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5213506e
RW
5356if ac_fn_c_try_compile "$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358$as_echo "yes" >&6; }
362c6d2f
KG
5359else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5361$as_echo "buggy but acceptable" >&6; }
5362fi
5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5364else
5213506e
RW
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5367fi
5213506e 5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5369
acd26225 5370 # If we have GMP, check the MPFR version.
e69bf64b 5371 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5372 # Check for the recommended and required versions of MPFR.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5374$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5376/* end confdefs.h. */
70ec446f 5377#include <gmp.h>
e69bf64b 5378 #include <mpfr.h>
1c710c3c
DJ
5379int
5380main ()
5381{
e48d66a9 5382
f7d6bc01 5383 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5384 choke me
5385 #endif
1c710c3c
DJ
5386
5387 ;
5388 return 0;
5389}
5390_ACEOF
5213506e
RW
5391if ac_fn_c_try_compile "$LINENO"; then :
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5393/* end confdefs.h. */
a3993f33 5394#include <gmp.h>
e69bf64b 5395 #include <mpfr.h>
1c710c3c
DJ
5396int
5397main ()
5398{
a3993f33 5399
362c6d2f 5400 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5401 choke me
5402 #endif
acd26225
KG
5403
5404 ;
5405 return 0;
5406}
5407_ACEOF
5213506e
RW
5408if ac_fn_c_try_compile "$LINENO"; then :
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410$as_echo "yes" >&6; }
acd26225 5411else
5213506e
RW
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5413$as_echo "buggy but acceptable" >&6; }
acd26225 5414fi
5213506e 5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5416else
5213506e
RW
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }; have_gmp=no
acd26225 5419fi
5213506e 5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5421 fi
5422
5423 # Check for the MPC header version.
3a5729ea 5424 if test x"$have_gmp" = xyes ; then
362c6d2f 5425 # Check for the recommended and required versions of MPC.
5213506e
RW
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5427$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5429/* end confdefs.h. */
5430#include <mpc.h>
5431int
5432main ()
5433{
5434
362c6d2f
KG
5435 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5436 choke me
5437 #endif
5438
5439 ;
5440 return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h. */
5446#include <mpc.h>
5447int
5448main ()
5449{
5450
5451 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5452 choke me
5453 #endif
5454
5455 ;
5456 return 0;
5457}
5458_ACEOF
5213506e
RW
5459if ac_fn_c_try_compile "$LINENO"; then :
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5461$as_echo "yes" >&6; }
362c6d2f
KG
5462else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5464$as_echo "buggy but acceptable" >&6; }
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5467else
5213506e 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5469$as_echo "no" >&6; }; have_gmp=no
acd26225 5470fi
5213506e 5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5472 fi
5473
5474 # Now check the MPFR library.
5475 if test x"$have_gmp" = xyes; then
5476 saved_LIBS="$LIBS"
5477 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5479$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5481/* end confdefs.h. */
3a5729ea 5482#include <mpc.h>
acd26225
KG
5483int
5484main ()
5485{
5486
5487 mpfr_t n;
5488 mpfr_t x;
3a5729ea 5489 mpc_t c;
acd26225
KG
5490 int t;
5491 mpfr_init (n);
5492 mpfr_init (x);
5493 mpfr_atan2 (n, n, x, GMP_RNDN);
5494 mpfr_erfc (n, x, GMP_RNDN);
5495 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5496 mpfr_clear(n);
5497 mpfr_clear(x);
5498 mpc_init2 (c, 53);
5499 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5500 mpc_cosh (c, c, MPC_RNDNN);
5501 mpc_pow (c, c, c, MPC_RNDNN);
5502 mpc_acosh (c, c, MPC_RNDNN);
5503 mpc_clear (c);
1c710c3c
DJ
5504
5505 ;
5506 return 0;
5507}
5508_ACEOF
5213506e
RW
5509if ac_fn_c_try_link "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511$as_echo "yes" >&6; }
1c710c3c 5512else
5213506e
RW
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5515fi
5213506e
RW
5516rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5518 LIBS="$saved_LIBS"
5519 fi
5520
e69bf64b 5521 CFLAGS="$saved_CFLAGS"
6de9cd9a 5522
362c6d2f
KG
5523# The library versions listed in the error message below should match
5524# the HARD-minimums enforced above.
e69bf64b 5525 if test x$have_gmp != xyes; then
f7d6bc01 5526 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5527Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5528their locations. Source code for these libraries can be found at
5529their respective hosting sites as well as at
5530ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5531http://gcc.gnu.org/install/prerequisites.html for additional info. If
5532you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5533make sure that you have installed both the libraries and the header
5534files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5535 fi
70ec446f
KG
5536fi
5537
acd26225
KG
5538# Flags needed for both GMP, MPFR and/or MPC.
5539
5540
6de9cd9a
DN
5541
5542
5543
9e3eba15 5544
f38095f3
JM
5545# Allow host libstdc++ to be specified for static linking with PPL.
5546
5213506e
RW
5547# Check whether --with-host-libstdcxx was given.
5548if test "${with_host_libstdcxx+set}" = set; then :
5549 withval=$with_host_libstdcxx;
5550fi
f38095f3 5551
f38095f3
JM
5552
5553case $with_host_libstdcxx in
5554 no|yes)
5213506e 5555 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5556 ;;
5557esac
f8bf9252 5558
00020c16
ILT
5559# Linker flags to use for stage1 or when not boostrapping.
5560
5213506e
RW
5561# Check whether --with-stage1-ldflags was given.
5562if test "${with_stage1_ldflags+set}" = set; then :
5563 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5564 stage1_ldflags=
5565 else
5566 stage1_ldflags=$withval
5567 fi
5568else
5569 stage1_ldflags=
5213506e
RW
5570fi
5571
00020c16
ILT
5572
5573
5574# Libraries to use for stage1 or when not bootstrapping.
5575
5213506e
RW
5576# Check whether --with-stage1-libs was given.
5577if test "${with_stage1_libs+set}" = set; then :
5578 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5579 stage1_libs=
5580 else
5581 stage1_libs=$withval
5582 fi
5583else
5584 stage1_libs=$with_host_libstdcxx
5213506e
RW
5585fi
5586
00020c16
ILT
5587
5588
00020c16
ILT
5589# Libraries to use for stage2 and later builds. This defaults to the
5590# argument passed to --with-host-libstdcxx.
5591
5213506e
RW
5592# Check whether --with-boot-libs was given.
5593if test "${with_boot_libs+set}" = set; then :
5594 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5595 poststage1_libs=
5596 else
5597 poststage1_libs=$withval
5598 fi
5599else
00020c16 5600 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5601fi
5602
00020c16
ILT
5603
5604
ed2eaa9f
ILT
5605# Linker flags to use for stage2 and later builds.
5606
5607# Check whether --with-boot-ldflags was given.
5608if test "${with_boot_ldflags+set}" = set; then :
5609 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5610 poststage1_ldflags=
5611 else
5612 poststage1_ldflags=$withval
5613 fi
5614else
5615 poststage1_ldflags=
bec93d73
ILT
5616 # In stages 2 and 3, default to linking libstdc++ and libgcc
5617 # statically. But if the user explicitly specified the libraries to
5618 # use, trust that they are doing what they want.
5619 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5620 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5621 fi
5622fi
5623
5624
5625
33ad93b9 5626# Check for ISL
f8bf9252
SP
5627
5628
33ad93b9
RG
5629# Check whether --with-isl was given.
5630if test "${with_isl+set}" = set; then :
5631 withval=$with_isl;
5213506e 5632fi
f8bf9252 5633
f8bf9252 5634
33ad93b9
RG
5635# Check whether --with-isl-include was given.
5636if test "${with_isl_include+set}" = set; then :
5637 withval=$with_isl_include;
5213506e
RW
5638fi
5639
f8bf9252 5640
33ad93b9
RG
5641# Check whether --with-isl-lib was given.
5642if test "${with_isl_lib+set}" = set; then :
5643 withval=$with_isl_lib;
5213506e 5644fi
f8bf9252 5645
f8bf9252 5646
33ad93b9
RG
5647 # Check whether --enable-isl-version-check was given.
5648if test "${enable_isl_version_check+set}" = set; then :
5649 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5650else
5651 ENABLE_ISL_CHECK=yes
7d32a440
SP
5652fi
5653
5654
33ad93b9
RG
5655 # Initialize isllibs and islinc.
5656 case $with_isl in
5657 no)
5658 isllibs=
5659 islinc=
5660 ;;
5661 "" | yes)
5662 ;;
5663 *)
5664 isllibs="-L$with_isl/lib"
5665 islinc="-I$with_isl/include"
5666 ;;
5667 esac
5668 if test "x${with_isl_include}" != x ; then
5669 islinc="-I$with_isl_include"
5670 fi
5671 if test "x${with_isl_lib}" != x; then
5672 isllibs="-L$with_isl_lib"
5673 fi
5674 if test "x${islinc}" = x && test "x${isllibs}" = x \
5675 && test -d ${srcdir}/isl; then
5676 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5677 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5678 ENABLE_ISL_CHECK=no
5679 fi
7d32a440 5680
33ad93b9 5681 isllibs="${isllibs} -lisl"
7d32a440 5682
7d32a440 5683
f8bf9252 5684
33ad93b9
RG
5685
5686
5687if test "x$with_isl" != "xno"; then
5688
5689 if test "${ENABLE_ISL_CHECK}" = yes ; then
5690 _isl_saved_CFLAGS=$CFLAGS
5691 _isl_saved_LDFLAGS=$LDFLAGS
5692
5693 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5694 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} -lisl"
5695 echo $CFLAGS
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5698$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5699if test "${gcc_cv_isl+set}" = set; then :
7d32a440
SP
5700 $as_echo_n "(cached) " >&6
5701else
33ad93b9
RG
5702 if test "$cross_compiling" = yes; then :
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705as_fn_error "cannot run test program while cross compiling
5706See \`config.log' for more details." "$LINENO" 5; }
5707else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5709/* end confdefs.h. */
33ad93b9
RG
5710#include <isl/version.h>
5711 #include <string.h>
7d32a440
SP
5712int
5713main ()
5714{
33ad93b9
RG
5715int main()
5716 {
5717 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5718 return 1;
5719 return 0;
5720 }
7d32a440
SP
5721 ;
5722 return 0;
5723}
5724_ACEOF
33ad93b9
RG
5725if ac_fn_c_try_run "$LINENO"; then :
5726 gcc_cv_isl=yes
d789184e 5727else
33ad93b9 5728 gcc_cv_isl=no
7d32a440 5729fi
33ad93b9
RG
5730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5731 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5732fi
33ad93b9 5733
5213506e 5734fi
33ad93b9
RG
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5736$as_echo "$gcc_cv_isl" >&6; }
5213506e 5737
33ad93b9
RG
5738 CFLAGS=$_isl_saved_CFLAGS
5739 LDFLAGS=$_isl_saved_LDFLAGS
7d32a440 5740 fi
f8bf9252 5741
7d32a440 5742
f8bf9252 5743
f8bf9252 5744
33ad93b9
RG
5745
5746
5747
5748 if test "x${with_isl}" = xno; then
5749 graphite_requested=no
5750 elif test "x${with_isl}" != x \
5751 || test "x${with_isl_include}" != x \
5752 || test "x${with_isl_lib}" != x ; then
5753 graphite_requested=yes
5754 else
5755 graphite_requested=no
7d32a440 5756 fi
d789184e 5757
d789184e
SP
5758
5759
33ad93b9
RG
5760 if test "${gcc_cv_isl}" = no ; then
5761 isllibs=
5762 islinc=
5763 fi
5764
5765 if test "${graphite_requested}" = yes \
5766 && test "x${isllibs}" = x \
5767 && test "x${islinc}" = x ; then
f8bf9252 5768
33ad93b9
RG
5769 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5770 fi
f8bf9252 5771
d32ef397 5772
33ad93b9
RG
5773fi
5774
5775# Check for CLOOG
d789184e
SP
5776
5777
5213506e
RW
5778# Check whether --with-cloog was given.
5779if test "${with_cloog+set}" = set; then :
5780 withval=$with_cloog;
5213506e
RW
5781fi
5782
d789184e 5783
9965e3cd 5784# Check whether --with-cloog-include was given.
5213506e
RW
5785if test "${with_cloog_include+set}" = set; then :
5786 withval=$with_cloog_include;
5787fi
d789184e 5788
d789184e 5789
9965e3cd 5790# Check whether --with-cloog-lib was given.
5213506e
RW
5791if test "${with_cloog_lib+set}" = set; then :
5792 withval=$with_cloog_lib;
5793fi
d789184e 5794
d789184e 5795
d32ef397
AS
5796 # Check whether --enable-cloog-version-check was given.
5797if test "${enable_cloog_version_check+set}" = set; then :
5798 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5799else
5800 ENABLE_CLOOG_CHECK=yes
5801fi
5802
5803
5804 # Initialize clooglibs and clooginc.
5805 case $with_cloog in
5806 no)
5807 clooglibs=
5808 clooginc=
5809 ;;
5810 "" | yes)
5811 ;;
5812 *)
5813 clooglibs="-L$with_cloog/lib"
5814 clooginc="-I$with_cloog/include"
5815 ;;
5816 esac
5817 if test "x${with_cloog_include}" != x ; then
5818 clooginc="-I$with_cloog_include"
5819 fi
5820 if test "x${with_cloog_lib}" != x; then
5821 clooglibs="-L$with_cloog_lib"
5822 fi
33ad93b9
RG
5823 if test "x${clooginc}" == x && test "x${clooglibs}" == x \
5824 && test -d ${srcdir}/cloog; then
5825 echo FooBar
5826 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5827 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
ab4173cf 5828 fi
ad0abd3c 5829
33ad93b9
RG
5830 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5831 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
d32ef397
AS
5832
5833
d32ef397 5834
d32ef397
AS
5835
5836
33ad93b9 5837if test "x$with_cloog" != "xno"; then
d32ef397
AS
5838
5839
5840
5841 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5842 _cloog_saved_CFLAGS=$CFLAGS
5843 _cloog_saved_LDFLAGS=$LDFLAGS
5844
33ad93b9
RG
5845 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5846 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 5847
6886e444
RG
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5849$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5850if test "${gcc_cv_cloog+set}" = set; then :
d32ef397
AS
5851 $as_echo_n "(cached) " >&6
5852else
5213506e 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 5854/* end confdefs.h. */
33ad93b9 5855#include "cloog/version.h"
f8bf9252
SP
5856int
5857main ()
5858{
d32ef397 5859#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
5860 || CLOOG_VERSION_MINOR != 17 \
5861 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
5862 choke me
5863 #endif
f8bf9252
SP
5864 ;
5865 return 0;
5866}
5867_ACEOF
0333b9a6 5868if ac_fn_c_try_compile "$LINENO"; then :
6886e444 5869 gcc_cv_cloog=yes
f8bf9252 5870else
6886e444 5871 gcc_cv_cloog=no
f8bf9252 5872fi
5213506e 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5874fi
6886e444
RG
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5876$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
5877
5878 CFLAGS=$_cloog_saved_CFLAGS
5879 LDFLAGS=$_cloog_saved_LDFLAGS
5880 fi
f8bf9252 5881
f8bf9252
SP
5882
5883
5884
d32ef397
AS
5885
5886
5887
6be7b668
JJ
5888 if test "x${with_cloog}" = xno; then
5889 graphite_requested=no
5890 elif test "x${with_cloog}" != x \
d32ef397
AS
5891 || test "x${with_cloog_include}" != x \
5892 || test "x${with_cloog_lib}" != x ; then
5893 graphite_requested=yes
5894 else
5895 graphite_requested=no
5896 fi
5897
5898
5899
6886e444 5900 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
5901 clooglibs=
5902 clooginc=
5903 fi
5904
5905 if test "${graphite_requested}" = yes \
5906 && test "x${clooglibs}" = x \
5907 && test "x${clooginc}" = x ; then
5908
ab4173cf 5909 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
5910 fi
5911
5912
5913fi
5914
d7f09764
DN
5915# Check for LTO support.
5916# Check whether --enable-lto was given.
5917if test "${enable_lto+set}" = set; then :
5918 enableval=$enable_lto; enable_lto=$enableval
5919else
5920 enable_lto=yes; default_enable_lto=yes
5921fi
5922
5923
7413962d 5924
9a02962b
DK
5925
5926
5927target_elf=no
5928case $target in
5929 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 5930 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
5931 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5932 target_elf=no
5933 ;;
5934 *)
5935 target_elf=yes
5936 ;;
5937esac
5938
5939if test $target_elf = yes; then :
48215350
DK
5940 # ELF platforms build the lto-plugin always.
5941 build_lto_plugin=yes
9a02962b 5942
9a02962b
DK
5943else
5944 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 5945 case $target in
2cd815e7 5946 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 5947 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
5948 *) enable_lto=no ;;
5949 esac
9a02962b 5950 else
db50fe7d
IS
5951 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5952 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
5953 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5954 # warn during gcc/ subconfigure; unless you're bootstrapping with
5955 # -flto it won't be needed until after installation anyway.
5956 case $target in
1cd0b716 5957 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
5958 *) if test x"$enable_lto" = x"yes"; then
5959 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5960 fi
5961 ;;
5962 esac
5963 fi
1cd0b716 5964 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 5965 # Build it unless LTO was explicitly disabled.
1cd0b716 5966 case $target in
48215350 5967 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
5968 *) ;;
5969 esac
48215350 5970
9a02962b
DK
5971fi
5972
d7f09764 5973
f8bf9252 5974
1e0f07d3 5975# By default, C is the only stage 1 language.
e1888513 5976stage1_languages=,c,
2805b53a 5977
00020c16 5978# Target libraries that we bootstrap.
ad1e5170 5979bootstrap_target_libs=,target-libgcc,
00020c16 5980
55ffb5ed
NN
5981# Figure out what language subdirectories are present.
5982# Look if the user specified --enable-languages="..."; if not, use
5983# the environment variable $LANGUAGES if defined. $LANGUAGES might
5984# go away some day.
5985# NB: embedded tabs in this IF block -- do not untabify
5986if test -d ${srcdir}/gcc; then
5987 if test x"${enable_languages+set}" != xset; then
5988 if test x"${LANGUAGES+set}" = xset; then
5989 enable_languages="${LANGUAGES}"
5990 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5991 else
5992 enable_languages=all
5993 fi
5994 else
5995 if test x"${enable_languages}" = x ||
5996 test x"${enable_languages}" = xyes;
5997 then
5998 echo configure.in: --enable-languages needs at least one language argument 1>&2
5999 exit 1
6000 fi
6001 fi
6002 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6003
7f26dfa3
FXC
6004 # 'f95' is the old name for the 'fortran' language. We issue a warning
6005 # and make the substitution.
6006 case ,${enable_languages}, in
6007 *,f95,*)
6008 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6009 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6010 ;;
6011 esac
6012
ff3ac0f4
ILT
6013 # If bootstrapping, then using --enable-build-with-cxx or
6014 # --enable-build-poststage1-with-cxx requires enabling C++.
6015 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6016 *,c++,*:*:*) ;;
6017 *:*,yes,*:yes)
6018 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6019 enable_languages="${enable_languages},c++"
6020 else
6021 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6022 fi
6023 ;;
6024 esac
6025
55ffb5ed
NN
6026 # First scan to see if an enabled language requires some other language.
6027 # We assume that a given config-lang.in will list all the language
6028 # front ends it requires, even if some are required indirectly.
6029 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6030 case ${lang_frag} in
6031 ..) ;;
6032 # The odd quoting in the next line works around
6033 # an apparent bug in bash 1.12 on linux.
6034 ${srcdir}/gcc/[*]/config-lang.in) ;;
6035 *)
69ecd18f
ILT
6036 # From the config-lang.in, get $language, $lang_requires, and
6037 # $lang_requires_boot_languages.
55ffb5ed
NN
6038 language=
6039 lang_requires=
69ecd18f 6040 lang_requires_boot_languages=
55ffb5ed 6041 . ${lang_frag}
69ecd18f 6042 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6043 case ,${enable_languages}, in
6044 *,$other,*) ;;
6045 *,all,*) ;;
6046 *,$language,*)
6047 echo " \`$other' language required by \`$language'; enabling" 1>&2
6048 enable_languages="${enable_languages},${other}"
6049 ;;
6050 esac
6051 done
69ecd18f
ILT
6052 for other in ${lang_requires_boot_languages} ; do
6053 if test "$other" != "c"; then
6054 case ,${enable_stage1_languages}, in
6055 *,$other,*) ;;
6056 *,all,*) ;;
6057 *)
6058 case ,${enable_languages}, in
6059 *,$language,*)
6060 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6061 enable_stage1_languages="$enable_stage1_languages,${other}"
6062 ;;
6063 esac
6064 ;;
6065 esac
6066 fi
6067 done
55ffb5ed
NN
6068 ;;
6069 esac
6070 done
6071
e1888513 6072 new_enable_languages=,c,
d7f09764
DN
6073
6074 # If LTO is enabled, add the LTO front end.
6075 extra_host_libiberty_configure_flags=
6076 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6077 case ,${enable_languages}, in
6078 *,lto,*) ;;
6079 *) enable_languages="${enable_languages},lto" ;;
6080 esac
1cd0b716 6081 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6082 configdirs="$configdirs lto-plugin"
6083 extra_host_libiberty_configure_flags=--enable-shared
6084 fi
6085 fi
6086
6087
55ffb5ed 6088 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6089 potential_languages=,c,
55ffb5ed 6090
4da3b0f8
ILT
6091 enabled_target_libs=
6092 disabled_target_libs=
6093
55ffb5ed
NN
6094 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6095 case ${lang_frag} in
6096 ..) ;;
6097 # The odd quoting in the next line works around
6098 # an apparent bug in bash 1.12 on linux.
6099 ${srcdir}/gcc/[*]/config-lang.in) ;;
6100 *)
1c710c3c 6101 # From the config-lang.in, get $language, $target_libs,
2805b53a 6102 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6103 language=
6104 target_libs=
6105 lang_dirs=
1546bb64 6106 subdir_requires=
e1888513
PB
6107 boot_language=no
6108 build_by_default=yes
55ffb5ed 6109 . ${lang_frag}
e1888513
PB
6110 if test x${language} = x; then
6111 echo "${lang_frag} doesn't set \$language." 1>&2
6112 exit 1
6113 fi
6114
78767fd9
ILT
6115 if test "$language" = "c++"; then
6116 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6117 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6118 boot_language=yes
6119 fi
00020c16
ILT
6120 fi
6121
e1888513
PB
6122 case ,${enable_languages}, in
6123 *,${language},*)
d4a10d0a
SB
6124 # Language was explicitly selected; include it
6125 # unless it is C, which is enabled by default.
6126 if test "$language" != "c"; then
6127 add_this_lang=yes
6128 fi
55ffb5ed 6129 ;;
e1888513
PB
6130 *,all,*)
6131 # 'all' was selected, select it if it is a default language
6132 add_this_lang=${build_by_default}
55ffb5ed
NN
6133 ;;
6134 *)
6135 add_this_lang=no
6136 ;;
6137 esac
6de9cd9a 6138
1546bb64 6139 # Disable languages that need other directories if these aren't available.
95695ad3 6140 for i in $subdir_requires; do
b6348cb3 6141 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6142 case ,${enable_languages}, in
6143 *,${language},*)
6144 # Specifically requested language; tell them.
5213506e 6145 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6146 ;;
6147 *)
6148 # Silently disable.
e1888513 6149 add_this_lang=unsupported
1546bb64
PB
6150 ;;
6151 esac
6152 done
6153
e1888513
PB
6154 # Disable Ada if no preexisting GNAT is available.
6155 case ,${enable_languages},:${language}:${have_gnat} in
6156 *,${language},*:ada:no)
6157 # Specifically requested language; tell them.
5213506e 6158 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6159 ;;
6160 *:ada:no)
6161 # Silently disable.
6162 add_this_lang=unsupported
6163 ;;
6164 esac
6165
4fab7234
HPN
6166 # Disable a language that is unsupported by the target.
6167 case " $unsupported_languages " in
6168 *" $language "*)
e1888513 6169 add_this_lang=unsupported
4fab7234
HPN
6170 ;;
6171 esac
6172
6de9cd9a 6173 case $add_this_lang in
e1888513 6174 unsupported)
55ffb5ed 6175 # Remove language-dependent dirs.
4da3b0f8
ILT
6176 disabled_target_libs="$disabled_target_libs $target_libs"
6177 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6178 ;;
e1888513
PB
6179 no)
6180 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6181 disabled_target_libs="$disabled_target_libs $target_libs"
6182 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6183 potential_languages="${potential_languages}${language},"
6184 ;;
6185 yes)
6186 new_enable_languages="${new_enable_languages}${language},"
6187 potential_languages="${potential_languages}${language},"
2805b53a 6188 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6189 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6190 case "${boot_language}:,$enable_stage1_languages," in
6191 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6192 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6193 case ",$stage1_languages," in
6194 *,$language,* | ,yes, | ,all,) ;;
6195 *) stage1_languages="${stage1_languages}${language}," ;;
6196 esac
00020c16
ILT
6197 # We need to bootstrap any supporting libraries.
6198 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6199 ;;
6200 esac
6201 ;;
55ffb5ed
NN
6202 esac
6203 ;;
6204 esac
6205 done
6206
4da3b0f8
ILT
6207 # Add target libraries which are only needed for disabled languages
6208 # to noconfigdirs.
6209 if test -n "$disabled_target_libs"; then
6210 for dir in $disabled_target_libs; do
6211 case " $enabled_target_libs " in
6212 *" ${dir} "*) ;;
6213 *) noconfigdirs="$noconfigdirs $dir" ;;
6214 esac
6215 done
6216 fi
6217
5213506e
RW
6218 # Check whether --enable-stage1-languages was given.
6219if test "${enable_stage1_languages+set}" = set; then :
6220 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6221 ,no,|,,)
6222 # Set it to something that will have no effect in the loop below
6223 enable_stage1_languages=c ;;
6224 ,yes,)
6225 enable_stage1_languages=`echo $new_enable_languages | \
6226 sed -e "s/^,//" -e "s/,$//" ` ;;
6227 *,all,*)
6228 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6229 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6230 esac
6231
6232 # Add "good" languages from enable_stage1_languages to stage1_languages,
6233 # while "bad" languages go in missing_languages. Leave no duplicates.
6234 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6235 case $potential_languages in
6236 *,$i,*)
6237 case $stage1_languages in
6238 *,$i,*) ;;
6239 *) stage1_languages="$stage1_languages$i," ;;
6240 esac ;;
6241 *)
6242 case $missing_languages in
6243 *,$i,*) ;;
6244 *) missing_languages="$missing_languages$i," ;;
6245 esac ;;
6246 esac
6247 done
5213506e
RW
6248fi
6249
e1888513
PB
6250
6251 # Remove leading/trailing commas that were added for simplicity
6252 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6253 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6254 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6255 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6256
55ffb5ed 6257 if test "x$missing_languages" != x; then
5213506e 6258 as_fn_error "
0cf085e4 6259The following requested languages could not be built: ${missing_languages}
5213506e 6260Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6261 fi
55ffb5ed
NN
6262 if test "x$new_enable_languages" != "x$enable_languages"; then
6263 echo The following languages will be built: ${new_enable_languages}
e1888513 6264 enable_languages="$new_enable_languages"
55ffb5ed 6265 fi
e1888513 6266
1c710c3c 6267
b2eaac4a 6268 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6269fi
6270
27079765
AH
6271# Handle --disable-<component> generically.
6272for dir in $configdirs $build_configdirs $target_configdirs ; do
6273 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6274 varname=`echo $dirname | sed -e s/+/_/g`
6275 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6276 noconfigdirs="$noconfigdirs $dir"
6277 fi
6278done
6279
7cd0cf9c 6280# Check for Boehm's garbage collector
5213506e
RW
6281# Check whether --enable-objc-gc was given.
6282if test "${enable_objc_gc+set}" = set; then :
6283 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6284 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6285 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6286 ;;
6287esac
5213506e
RW
6288fi
6289
7cd0cf9c
DA
6290
6291# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6292case ,${enable_languages},:${enable_objc_gc} in
6293 *,objc,*:yes)
7cd0cf9c
DA
6294 # Keep target-boehm-gc if requested for Objective-C.
6295 ;;
7cd0cf9c 6296 *)
2a79fd67
DA
6297 # Otherwise remove target-boehm-gc depending on target-libjava.
6298 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6299 noconfigdirs="$noconfigdirs target-boehm-gc"
6300 fi
7cd0cf9c
DA
6301 ;;
6302esac
6303
99776ebd
RH
6304# Disable libitm if we're not building C++
6305case ,${enable_languages}, in
9696698a 6306 *,c++,*) ;;
99776ebd
RH
6307 *)
6308 noconfigdirs="$noconfigdirs target-libitm"
6309 ;;
6310esac
6311
ee6a22df
L
6312# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6313# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6314# If we have the source for $noconfigdirs entries, add them to $notsupp.
6315
6316notsupp=""
6317for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6318 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6319 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6321 if test -r $srcdir/$dirname/configure ; then
6322 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323 true
6324 else
6325 notsupp="$notsupp $dir"
6326 fi
6327 fi
6328 fi
ee6a22df
L
6329 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6331 if test -r $srcdir/$dirname/configure ; then
6332 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333 true
6334 else
6335 notsupp="$notsupp $dir"
6336 fi
6337 fi
6338 fi
55ffb5ed
NN
6339 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6341 if test -r $srcdir/$dirname/configure ; then
6342 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6343 true
6344 else
6345 notsupp="$notsupp $dir"
6346 fi
6347 fi
6348 fi
6349done
6350
55ffb5ed
NN
6351# Quietly strip out all directories which aren't configurable in this tree.
6352# This relies on all configurable subdirectories being autoconfiscated, which
6353# is now the case.
23f6b2f9
PB
6354build_configdirs_all="$build_configdirs"
6355build_configdirs=
6356for i in ${build_configdirs_all} ; do
1c710c3c 6357 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6358 if test -f ${srcdir}/$j/configure ; then
6359 build_configdirs="${build_configdirs} $i"
6360 fi
6361done
6362
55ffb5ed
NN
6363configdirs_all="$configdirs"
6364configdirs=
6365for i in ${configdirs_all} ; do
6366 if test -f ${srcdir}/$i/configure ; then
6367 configdirs="${configdirs} $i"
6368 fi
6369done
23f6b2f9 6370
55ffb5ed
NN
6371target_configdirs_all="$target_configdirs"
6372target_configdirs=
6373for i in ${target_configdirs_all} ; do
1c710c3c 6374 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6375 if test -f ${srcdir}/$j/configure ; then
6376 target_configdirs="${target_configdirs} $i"
6377 fi
6378done
6379
6380# Produce a warning message for the subdirs we can't configure.
6381# This isn't especially interesting in the Cygnus tree, but in the individual
6382# FSF releases, it's important to let people know when their machine isn't
6383# supported by the one or two programs in a package.
6384
6385if test -n "${notsupp}" && test -z "${norecursion}" ; then
6386 # If $appdirs is non-empty, at least one of those directories must still
6387 # be configured, or we error out. (E.g., if the gas release supports a
6388 # specified target in some subdirs but not the gas subdir, we shouldn't
6389 # pretend that all is well.)
6390 if test -n "$appdirs" ; then
6391 for dir in $appdirs ; do
6392 if test -r $dir/Makefile.in ; then
6393 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6394 appdirs=""
6395 break
6396 fi
23f6b2f9 6397 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6398 appdirs=""
6399 break
6400 fi
6401 fi
6402 done
6403 if test -n "$appdirs" ; then
6404 echo "*** This configuration is not supported by this package." 1>&2
6405 exit 1
6406 fi
6407 fi
6408 # Okay, some application will build, or we don't care to check. Still
6409 # notify of subdirs not getting built.
6410 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6411 echo " ${notsupp}" 1>&2
6412 echo " (Any other directories should still work fine.)" 1>&2
6413fi
6414
6415case "$host" in
6416 *msdosdjgpp*)
6417 enable_gdbtk=no ;;
6418esac
6419
c3a86da9
DJ
6420# To find our prefix, in gcc_cv_tool_prefix.
6421
6422# The user is always right.
6423if test "${PATH_SEPARATOR+set}" != set; then
6424 echo "#! /bin/sh" >conf$$.sh
6425 echo "exit 0" >>conf$$.sh
6426 chmod +x conf$$.sh
6427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6428 PATH_SEPARATOR=';'
6429 else
6430 PATH_SEPARATOR=:
6431 fi
6432 rm -f conf$$.sh
6433fi
6434
6435
6436
6437if test "x$exec_prefix" = xNONE; then
6438 if test "x$prefix" = xNONE; then
6439 gcc_cv_tool_prefix=$ac_default_prefix
6440 else
6441 gcc_cv_tool_prefix=$prefix
6442 fi
6443else
6444 gcc_cv_tool_prefix=$exec_prefix
6445fi
6446
6447# If there is no compiler in the tree, use the PATH only. In any
6448# case, if there is no compiler in the tree nobody should use
6449# AS_FOR_TARGET and LD_FOR_TARGET.
6450if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6451 gcc_version=`cat $srcdir/gcc/BASE-VER`
6452 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6453 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6454 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6455 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6456 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6457 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6458else
6459 gcc_cv_tool_dirs=
6460fi
6461
6462if test x$build = x$target && test -n "$md_exec_prefix"; then
6463 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6464fi
6465
6466
6467
55ffb5ed
NN
6468copy_dirs=
6469
1c710c3c 6470
5213506e
RW
6471# Check whether --with-build-sysroot was given.
6472if test "${with_build_sysroot+set}" = set; then :
6473 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6474 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6475 fi
6476else
6477 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6478fi
526635cb
MM
6479
6480
c8aea42c 6481
5213506e
RW
6482
6483# Check whether --with-debug-prefix-map was given.
6484if test "${with_debug_prefix_map+set}" = set; then :
6485 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6486 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6487 for debug_map in $withval; do
6488 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6489 done
6490 fi
6491else
6492 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6493fi
6494
c8aea42c
PB
6495
6496
1c8bd6a3
PB
6497# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6498# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6499# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6500# We want to ensure that TARGET libraries (which we know are built with
6501# gcc) are built with "-O2 -g", so include those options when setting
6502# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6503if test "x$CFLAGS_FOR_TARGET" = x; then
6504 CFLAGS_FOR_TARGET=$CFLAGS
6505 case " $CFLAGS " in
6506 *" -O2 "*) ;;
bd8e704f 6507 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6508 esac
6509 case " $CFLAGS " in
6510 *" -g "* | *" -g3 "*) ;;
bd8e704f 6511 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6512 esac
6513fi
6514
6515
6516if test "x$CXXFLAGS_FOR_TARGET" = x; then
6517 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6518 case " $CXXFLAGS " in
6519 *" -O2 "*) ;;
bd8e704f 6520 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6521 esac
6522 case " $CXXFLAGS " in
6523 *" -g "* | *" -g3 "*) ;;
bd8e704f 6524 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6525 esac
6526fi
6527
6528
6f57bdf6
DK
6529
6530
55ffb5ed
NN
6531# Handle --with-headers=XXX. If the value is not "yes", the contents of
6532# the named directory are copied to $(tooldir)/sys-include.
6533if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6534 if test x${is_cross_compiler} = xno ; then
6535 echo 1>&2 '***' --with-headers is only supported when cross compiling
6536 exit 1
6537 fi
6538 if test x"${with_headers}" != xyes ; then
c3a86da9 6539 x=${gcc_cv_tool_prefix}
1c710c3c 6540 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6541 fi
6542fi
6543
6544# Handle --with-libs=XXX. If the value is not "yes", the contents of
6545# the name directories are copied to $(tooldir)/lib. Multiple directories
6546# are permitted.
6547if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6548 if test x${is_cross_compiler} = xno ; then
6549 echo 1>&2 '***' --with-libs is only supported when cross compiling
6550 exit 1
6551 fi
6552 if test x"${with_libs}" != xyes ; then
6553 # Copy the libraries in reverse order, so that files in the first named
6554 # library override files in subsequent libraries.
c3a86da9 6555 x=${gcc_cv_tool_prefix}
55ffb5ed 6556 for l in ${with_libs}; do
1c710c3c 6557 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6558 done
6559 fi
6560fi
6561
d7f09764 6562# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6563#
6564# This is done by determining whether or not the appropriate directory
6565# is available, and by checking whether or not specific configurations
6566# have requested that this magic not happen.
1c710c3c
DJ
6567#
6568# The command line options always override the explicit settings in
e8b05380
PB
6569# configure.in, and the settings in configure.in override this magic.
6570#
1c710c3c 6571# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6572# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6573# --without-gnu-ld options for the configure script. Similarly, if
6574# the default is to use the included zlib and you don't want to do that,
6575# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6576
6577if test x${use_gnu_as} = x &&
6578 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6579 with_gnu_as=yes
6580 extra_host_args="$extra_host_args --with-gnu-as"
6581fi
6582
6583if test x${use_gnu_ld} = x &&
5afab7ad 6584 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6585 with_gnu_ld=yes
6586 extra_host_args="$extra_host_args --with-gnu-ld"
6587fi
6588
d7f09764
DN
6589if test x${use_included_zlib} = x &&
6590 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6591 :
6592else
6593 with_system_zlib=yes
6594 extra_host_args="$extra_host_args --with-system-zlib"
6595fi
6596
e8b05380
PB
6597# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6598# can detect this case.
6599
6600if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6601 with_newlib=yes
6602 extra_host_args="$extra_host_args --with-newlib"
6603fi
6604
55ffb5ed
NN
6605# Handle ${copy_dirs}
6606set fnord ${copy_dirs}
6607shift
6608while test $# != 0 ; do
6609 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6610 :
6611 else
6612 echo Copying $1 to $2
6613
6614 # Use the install script to create the directory and all required
6615 # parent directories.
6616 if test -d $2 ; then
6617 :
6618 else
6619 echo >config.temp
6620 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6621 fi
6622
6623 # Copy the directory, assuming we have tar.
6624 # FIXME: Should we use B in the second tar? Not all systems support it.
6625 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6626
6627 # It is the responsibility of the user to correctly adjust all
6628 # symlinks. If somebody can figure out how to handle them correctly
6629 # here, feel free to add the code.
6630
6631 echo $1 > $2/COPIED
6632 fi
6633 shift; shift
6634done
6635
e8b05380
PB
6636# Determine a target-dependent exec_prefix that the installed
6637# gcc will search in. Keep this list sorted by triplet, with
6638# the *-*-osname triplets last.
6639md_exec_prefix=
6640case "${target}" in
30b74385 6641 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6642 md_exec_prefix=/dev/env/DJDIR/bin
6643 ;;
e8b05380 6644 *-*-hpux* | \
e8b05380 6645 *-*-nto-qnx* | \
6de66370 6646 *-*-solaris2*)
e8b05380
PB
6647 md_exec_prefix=/usr/ccs/bin
6648 ;;
6649esac
6650
671aa708
NN
6651extra_arflags_for_target=
6652extra_nmflags_for_target=
6653extra_ranlibflags_for_target=
6654target_makefile_frag=/dev/null
6655case "${target}" in
58e24147
AM
6656 spu-*-*)
6657 target_makefile_frag="config/mt-spu"
6658 ;;
4bf6c438
RS
6659 mips*-sde-elf*)
6660 target_makefile_frag="config/mt-sde"
6661 ;;
1ec3b87b
RS
6662 mipsisa*-*-elfoabi*)
6663 target_makefile_frag="config/mt-mips-elfoabi"
6664 ;;
08d0963a
RS
6665 mips*-*-*linux* | mips*-*-gnu*)
6666 target_makefile_frag="config/mt-mips-gnu"
6667 ;;
416ac4d4 6668 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6669 target_makefile_frag="config/mt-gnu"
671aa708
NN
6670 ;;
6671 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6672 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6673 # commands to handle both 32-bit and 64-bit objects. These flags are
6674 # harmless if we're using GNU nm or ar.
6675 extra_arflags_for_target=" -X32_64"
6676 extra_nmflags_for_target=" -B -X32_64"
6677 ;;
671aa708
NN
6678esac
6679
6680alphaieee_frag=/dev/null
6681case $target in
6682 alpha*-*-*)
6683 # This just makes sure to use the -mieee option to build target libs.
6684 # This should probably be set individually by each library.
6685 alphaieee_frag="config/mt-alphaieee"
6686 ;;
6687esac
6688
6689# If --enable-target-optspace always use -Os instead of -O2 to build
6690# the target libraries, similarly if it is not specified, use -Os
6691# on selected platforms.
6692ospace_frag=/dev/null
6693case "${enable_target_optspace}:${target}" in
6694 yes:*)
6695 ospace_frag="config/mt-ospace"
6696 ;;
6697 :d30v-*)
6698 ospace_frag="config/mt-d30v"
6699 ;;
6700 :m32r-* | :d10v-* | :fr30-*)
6701 ospace_frag="config/mt-ospace"
6702 ;;
6703 no:* | :*)
6704 ;;
6705 *)
6706 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6707 ;;
6708esac
6709
671aa708
NN
6710# Some systems (e.g., one of the i386-aix systems the gas testers are
6711# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6712tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6713build_tooldir=${tooldir}
6714
671aa708
NN
6715# Create a .gdbinit file which runs the one in srcdir
6716# and tells GDB to look there for source files.
6717
6718if test -r ${srcdir}/.gdbinit ; then
6719 case ${srcdir} in
6720 .) ;;
6721 *) cat > ./.gdbinit <<EOF
6722# ${NO_EDIT}
6723dir ${srcdir}
6724dir .
6725source ${srcdir}/.gdbinit
6726EOF
6727 ;;
6728 esac
6729fi
6730
671aa708
NN
6731# Make sure that the compiler is able to generate an executable. If it
6732# can't, we are probably in trouble. We don't care whether we can run the
6733# executable--we might be using a cross compiler--we only care whether it
6734# can be created. At this point the main configure script has set CC.
6735we_are_ok=no
6736echo "int main () { return 0; }" > conftest.c
6737${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6738if test $? = 0 ; then
6739 if test -s conftest || test -s conftest.exe ; then
6740 we_are_ok=yes
6741 fi
1c710c3c 6742fi
671aa708
NN
6743case $we_are_ok in
6744 no)
6745 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6746 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6747 rm -f conftest*
6748 exit 1
6749 ;;
6750esac
6751rm -f conftest*
6752
d89f0ad6 6753# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6754case "${host}" in
6755 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6756 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6757 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6758 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6759esac
6760
d89f0ad6
AL
6761# On systems where the dynamic library environment variable is PATH,
6762# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6763# built executables to PATH.
6764if test "$RPATH_ENVVAR" = PATH; then
6765 GCC_SHLIB_SUBDIR=/shlib
6766else
6767 GCC_SHLIB_SUBDIR=
6768fi
6769
671aa708
NN
6770# Record target_configdirs and the configure arguments for target and
6771# build configuration in Makefile.
6772target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6773build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6774
ad1e5170
JR
6775# If we are building libgomp, bootstrap it.
6776if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6777 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6778fi
6779
671aa708
NN
6780# Determine whether gdb needs tk/tcl or not.
6781# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6782# and in that case we want gdb to be built without tk. Ugh!
6783# In fact I believe gdb is the *only* package directly dependent on tk,
6784# so we should be able to put the 'maybe's in unconditionally and
6785# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6786# 100% sure that that's safe though.
e914a571 6787
b4f96efe 6788gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6789case "$enable_gdbtk" in
6790 no)
6791 GDB_TK="" ;;
e914a571
AC
6792 yes)
6793 GDB_TK="${gdb_tk}" ;;
671aa708 6794 *)
e914a571
AC
6795 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6796 # distro. Eventually someone will fix this and move Insight, nee
6797 # gdbtk to a separate directory.
6798 if test -d ${srcdir}/gdb/gdbtk ; then
6799 GDB_TK="${gdb_tk}"
6800 else
6801 GDB_TK=""
6802 fi
6803 ;;
671aa708 6804esac
ef9db8d5
DJ
6805CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6806INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6807
60975492 6808# Strip out unwanted targets.
8b87bb96
NN
6809
6810# While at that, we remove Makefiles if we were started for recursive
6811# configuration, so that the top-level Makefile reconfigures them,
6812# like we used to do when configure itself was recursive.
8b87bb96 6813
3e54529c
RW
6814# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6815# but now we're fixing up the Makefile ourselves with the additional
6816# commands passed to AC_CONFIG_FILES. Use separate variables
6817# extrasub-{build,host,target} not because there is any reason to split
6818# the substitutions up that way, but only to remain below the limit of
6819# 99 commands in a script, for HP-UX sed.
6820# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6821
79cd2b23
RW
6822case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6823 yes:yes:*\ gold\ *:*,c++,*) ;;
6824 yes:yes:*\ gold\ *:*)
6825 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6826 ;;
6827esac
6828
ce521a9c 6829# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6830case $enable_bootstrap in
f516a7da 6831 yes)
e12c4094
AO
6832 bootstrap_suffix=bootstrap
6833 BUILD_CONFIG=bootstrap-debug
6834 ;;
f516a7da 6835 no)
e12c4094
AO
6836 bootstrap_suffix=no-bootstrap
6837 BUILD_CONFIG=
6838 ;;
f516a7da
PB
6839esac
6840
e12c4094
AO
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6842$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6843
6844
6845# Check whether --with-build-config was given.
6846if test "${with_build_config+set}" = set; then :
6847 withval=$with_build_config; case $with_build_config in
6848 yes) with_build_config= ;;
6849 no) with_build_config= BUILD_CONFIG= ;;
6850 esac
6851fi
6852
6853
e12c4094
AO
6854if test "x${with_build_config}" != x; then
6855 BUILD_CONFIG=$with_build_config
6856else
6857 case $BUILD_CONFIG in
6858 bootstrap-debug)
6859 if echo "int f (void) { return 0; }" > conftest.c &&
6860 ${CC} -c conftest.c &&
6861 mv conftest.o conftest.o.g0 &&
6862 ${CC} -c -g conftest.c &&
6863 mv conftest.o conftest.o.g &&
615c8ffa 6864 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6865 :
6866 else
6867 BUILD_CONFIG=
6868 fi
6869 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6870 ;;
6871 esac
6872fi
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6874$as_echo "$BUILD_CONFIG" >&6; }
6875
6876
3e54529c 6877extrasub_build=
23f6b2f9 6878for module in ${build_configdirs} ; do
5607edfd
PB
6879 if test -z "${no_recursion}" \
6880 && test -f ${build_subdir}/${module}/Makefile; then
6881 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6882 rm -f ${build_subdir}/${module}/Makefile
6883 fi
3e54529c 6884 extrasub_build="$extrasub_build
5607edfd
PB
6885/^@if build-$module\$/d
6886/^@endif build-$module\$/d
6887/^@if build-$module-$bootstrap_suffix\$/d
6888/^@endif build-$module-$bootstrap_suffix\$/d"
6889done
3e54529c 6890extrasub_host=
5607edfd 6891for module in ${configdirs} ; do
a6fbc1e2 6892 if test -z "${no_recursion}"; then
f063a9ed 6893 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6894 if test -f ${file}; then
6895 echo 1>&2 "*** removing ${file} to force reconfigure"
6896 rm -f ${file}
6897 fi
6898 done
5607edfd 6899 fi
3e54529c 6900 extrasub_host="$extrasub_host
5607edfd
PB
6901/^@if $module\$/d
6902/^@endif $module\$/d
6903/^@if $module-$bootstrap_suffix\$/d
6904/^@endif $module-$bootstrap_suffix\$/d"
6905done
3e54529c 6906extrasub_target=
5607edfd
PB
6907for module in ${target_configdirs} ; do
6908 if test -z "${no_recursion}" \
6909 && test -f ${target_subdir}/${module}/Makefile; then
6910 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6911 rm -f ${target_subdir}/${module}/Makefile
6912 fi
00020c16
ILT
6913
6914 # We only bootstrap target libraries listed in bootstrap_target_libs.
6915 case $bootstrap_target_libs in
6916 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6917 *) target_bootstrap_suffix=no-bootstrap ;;
6918 esac
6919
3e54529c 6920 extrasub_target="$extrasub_target
5607edfd
PB
6921/^@if target-$module\$/d
6922/^@endif target-$module\$/d
00020c16
ILT
6923/^@if target-$module-$target_bootstrap_suffix\$/d
6924/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
6925done
6926
3e54529c
RW
6927# Do the final fixup along with target modules.
6928extrasub_target="$extrasub_target
60975492 6929/^@if /,/^@endif /d"
671aa708
NN
6930
6931# Create the serialization dependencies. This uses a temporary file.
6932
5213506e
RW
6933# Check whether --enable-serial-configure was given.
6934if test "${enable_serial_configure+set}" = set; then :
6935 enableval=$enable_serial_configure;
6936fi
ade82b16
AO
6937
6938
bf1d3e81
NN
6939case ${enable_serial_configure} in
6940 yes)
6941 enable_serial_build_configure=yes
6942 enable_serial_host_configure=yes
6943 enable_serial_target_configure=yes
6944 ;;
6945esac
6946
671aa708
NN
6947# These force 'configure's to be done one at a time, to avoid problems
6948# with contention over a shared config.cache.
6949rm -f serdep.tmp
ade82b16 6950echo '# serdep.tmp' > serdep.tmp
671aa708 6951olditem=
bf1d3e81 6952test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6953for item in ${build_configdirs} ; do
6954 case ${olditem} in
6955 "") ;;
ade82b16 6956 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6957 esac
6958 olditem=${item}
6959done
6960olditem=
bf1d3e81 6961test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6962for item in ${configdirs} ; do
6963 case ${olditem} in
6964 "") ;;
ade82b16 6965 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6966 esac
6967 olditem=${item}
6968done
6969olditem=
bf1d3e81 6970test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6971for item in ${target_configdirs} ; do
6972 case ${olditem} in
6973 "") ;;
ade82b16 6974 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6975 esac
6976 olditem=${item}
6977done
6978serialization_dependencies=serdep.tmp
6979
6980
ade82b16 6981# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 6982# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
6983# might not want to pass down to subconfigures. The exception being
6984# --cache-file=/dev/null, which is used to turn off the use of cache
6985# files altogether, and which should be passed on to subconfigures.
6986# Also strip program-prefix, program-suffix, and program-transform-name,
6987# so that we can pass down a consistent program-transform-name.
1c710c3c 6988baseargs=
29a63921 6989tbaseargs=
1c710c3c
DJ
6990keep_next=no
6991skip_next=no
6992eval "set -- $ac_configure_args"
44bfc3ac
DJ
6993for ac_arg
6994do
1c710c3c
DJ
6995 if test X"$skip_next" = X"yes"; then
6996 skip_next=no
6997 continue
6998 fi
6999 if test X"$keep_next" = X"yes"; then
7000 case $ac_arg in
7001 *\'*)
7002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7003 esac
7004 baseargs="$baseargs '$ac_arg'"
29a63921 7005 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7006 keep_next=no
7007 continue
7008 fi
7009
7010 # Handle separated arguments. Based on the logic generated by
7011 # autoconf 2.59.
7012 case $ac_arg in
7013 *=* | --config-cache | -C | -disable-* | --disable-* \
7014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7016 | -with-* | --with-* | -without-* | --without-* | --x)
7017 separate_arg=no
7018 ;;
7019 -*)
7020 separate_arg=yes
7021 ;;
7022 *)
7023 separate_arg=no
7024 ;;
7025 esac
7026
29a63921
AO
7027 skip_targ=no
7028 case $ac_arg in
7029
7030 --with-* | --without-*)
7031 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7032
7033 case $libopt in
7034 *[-_]include)
7035 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7036 ;;
7037 *[-_]lib)
7038 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7039 ;;
7040 *)
7041 lib=$libopt
7042 ;;
7043 esac
7044
7045
7046 case $lib in
33ad93b9 7047 mpc | mpfr | gmp | cloog)
29a63921
AO
7048 # If we're processing --with-$lib, --with-$lib-include or
7049 # --with-$lib-lib, for one of the libs above, and target is
7050 # different from host, don't pass the current argument to any
7051 # target library's configure.
7052 if test x$is_cross_compiler = xyes; then
7053 skip_targ=yes
7054 fi
7055 ;;
7056 esac
7057 ;;
7058 esac
7059
1c710c3c 7060 case "$ac_arg" in
f1a036e4
NC
7061 --cache-file=/dev/null | \
7062 -cache-file=/dev/null )
7063 # Handled here to avoid the test to skip args below.
7064 baseargs="$baseargs '$ac_arg'"
29a63921 7065 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7066 # Assert: $separate_arg should always be no.
7067 keep_next=$separate_arg
7068 ;;
1c710c3c
DJ
7069 --no*)
7070 continue
7071 ;;
7072 --c* | \
7073 --sr* | \
7074 --ho* | \
7075 --bu* | \
7076 --t* | \
7077 --program-* | \
7078 -cache_file* | \
7079 -srcdir* | \
7080 -host* | \
7081 -build* | \
7082 -target* | \
7083 -program-prefix* | \
7084 -program-suffix* | \
7085 -program-transform-name* )
7086 skip_next=$separate_arg
7087 continue
7088 ;;
7089 -*)
7090 # An option. Add it.
7091 case $ac_arg in
7092 *\'*)
7093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7094 esac
7095 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7096 if test X"$skip_targ" = Xno; then
7097 tbaseargs="$tbaseargs '$ac_arg'"
7098 fi
1c710c3c
DJ
7099 keep_next=$separate_arg
7100 ;;
7101 *)
7102 # Either a variable assignment, or a nonopt (triplet). Don't
7103 # pass it down; let the Makefile handle this.
7104 continue
7105 ;;
7106 esac
7107done
7108# Remove the initial space we just introduced and, as these will be
7109# expanded by make, quote '$'.
7110baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7111
43bb47c2
DJ
7112# Add in --program-transform-name, after --program-prefix and
7113# --program-suffix have been applied to it. Autoconf has already
7114# doubled dollar signs and backslashes in program_transform_name; we want
7115# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7116# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7117# Also, because we want to override the logic in subdir configure scripts to
7118# choose program_transform_name, replace any s,x,x, with s,y,y,.
7119sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7120${program_transform_name}
7121EOF_SED
7122gcc_transform_name=`cat conftestsed.out`
7123rm -f conftestsed.out
7124baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7125tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7126if test "$silent" = yes; then
7127 baseargs="$baseargs --silent"
29a63921 7128 tbaseargs="$tbaseargs --silent"
d9acb717 7129fi
0115d4a3 7130baseargs="$baseargs --disable-option-checking"
29a63921 7131tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7132
ffedf511
RW
7133# Record and document user additions to sub configure arguments.
7134
7135
7136
7137
671aa708
NN
7138# For the build-side libraries, we just need to pretend we're native,
7139# and not use the same cache file. Multilibs are neither needed nor
7140# desired.
ffedf511 7141build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7142
7143# For host modules, accept cache file option, or specification as blank.
7144case "${cache_file}" in
7145"") # empty
7146 cache_file_option="" ;;
7147/* | [A-Za-z]:[\\/]* ) # absolute path
7148 cache_file_option="--cache-file=${cache_file}" ;;
7149*) # relative path
7150 cache_file_option="--cache-file=../${cache_file}" ;;
7151esac
7152
09438bde
NN
7153# Host dirs don't like to share a cache file either, horribly enough.
7154# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7155host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7156
29a63921 7157target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7158
7159# Passing a --with-cross-host argument lets the target libraries know
7160# whether they are being built with a cross-compiler or being built
7161# native. However, it would be better to use other mechanisms to make the
7162# sorts of decisions they want to make on this basis. Please consider
7163# this option to be deprecated. FIXME.
7164if test x${is_cross_compiler} = xyes ; then
1c710c3c 7165 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7166fi
7167
dc683a3f
RW
7168# Default to --enable-multilib.
7169if test x${enable_multilib} = x ; then
671aa708 7170 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7171fi
671aa708
NN
7172
7173# Pass --with-newlib if appropriate. Note that target_configdirs has
7174# changed from the earlier setting of with_newlib.
7175if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7176 target_configargs="--with-newlib ${target_configargs}"
7177fi
7178
6b9eb62c
NN
7179# Different target subdirs use different values of certain variables
7180# (notably CXX). Worse, multilibs use *lots* of different values.
7181# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7182# it doesn't automatically accept command-line overrides of them.
7183# This means it's not safe for target subdirs to share a cache file,
7184# which is disgusting, but there you have it. Hopefully this can be
7185# fixed in future. It's still worthwhile to use a cache file for each
7186# directory. I think.
7187
bebcd931
MS
7188# Pass the appropriate --build, --host, --target and --cache-file arguments.
7189# We need to pass --target, as newer autoconf's requires consistency
7190# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7191target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7192
671aa708
NN
7193FLAGS_FOR_TARGET=
7194case " $target_configdirs " in
7195 *" newlib "*)
7196 case " $target_configargs " in
7197 *" --with-newlib "*)
7198 case "$target" in
5d571eaa
OS
7199 *-cygwin*)
7200 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'
7201 ;;
671aa708
NN
7202 esac
7203
7204 # If we're not building GCC, don't discard standard headers.
7205 if test -d ${srcdir}/gcc; then
7206 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7207
7208 if test "${build}" != "${host}"; then
7209 # On Canadian crosses, CC_FOR_TARGET will have already been set
7210 # by `configure', so we won't have an opportunity to add -Bgcc/
7211 # to it. This is right: we don't want to search that directory
7212 # for binaries, but we want the header files in there, so add
7213 # them explicitly.
0463992b 7214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7215
7216 # Someone might think of using the pre-installed headers on
7217 # Canadian crosses, in case the installed compiler is not fully
7218 # compatible with the compiler being built. In this case, it
7219 # would be better to flag an error than risking having
7220 # incompatible object files being constructed. We can't
7221 # guarantee that an error will be flagged, but let's hope the
7222 # compiler will do it, when presented with incompatible header
7223 # files.
7224 fi
7225 fi
7226
7227 case "${target}-${is_cross_compiler}" in
f2a0e225 7228 i[3456789]86-*-linux*-no)
671aa708
NN
7229 # Here host == target, so we don't need to build gcc,
7230 # so we don't want to discard standard headers.
7231 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7232 ;;
7233 *)
7234 # If we're building newlib, use its generic headers last, but search
7235 # for any libc-related directories first (so make it the last -B
7236 # switch).
7237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7238
7239 # If we're building libgloss, find the startup file, simulator library
7240 # and linker script.
7241 case " $target_configdirs " in
7242 *" libgloss "*)
7243 # Look for startup file, simulator library and maybe linker script.
7244 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7245 # Look for libnosys.a in case the target needs it.
7246 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7247 # Most targets have the linker script in the source directory.
7248 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7249 ;;
7250 esac
671aa708
NN
7251 ;;
7252 esac
7253 ;;
7254 esac
7255 ;;
7256esac
5d571eaa 7257
b91f0a41 7258case "$target" in
5d571eaa
OS
7259 x86_64-*mingw* | *-w64-mingw*)
7260 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7261 # however, use a symlink named 'mingw' in ${prefix} .
7262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7263 ;;
7264 *-mingw*)
7265 # MinGW can't be handled as Cygwin above since it does not use newlib.
7266 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'
7267 ;;
b91f0a41 7268esac
671aa708 7269
6691a79e
ME
7270# Allow the user to override the flags for
7271# our build compiler if desired.
f019adc1
MF
7272if test x"${build}" = x"${host}" ; then
7273 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7274 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7275 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7276fi
6691a79e 7277
671aa708
NN
7278# On Canadian crosses, we'll be searching the right directories for
7279# the previously-installed cross compiler, so don't bother to add
7280# flags for directories within the install tree of the compiler
7281# being built; programs in there won't even run.
7282if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7283 # Search for pre-installed headers if nothing else fits.
9124bc53 7284 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7285fi
7286
7287if test "x${use_gnu_ld}" = x &&
7288 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7289 # Arrange for us to find uninstalled linker scripts.
215c351a 7290 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7291fi
7292
e88a2c09
DD
7293# Search for other target-specific linker scripts and such.
7294case "${target}" in
3e19841a
PB
7295 mep*)
7296 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7297 ;;
e88a2c09
DD
7298esac
7299
671aa708 7300# Makefile fragments.
7b61653a
PE
7301for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7302do
7303 eval fragval=\$$frag
7304 if test $fragval != /dev/null; then
7305 eval $frag=${srcdir}/$fragval
7306 fi
7307done
671aa708
NN
7308
7309
7310
7311
7312
7313# Miscellanea: directories, flags, etc.
7314
7315
7316
7317
7318
7319
7320
d89f0ad6 7321
23f6b2f9 7322# Build module lists & subconfigure args.
671aa708
NN
7323
7324
7325
2abefe3d
PB
7326# Host module lists & subconfigure args.
7327
7328
7329
aae29963 7330
2abefe3d
PB
7331# Target module lists & subconfigure args.
7332
7333
7334
7335# Build tools.
7336
7337
7338
0999159b
PB
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
2abefe3d
PB
7353# Generate default definitions for YACC, M4, LEX and other programs that run
7354# on the build machine. These are used if the Makefile can't locate these
7355# programs in objdir.
7356MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7357
7358for ac_prog in 'bison -y' byacc yacc
7359do
1c710c3c 7360 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7361set dummy $ac_prog; ac_word=$2
5213506e
RW
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363$as_echo_n "checking for $ac_word... " >&6; }
7364if test "${ac_cv_prog_YACC+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
2abefe3d
PB
7366else
7367 if test -n "$YACC"; then
7368 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7369else
1c710c3c
DJ
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
5213506e
RW
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7377 ac_cv_prog_YACC="$ac_prog"
5213506e 7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7379 break 2
7380 fi
7381done
5213506e
RW
7382 done
7383IFS=$as_save_IFS
1c710c3c 7384
2abefe3d
PB
7385fi
7386fi
1c710c3c 7387YACC=$ac_cv_prog_YACC
2abefe3d 7388if test -n "$YACC"; then
5213506e
RW
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7390$as_echo "$YACC" >&6; }
2abefe3d 7391else
5213506e
RW
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393$as_echo "no" >&6; }
2abefe3d
PB
7394fi
7395
5213506e 7396
1c710c3c 7397 test -n "$YACC" && break
2abefe3d
PB
7398done
7399test -n "$YACC" || YACC="$MISSING bison -y"
7400
7401case " $build_configdirs " in
7402 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7403esac
7404
7405for ac_prog in bison
7406do
1c710c3c 7407 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7408set dummy $ac_prog; ac_word=$2
5213506e
RW
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410$as_echo_n "checking for $ac_word... " >&6; }
7411if test "${ac_cv_prog_BISON+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
2abefe3d
PB
7413else
7414 if test -n "$BISON"; then
7415 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7416else
1c710c3c
DJ
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
5213506e
RW
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7424 ac_cv_prog_BISON="$ac_prog"
5213506e 7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7426 break 2
7427 fi
7428done
5213506e
RW
7429 done
7430IFS=$as_save_IFS
1c710c3c 7431
2abefe3d
PB
7432fi
7433fi
1c710c3c 7434BISON=$ac_cv_prog_BISON
2abefe3d 7435if test -n "$BISON"; then
5213506e
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7437$as_echo "$BISON" >&6; }
2abefe3d 7438else
5213506e
RW
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440$as_echo "no" >&6; }
2abefe3d
PB
7441fi
7442
5213506e 7443
1c710c3c 7444 test -n "$BISON" && break
2abefe3d
PB
7445done
7446test -n "$BISON" || BISON="$MISSING bison"
7447
7448case " $build_configdirs " in
7449 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7450esac
7451
7452for ac_prog in gm4 gnum4 m4
7453do
1c710c3c 7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7455set dummy $ac_prog; ac_word=$2
5213506e
RW
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if test "${ac_cv_prog_M4+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
2abefe3d
PB
7460else
7461 if test -n "$M4"; then
7462 ac_cv_prog_M4="$M4" # Let the user override the test.
7463else
1c710c3c
DJ
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
5213506e
RW
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7471 ac_cv_prog_M4="$ac_prog"
5213506e 7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7473 break 2
7474 fi
7475done
5213506e
RW
7476 done
7477IFS=$as_save_IFS
1c710c3c 7478
2abefe3d
PB
7479fi
7480fi
1c710c3c 7481M4=$ac_cv_prog_M4
2abefe3d 7482if test -n "$M4"; then
5213506e
RW
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7484$as_echo "$M4" >&6; }
2abefe3d 7485else
5213506e
RW
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
2abefe3d
PB
7488fi
7489
5213506e 7490
1c710c3c 7491 test -n "$M4" && break
2abefe3d
PB
7492done
7493test -n "$M4" || M4="$MISSING m4"
7494
7495case " $build_configdirs " in
7496 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7497esac
7498
7499for ac_prog in flex lex
7500do
1c710c3c 7501 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7502set dummy $ac_prog; ac_word=$2
5213506e
RW
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504$as_echo_n "checking for $ac_word... " >&6; }
7505if test "${ac_cv_prog_LEX+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
2abefe3d
PB
7507else
7508 if test -n "$LEX"; then
7509 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7510else
1c710c3c
DJ
7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
5213506e
RW
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7518 ac_cv_prog_LEX="$ac_prog"
5213506e 7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7520 break 2
7521 fi
7522done
5213506e
RW
7523 done
7524IFS=$as_save_IFS
1c710c3c 7525
2abefe3d
PB
7526fi
7527fi
1c710c3c 7528LEX=$ac_cv_prog_LEX
2abefe3d 7529if test -n "$LEX"; then
5213506e
RW
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7531$as_echo "$LEX" >&6; }
2abefe3d 7532else
5213506e
RW
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534$as_echo "no" >&6; }
2abefe3d
PB
7535fi
7536
5213506e 7537
1c710c3c 7538 test -n "$LEX" && break
2abefe3d
PB
7539done
7540test -n "$LEX" || LEX="$MISSING flex"
7541
7542case " $build_configdirs " in
7543 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7544 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7545esac
7546
7547for ac_prog in flex
7548do
1c710c3c 7549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7550set dummy $ac_prog; ac_word=$2
5213506e
RW
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if test "${ac_cv_prog_FLEX+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
2abefe3d
PB
7555else
7556 if test -n "$FLEX"; then
7557 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7558else
1c710c3c
DJ
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
5213506e
RW
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7566 ac_cv_prog_FLEX="$ac_prog"
5213506e 7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7568 break 2
7569 fi
7570done
5213506e
RW
7571 done
7572IFS=$as_save_IFS
1c710c3c 7573
2abefe3d
PB
7574fi
7575fi
1c710c3c 7576FLEX=$ac_cv_prog_FLEX
2abefe3d 7577if test -n "$FLEX"; then
5213506e
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7579$as_echo "$FLEX" >&6; }
2abefe3d 7580else
5213506e
RW
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
2abefe3d
PB
7583fi
7584
5213506e 7585
1c710c3c 7586 test -n "$FLEX" && break
2abefe3d
PB
7587done
7588test -n "$FLEX" || FLEX="$MISSING flex"
7589
7590case " $build_configdirs " in
7591 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7592esac
7593
7594for ac_prog in makeinfo
7595do
1c710c3c 7596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7597set dummy $ac_prog; ac_word=$2
5213506e
RW
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599$as_echo_n "checking for $ac_word... " >&6; }
7600if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
2abefe3d
PB
7602else
7603 if test -n "$MAKEINFO"; then
7604 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7605else
1c710c3c
DJ
7606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
5213506e
RW
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7613 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7615 break 2
7616 fi
7617done
5213506e
RW
7618 done
7619IFS=$as_save_IFS
1c710c3c 7620
2abefe3d
PB
7621fi
7622fi
1c710c3c 7623MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7624if test -n "$MAKEINFO"; then
5213506e
RW
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7626$as_echo "$MAKEINFO" >&6; }
2abefe3d 7627else
5213506e
RW
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
2abefe3d
PB
7630fi
7631
5213506e 7632
1c710c3c 7633 test -n "$MAKEINFO" && break
2abefe3d
PB
7634done
7635test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7636
7637case " $build_configdirs " in
7638 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7639 *)
7640
d18ff35a 7641 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7642 # higher, else we use the "missing" dummy.
7643 if ${MAKEINFO} --version \
d18ff35a 7644 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7645 :
7646 else
7647 MAKEINFO="$MISSING makeinfo"
7648 fi
7649 ;;
7650
7651esac
671aa708 7652
2abefe3d 7653# FIXME: expect and dejagnu may become build tools?
671aa708 7654
2abefe3d
PB
7655for ac_prog in expect
7656do
1c710c3c 7657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7658set dummy $ac_prog; ac_word=$2
5213506e
RW
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if test "${ac_cv_prog_EXPECT+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
2abefe3d
PB
7663else
7664 if test -n "$EXPECT"; then
7665 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7666else
1c710c3c
DJ
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
5213506e
RW
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7674 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7676 break 2
7677 fi
7678done
5213506e
RW
7679 done
7680IFS=$as_save_IFS
1c710c3c 7681
2abefe3d
PB
7682fi
7683fi
1c710c3c 7684EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7685if test -n "$EXPECT"; then
5213506e
RW
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7687$as_echo "$EXPECT" >&6; }
2abefe3d 7688else
5213506e
RW
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
2abefe3d 7691fi
671aa708 7692
5213506e 7693
1c710c3c 7694 test -n "$EXPECT" && break
2abefe3d
PB
7695done
7696test -n "$EXPECT" || EXPECT="expect"
671aa708 7697
2abefe3d
PB
7698case " $configdirs " in
7699 *" expect "*)
7700 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7701 ;;
7702esac
671aa708 7703
2abefe3d
PB
7704for ac_prog in runtest
7705do
1c710c3c 7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7707set dummy $ac_prog; ac_word=$2
5213506e
RW
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
2abefe3d
PB
7712else
7713 if test -n "$RUNTEST"; then
7714 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7715else
1c710c3c
DJ
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
5213506e
RW
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7723 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7725 break 2
7726 fi
7727done
5213506e
RW
7728 done
7729IFS=$as_save_IFS
1c710c3c 7730
2abefe3d
PB
7731fi
7732fi
1c710c3c 7733RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7734if test -n "$RUNTEST"; then
5213506e
RW
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7736$as_echo "$RUNTEST" >&6; }
2abefe3d 7737else
5213506e
RW
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
2abefe3d 7740fi
671aa708 7741
5213506e 7742
1c710c3c 7743 test -n "$RUNTEST" && break
2abefe3d
PB
7744done
7745test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7746
2abefe3d
PB
7747case " $configdirs " in
7748 *" dejagnu "*)
c394e891 7749 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7750 ;;
7751esac
671aa708
NN
7752
7753
671aa708 7754# Host tools.
ca9f4b81
AO
7755ncn_tool_prefix=
7756test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7757ncn_target_tool_prefix=
7758test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7759
278a7a38
AO
7760
7761
7762if test -n "$AR"; then
7763 ac_cv_prog_AR=$AR
7764elif test -n "$ac_cv_prog_AR"; then
7765 AR=$ac_cv_prog_AR
7766fi
7767
7768if test -n "$ac_cv_prog_AR"; then
7769 for ncn_progname in ar; do
7770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7771set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if test "${ac_cv_prog_AR+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
278a7a38
AO
7776else
7777 if test -n "$AR"; then
7778 ac_cv_prog_AR="$AR" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
5213506e
RW
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7787 ac_cv_prog_AR="${ncn_progname}"
5213506e 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7789 break 2
7790 fi
7791done
5213506e
RW
7792 done
7793IFS=$as_save_IFS
278a7a38
AO
7794
7795fi
7796fi
7797AR=$ac_cv_prog_AR
7798if test -n "$AR"; then
5213506e
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7800$as_echo "$AR" >&6; }
278a7a38 7801else
5213506e
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
278a7a38
AO
7804fi
7805
5213506e 7806
278a7a38
AO
7807 done
7808fi
7809
7810for ncn_progname in ar; do
2693c0b0
PB
7811 if test -n "$ncn_tool_prefix"; then
7812 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7813set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if test "${ac_cv_prog_AR+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7818else
7819 if test -n "$AR"; then
7820 ac_cv_prog_AR="$AR" # Let the user override the test.
7821else
1c710c3c
DJ
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
5213506e
RW
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7829 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7831 break 2
7832 fi
7833done
5213506e
RW
7834 done
7835IFS=$as_save_IFS
1c710c3c 7836
ca9f4b81
AO
7837fi
7838fi
1c710c3c 7839AR=$ac_cv_prog_AR
ca9f4b81 7840if test -n "$AR"; then
5213506e
RW
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7842$as_echo "$AR" >&6; }
ca9f4b81 7843else
5213506e
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
ca9f4b81
AO
7846fi
7847
5213506e 7848
2693c0b0
PB
7849 fi
7850 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7852set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if test "${ac_cv_prog_AR+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
ca9f4b81 7857else
2693c0b0 7858 if test -n "$AR"; then
af71363e
AS
7859 ac_cv_prog_AR="$AR" # Let the user override the test.
7860else
1c710c3c
DJ
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
5213506e
RW
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7868 ac_cv_prog_AR="${ncn_progname}"
5213506e 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7870 break 2
7871 fi
7872done
5213506e
RW
7873 done
7874IFS=$as_save_IFS
1c710c3c 7875
ca9f4b81
AO
7876fi
7877fi
1c710c3c 7878AR=$ac_cv_prog_AR
2693c0b0 7879if test -n "$AR"; then
5213506e
RW
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7881$as_echo "$AR" >&6; }
ca9f4b81 7882else
5213506e
RW
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
ca9f4b81 7885fi
1c710c3c 7886
5213506e 7887
2693c0b0
PB
7888 fi
7889 test -n "$ac_cv_prog_AR" && break
7890done
7891
7892if test -z "$ac_cv_prog_AR" ; then
7893 set dummy ar
7894 if test $build = $host ; then
7895 AR="$2"
ca9f4b81 7896 else
2693c0b0 7897 AR="${ncn_tool_prefix}$2"
ca9f4b81 7898 fi
ca9f4b81
AO
7899fi
7900
278a7a38
AO
7901
7902
7903if test -n "$AS"; then
7904 ac_cv_prog_AS=$AS
7905elif test -n "$ac_cv_prog_AS"; then
7906 AS=$ac_cv_prog_AS
7907fi
7908
7909if test -n "$ac_cv_prog_AS"; then
7910 for ncn_progname in as; do
7911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7912set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if test "${ac_cv_prog_AS+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
278a7a38
AO
7917else
7918 if test -n "$AS"; then
7919 ac_cv_prog_AS="$AS" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
5213506e
RW
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7928 ac_cv_prog_AS="${ncn_progname}"
5213506e 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7930 break 2
7931 fi
7932done
5213506e
RW
7933 done
7934IFS=$as_save_IFS
278a7a38
AO
7935
7936fi
7937fi
7938AS=$ac_cv_prog_AS
7939if test -n "$AS"; then
5213506e
RW
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7941$as_echo "$AS" >&6; }
278a7a38 7942else
5213506e
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
278a7a38
AO
7945fi
7946
5213506e 7947
278a7a38
AO
7948 done
7949fi
7950
7951for ncn_progname in as; do
2693c0b0
PB
7952 if test -n "$ncn_tool_prefix"; then
7953 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7954set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if test "${ac_cv_prog_AS+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7959else
7960 if test -n "$AS"; then
7961 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7962else
1c710c3c
DJ
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
5213506e
RW
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7970 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7972 break 2
7973 fi
7974done
5213506e
RW
7975 done
7976IFS=$as_save_IFS
1c710c3c 7977
ca9f4b81
AO
7978fi
7979fi
1c710c3c 7980AS=$ac_cv_prog_AS
ca9f4b81 7981if test -n "$AS"; then
5213506e
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7983$as_echo "$AS" >&6; }
ca9f4b81 7984else
5213506e
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
ca9f4b81
AO
7987fi
7988
5213506e 7989
2693c0b0
PB
7990 fi
7991 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7993set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if test "${ac_cv_prog_AS+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
ca9f4b81 7998else
2693c0b0
PB
7999 if test -n "$AS"; then
8000 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8001else
1c710c3c
DJ
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
5213506e
RW
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8009 ac_cv_prog_AS="${ncn_progname}"
5213506e 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8011 break 2
8012 fi
8013done
5213506e
RW
8014 done
8015IFS=$as_save_IFS
1c710c3c 8016
ca9f4b81
AO
8017fi
8018fi
1c710c3c 8019AS=$ac_cv_prog_AS
2693c0b0 8020if test -n "$AS"; then
5213506e
RW
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8022$as_echo "$AS" >&6; }
ca9f4b81 8023else
5213506e
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
ca9f4b81 8026fi
1c710c3c 8027
5213506e 8028
2693c0b0
PB
8029 fi
8030 test -n "$ac_cv_prog_AS" && break
8031done
8032
8033if test -z "$ac_cv_prog_AS" ; then
8034 set dummy as
8035 if test $build = $host ; then
8036 AS="$2"
ca9f4b81 8037 else
2693c0b0 8038 AS="${ncn_tool_prefix}$2"
ca9f4b81 8039 fi
ca9f4b81
AO
8040fi
8041
278a7a38
AO
8042
8043
8044if test -n "$DLLTOOL"; then
8045 ac_cv_prog_DLLTOOL=$DLLTOOL
8046elif test -n "$ac_cv_prog_DLLTOOL"; then
8047 DLLTOOL=$ac_cv_prog_DLLTOOL
8048fi
8049
8050if test -n "$ac_cv_prog_DLLTOOL"; then
8051 for ncn_progname in dlltool; do
8052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8053set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
8056if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
278a7a38
AO
8058else
8059 if test -n "$DLLTOOL"; then
8060 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
5213506e
RW
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8069 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8071 break 2
8072 fi
8073done
5213506e
RW
8074 done
8075IFS=$as_save_IFS
278a7a38
AO
8076
8077fi
8078fi
8079DLLTOOL=$ac_cv_prog_DLLTOOL
8080if test -n "$DLLTOOL"; then
5213506e
RW
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8082$as_echo "$DLLTOOL" >&6; }
278a7a38 8083else
5213506e
RW
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085$as_echo "no" >&6; }
278a7a38
AO
8086fi
8087
5213506e 8088
278a7a38
AO
8089 done
8090fi
8091
8092for ncn_progname in dlltool; do
2693c0b0
PB
8093 if test -n "$ncn_tool_prefix"; then
8094 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8095set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
8098if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8100else
8101 if test -n "$DLLTOOL"; then
8102 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8103else
1c710c3c
DJ
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
5213506e
RW
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8111 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8113 break 2
8114 fi
8115done
5213506e
RW
8116 done
8117IFS=$as_save_IFS
1c710c3c 8118
ca9f4b81
AO
8119fi
8120fi
1c710c3c 8121DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8122if test -n "$DLLTOOL"; then
5213506e
RW
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8124$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8125else
5213506e
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
ca9f4b81
AO
8128fi
8129
5213506e 8130
2693c0b0
PB
8131 fi
8132 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8134set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
8137if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
ca9f4b81 8139else
2693c0b0
PB
8140 if test -n "$DLLTOOL"; then
8141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8142else
1c710c3c
DJ
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
5213506e
RW
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8150 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8152 break 2
8153 fi
8154done
5213506e
RW
8155 done
8156IFS=$as_save_IFS
1c710c3c 8157
ca9f4b81
AO
8158fi
8159fi
1c710c3c 8160DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8161if test -n "$DLLTOOL"; then
5213506e
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8163$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8164else
5213506e
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
ca9f4b81 8167fi
1c710c3c 8168
5213506e 8169
2693c0b0
PB
8170 fi
8171 test -n "$ac_cv_prog_DLLTOOL" && break
8172done
8173
8174if test -z "$ac_cv_prog_DLLTOOL" ; then
8175 set dummy dlltool
8176 if test $build = $host ; then
8177 DLLTOOL="$2"
ca9f4b81 8178 else
2693c0b0 8179 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8180 fi
ca9f4b81
AO
8181fi
8182
278a7a38
AO
8183
8184
8185if test -n "$LD"; then
8186 ac_cv_prog_LD=$LD
8187elif test -n "$ac_cv_prog_LD"; then
8188 LD=$ac_cv_prog_LD
8189fi
8190
8191if test -n "$ac_cv_prog_LD"; then
8192 for ncn_progname in ld; do
8193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8194set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196$as_echo_n "checking for $ac_word... " >&6; }
8197if test "${ac_cv_prog_LD+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
278a7a38
AO
8199else
8200 if test -n "$LD"; then
8201 ac_cv_prog_LD="$LD" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
5213506e
RW
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8210 ac_cv_prog_LD="${ncn_progname}"
5213506e 8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8212 break 2
8213 fi
8214done
5213506e
RW
8215 done
8216IFS=$as_save_IFS
278a7a38
AO
8217
8218fi
8219fi
8220LD=$ac_cv_prog_LD
8221if test -n "$LD"; then
5213506e
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8223$as_echo "$LD" >&6; }
278a7a38 8224else
5213506e
RW
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
278a7a38
AO
8227fi
8228
5213506e 8229
278a7a38
AO
8230 done
8231fi
8232
8233for ncn_progname in ld; do
2693c0b0
PB
8234 if test -n "$ncn_tool_prefix"; then
8235 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8236set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238$as_echo_n "checking for $ac_word... " >&6; }
8239if test "${ac_cv_prog_LD+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8241else
8242 if test -n "$LD"; then
8243 ac_cv_prog_LD="$LD" # Let the user override the test.
8244else
1c710c3c
DJ
8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246for as_dir in $PATH
8247do
8248 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=.
5213506e
RW
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8252 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8254 break 2
8255 fi
8256done
5213506e
RW
8257 done
8258IFS=$as_save_IFS
1c710c3c 8259
ca9f4b81
AO
8260fi
8261fi
1c710c3c 8262LD=$ac_cv_prog_LD
ca9f4b81 8263if test -n "$LD"; then
5213506e
RW
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8265$as_echo "$LD" >&6; }
ca9f4b81 8266else
5213506e
RW
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268$as_echo "no" >&6; }
ca9f4b81
AO
8269fi
8270
5213506e 8271
2693c0b0
PB
8272 fi
8273 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8275set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_LD+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
ca9f4b81 8280else
2693c0b0
PB
8281 if test -n "$LD"; then
8282 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8283else
1c710c3c
DJ
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
5213506e
RW
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8291 ac_cv_prog_LD="${ncn_progname}"
5213506e 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8293 break 2
8294 fi
8295done
5213506e
RW
8296 done
8297IFS=$as_save_IFS
1c710c3c 8298
ca9f4b81
AO
8299fi
8300fi
1c710c3c 8301LD=$ac_cv_prog_LD
2693c0b0 8302if test -n "$LD"; then
5213506e
RW
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8304$as_echo "$LD" >&6; }
ca9f4b81 8305else
5213506e
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
ca9f4b81 8308fi
1c710c3c 8309
5213506e 8310
2693c0b0
PB
8311 fi
8312 test -n "$ac_cv_prog_LD" && break
8313done
8314
8315if test -z "$ac_cv_prog_LD" ; then
8316 set dummy ld
8317 if test $build = $host ; then
8318 LD="$2"
ca9f4b81 8319 else
2693c0b0 8320 LD="${ncn_tool_prefix}$2"
ca9f4b81 8321 fi
ca9f4b81
AO
8322fi
8323
278a7a38
AO
8324
8325
8326if test -n "$LIPO"; then
8327 ac_cv_prog_LIPO=$LIPO
8328elif test -n "$ac_cv_prog_LIPO"; then
8329 LIPO=$ac_cv_prog_LIPO
8330fi
8331
8332if test -n "$ac_cv_prog_LIPO"; then
8333 for ncn_progname in lipo; do
8334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8335set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337$as_echo_n "checking for $ac_word... " >&6; }
8338if test "${ac_cv_prog_LIPO+set}" = set; then :
8339 $as_echo_n "(cached) " >&6
278a7a38
AO
8340else
8341 if test -n "$LIPO"; then
8342 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8343else
8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
5213506e
RW
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8351 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8353 break 2
8354 fi
8355done
5213506e
RW
8356 done
8357IFS=$as_save_IFS
278a7a38
AO
8358
8359fi
8360fi
8361LIPO=$ac_cv_prog_LIPO
8362if test -n "$LIPO"; then
5213506e
RW
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8364$as_echo "$LIPO" >&6; }
278a7a38 8365else
5213506e
RW
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367$as_echo "no" >&6; }
278a7a38
AO
8368fi
8369
5213506e 8370
278a7a38
AO
8371 done
8372fi
8373
8374for ncn_progname in lipo; do
2abefe3d
PB
8375 if test -n "$ncn_tool_prefix"; then
8376 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8377set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379$as_echo_n "checking for $ac_word... " >&6; }
8380if test "${ac_cv_prog_LIPO+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
2abefe3d
PB
8382else
8383 if test -n "$LIPO"; then
8384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8385else
1c710c3c
DJ
8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
5213506e
RW
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8393 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8395 break 2
8396 fi
8397done
5213506e
RW
8398 done
8399IFS=$as_save_IFS
1c710c3c 8400
2abefe3d
PB
8401fi
8402fi
1c710c3c 8403LIPO=$ac_cv_prog_LIPO
2abefe3d 8404if test -n "$LIPO"; then
5213506e
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8406$as_echo "$LIPO" >&6; }
2abefe3d 8407else
5213506e
RW
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
2abefe3d
PB
8410fi
8411
5213506e 8412
2abefe3d
PB
8413 fi
8414 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8416set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if test "${ac_cv_prog_LIPO+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
2abefe3d
PB
8421else
8422 if test -n "$LIPO"; then
8423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424else
1c710c3c
DJ
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
5213506e
RW
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8432 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8434 break 2
8435 fi
8436done
5213506e
RW
8437 done
8438IFS=$as_save_IFS
1c710c3c 8439
2abefe3d
PB
8440fi
8441fi
1c710c3c 8442LIPO=$ac_cv_prog_LIPO
2abefe3d 8443if test -n "$LIPO"; then
5213506e
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8445$as_echo "$LIPO" >&6; }
2abefe3d 8446else
5213506e
RW
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
2abefe3d 8449fi
1c710c3c 8450
5213506e 8451
2abefe3d
PB
8452 fi
8453 test -n "$ac_cv_prog_LIPO" && break
8454done
8455
8456if test -z "$ac_cv_prog_LIPO" ; then
8457 set dummy lipo
8458 if test $build = $host ; then
8459 LIPO="$2"
8460 else
8461 LIPO="${ncn_tool_prefix}$2"
8462 fi
8463fi
8464
278a7a38
AO
8465
8466
8467if test -n "$NM"; then
8468 ac_cv_prog_NM=$NM
8469elif test -n "$ac_cv_prog_NM"; then
8470 NM=$ac_cv_prog_NM
8471fi
8472
8473if test -n "$ac_cv_prog_NM"; then
8474 for ncn_progname in nm; do
8475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8476set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478$as_echo_n "checking for $ac_word... " >&6; }
8479if test "${ac_cv_prog_NM+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8481else
8482 if test -n "$NM"; then
8483 ac_cv_prog_NM="$NM" # Let the user override the test.
8484else
1c710c3c
DJ
8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
5213506e
RW
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8492 ac_cv_prog_NM="${ncn_progname}"
5213506e 8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8494 break 2
8495 fi
8496done
5213506e
RW
8497 done
8498IFS=$as_save_IFS
1c710c3c 8499
ca9f4b81
AO
8500fi
8501fi
1c710c3c 8502NM=$ac_cv_prog_NM
ca9f4b81 8503if test -n "$NM"; then
5213506e
RW
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8505$as_echo "$NM" >&6; }
ca9f4b81 8506else
5213506e
RW
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508$as_echo "no" >&6; }
ca9f4b81
AO
8509fi
8510
5213506e 8511
278a7a38
AO
8512 done
8513fi
8514
8515for ncn_progname in nm; do
8516 if test -n "$ncn_tool_prefix"; then
8517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8518set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520$as_echo_n "checking for $ac_word... " >&6; }
8521if test "${ac_cv_prog_NM+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
ca9f4b81 8523else
2693c0b0
PB
8524 if test -n "$NM"; then
8525 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8526else
1c710c3c
DJ
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
5213506e
RW
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8534 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8536 break 2
8537 fi
8538done
5213506e
RW
8539 done
8540IFS=$as_save_IFS
1c710c3c 8541
ca9f4b81
AO
8542fi
8543fi
1c710c3c 8544NM=$ac_cv_prog_NM
2693c0b0 8545if test -n "$NM"; then
5213506e
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8547$as_echo "$NM" >&6; }
ca9f4b81 8548else
5213506e
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
ca9f4b81 8551fi
1c710c3c 8552
5213506e 8553
2693c0b0 8554 fi
278a7a38
AO
8555 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8557set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if test "${ac_cv_prog_NM+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
278a7a38
AO
8562else
8563 if test -n "$NM"; then
8564 ac_cv_prog_NM="$NM" # Let the user override the test.
8565else
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
5213506e
RW
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8573 ac_cv_prog_NM="${ncn_progname}"
5213506e 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8575 break 2
8576 fi
8577done
5213506e
RW
8578 done
8579IFS=$as_save_IFS
278a7a38
AO
8580
8581fi
8582fi
8583NM=$ac_cv_prog_NM
8584if test -n "$NM"; then
5213506e
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8586$as_echo "$NM" >&6; }
278a7a38 8587else
5213506e
RW
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
278a7a38
AO
8590fi
8591
5213506e 8592
278a7a38
AO
8593 fi
8594 test -n "$ac_cv_prog_NM" && break
8595done
8596
8597if test -z "$ac_cv_prog_NM" ; then
8598 set dummy nm
8599 if test $build = $host ; then
8600 NM="$2"
8601 else
8602 NM="${ncn_tool_prefix}$2"
8603 fi
8604fi
8605
8606
8607
8608if test -n "$RANLIB"; then
8609 ac_cv_prog_RANLIB=$RANLIB
8610elif test -n "$ac_cv_prog_RANLIB"; then
8611 RANLIB=$ac_cv_prog_RANLIB
8612fi
8613
8614if test -n "$ac_cv_prog_RANLIB"; then
8615 for ncn_progname in ranlib; do
8616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8617set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619$as_echo_n "checking for $ac_word... " >&6; }
8620if test "${ac_cv_prog_RANLIB+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
278a7a38
AO
8622else
8623 if test -n "$RANLIB"; then
8624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
5213506e
RW
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8633 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8635 break 2
8636 fi
8637done
5213506e
RW
8638 done
8639IFS=$as_save_IFS
278a7a38
AO
8640
8641fi
8642fi
8643RANLIB=$ac_cv_prog_RANLIB
8644if test -n "$RANLIB"; then
5213506e
RW
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8646$as_echo "$RANLIB" >&6; }
278a7a38 8647else
5213506e
RW
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
278a7a38
AO
8650fi
8651
5213506e 8652
278a7a38
AO
8653 done
8654fi
ca9f4b81 8655
278a7a38 8656for ncn_progname in ranlib; do
2693c0b0
PB
8657 if test -n "$ncn_tool_prefix"; then
8658 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8659set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661$as_echo_n "checking for $ac_word... " >&6; }
8662if test "${ac_cv_prog_RANLIB+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8664else
8665 if test -n "$RANLIB"; then
8666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8667else
1c710c3c
DJ
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
5213506e
RW
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8675 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8677 break 2
8678 fi
8679done
5213506e
RW
8680 done
8681IFS=$as_save_IFS
1c710c3c 8682
ca9f4b81
AO
8683fi
8684fi
1c710c3c 8685RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8686if test -n "$RANLIB"; then
5213506e
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8688$as_echo "$RANLIB" >&6; }
ca9f4b81 8689else
5213506e
RW
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
ca9f4b81
AO
8692fi
8693
5213506e 8694
2693c0b0
PB
8695 fi
8696 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8698set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700$as_echo_n "checking for $ac_word... " >&6; }
8701if test "${ac_cv_prog_RANLIB+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
ca9f4b81 8703else
2693c0b0
PB
8704 if test -n "$RANLIB"; then
8705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8706else
1c710c3c
DJ
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
5213506e
RW
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8714 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8716 break 2
8717 fi
8718done
5213506e
RW
8719 done
8720IFS=$as_save_IFS
1c710c3c 8721
ca9f4b81
AO
8722fi
8723fi
1c710c3c 8724RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8725if test -n "$RANLIB"; then
5213506e
RW
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8727$as_echo "$RANLIB" >&6; }
ca9f4b81 8728else
5213506e
RW
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
ca9f4b81 8731fi
1c710c3c 8732
5213506e 8733
ca9f4b81 8734 fi
2693c0b0
PB
8735 test -n "$ac_cv_prog_RANLIB" && break
8736done
8737
8738if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8739 RANLIB="true"
ca9f4b81
AO
8740fi
8741
278a7a38
AO
8742
8743
8744if test -n "$STRIP"; then
8745 ac_cv_prog_STRIP=$STRIP
8746elif test -n "$ac_cv_prog_STRIP"; then
8747 STRIP=$ac_cv_prog_STRIP
8748fi
8749
8750if test -n "$ac_cv_prog_STRIP"; then
8751 for ncn_progname in strip; do
8752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755$as_echo_n "checking for $ac_word... " >&6; }
8756if test "${ac_cv_prog_STRIP+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
278a7a38
AO
8758else
8759 if test -n "$STRIP"; then
8760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8761else
8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH
8764do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
5213506e
RW
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8769 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8771 break 2
8772 fi
8773done
5213506e
RW
8774 done
8775IFS=$as_save_IFS
278a7a38
AO
8776
8777fi
8778fi
8779STRIP=$ac_cv_prog_STRIP
8780if test -n "$STRIP"; then
5213506e
RW
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8782$as_echo "$STRIP" >&6; }
278a7a38 8783else
5213506e
RW
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
278a7a38
AO
8786fi
8787
5213506e 8788
278a7a38
AO
8789 done
8790fi
8791
8792for ncn_progname in strip; do
2abefe3d
PB
8793 if test -n "$ncn_tool_prefix"; then
8794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
8798if test "${ac_cv_prog_STRIP+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
2abefe3d
PB
8800else
8801 if test -n "$STRIP"; then
8802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8803else
1c710c3c
DJ
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
5213506e
RW
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8811 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8813 break 2
8814 fi
8815done
5213506e
RW
8816 done
8817IFS=$as_save_IFS
1c710c3c 8818
2abefe3d
PB
8819fi
8820fi
1c710c3c 8821STRIP=$ac_cv_prog_STRIP
2abefe3d 8822if test -n "$STRIP"; then
5213506e
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8824$as_echo "$STRIP" >&6; }
2abefe3d 8825else
5213506e
RW
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
2abefe3d
PB
8828fi
8829
5213506e 8830
2abefe3d
PB
8831 fi
8832 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8834set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836$as_echo_n "checking for $ac_word... " >&6; }
8837if test "${ac_cv_prog_STRIP+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
2abefe3d
PB
8839else
8840 if test -n "$STRIP"; then
8841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8842else
1c710c3c
DJ
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
5213506e
RW
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8850 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8852 break 2
8853 fi
8854done
5213506e
RW
8855 done
8856IFS=$as_save_IFS
1c710c3c 8857
2abefe3d
PB
8858fi
8859fi
1c710c3c 8860STRIP=$ac_cv_prog_STRIP
2abefe3d 8861if test -n "$STRIP"; then
5213506e
RW
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8863$as_echo "$STRIP" >&6; }
2abefe3d 8864else
5213506e
RW
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
2abefe3d 8867fi
1c710c3c 8868
5213506e 8869
2abefe3d
PB
8870 fi
8871 test -n "$ac_cv_prog_STRIP" && break
8872done
8873
8874if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 8875 STRIP="true"
2abefe3d
PB
8876fi
8877
278a7a38
AO
8878
8879
8880if test -n "$WINDRES"; then
8881 ac_cv_prog_WINDRES=$WINDRES
8882elif test -n "$ac_cv_prog_WINDRES"; then
8883 WINDRES=$ac_cv_prog_WINDRES
8884fi
8885
8886if test -n "$ac_cv_prog_WINDRES"; then
8887 for ncn_progname in windres; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
8892if test "${ac_cv_prog_WINDRES+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
278a7a38
AO
8894else
8895 if test -n "$WINDRES"; then
8896 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8897else
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
5213506e
RW
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8905 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8907 break 2
8908 fi
8909done
5213506e
RW
8910 done
8911IFS=$as_save_IFS
278a7a38
AO
8912
8913fi
8914fi
8915WINDRES=$ac_cv_prog_WINDRES
8916if test -n "$WINDRES"; then
5213506e
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8918$as_echo "$WINDRES" >&6; }
278a7a38 8919else
5213506e
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
278a7a38
AO
8922fi
8923
5213506e 8924
278a7a38
AO
8925 done
8926fi
8927
8928for ncn_progname in windres; do
2693c0b0
PB
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if test "${ac_cv_prog_WINDRES+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8936else
8937 if test -n "$WINDRES"; then
8938 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8939else
1c710c3c
DJ
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
5213506e
RW
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8947 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8949 break 2
8950 fi
8951done
5213506e
RW
8952 done
8953IFS=$as_save_IFS
1c710c3c 8954
ca9f4b81
AO
8955fi
8956fi
1c710c3c 8957WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8958if test -n "$WINDRES"; then
5213506e
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8960$as_echo "$WINDRES" >&6; }
ca9f4b81 8961else
5213506e
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
ca9f4b81
AO
8964fi
8965
5213506e 8966
2693c0b0
PB
8967 fi
8968 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if test "${ac_cv_prog_WINDRES+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
ca9f4b81 8975else
2693c0b0
PB
8976 if test -n "$WINDRES"; then
8977 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8978else
1c710c3c
DJ
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
5213506e
RW
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8986 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8988 break 2
8989 fi
8990done
5213506e
RW
8991 done
8992IFS=$as_save_IFS
1c710c3c 8993
ca9f4b81
AO
8994fi
8995fi
1c710c3c 8996WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8997if test -n "$WINDRES"; then
5213506e
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8999$as_echo "$WINDRES" >&6; }
ca9f4b81 9000else
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
ca9f4b81 9003fi
1c710c3c 9004
5213506e 9005
2693c0b0
PB
9006 fi
9007 test -n "$ac_cv_prog_WINDRES" && break
9008done
9009
9010if test -z "$ac_cv_prog_WINDRES" ; then
9011 set dummy windres
9012 if test $build = $host ; then
9013 WINDRES="$2"
ca9f4b81 9014 else
2693c0b0 9015 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9016 fi
ca9f4b81
AO
9017fi
9018
278a7a38
AO
9019
9020
901119ae
KT
9021if test -n "$WINDMC"; then
9022 ac_cv_prog_WINDMC=$WINDMC
9023elif test -n "$ac_cv_prog_WINDMC"; then
9024 WINDMC=$ac_cv_prog_WINDMC
9025fi
9026
9027if test -n "$ac_cv_prog_WINDMC"; then
9028 for ncn_progname in windmc; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
9033if test "${ac_cv_prog_WINDMC+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
901119ae
KT
9035else
9036 if test -n "$WINDMC"; then
9037 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
5213506e
RW
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9046 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9048 break 2
9049 fi
9050done
5213506e
RW
9051 done
9052IFS=$as_save_IFS
901119ae
KT
9053
9054fi
9055fi
9056WINDMC=$ac_cv_prog_WINDMC
9057if test -n "$WINDMC"; then
5213506e
RW
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9059$as_echo "$WINDMC" >&6; }
901119ae 9060else
5213506e
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
901119ae
KT
9063fi
9064
5213506e 9065
901119ae
KT
9066 done
9067fi
9068
9069for ncn_progname in windmc; do
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if test "${ac_cv_prog_WINDMC+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
901119ae
KT
9077else
9078 if test -n "$WINDMC"; then
9079 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
5213506e
RW
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9088 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9090 break 2
9091 fi
9092done
5213506e
RW
9093 done
9094IFS=$as_save_IFS
901119ae
KT
9095
9096fi
9097fi
9098WINDMC=$ac_cv_prog_WINDMC
9099if test -n "$WINDMC"; then
5213506e
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9101$as_echo "$WINDMC" >&6; }
901119ae 9102else
5213506e
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
901119ae
KT
9105fi
9106
5213506e 9107
901119ae
KT
9108 fi
9109 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_WINDMC+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
901119ae
KT
9116else
9117 if test -n "$WINDMC"; then
9118 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9119else
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
5213506e
RW
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9127 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9129 break 2
9130 fi
9131done
5213506e
RW
9132 done
9133IFS=$as_save_IFS
901119ae
KT
9134
9135fi
9136fi
9137WINDMC=$ac_cv_prog_WINDMC
9138if test -n "$WINDMC"; then
5213506e
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9140$as_echo "$WINDMC" >&6; }
901119ae 9141else
5213506e
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
901119ae
KT
9144fi
9145
5213506e 9146
901119ae
KT
9147 fi
9148 test -n "$ac_cv_prog_WINDMC" && break
9149done
9150
9151if test -z "$ac_cv_prog_WINDMC" ; then
9152 set dummy windmc
9153 if test $build = $host ; then
9154 WINDMC="$2"
9155 else
9156 WINDMC="${ncn_tool_prefix}$2"
9157 fi
9158fi
9159
9160
9161
278a7a38
AO
9162if test -n "$OBJCOPY"; then
9163 ac_cv_prog_OBJCOPY=$OBJCOPY
9164elif test -n "$ac_cv_prog_OBJCOPY"; then
9165 OBJCOPY=$ac_cv_prog_OBJCOPY
9166fi
9167
9168if test -n "$ac_cv_prog_OBJCOPY"; then
9169 for ncn_progname in objcopy; do
9170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9171set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173$as_echo_n "checking for $ac_word... " >&6; }
9174if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
278a7a38
AO
9176else
9177 if test -n "$OBJCOPY"; then
9178 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9179else
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
5213506e
RW
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9187 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9189 break 2
9190 fi
9191done
5213506e
RW
9192 done
9193IFS=$as_save_IFS
278a7a38
AO
9194
9195fi
9196fi
9197OBJCOPY=$ac_cv_prog_OBJCOPY
9198if test -n "$OBJCOPY"; then
5213506e
RW
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9200$as_echo "$OBJCOPY" >&6; }
278a7a38 9201else
5213506e
RW
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
278a7a38
AO
9204fi
9205
5213506e 9206
278a7a38
AO
9207 done
9208fi
9209
9210for ncn_progname in objcopy; do
2693c0b0
PB
9211 if test -n "$ncn_tool_prefix"; then
9212 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9213set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215$as_echo_n "checking for $ac_word... " >&6; }
9216if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9218else
9219 if test -n "$OBJCOPY"; then
9220 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9221else
1c710c3c
DJ
9222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223for as_dir in $PATH
9224do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
5213506e
RW
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9229 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9231 break 2
9232 fi
9233done
5213506e
RW
9234 done
9235IFS=$as_save_IFS
1c710c3c 9236
ca9f4b81
AO
9237fi
9238fi
1c710c3c 9239OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9240if test -n "$OBJCOPY"; then
5213506e
RW
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9242$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9243else
5213506e
RW
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245$as_echo "no" >&6; }
ca9f4b81
AO
9246fi
9247
5213506e 9248
2693c0b0
PB
9249 fi
9250 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9252set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
9255if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
ca9f4b81 9257else
2693c0b0
PB
9258 if test -n "$OBJCOPY"; then
9259 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9260else
1c710c3c
DJ
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
5213506e
RW
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9268 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9270 break 2
9271 fi
9272done
5213506e
RW
9273 done
9274IFS=$as_save_IFS
1c710c3c 9275
ca9f4b81
AO
9276fi
9277fi
1c710c3c 9278OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9279if test -n "$OBJCOPY"; then
5213506e
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9281$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9282else
5213506e
RW
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
ca9f4b81 9285fi
1c710c3c 9286
5213506e 9287
2693c0b0
PB
9288 fi
9289 test -n "$ac_cv_prog_OBJCOPY" && break
9290done
9291
9292if test -z "$ac_cv_prog_OBJCOPY" ; then
9293 set dummy objcopy
9294 if test $build = $host ; then
9295 OBJCOPY="$2"
ca9f4b81 9296 else
2693c0b0 9297 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9298 fi
ca9f4b81
AO
9299fi
9300
278a7a38
AO
9301
9302
9303if test -n "$OBJDUMP"; then
9304 ac_cv_prog_OBJDUMP=$OBJDUMP
9305elif test -n "$ac_cv_prog_OBJDUMP"; then
9306 OBJDUMP=$ac_cv_prog_OBJDUMP
9307fi
9308
9309if test -n "$ac_cv_prog_OBJDUMP"; then
9310 for ncn_progname in objdump; do
9311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9312set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
9315if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
278a7a38
AO
9317else
9318 if test -n "$OBJDUMP"; then
9319 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9320else
9321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
5213506e
RW
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9328 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9330 break 2
9331 fi
9332done
5213506e
RW
9333 done
9334IFS=$as_save_IFS
278a7a38
AO
9335
9336fi
9337fi
9338OBJDUMP=$ac_cv_prog_OBJDUMP
9339if test -n "$OBJDUMP"; then
5213506e
RW
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9341$as_echo "$OBJDUMP" >&6; }
278a7a38 9342else
5213506e
RW
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344$as_echo "no" >&6; }
278a7a38
AO
9345fi
9346
5213506e 9347
278a7a38
AO
9348 done
9349fi
9350
9351for ncn_progname in objdump; do
2693c0b0
PB
9352 if test -n "$ncn_tool_prefix"; then
9353 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9354set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356$as_echo_n "checking for $ac_word... " >&6; }
9357if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9359else
9360 if test -n "$OBJDUMP"; then
9361 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9362else
1c710c3c
DJ
9363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364for as_dir in $PATH
9365do
9366 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=.
5213506e
RW
9368 for ac_exec_ext in '' $ac_executable_extensions; do
9369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9370 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9372 break 2
9373 fi
9374done
5213506e
RW
9375 done
9376IFS=$as_save_IFS
1c710c3c 9377
ca9f4b81
AO
9378fi
9379fi
1c710c3c 9380OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9381if test -n "$OBJDUMP"; then
5213506e
RW
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9383$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9384else
5213506e
RW
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386$as_echo "no" >&6; }
ca9f4b81
AO
9387fi
9388
5213506e 9389
2693c0b0
PB
9390 fi
9391 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
ca9f4b81 9398else
2693c0b0
PB
9399 if test -n "$OBJDUMP"; then
9400 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9401else
1c710c3c
DJ
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
5213506e
RW
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9409 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9411 break 2
9412 fi
9413done
5213506e
RW
9414 done
9415IFS=$as_save_IFS
1c710c3c 9416
ca9f4b81
AO
9417fi
9418fi
1c710c3c 9419OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9420if test -n "$OBJDUMP"; then
5213506e
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9422$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9423else
5213506e
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
ca9f4b81 9426fi
1c710c3c 9427
5213506e 9428
2693c0b0
PB
9429 fi
9430 test -n "$ac_cv_prog_OBJDUMP" && break
9431done
9432
9433if test -z "$ac_cv_prog_OBJDUMP" ; then
9434 set dummy objdump
9435 if test $build = $host ; then
9436 OBJDUMP="$2"
ca9f4b81 9437 else
2693c0b0 9438 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9439 fi
ca9f4b81
AO
9440fi
9441
671aa708
NN
9442
9443
e7a82751
RM
9444if test -n "$READELF"; then
9445 ac_cv_prog_READELF=$READELF
9446elif test -n "$ac_cv_prog_READELF"; then
9447 READELF=$ac_cv_prog_READELF
9448fi
9449
9450if test -n "$ac_cv_prog_READELF"; then
9451 for ncn_progname in readelf; do
9452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9453set dummy ${ncn_progname}; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if test "${ac_cv_prog_READELF+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458else
9459 if test -n "$READELF"; then
9460 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_prog_READELF="${ncn_progname}"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474 done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479READELF=$ac_cv_prog_READELF
9480if test -n "$READELF"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9482$as_echo "$READELF" >&6; }
9483else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
9486fi
9487
9488
9489 done
9490fi
9491
9492for ncn_progname in readelf; do
9493 if test -n "$ncn_tool_prefix"; then
9494 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9495set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497$as_echo_n "checking for $ac_word... " >&6; }
9498if test "${ac_cv_prog_READELF+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 if test -n "$READELF"; then
9502 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9503else
9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9514 fi
9515done
9516 done
9517IFS=$as_save_IFS
9518
9519fi
9520fi
9521READELF=$ac_cv_prog_READELF
9522if test -n "$READELF"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9524$as_echo "$READELF" >&6; }
9525else
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527$as_echo "no" >&6; }
9528fi
9529
9530
9531 fi
9532 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9534set dummy ${ncn_progname}; ac_word=$2
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9536$as_echo_n "checking for $ac_word... " >&6; }
9537if test "${ac_cv_prog_READELF+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
9539else
9540 if test -n "$READELF"; then
9541 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9542else
9543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544for as_dir in $PATH
9545do
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9550 ac_cv_prog_READELF="${ncn_progname}"
9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9553 fi
9554done
9555 done
9556IFS=$as_save_IFS
9557
9558fi
9559fi
9560READELF=$ac_cv_prog_READELF
9561if test -n "$READELF"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9563$as_echo "$READELF" >&6; }
9564else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
9567fi
9568
9569
9570 fi
9571 test -n "$ac_cv_prog_READELF" && break
9572done
9573
9574if test -z "$ac_cv_prog_READELF" ; then
9575 set dummy readelf
9576 if test $build = $host ; then
9577 READELF="$2"
9578 else
9579 READELF="${ncn_tool_prefix}$2"
9580 fi
9581fi
9582
9583
9584
671aa708
NN
9585
9586
9587
2abefe3d 9588# Target tools.
1c710c3c 9589
5213506e
RW
9590# Check whether --with-build-time-tools was given.
9591if test "${with_build_time_tools+set}" = set; then :
9592 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9593 x/*) ;;
9594 *)
9595 with_build_time_tools=
5213506e
RW
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9597$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9598 ;;
9599 esac
ca9f4b81 9600else
e8b05380 9601 with_build_time_tools=
5213506e
RW
9602fi
9603
ca9f4b81 9604
278a7a38
AO
9605
9606
9607if test -n "$CC_FOR_TARGET"; then
9608 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9609elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9610 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9611fi
9612
9613if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9614 for ncn_progname in cc gcc; do
9615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618$as_echo_n "checking for $ac_word... " >&6; }
9619if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
278a7a38
AO
9621else
9622 if test -n "$CC_FOR_TARGET"; then
9623 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9624else
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
5213506e
RW
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9632 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9634 break 2
9635 fi
9636done
5213506e
RW
9637 done
9638IFS=$as_save_IFS
278a7a38
AO
9639
9640fi
9641fi
9642CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9643if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9645$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9646else
5213506e
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
278a7a38
AO
9649fi
9650
5213506e 9651
278a7a38
AO
9652 done
9653fi
9654
9655if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9656 for ncn_progname in cc gcc; do
5213506e
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9658$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9659 if test -x $with_build_time_tools/${ncn_progname}; then
9660 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9662$as_echo "yes" >&6; }
72a7ab82 9663 break
e8b05380 9664 else
5213506e
RW
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
72a7ab82
AP
9667 fi
9668 done
4de997d1
PB
9669fi
9670
e8b05380
PB
9671if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9672 for ncn_progname in cc gcc; do
9673 if test -n "$ncn_target_tool_prefix"; then
9674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9675set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677$as_echo_n "checking for $ac_word... " >&6; }
9678if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
4de997d1
PB
9680else
9681 if test -n "$CC_FOR_TARGET"; then
9682 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9683else
1c710c3c
DJ
9684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685for as_dir in $PATH
9686do
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
5213506e
RW
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9691 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9693 break 2
9694 fi
9695done
5213506e
RW
9696 done
9697IFS=$as_save_IFS
1c710c3c 9698
4de997d1
PB
9699fi
9700fi
1c710c3c 9701CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9702if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9704$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9705else
5213506e
RW
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707$as_echo "no" >&6; }
4de997d1
PB
9708fi
9709
5213506e 9710
e8b05380
PB
9711 fi
9712 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9714set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
4de997d1 9719else
2693c0b0
PB
9720 if test -n "$CC_FOR_TARGET"; then
9721 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9722else
1c710c3c
DJ
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
5213506e
RW
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9730 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9732 break 2
9733 fi
9734done
5213506e
RW
9735 done
9736IFS=$as_save_IFS
1c710c3c 9737
4de997d1
PB
9738fi
9739fi
1c710c3c 9740CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9741if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9743$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9744else
5213506e
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
4de997d1 9747fi
1c710c3c 9748
5213506e 9749
e8b05380
PB
9750 fi
9751 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9752 done
9753fi
1c710c3c 9754
2693c0b0
PB
9755if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9756 set dummy cc gcc
9757 if test $build = $target ; then
9758 CC_FOR_TARGET="$2"
4de997d1 9759 else
2693c0b0 9760 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9761 fi
1c00b503
PB
9762else
9763 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9764fi
9765
278a7a38
AO
9766
9767
9768if test -n "$CXX_FOR_TARGET"; then
9769 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9770elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9771 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9772fi
9773
9774if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9775 for ncn_progname in c++ g++ cxx gxx; do
9776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9777set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
9780if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9781 $as_echo_n "(cached) " >&6
278a7a38
AO
9782else
9783 if test -n "$CXX_FOR_TARGET"; then
9784 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
5213506e
RW
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9793 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9795 break 2
9796 fi
9797done
5213506e
RW
9798 done
9799IFS=$as_save_IFS
278a7a38
AO
9800
9801fi
9802fi
9803CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9804if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9806$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9807else
5213506e
RW
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
278a7a38
AO
9810fi
9811
5213506e 9812
278a7a38
AO
9813 done
9814fi
9815
9816if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9817 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9819$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9820 if test -x $with_build_time_tools/${ncn_progname}; then
9821 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9823$as_echo "yes" >&6; }
e8b05380
PB
9824 break
9825 else
5213506e
RW
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827$as_echo "no" >&6; }
e8b05380
PB
9828 fi
9829 done
9830fi
9831
9832if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9833 for ncn_progname in c++ g++ cxx gxx; do
9834 if test -n "$ncn_target_tool_prefix"; then
9835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838$as_echo_n "checking for $ac_word... " >&6; }
9839if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
4de997d1
PB
9841else
9842 if test -n "$CXX_FOR_TARGET"; then
9843 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9844else
1c710c3c
DJ
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
5213506e
RW
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9852 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9854 break 2
9855 fi
9856done
5213506e
RW
9857 done
9858IFS=$as_save_IFS
1c710c3c 9859
4de997d1
PB
9860fi
9861fi
1c710c3c 9862CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9863if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9865$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9866else
5213506e
RW
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868$as_echo "no" >&6; }
4de997d1
PB
9869fi
9870
5213506e 9871
e8b05380
PB
9872 fi
9873 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9875set dummy ${ncn_progname}; ac_word=$2
5213506e
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_CXX_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
4de997d1 9880else
2693c0b0
PB
9881 if test -n "$CXX_FOR_TARGET"; then
9882 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9883else
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 9891 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9893 break 2
9894 fi
9895done
5213506e
RW
9896 done
9897IFS=$as_save_IFS
1c710c3c 9898
4de997d1
PB
9899fi
9900fi
1c710c3c 9901CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9902if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9904$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9905else
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
4de997d1 9908fi
1c710c3c 9909
5213506e 9910
e8b05380
PB
9911 fi
9912 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9913 done
9914fi
1c710c3c 9915
2693c0b0
PB
9916if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9917 set dummy c++ g++ cxx gxx
9918 if test $build = $target ; then
9919 CXX_FOR_TARGET="$2"
4de997d1 9920 else
2693c0b0 9921 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9922 fi
1c00b503
PB
9923else
9924 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9925fi
9926
278a7a38
AO
9927
9928
9929if test -n "$GCC_FOR_TARGET"; then
9930 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9931elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9932 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9933fi
9934
9935if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9936 for ncn_progname in gcc; do
9937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9938set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940$as_echo_n "checking for $ac_word... " >&6; }
9941if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
278a7a38
AO
9943else
9944 if test -n "$GCC_FOR_TARGET"; then
9945 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9946else
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
5213506e
RW
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9954 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9956 break 2
9957 fi
9958done
5213506e
RW
9959 done
9960IFS=$as_save_IFS
278a7a38
AO
9961
9962fi
9963fi
9964GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9965if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9967$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 9968else
5213506e
RW
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
278a7a38
AO
9971fi
9972
5213506e 9973
278a7a38
AO
9974 done
9975fi
9976
9977if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9978 for ncn_progname in gcc; do
5213506e
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9980$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9981 if test -x $with_build_time_tools/${ncn_progname}; then
9982 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9984$as_echo "yes" >&6; }
e8b05380
PB
9985 break
9986 else
5213506e
RW
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988$as_echo "no" >&6; }
e8b05380
PB
9989 fi
9990 done
9991fi
9992
9993if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9994 for ncn_progname in gcc; do
9995 if test -n "$ncn_target_tool_prefix"; then
9996 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9997set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
ca9f4b81 10002else
e8b05380
PB
10003 if test -n "$GCC_FOR_TARGET"; then
10004 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10005else
1c710c3c
DJ
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
5213506e
RW
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10013 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10015 break 2
10016 fi
10017done
5213506e
RW
10018 done
10019IFS=$as_save_IFS
1c710c3c 10020
ca9f4b81
AO
10021fi
10022fi
1c710c3c 10023GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10024if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10026$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10027else
5213506e
RW
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
ca9f4b81
AO
10030fi
10031
5213506e 10032
e8b05380
PB
10033 fi
10034 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10036set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038$as_echo_n "checking for $ac_word... " >&6; }
10039if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
ca9f4b81 10041else
e8b05380
PB
10042 if test -n "$GCC_FOR_TARGET"; then
10043 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10044else
1c710c3c
DJ
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
5213506e
RW
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10052 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10054 break 2
10055 fi
10056done
5213506e
RW
10057 done
10058IFS=$as_save_IFS
1c710c3c 10059
ca9f4b81
AO
10060fi
10061fi
1c710c3c 10062GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10063if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10065$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10066else
5213506e
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068$as_echo "no" >&6; }
ca9f4b81 10069fi
1c710c3c 10070
5213506e 10071
e8b05380
PB
10072 fi
10073 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10074 done
10075fi
1c710c3c 10076
e8b05380
PB
10077if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10078 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10079else
10080 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10081fi
10082
278a7a38
AO
10083
10084
10085if test -n "$GCJ_FOR_TARGET"; then
10086 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10087elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10088 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10089fi
10090
10091if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10092 for ncn_progname in gcj; do
10093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10094set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096$as_echo_n "checking for $ac_word... " >&6; }
10097if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
278a7a38
AO
10099else
10100 if test -n "$GCJ_FOR_TARGET"; then
10101 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
5213506e
RW
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10110 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10112 break 2
10113 fi
10114done
5213506e
RW
10115 done
10116IFS=$as_save_IFS
278a7a38
AO
10117
10118fi
10119fi
10120GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10121if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10123$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10124else
5213506e
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126$as_echo "no" >&6; }
278a7a38
AO
10127fi
10128
5213506e 10129
278a7a38
AO
10130 done
10131fi
10132
10133if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10134 for ncn_progname in gcj; do
5213506e
RW
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10136$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10137 if test -x $with_build_time_tools/${ncn_progname}; then
10138 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10140$as_echo "yes" >&6; }
e8b05380
PB
10141 break
10142 else
5213506e
RW
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144$as_echo "no" >&6; }
e8b05380
PB
10145 fi
10146 done
10147fi
10148
10149if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10150 for ncn_progname in gcj; do
10151 if test -n "$ncn_target_tool_prefix"; then
10152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10153set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155$as_echo_n "checking for $ac_word... " >&6; }
10156if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
e8b05380 10158else
fb0103e5
RG
10159 if test -n "$GCJ_FOR_TARGET"; then
10160 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10161else
1c710c3c
DJ
10162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163for as_dir in $PATH
10164do
10165 IFS=$as_save_IFS
10166 test -z "$as_dir" && as_dir=.
5213506e
RW
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10169 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10171 break 2
10172 fi
10173done
5213506e
RW
10174 done
10175IFS=$as_save_IFS
1c710c3c 10176
e8b05380
PB
10177fi
10178fi
278a7a38
AO
10179GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10180if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10182$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10183else
5213506e
RW
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185$as_echo "no" >&6; }
278a7a38
AO
10186fi
10187
5213506e 10188
278a7a38
AO
10189 fi
10190 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10192set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
278a7a38
AO
10197else
10198 if test -n "$GCJ_FOR_TARGET"; then
10199 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10200else
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
5213506e
RW
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10208 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10210 break 2
10211 fi
10212done
5213506e
RW
10213 done
10214IFS=$as_save_IFS
278a7a38
AO
10215
10216fi
10217fi
10218GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10219if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10221$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10222else
5213506e
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
278a7a38
AO
10225fi
10226
5213506e 10227
278a7a38
AO
10228 fi
10229 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10230 done
10231fi
10232
10233if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10234 set dummy gcj
10235 if test $build = $target ; then
10236 GCJ_FOR_TARGET="$2"
10237 else
10238 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10239 fi
1c00b503
PB
10240else
10241 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10242fi
10243
10244
10245
10246if test -n "$GFORTRAN_FOR_TARGET"; then
10247 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10248elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10249 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10250fi
10251
278a7a38
AO
10252if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10253 for ncn_progname in gfortran; do
10254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257$as_echo_n "checking for $ac_word... " >&6; }
10258if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10259 $as_echo_n "(cached) " >&6
e8b05380 10260else
278a7a38
AO
10261 if test -n "$GFORTRAN_FOR_TARGET"; then
10262 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10263else
1c710c3c
DJ
10264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265for as_dir in $PATH
10266do
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
5213506e
RW
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10271 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10273 break 2
10274 fi
10275done
5213506e
RW
10276 done
10277IFS=$as_save_IFS
1c710c3c 10278
e8b05380
PB
10279fi
10280fi
278a7a38
AO
10281GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10282if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10284$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10285else
5213506e
RW
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287$as_echo "no" >&6; }
e8b05380 10288fi
1c710c3c 10289
5213506e 10290
e8b05380
PB
10291 done
10292fi
1c710c3c 10293
278a7a38 10294if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10295 for ncn_progname in gfortran; do
5213506e
RW
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10297$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10298 if test -x $with_build_time_tools/${ncn_progname}; then
10299 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301$as_echo "yes" >&6; }
e8b05380
PB
10302 break
10303 else
5213506e
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
e8b05380
PB
10306 fi
10307 done
10308fi
10309
10310if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10311 for ncn_progname in gfortran; do
10312 if test -n "$ncn_target_tool_prefix"; then
10313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10314set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316$as_echo_n "checking for $ac_word... " >&6; }
10317if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
e8b05380
PB
10319else
10320 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10321 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
5213506e
RW
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10330 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10332 break 2
10333 fi
10334done
5213506e
RW
10335 done
10336IFS=$as_save_IFS
1c710c3c 10337
e8b05380
PB
10338fi
10339fi
1c710c3c 10340GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10341if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10343$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10344else
5213506e
RW
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346$as_echo "no" >&6; }
e8b05380
PB
10347fi
10348
5213506e 10349
e8b05380
PB
10350 fi
10351 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
e8b05380
PB
10358else
10359 if test -n "$GFORTRAN_FOR_TARGET"; then
10360 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10361else
1c710c3c
DJ
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
5213506e
RW
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10369 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10371 break 2
10372 fi
10373done
5213506e
RW
10374 done
10375IFS=$as_save_IFS
1c710c3c 10376
e8b05380
PB
10377fi
10378fi
1c710c3c 10379GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10380if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10382$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10383else
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
e8b05380 10386fi
1c710c3c 10387
5213506e 10388
e8b05380
PB
10389 fi
10390 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10391 done
10392fi
1c710c3c 10393
e8b05380
PB
10394if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10395 set dummy gfortran
2693c0b0 10396 if test $build = $target ; then
e8b05380 10397 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10398 else
e8b05380
PB
10399 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10400 fi
1c00b503
PB
10401else
10402 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10403fi
10404
10405
10406
632e2a07
ILT
10407if test -n "$GOC_FOR_TARGET"; then
10408 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10409elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10410 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10411fi
10412
10413if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10414 for ncn_progname in gccgo; do
10415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10416set dummy ${ncn_progname}; ac_word=$2
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418$as_echo_n "checking for $ac_word... " >&6; }
10419if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10420 $as_echo_n "(cached) " >&6
10421else
10422 if test -n "$GOC_FOR_TARGET"; then
10423 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10424else
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10435 fi
10436done
10437 done
10438IFS=$as_save_IFS
10439
10440fi
10441fi
10442GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10443if test -n "$GOC_FOR_TARGET"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10445$as_echo "$GOC_FOR_TARGET" >&6; }
10446else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448$as_echo "no" >&6; }
10449fi
10450
10451
10452 done
10453fi
10454
10455if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10456 for ncn_progname in gccgo; do
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10458$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10459 if test -x $with_build_time_tools/${ncn_progname}; then
10460 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462$as_echo "yes" >&6; }
10463 break
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466$as_echo "no" >&6; }
10467 fi
10468 done
10469fi
10470
10471if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10472 for ncn_progname in gccgo; do
10473 if test -n "$ncn_target_tool_prefix"; then
10474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10475set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477$as_echo_n "checking for $ac_word... " >&6; }
10478if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10479 $as_echo_n "(cached) " >&6
10480else
10481 if test -n "$GOC_FOR_TARGET"; then
10482 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10483else
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10494 fi
10495done
10496 done
10497IFS=$as_save_IFS
10498
10499fi
10500fi
10501GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10502if test -n "$GOC_FOR_TARGET"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10504$as_echo "$GOC_FOR_TARGET" >&6; }
10505else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
10508fi
10509
10510
10511 fi
10512 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10514set dummy ${ncn_progname}; ac_word=$2
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516$as_echo_n "checking for $ac_word... " >&6; }
10517if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10519else
10520 if test -n "$GOC_FOR_TARGET"; then
10521 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538fi
10539fi
10540GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10541if test -n "$GOC_FOR_TARGET"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10543$as_echo "$GOC_FOR_TARGET" >&6; }
10544else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547fi
10548
10549
10550 fi
10551 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10552 done
10553fi
10554
10555if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10556 set dummy gccgo
10557 if test $build = $target ; then
10558 GOC_FOR_TARGET="$2"
10559 else
10560 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10561 fi
10562else
10563 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10564fi
10565
10566
10567
e8b05380
PB
10568cat > conftest.c << \EOF
10569#ifdef __GNUC__
10570 gcc_yay;
10571#endif
10572EOF
10573if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10574 have_gcc_for_target=yes
10575else
10576 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10577 have_gcc_for_target=no
10578fi
10579rm conftest.c
10580
10581
10582
10583
10584if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10585 if test -n "$with_build_time_tools"; then
5213506e
RW
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10587$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10588 if test -x $with_build_time_tools/ar; then
10589 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10590 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10592$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10593 else
5213506e
RW
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595$as_echo "no" >&6; }
d1f8db0c 10596 fi
e8b05380
PB
10597 elif test $build != $host && test $have_gcc_for_target = yes; then
10598 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10599 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10600 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10601 fi
10602fi
3e19841a 10603if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10604 # Extract the first word of "ar", so it can be a program name with args.
10605set dummy ar; ac_word=$2
5213506e
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
10608if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
e8b05380 10610else
1c710c3c
DJ
10611 case $AR_FOR_TARGET in
10612 [\\/]* | ?:[\\/]*)
e8b05380
PB
10613 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10614 ;;
e8b05380 10615 *)
1c710c3c
DJ
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $gcc_cv_tool_dirs
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
5213506e
RW
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10623 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10625 break 2
10626 fi
10627done
5213506e
RW
10628 done
10629IFS=$as_save_IFS
1c710c3c 10630
e8b05380
PB
10631 ;;
10632esac
10633fi
1c710c3c 10634AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10635if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10637$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10638else
5213506e
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
4de997d1
PB
10641fi
10642
5213506e 10643
e8b05380
PB
10644fi
10645if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10646
10647
10648if test -n "$AR_FOR_TARGET"; then
10649 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10650elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10651 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10652fi
10653
10654if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10655 for ncn_progname in ar; do
10656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10657set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659$as_echo_n "checking for $ac_word... " >&6; }
10660if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
278a7a38
AO
10662else
10663 if test -n "$AR_FOR_TARGET"; then
10664 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10665else
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
5213506e
RW
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10673 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10675 break 2
10676 fi
10677done
5213506e
RW
10678 done
10679IFS=$as_save_IFS
278a7a38
AO
10680
10681fi
10682fi
10683AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10684if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10686$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10687else
5213506e
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689$as_echo "no" >&6; }
278a7a38
AO
10690fi
10691
5213506e 10692
278a7a38
AO
10693 done
10694fi
10695
10696if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10697 for ncn_progname in ar; do
5213506e
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10699$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10700 if test -x $with_build_time_tools/${ncn_progname}; then
10701 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703$as_echo "yes" >&6; }
e8b05380
PB
10704 break
10705 else
5213506e
RW
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707$as_echo "no" >&6; }
e8b05380
PB
10708 fi
10709 done
10710fi
10711
10712if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10713 for ncn_progname in ar; do
10714 if test -n "$ncn_target_tool_prefix"; then
10715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10716set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718$as_echo_n "checking for $ac_word... " >&6; }
10719if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
4de997d1 10721else
e8b05380
PB
10722 if test -n "$AR_FOR_TARGET"; then
10723 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10724else
1c710c3c
DJ
10725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726for as_dir in $PATH
10727do
10728 IFS=$as_save_IFS
10729 test -z "$as_dir" && as_dir=.
5213506e
RW
10730 for ac_exec_ext in '' $ac_executable_extensions; do
10731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10732 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10734 break 2
10735 fi
10736done
5213506e
RW
10737 done
10738IFS=$as_save_IFS
1c710c3c 10739
4de997d1
PB
10740fi
10741fi
1c710c3c 10742AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10743if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10745$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10746else
5213506e
RW
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
4de997d1
PB
10749fi
10750
5213506e 10751
e8b05380
PB
10752 fi
10753 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
10758if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
e8b05380
PB
10760else
10761 if test -n "$AR_FOR_TARGET"; then
10762 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10763else
1c710c3c
DJ
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
5213506e
RW
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10771 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10773 break 2
10774 fi
10775done
5213506e
RW
10776 done
10777IFS=$as_save_IFS
1c710c3c 10778
e8b05380
PB
10779fi
10780fi
1c710c3c 10781AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10782if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10784$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10785else
5213506e
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
e8b05380 10788fi
1c710c3c 10789
5213506e 10790
e8b05380
PB
10791 fi
10792 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10793 done
10794fi
1c710c3c 10795
e8b05380
PB
10796if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10797 set dummy ar
10798 if test $build = $target ; then
10799 AR_FOR_TARGET="$2"
10800 else
10801 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10802 fi
1c00b503
PB
10803else
10804 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10805fi
10806
d1f8db0c
PB
10807else
10808 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10809fi
10810
10811
10812
10813
10814if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10815 if test -n "$with_build_time_tools"; then
5213506e
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10817$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10818 if test -x $with_build_time_tools/as; then
10819 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10820 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10822$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10823 else
5213506e
RW
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
d1f8db0c 10826 fi
e8b05380
PB
10827 elif test $build != $host && test $have_gcc_for_target = yes; then
10828 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10829 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10830 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10831 fi
10832fi
3e19841a 10833if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10834 # Extract the first word of "as", so it can be a program name with args.
10835set dummy as; ac_word=$2
5213506e
RW
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
10838if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
e8b05380 10840else
1c710c3c
DJ
10841 case $AS_FOR_TARGET in
10842 [\\/]* | ?:[\\/]*)
e8b05380
PB
10843 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10844 ;;
e8b05380 10845 *)
1c710c3c
DJ
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $gcc_cv_tool_dirs
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
5213506e
RW
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10853 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10855 break 2
10856 fi
10857done
5213506e
RW
10858 done
10859IFS=$as_save_IFS
1c710c3c 10860
e8b05380
PB
10861 ;;
10862esac
10863fi
1c710c3c 10864AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10865if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10867$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10868else
5213506e
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
e8b05380
PB
10871fi
10872
5213506e 10873
e8b05380
PB
10874fi
10875if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10876
10877
10878if test -n "$AS_FOR_TARGET"; then
10879 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10880elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10881 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10882fi
10883
10884if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10885 for ncn_progname in as; do
10886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10887set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
10890if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
278a7a38
AO
10892else
10893 if test -n "$AS_FOR_TARGET"; then
10894 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10895else
10896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897for as_dir in $PATH
10898do
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
5213506e
RW
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10903 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10905 break 2
10906 fi
10907done
5213506e
RW
10908 done
10909IFS=$as_save_IFS
278a7a38
AO
10910
10911fi
10912fi
10913AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10914if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10916$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10917else
5213506e
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
278a7a38
AO
10920fi
10921
5213506e 10922
278a7a38
AO
10923 done
10924fi
10925
10926if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10927 for ncn_progname in as; do
5213506e
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10929$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10930 if test -x $with_build_time_tools/${ncn_progname}; then
10931 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10933$as_echo "yes" >&6; }
e8b05380
PB
10934 break
10935 else
5213506e
RW
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937$as_echo "no" >&6; }
e8b05380
PB
10938 fi
10939 done
10940fi
10941
10942if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10943 for ncn_progname in as; do
10944 if test -n "$ncn_target_tool_prefix"; then
10945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10946set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948$as_echo_n "checking for $ac_word... " >&6; }
10949if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
e8b05380
PB
10951else
10952 if test -n "$AS_FOR_TARGET"; then
10953 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10954else
1c710c3c
DJ
10955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956for as_dir in $PATH
10957do
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
5213506e
RW
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10962 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10964 break 2
10965 fi
10966done
5213506e
RW
10967 done
10968IFS=$as_save_IFS
1c710c3c 10969
e8b05380
PB
10970fi
10971fi
1c710c3c 10972AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10973if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10975$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10976else
5213506e
RW
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978$as_echo "no" >&6; }
e8b05380
PB
10979fi
10980
5213506e 10981
e8b05380
PB
10982 fi
10983 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10985set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
4de997d1 10990else
e8b05380
PB
10991 if test -n "$AS_FOR_TARGET"; then
10992 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 10993else
1c710c3c
DJ
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
5213506e
RW
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11001 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11003 break 2
11004 fi
11005done
5213506e
RW
11006 done
11007IFS=$as_save_IFS
1c710c3c 11008
4de997d1
PB
11009fi
11010fi
1c710c3c 11011AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11012if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11014$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11015else
5213506e
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
4de997d1 11018fi
1c710c3c 11019
5213506e 11020
e8b05380
PB
11021 fi
11022 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11023 done
11024fi
1c710c3c 11025
e8b05380
PB
11026if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11027 set dummy as
11028 if test $build = $target ; then
11029 AS_FOR_TARGET="$2"
11030 else
11031 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11032 fi
1c00b503
PB
11033else
11034 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11035fi
2693c0b0 11036
d1f8db0c
PB
11037else
11038 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11039fi
11040
e8b05380
PB
11041
11042
11043
11044if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11045 if test -n "$with_build_time_tools"; then
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11047$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11048 if test -x $with_build_time_tools/dlltool; then
11049 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11050 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11052$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11053 else
5213506e
RW
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
d1f8db0c 11056 fi
e8b05380
PB
11057 elif test $build != $host && test $have_gcc_for_target = yes; then
11058 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11059 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11060 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11061 fi
11062fi
3e19841a 11063if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11064 # Extract the first word of "dlltool", so it can be a program name with args.
11065set dummy dlltool; ac_word=$2
5213506e
RW
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11067$as_echo_n "checking for $ac_word... " >&6; }
11068if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11069 $as_echo_n "(cached) " >&6
4de997d1 11070else
1c710c3c
DJ
11071 case $DLLTOOL_FOR_TARGET in
11072 [\\/]* | ?:[\\/]*)
e8b05380
PB
11073 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11074 ;;
e8b05380 11075 *)
1c710c3c
DJ
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $gcc_cv_tool_dirs
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
5213506e
RW
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11083 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11085 break 2
11086 fi
11087done
5213506e
RW
11088 done
11089IFS=$as_save_IFS
1c710c3c 11090
e8b05380
PB
11091 ;;
11092esac
4de997d1 11093fi
1c710c3c 11094DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11095if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11097$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11098else
5213506e
RW
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
4de997d1
PB
11101fi
11102
5213506e 11103
e8b05380
PB
11104fi
11105if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11106
11107
11108if test -n "$DLLTOOL_FOR_TARGET"; then
11109 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11110elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11111 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11112fi
11113
11114if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11115 for ncn_progname in dlltool; do
11116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11117set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119$as_echo_n "checking for $ac_word... " >&6; }
11120if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
278a7a38
AO
11122else
11123 if test -n "$DLLTOOL_FOR_TARGET"; then
11124 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11125else
11126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127for as_dir in $PATH
11128do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
5213506e
RW
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11133 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11135 break 2
11136 fi
11137done
5213506e
RW
11138 done
11139IFS=$as_save_IFS
278a7a38
AO
11140
11141fi
11142fi
11143DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11144if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11146$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11147else
5213506e
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
278a7a38
AO
11150fi
11151
5213506e 11152
278a7a38
AO
11153 done
11154fi
11155
11156if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11157 for ncn_progname in dlltool; do
5213506e
RW
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11159$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11160 if test -x $with_build_time_tools/${ncn_progname}; then
11161 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11163$as_echo "yes" >&6; }
e8b05380
PB
11164 break
11165 else
5213506e
RW
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167$as_echo "no" >&6; }
e8b05380
PB
11168 fi
11169 done
11170fi
11171
11172if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11173 for ncn_progname in dlltool; do
11174 if test -n "$ncn_target_tool_prefix"; then
11175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11176set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178$as_echo_n "checking for $ac_word... " >&6; }
11179if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
4de997d1 11181else
e8b05380
PB
11182 if test -n "$DLLTOOL_FOR_TARGET"; then
11183 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11184else
1c710c3c
DJ
11185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186for as_dir in $PATH
11187do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
5213506e
RW
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11192 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11194 break 2
11195 fi
11196done
5213506e
RW
11197 done
11198IFS=$as_save_IFS
1c710c3c 11199
4de997d1
PB
11200fi
11201fi
1c710c3c 11202DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11203if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11205$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11206else
5213506e
RW
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208$as_echo "no" >&6; }
4de997d1 11209fi
4de997d1 11210
5213506e 11211
e8b05380
PB
11212 fi
11213 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11215set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217$as_echo_n "checking for $ac_word... " >&6; }
11218if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
4de997d1 11220else
e8b05380
PB
11221 if test -n "$DLLTOOL_FOR_TARGET"; then
11222 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11223else
1c710c3c
DJ
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
5213506e
RW
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11231 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11233 break 2
11234 fi
11235done
5213506e
RW
11236 done
11237IFS=$as_save_IFS
1c710c3c 11238
4de997d1
PB
11239fi
11240fi
1c710c3c 11241DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11242if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11244$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11245else
5213506e
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
4de997d1 11248fi
1c710c3c 11249
5213506e 11250
e8b05380
PB
11251 fi
11252 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11253 done
11254fi
1c710c3c 11255
e8b05380
PB
11256if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11257 set dummy dlltool
11258 if test $build = $target ; then
11259 DLLTOOL_FOR_TARGET="$2"
11260 else
11261 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11262 fi
1c00b503
PB
11263else
11264 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11265fi
11266
d1f8db0c
PB
11267else
11268 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11269fi
11270
4de997d1 11271
e8b05380
PB
11272
11273
11274if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11275 if test -n "$with_build_time_tools"; then
5213506e
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11277$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11278 if test -x $with_build_time_tools/ld; then
11279 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11280 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11282$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11283 else
5213506e
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
d1f8db0c 11286 fi
e8b05380
PB
11287 elif test $build != $host && test $have_gcc_for_target = yes; then
11288 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11289 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11290 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11291 fi
e8b05380 11292fi
3e19841a 11293if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11294 # Extract the first word of "ld", so it can be a program name with args.
11295set dummy ld; ac_word=$2
5213506e
RW
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297$as_echo_n "checking for $ac_word... " >&6; }
11298if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
4de997d1 11300else
1c710c3c
DJ
11301 case $LD_FOR_TARGET in
11302 [\\/]* | ?:[\\/]*)
e8b05380
PB
11303 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11304 ;;
e8b05380 11305 *)
1c710c3c
DJ
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $gcc_cv_tool_dirs
11308do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
5213506e
RW
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11313 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11315 break 2
11316 fi
11317done
5213506e
RW
11318 done
11319IFS=$as_save_IFS
1c710c3c 11320
e8b05380
PB
11321 ;;
11322esac
4de997d1 11323fi
1c710c3c 11324LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11325if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11327$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11328else
5213506e
RW
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330$as_echo "no" >&6; }
4de997d1 11331fi
2693c0b0 11332
5213506e 11333
e8b05380
PB
11334fi
11335if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11336
11337
11338if test -n "$LD_FOR_TARGET"; then
11339 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11340elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11341 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11342fi
11343
11344if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11345 for ncn_progname in ld; do
11346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11347set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
11350if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
278a7a38
AO
11352else
11353 if test -n "$LD_FOR_TARGET"; then
11354 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
5213506e
RW
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11363 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11365 break 2
11366 fi
11367done
5213506e
RW
11368 done
11369IFS=$as_save_IFS
278a7a38
AO
11370
11371fi
11372fi
11373LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11374if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11376$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11377else
5213506e
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
278a7a38
AO
11380fi
11381
5213506e 11382
278a7a38
AO
11383 done
11384fi
11385
11386if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11387 for ncn_progname in ld; do
5213506e
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11389$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11390 if test -x $with_build_time_tools/${ncn_progname}; then
11391 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393$as_echo "yes" >&6; }
e8b05380
PB
11394 break
11395 else
5213506e
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397$as_echo "no" >&6; }
e8b05380
PB
11398 fi
11399 done
ca9f4b81
AO
11400fi
11401
e8b05380
PB
11402if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11403 for ncn_progname in ld; do
11404 if test -n "$ncn_target_tool_prefix"; then
11405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11406set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408$as_echo_n "checking for $ac_word... " >&6; }
11409if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
ca9f4b81 11411else
4de997d1
PB
11412 if test -n "$LD_FOR_TARGET"; then
11413 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11414else
1c710c3c
DJ
11415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
5213506e
RW
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11422 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11424 break 2
11425 fi
11426done
5213506e
RW
11427 done
11428IFS=$as_save_IFS
1c710c3c 11429
ca9f4b81
AO
11430fi
11431fi
1c710c3c 11432LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11433if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11435$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11436else
5213506e
RW
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
ca9f4b81
AO
11439fi
11440
5213506e 11441
e8b05380
PB
11442 fi
11443 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11445set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447$as_echo_n "checking for $ac_word... " >&6; }
11448if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
ca9f4b81 11450else
2693c0b0
PB
11451 if test -n "$LD_FOR_TARGET"; then
11452 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11453else
1c710c3c
DJ
11454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455for as_dir in $PATH
11456do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
5213506e
RW
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11461 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11463 break 2
11464 fi
11465done
5213506e
RW
11466 done
11467IFS=$as_save_IFS
1c710c3c 11468
ca9f4b81
AO
11469fi
11470fi
1c710c3c 11471LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11472if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11474$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11475else
5213506e
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
ca9f4b81 11478fi
1c710c3c 11479
5213506e 11480
e8b05380
PB
11481 fi
11482 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11483 done
11484fi
1c710c3c 11485
2693c0b0
PB
11486if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11487 set dummy ld
11488 if test $build = $target ; then
11489 LD_FOR_TARGET="$2"
ca9f4b81 11490 else
2693c0b0 11491 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11492 fi
1c00b503
PB
11493else
11494 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11495fi
11496
d1f8db0c
PB
11497else
11498 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11499fi
11500
11501
11502
11503
11504if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11505 if test -n "$with_build_time_tools"; then
5213506e
RW
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11507$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11508 if test -x $with_build_time_tools/lipo; then
11509 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11510 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11512$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11513 else
5213506e
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
d1f8db0c 11516 fi
e8b05380
PB
11517 elif test $build != $host && test $have_gcc_for_target = yes; then
11518 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11519 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11520 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11521 fi
11522fi
278a7a38
AO
11523if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11524 # Extract the first word of "lipo", so it can be a program name with args.
11525set dummy lipo; ac_word=$2
5213506e
RW
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
11528if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
278a7a38
AO
11530else
11531 case $LIPO_FOR_TARGET in
11532 [\\/]* | ?:[\\/]*)
11533 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11534 ;;
11535 *)
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $gcc_cv_tool_dirs
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
5213506e
RW
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11543 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11545 break 2
11546 fi
11547done
5213506e
RW
11548 done
11549IFS=$as_save_IFS
278a7a38
AO
11550
11551 ;;
11552esac
11553fi
11554LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11555if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11557$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11558else
5213506e
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
278a7a38
AO
11561fi
11562
5213506e 11563
278a7a38
AO
11564fi
11565if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11566
11567
11568if test -n "$LIPO_FOR_TARGET"; then
11569 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11570elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11571 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11572fi
11573
11574if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11575 for ncn_progname in lipo; do
11576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11577set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579$as_echo_n "checking for $ac_word... " >&6; }
11580if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
e8b05380 11582else
278a7a38
AO
11583 if test -n "$LIPO_FOR_TARGET"; then
11584 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11585else
11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587for as_dir in $PATH
1c710c3c
DJ
11588do
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
5213506e
RW
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11593 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11595 break 2
11596 fi
11597done
5213506e
RW
11598 done
11599IFS=$as_save_IFS
1c710c3c 11600
e8b05380 11601fi
278a7a38
AO
11602fi
11603LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11604if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11606$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11607else
5213506e
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
e8b05380
PB
11610fi
11611
5213506e 11612
278a7a38 11613 done
e8b05380 11614fi
278a7a38
AO
11615
11616if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11617 for ncn_progname in lipo; do
5213506e
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11619$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11620 if test -x $with_build_time_tools/${ncn_progname}; then
11621 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623$as_echo "yes" >&6; }
e8b05380
PB
11624 break
11625 else
5213506e
RW
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
e8b05380
PB
11628 fi
11629 done
11630fi
11631
11632if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11633 for ncn_progname in lipo; do
11634 if test -n "$ncn_target_tool_prefix"; then
11635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11636set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
11639if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
040b1c5a
GK
11641else
11642 if test -n "$LIPO_FOR_TARGET"; then
11643 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11644else
1c710c3c
DJ
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
5213506e
RW
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11652 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11654 break 2
11655 fi
11656done
5213506e
RW
11657 done
11658IFS=$as_save_IFS
1c710c3c 11659
040b1c5a
GK
11660fi
11661fi
1c710c3c 11662LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11663if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11665$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11666else
5213506e
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
040b1c5a
GK
11669fi
11670
5213506e 11671
e8b05380
PB
11672 fi
11673 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11675set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
11678if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
040b1c5a
GK
11680else
11681 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11682 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11683else
1c710c3c
DJ
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
5213506e
RW
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11691 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11693 break 2
11694 fi
11695done
5213506e
RW
11696 done
11697IFS=$as_save_IFS
1c710c3c 11698
040b1c5a
GK
11699fi
11700fi
1c710c3c 11701LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11702if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11704$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11705else
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
040b1c5a 11708fi
1c710c3c 11709
5213506e 11710
e8b05380
PB
11711 fi
11712 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11713 done
11714fi
1c710c3c 11715
040b1c5a
GK
11716if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11717 set dummy lipo
11718 if test $build = $target ; then
11719 LIPO_FOR_TARGET="$2"
11720 else
11721 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11722 fi
1c00b503
PB
11723else
11724 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11725fi
11726
d1f8db0c
PB
11727else
11728 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11729fi
11730
11731
11732
11733
11734if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11735 if test -n "$with_build_time_tools"; then
5213506e
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11737$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11738 if test -x $with_build_time_tools/nm; then
11739 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11740 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11742$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11743 else
5213506e
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
d1f8db0c 11746 fi
e8b05380
PB
11747 elif test $build != $host && test $have_gcc_for_target = yes; then
11748 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11749 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11750 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11751 fi
11752fi
3e19841a 11753if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11754 # Extract the first word of "nm", so it can be a program name with args.
11755set dummy nm; ac_word=$2
5213506e
RW
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757$as_echo_n "checking for $ac_word... " >&6; }
11758if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
e8b05380 11760else
1c710c3c
DJ
11761 case $NM_FOR_TARGET in
11762 [\\/]* | ?:[\\/]*)
e8b05380
PB
11763 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11764 ;;
e8b05380 11765 *)
1c710c3c
DJ
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $gcc_cv_tool_dirs
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
5213506e
RW
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11773 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11775 break 2
11776 fi
11777done
5213506e
RW
11778 done
11779IFS=$as_save_IFS
1c710c3c 11780
e8b05380
PB
11781 ;;
11782esac
11783fi
1c710c3c 11784NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11785if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11787$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11788else
5213506e
RW
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
e8b05380
PB
11791fi
11792
5213506e 11793
e8b05380
PB
11794fi
11795if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11796
11797
11798if test -n "$NM_FOR_TARGET"; then
11799 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11800elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11801 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11802fi
11803
11804if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11805 for ncn_progname in nm; do
11806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11807set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
11810if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11811 $as_echo_n "(cached) " >&6
278a7a38
AO
11812else
11813 if test -n "$NM_FOR_TARGET"; then
11814 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
5213506e
RW
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11823 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11825 break 2
11826 fi
11827done
5213506e
RW
11828 done
11829IFS=$as_save_IFS
278a7a38
AO
11830
11831fi
11832fi
11833NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11834if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11836$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11837else
5213506e
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
278a7a38
AO
11840fi
11841
5213506e 11842
278a7a38
AO
11843 done
11844fi
11845
11846if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11847 for ncn_progname in nm; do
5213506e
RW
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11849$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11850 if test -x $with_build_time_tools/${ncn_progname}; then
11851 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853$as_echo "yes" >&6; }
e8b05380
PB
11854 break
11855 else
5213506e
RW
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
e8b05380
PB
11858 fi
11859 done
11860fi
11861
11862if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11863 for ncn_progname in nm; do
11864 if test -n "$ncn_target_tool_prefix"; then
11865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11866set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868$as_echo_n "checking for $ac_word... " >&6; }
11869if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
ca9f4b81 11871else
4de997d1
PB
11872 if test -n "$NM_FOR_TARGET"; then
11873 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11874else
1c710c3c
DJ
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
5213506e
RW
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11882 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11884 break 2
11885 fi
11886done
5213506e
RW
11887 done
11888IFS=$as_save_IFS
1c710c3c 11889
ca9f4b81
AO
11890fi
11891fi
1c710c3c 11892NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11893if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11895$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11896else
5213506e
RW
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
ca9f4b81
AO
11899fi
11900
5213506e 11901
e8b05380
PB
11902 fi
11903 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11905set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
11908if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
ca9f4b81 11910else
2693c0b0
PB
11911 if test -n "$NM_FOR_TARGET"; then
11912 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11913else
1c710c3c
DJ
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
5213506e
RW
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11921 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11923 break 2
11924 fi
11925done
5213506e
RW
11926 done
11927IFS=$as_save_IFS
1c710c3c 11928
ca9f4b81
AO
11929fi
11930fi
1c710c3c 11931NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11932if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11934$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11935else
5213506e
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
ca9f4b81 11938fi
1c710c3c 11939
5213506e 11940
e8b05380
PB
11941 fi
11942 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11943 done
11944fi
1c710c3c 11945
2693c0b0
PB
11946if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11947 set dummy nm
11948 if test $build = $target ; then
11949 NM_FOR_TARGET="$2"
ca9f4b81 11950 else
2693c0b0 11951 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11952 fi
1c00b503
PB
11953else
11954 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11955fi
11956
d1f8db0c
PB
11957else
11958 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11959fi
11960
11961
11962
11963
11964if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11965 if test -n "$with_build_time_tools"; then
5213506e
RW
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11967$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11968 if test -x $with_build_time_tools/objdump; then
11969 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11970 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11972$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11973 else
5213506e
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
d1f8db0c 11976 fi
e8b05380
PB
11977 elif test $build != $host && test $have_gcc_for_target = yes; then
11978 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
11979 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11980 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
11981 fi
11982fi
3e19841a 11983if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11984 # Extract the first word of "objdump", so it can be a program name with args.
11985set dummy objdump; ac_word=$2
5213506e
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
11988if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
e8b05380 11990else
1c710c3c
DJ
11991 case $OBJDUMP_FOR_TARGET in
11992 [\\/]* | ?:[\\/]*)
e8b05380
PB
11993 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11994 ;;
e8b05380 11995 *)
1c710c3c
DJ
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $gcc_cv_tool_dirs
11998do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
5213506e
RW
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12003 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12005 break 2
12006 fi
12007done
5213506e
RW
12008 done
12009IFS=$as_save_IFS
1c710c3c 12010
e8b05380
PB
12011 ;;
12012esac
12013fi
1c710c3c 12014OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12015if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12017$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12018else
5213506e
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
e8b05380
PB
12021fi
12022
5213506e 12023
e8b05380
PB
12024fi
12025if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12026
12027
12028if test -n "$OBJDUMP_FOR_TARGET"; then
12029 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12030elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12031 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12032fi
12033
12034if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12035 for ncn_progname in objdump; do
12036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039$as_echo_n "checking for $ac_word... " >&6; }
12040if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
278a7a38
AO
12042else
12043 if test -n "$OBJDUMP_FOR_TARGET"; then
12044 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12045else
12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
5213506e
RW
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12053 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12055 break 2
12056 fi
12057done
5213506e
RW
12058 done
12059IFS=$as_save_IFS
278a7a38
AO
12060
12061fi
12062fi
12063OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12064if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12066$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12067else
5213506e
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
278a7a38
AO
12070fi
12071
5213506e 12072
278a7a38
AO
12073 done
12074fi
12075
12076if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12077 for ncn_progname in objdump; do
5213506e
RW
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12079$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12080 if test -x $with_build_time_tools/${ncn_progname}; then
12081 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12083$as_echo "yes" >&6; }
e8b05380
PB
12084 break
12085 else
5213506e
RW
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
e8b05380
PB
12088 fi
12089 done
12090fi
12091
12092if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12093 for ncn_progname in objdump; do
12094 if test -n "$ncn_target_tool_prefix"; then
12095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
12099if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
d739199a
DJ
12101else
12102 if test -n "$OBJDUMP_FOR_TARGET"; then
12103 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12104else
1c710c3c
DJ
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
5213506e
RW
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12112 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12114 break 2
12115 fi
12116done
5213506e
RW
12117 done
12118IFS=$as_save_IFS
1c710c3c 12119
d739199a
DJ
12120fi
12121fi
1c710c3c 12122OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12123if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12125$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12126else
5213506e
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
d739199a
DJ
12129fi
12130
5213506e 12131
e8b05380
PB
12132 fi
12133 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12135set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137$as_echo_n "checking for $ac_word... " >&6; }
12138if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
d739199a
DJ
12140else
12141 if test -n "$OBJDUMP_FOR_TARGET"; then
12142 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12143else
1c710c3c
DJ
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
5213506e
RW
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12151 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12153 break 2
12154 fi
12155done
5213506e
RW
12156 done
12157IFS=$as_save_IFS
1c710c3c 12158
d739199a
DJ
12159fi
12160fi
1c710c3c 12161OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12162if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12164$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12165else
5213506e
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
d739199a 12168fi
1c710c3c 12169
5213506e 12170
e8b05380
PB
12171 fi
12172 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12173 done
12174fi
1c710c3c 12175
d739199a
DJ
12176if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12177 set dummy objdump
12178 if test $build = $target ; then
12179 OBJDUMP_FOR_TARGET="$2"
12180 else
12181 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12182 fi
1c00b503
PB
12183else
12184 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12185fi
12186
d1f8db0c
PB
12187else
12188 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12189fi
12190
12191
12192
12193
12194if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12195 if test -n "$with_build_time_tools"; then
5213506e
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12197$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12198 if test -x $with_build_time_tools/ranlib; then
12199 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12200 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12202$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12203 else
5213506e
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
d1f8db0c 12206 fi
e8b05380
PB
12207 elif test $build != $host && test $have_gcc_for_target = yes; then
12208 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12209 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12210 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12211 fi
12212fi
3e19841a 12213if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12214 # Extract the first word of "ranlib", so it can be a program name with args.
12215set dummy ranlib; ac_word=$2
5213506e
RW
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217$as_echo_n "checking for $ac_word... " >&6; }
12218if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
e8b05380 12220else
1c710c3c
DJ
12221 case $RANLIB_FOR_TARGET in
12222 [\\/]* | ?:[\\/]*)
e8b05380
PB
12223 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12224 ;;
e8b05380 12225 *)
1c710c3c
DJ
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $gcc_cv_tool_dirs
12228do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
5213506e
RW
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12233 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12235 break 2
12236 fi
12237done
5213506e
RW
12238 done
12239IFS=$as_save_IFS
1c710c3c 12240
e8b05380
PB
12241 ;;
12242esac
12243fi
1c710c3c 12244RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12245if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12247$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12248else
5213506e
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
e8b05380
PB
12251fi
12252
5213506e 12253
e8b05380
PB
12254fi
12255if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12256
12257
12258if test -n "$RANLIB_FOR_TARGET"; then
12259 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12260elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12261 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12262fi
12263
12264if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12265 for ncn_progname in ranlib; do
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
12270if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
278a7a38
AO
12272else
12273 if test -n "$RANLIB_FOR_TARGET"; then
12274 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
5213506e
RW
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12283 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12285 break 2
12286 fi
12287done
5213506e
RW
12288 done
12289IFS=$as_save_IFS
278a7a38
AO
12290
12291fi
12292fi
12293RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12294if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12296$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12297else
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
278a7a38
AO
12300fi
12301
5213506e 12302
278a7a38
AO
12303 done
12304fi
12305
12306if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12307 for ncn_progname in ranlib; do
5213506e
RW
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12309$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12310 if test -x $with_build_time_tools/${ncn_progname}; then
12311 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313$as_echo "yes" >&6; }
e8b05380
PB
12314 break
12315 else
5213506e
RW
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
e8b05380
PB
12318 fi
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12323 for ncn_progname in ranlib; do
12324 if test -n "$ncn_target_tool_prefix"; then
12325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12326set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328$as_echo_n "checking for $ac_word... " >&6; }
12329if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12330 $as_echo_n "(cached) " >&6
ca9f4b81 12331else
4de997d1
PB
12332 if test -n "$RANLIB_FOR_TARGET"; then
12333 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12334else
1c710c3c
DJ
12335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336for as_dir in $PATH
12337do
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
5213506e
RW
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12342 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12344 break 2
12345 fi
12346done
5213506e
RW
12347 done
12348IFS=$as_save_IFS
1c710c3c 12349
ca9f4b81
AO
12350fi
12351fi
1c710c3c 12352RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12353if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12355$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12356else
5213506e
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
ca9f4b81
AO
12359fi
12360
5213506e 12361
e8b05380
PB
12362 fi
12363 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12365set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
12368if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
ca9f4b81 12370else
2693c0b0
PB
12371 if test -n "$RANLIB_FOR_TARGET"; then
12372 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12373else
1c710c3c
DJ
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
5213506e
RW
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12381 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12383 break 2
12384 fi
12385done
5213506e
RW
12386 done
12387IFS=$as_save_IFS
1c710c3c 12388
ca9f4b81
AO
12389fi
12390fi
1c710c3c 12391RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12392if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12394$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12395else
5213506e
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
ca9f4b81 12398fi
1c710c3c 12399
5213506e 12400
e8b05380
PB
12401 fi
12402 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12403 done
12404fi
1c710c3c 12405
e8b05380
PB
12406if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12407 set dummy ranlib
12408 if test $build = $target ; then
12409 RANLIB_FOR_TARGET="$2"
12410 else
12411 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12412 fi
1c00b503
PB
12413else
12414 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12415fi
2693c0b0 12416
d1f8db0c
PB
12417else
12418 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12419fi
12420
e8b05380
PB
12421
12422
12423
e7a82751
RM
12424if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12425 if test -n "$with_build_time_tools"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12427$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12428 if test -x $with_build_time_tools/readelf; then
12429 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12430 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12432$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436 fi
12437 elif test $build != $host && test $have_gcc_for_target = yes; then
12438 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12439 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12440 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12441 fi
12442fi
12443if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12444 # Extract the first word of "readelf", so it can be a program name with args.
12445set dummy readelf; ac_word=$2
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447$as_echo_n "checking for $ac_word... " >&6; }
12448if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450else
12451 case $READELF_FOR_TARGET in
12452 [\\/]* | ?:[\\/]*)
12453 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12454 ;;
12455 *)
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457for as_dir in $gcc_cv_tool_dirs
12458do
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12463 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12466 fi
12467done
12468 done
12469IFS=$as_save_IFS
12470
12471 ;;
12472esac
12473fi
12474READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12475if test -n "$READELF_FOR_TARGET"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12477$as_echo "$READELF_FOR_TARGET" >&6; }
12478else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481fi
12482
12483
12484fi
12485if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12486
12487
12488if test -n "$READELF_FOR_TARGET"; then
12489 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12490elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12491 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12492fi
12493
12494if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12495 for ncn_progname in readelf; do
12496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12497set dummy ${ncn_progname}; ac_word=$2
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
12500if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502else
12503 if test -n "$READELF_FOR_TARGET"; then
12504 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12516 fi
12517done
12518 done
12519IFS=$as_save_IFS
12520
12521fi
12522fi
12523READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12524if test -n "$READELF_FOR_TARGET"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12526$as_echo "$READELF_FOR_TARGET" >&6; }
12527else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12537 for ncn_progname in readelf; do
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12539$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12540 if test -x $with_build_time_tools/${ncn_progname}; then
12541 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543$as_echo "yes" >&6; }
12544 break
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547$as_echo "no" >&6; }
12548 fi
12549 done
12550fi
12551
12552if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12553 for ncn_progname in readelf; do
12554 if test -n "$ncn_target_tool_prefix"; then
12555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12556set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558$as_echo_n "checking for $ac_word... " >&6; }
12559if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561else
12562 if test -n "$READELF_FOR_TARGET"; then
12563 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12564else
12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566for as_dir in $PATH
12567do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576done
12577 done
12578IFS=$as_save_IFS
12579
12580fi
12581fi
12582READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12583if test -n "$READELF_FOR_TARGET"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12585$as_echo "$READELF_FOR_TARGET" >&6; }
12586else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588$as_echo "no" >&6; }
12589fi
12590
12591
12592 fi
12593 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12595set dummy ${ncn_progname}; ac_word=$2
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
12598if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12600else
12601 if test -n "$READELF_FOR_TARGET"; then
12602 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12611 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12614 fi
12615done
12616 done
12617IFS=$as_save_IFS
12618
12619fi
12620fi
12621READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12622if test -n "$READELF_FOR_TARGET"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12624$as_echo "$READELF_FOR_TARGET" >&6; }
12625else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628fi
12629
12630
12631 fi
12632 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12633 done
12634fi
12635
12636if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12637 set dummy readelf
12638 if test $build = $target ; then
12639 READELF_FOR_TARGET="$2"
12640 else
12641 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12642 fi
12643else
12644 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12645fi
12646
12647else
12648 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12649fi
12650
12651
12652
12653
e8b05380
PB
12654if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12655 if test -n "$with_build_time_tools"; then
5213506e
RW
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12657$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12658 if test -x $with_build_time_tools/strip; then
12659 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12660 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12662$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12663 else
5213506e
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
d1f8db0c 12666 fi
e8b05380
PB
12667 elif test $build != $host && test $have_gcc_for_target = yes; then
12668 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12669 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12670 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12671 fi
12672fi
3e19841a 12673if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12674 # Extract the first word of "strip", so it can be a program name with args.
12675set dummy strip; ac_word=$2
5213506e
RW
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677$as_echo_n "checking for $ac_word... " >&6; }
12678if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
e8b05380 12680else
1c710c3c
DJ
12681 case $STRIP_FOR_TARGET in
12682 [\\/]* | ?:[\\/]*)
e8b05380
PB
12683 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12684 ;;
e8b05380 12685 *)
1c710c3c
DJ
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $gcc_cv_tool_dirs
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
5213506e
RW
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12693 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12695 break 2
12696 fi
12697done
5213506e
RW
12698 done
12699IFS=$as_save_IFS
1c710c3c 12700
e8b05380
PB
12701 ;;
12702esac
12703fi
1c710c3c 12704STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12705if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12707$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12708else
5213506e
RW
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710$as_echo "no" >&6; }
e8b05380
PB
12711fi
12712
5213506e 12713
e8b05380
PB
12714fi
12715if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12716
12717
12718if test -n "$STRIP_FOR_TARGET"; then
12719 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12720elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12721 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12722fi
12723
12724if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12725 for ncn_progname in strip; do
12726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12727set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729$as_echo_n "checking for $ac_word... " >&6; }
12730if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
278a7a38
AO
12732else
12733 if test -n "$STRIP_FOR_TARGET"; then
12734 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12735else
12736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
5213506e
RW
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12743 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12745 break 2
12746 fi
12747done
5213506e
RW
12748 done
12749IFS=$as_save_IFS
278a7a38
AO
12750
12751fi
12752fi
12753STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12754if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12756$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12757else
5213506e
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
278a7a38
AO
12760fi
12761
5213506e 12762
278a7a38
AO
12763 done
12764fi
12765
12766if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12767 for ncn_progname in strip; do
5213506e
RW
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12769$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12770 if test -x $with_build_time_tools/${ncn_progname}; then
12771 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773$as_echo "yes" >&6; }
e8b05380
PB
12774 break
12775 else
5213506e
RW
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
e8b05380
PB
12778 fi
12779 done
12780fi
12781
12782if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12783 for ncn_progname in strip; do
12784 if test -n "$ncn_target_tool_prefix"; then
12785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788$as_echo_n "checking for $ac_word... " >&6; }
12789if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
af71363e
AS
12791else
12792 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12793 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12794else
12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
5213506e
RW
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12802 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12804 break 2
12805 fi
12806done
5213506e
RW
12807 done
12808IFS=$as_save_IFS
1c710c3c 12809
040b1c5a
GK
12810fi
12811fi
1c710c3c 12812STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12813if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12815$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12816else
5213506e
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818$as_echo "no" >&6; }
040b1c5a
GK
12819fi
12820
5213506e 12821
e8b05380
PB
12822 fi
12823 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12825set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827$as_echo_n "checking for $ac_word... " >&6; }
12828if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
040b1c5a
GK
12830else
12831 if test -n "$STRIP_FOR_TARGET"; then
12832 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12833else
1c710c3c
DJ
12834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
5213506e
RW
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12841 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12843 break 2
12844 fi
12845done
5213506e
RW
12846 done
12847IFS=$as_save_IFS
1c710c3c 12848
040b1c5a
GK
12849fi
12850fi
1c710c3c 12851STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12852if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12854$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12855else
5213506e
RW
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857$as_echo "no" >&6; }
040b1c5a 12858fi
1c710c3c 12859
5213506e 12860
e8b05380
PB
12861 fi
12862 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12863 done
12864fi
1c710c3c 12865
040b1c5a
GK
12866if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12867 set dummy strip
12868 if test $build = $target ; then
12869 STRIP_FOR_TARGET="$2"
12870 else
12871 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12872 fi
1c00b503
PB
12873else
12874 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12875fi
12876
d1f8db0c
PB
12877else
12878 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12879fi
12880
12881
12882
12883
12884if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12885 if test -n "$with_build_time_tools"; then
5213506e
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12887$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12888 if test -x $with_build_time_tools/windres; then
12889 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12890 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12892$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12893 else
5213506e
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
d1f8db0c 12896 fi
e8b05380
PB
12897 elif test $build != $host && test $have_gcc_for_target = yes; then
12898 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12899 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12900 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12901 fi
12902fi
3e19841a 12903if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12904 # Extract the first word of "windres", so it can be a program name with args.
12905set dummy windres; ac_word=$2
5213506e
RW
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907$as_echo_n "checking for $ac_word... " >&6; }
12908if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
e8b05380 12910else
1c710c3c
DJ
12911 case $WINDRES_FOR_TARGET in
12912 [\\/]* | ?:[\\/]*)
e8b05380
PB
12913 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12914 ;;
e8b05380 12915 *)
1c710c3c
DJ
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $gcc_cv_tool_dirs
12918do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
5213506e
RW
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12923 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12925 break 2
12926 fi
12927done
5213506e
RW
12928 done
12929IFS=$as_save_IFS
1c710c3c 12930
e8b05380
PB
12931 ;;
12932esac
12933fi
1c710c3c 12934WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12935if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12937$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12938else
5213506e
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940$as_echo "no" >&6; }
e8b05380
PB
12941fi
12942
5213506e 12943
e8b05380
PB
12944fi
12945if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12946
12947
12948if test -n "$WINDRES_FOR_TARGET"; then
12949 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12950elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12951 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12952fi
12953
12954if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12955 for ncn_progname in windres; do
12956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12957set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959$as_echo_n "checking for $ac_word... " >&6; }
12960if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
278a7a38
AO
12962else
12963 if test -n "$WINDRES_FOR_TARGET"; then
12964 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12965else
12966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967for as_dir in $PATH
12968do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
5213506e
RW
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12973 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12975 break 2
12976 fi
12977done
5213506e
RW
12978 done
12979IFS=$as_save_IFS
278a7a38
AO
12980
12981fi
12982fi
12983WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12984if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12986$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12987else
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
278a7a38
AO
12990fi
12991
5213506e 12992
278a7a38
AO
12993 done
12994fi
12995
12996if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12997 for ncn_progname in windres; do
5213506e
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12999$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13000 if test -x $with_build_time_tools/${ncn_progname}; then
13001 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003$as_echo "yes" >&6; }
e8b05380
PB
13004 break
13005 else
5213506e
RW
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
e8b05380
PB
13008 fi
13009 done
13010fi
13011
13012if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13013 for ncn_progname in windres; do
13014 if test -n "$ncn_target_tool_prefix"; then
13015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13016set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018$as_echo_n "checking for $ac_word... " >&6; }
13019if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
ca9f4b81 13021else
4de997d1
PB
13022 if test -n "$WINDRES_FOR_TARGET"; then
13023 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13024else
1c710c3c
DJ
13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
5213506e
RW
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13032 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13034 break 2
13035 fi
13036done
5213506e
RW
13037 done
13038IFS=$as_save_IFS
1c710c3c 13039
ca9f4b81
AO
13040fi
13041fi
1c710c3c 13042WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13043if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13045$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13046else
5213506e
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
ca9f4b81
AO
13049fi
13050
5213506e 13051
e8b05380
PB
13052 fi
13053 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13055set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057$as_echo_n "checking for $ac_word... " >&6; }
13058if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
ca9f4b81 13060else
2693c0b0
PB
13061 if test -n "$WINDRES_FOR_TARGET"; then
13062 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13063else
1c710c3c
DJ
13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
5213506e
RW
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13071 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13073 break 2
13074 fi
13075done
5213506e
RW
13076 done
13077IFS=$as_save_IFS
1c710c3c 13078
ca9f4b81
AO
13079fi
13080fi
1c710c3c 13081WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13082if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13084$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13085else
5213506e
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087$as_echo "no" >&6; }
ca9f4b81 13088fi
1c710c3c 13089
5213506e 13090
e8b05380
PB
13091 fi
13092 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13093 done
13094fi
1c710c3c 13095
2693c0b0
PB
13096if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13097 set dummy windres
13098 if test $build = $target ; then
13099 WINDRES_FOR_TARGET="$2"
ca9f4b81 13100 else
2693c0b0 13101 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13102 fi
1c00b503
PB
13103else
13104 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13105fi
13106
d1f8db0c
PB
13107else
13108 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13109fi
13110
4977bab6 13111
901119ae
KT
13112
13113
13114if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13115 if test -n "$with_build_time_tools"; then
5213506e
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13117$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13118 if test -x $with_build_time_tools/windmc; then
13119 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13120 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13122$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13123 else
5213506e
RW
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
901119ae
KT
13126 fi
13127 elif test $build != $host && test $have_gcc_for_target = yes; then
13128 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13129 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13130 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13131 fi
13132fi
13133if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13134 # Extract the first word of "windmc", so it can be a program name with args.
13135set dummy windmc; ac_word=$2
5213506e
RW
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137$as_echo_n "checking for $ac_word... " >&6; }
13138if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
901119ae
KT
13140else
13141 case $WINDMC_FOR_TARGET in
13142 [\\/]* | ?:[\\/]*)
13143 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13144 ;;
13145 *)
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147for as_dir in $gcc_cv_tool_dirs
13148do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
5213506e
RW
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13153 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13155 break 2
13156 fi
13157done
5213506e
RW
13158 done
13159IFS=$as_save_IFS
901119ae
KT
13160
13161 ;;
13162esac
13163fi
13164WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13165if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13167$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13168else
5213506e
RW
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
901119ae
KT
13171fi
13172
5213506e 13173
901119ae
KT
13174fi
13175if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13176
13177
13178if test -n "$WINDMC_FOR_TARGET"; then
13179 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13180elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13181 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13182fi
13183
13184if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13185 for ncn_progname in windmc; do
13186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13187set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189$as_echo_n "checking for $ac_word... " >&6; }
13190if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
901119ae
KT
13192else
13193 if test -n "$WINDMC_FOR_TARGET"; then
13194 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13195else
13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
5213506e
RW
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13203 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13205 break 2
13206 fi
13207done
5213506e
RW
13208 done
13209IFS=$as_save_IFS
901119ae
KT
13210
13211fi
13212fi
13213WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13214if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13216$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13217else
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
901119ae
KT
13220fi
13221
5213506e 13222
901119ae
KT
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13227 for ncn_progname in windmc; do
5213506e
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13229$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13230 if test -x $with_build_time_tools/${ncn_progname}; then
13231 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13233$as_echo "yes" >&6; }
901119ae
KT
13234 break
13235 else
5213506e
RW
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
901119ae
KT
13238 fi
13239 done
13240fi
13241
13242if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13243 for ncn_progname in windmc; do
13244 if test -n "$ncn_target_tool_prefix"; then
13245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13246set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248$as_echo_n "checking for $ac_word... " >&6; }
13249if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
901119ae
KT
13251else
13252 if test -n "$WINDMC_FOR_TARGET"; then
13253 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13254else
13255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
5213506e
RW
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13262 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13264 break 2
13265 fi
13266done
5213506e
RW
13267 done
13268IFS=$as_save_IFS
901119ae
KT
13269
13270fi
13271fi
13272WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13273if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13275$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13276else
5213506e
RW
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
901119ae
KT
13279fi
13280
5213506e 13281
901119ae
KT
13282 fi
13283 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13285set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287$as_echo_n "checking for $ac_word... " >&6; }
13288if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
901119ae
KT
13290else
13291 if test -n "$WINDMC_FOR_TARGET"; then
13292 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13293else
13294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295for as_dir in $PATH
13296do
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
5213506e
RW
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13301 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13303 break 2
13304 fi
13305done
5213506e
RW
13306 done
13307IFS=$as_save_IFS
901119ae
KT
13308
13309fi
13310fi
13311WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13312if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13314$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13315else
5213506e
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317$as_echo "no" >&6; }
901119ae
KT
13318fi
13319
5213506e 13320
901119ae
KT
13321 fi
13322 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13323 done
13324fi
13325
13326if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13327 set dummy windmc
13328 if test $build = $target ; then
13329 WINDMC_FOR_TARGET="$2"
13330 else
13331 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13332 fi
1c00b503
PB
13333else
13334 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13335fi
13336
13337else
13338 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13339fi
13340
13341
2abefe3d
PB
13342RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13343
5213506e
RW
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13345$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13346if test "x${build}" != "x${host}" ; then
e8b05380
PB
13347 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13348 # We already found the complete path
172e41aa 13349 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13351$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13352 else
13353 # Canadian cross, just use what we found
5213506e
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13355$as_echo "pre-installed" >&6; }
e8b05380 13356 fi
2abefe3d
PB
13357else
13358 ok=yes
13359 case " ${configdirs} " in
13360 *" binutils "*) ;;
13361 *) ok=no ;;
13362 esac
1c710c3c 13363
2abefe3d
PB
13364 if test $ok = yes; then
13365 # An in-tree tool is available and we can use it
13366 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13368$as_echo "just compiled" >&6; }
e8b05380
PB
13369 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
172e41aa 13371 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13374 elif test "x$target" = "x$host"; then
13375 # We can use an host tool
13376 AR_FOR_TARGET='$(AR)'
5213506e
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13378$as_echo "host tool" >&6; }
2abefe3d
PB
13379 else
13380 # We need a cross tool
5213506e
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382$as_echo "pre-installed" >&6; }
2abefe3d
PB
13383 fi
13384fi
0b0dc272 13385
5213506e
RW
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13387$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13388if test "x${build}" != "x${host}" ; then
e8b05380
PB
13389 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13390 # We already found the complete path
172e41aa 13391 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13393$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13394 else
13395 # Canadian cross, just use what we found
5213506e
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13397$as_echo "pre-installed" >&6; }
e8b05380 13398 fi
2abefe3d
PB
13399else
13400 ok=yes
13401 case " ${configdirs} " in
13402 *" gas "*) ;;
13403 *) ok=no ;;
13404 esac
1c710c3c 13405
2abefe3d
PB
13406 if test $ok = yes; then
13407 # An in-tree tool is available and we can use it
13408 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13410$as_echo "just compiled" >&6; }
e8b05380
PB
13411 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13412 # We already found the complete path
172e41aa 13413 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13415$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13416 elif test "x$target" = "x$host"; then
13417 # We can use an host tool
13418 AS_FOR_TARGET='$(AS)'
5213506e
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13420$as_echo "host tool" >&6; }
2abefe3d
PB
13421 else
13422 # We need a cross tool
5213506e
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13424$as_echo "pre-installed" >&6; }
2abefe3d
PB
13425 fi
13426fi
0b0dc272 13427
5213506e
RW
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13429$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13430if test "x${build}" != "x${host}" ; then
e8b05380
PB
13431 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13432 # We already found the complete path
172e41aa 13433 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13435$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13436 else
13437 # Canadian cross, just use what we found
5213506e
RW
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13439$as_echo "pre-installed" >&6; }
e8b05380 13440 fi
2abefe3d
PB
13441else
13442 ok=yes
13443 case " ${configdirs} " in
13444 *" gcc "*) ;;
13445 *) ok=no ;;
13446 esac
1c710c3c 13447
2abefe3d
PB
13448 if test $ok = yes; then
13449 # An in-tree tool is available and we can use it
13450 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13452$as_echo "just compiled" >&6; }
e8b05380
PB
13453 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13454 # We already found the complete path
172e41aa 13455 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13457$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13458 elif test "x$target" = "x$host"; then
13459 # We can use an host tool
13460 CC_FOR_TARGET='$(CC)'
5213506e
RW
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13462$as_echo "host tool" >&6; }
2abefe3d
PB
13463 else
13464 # We need a cross tool
5213506e
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13466$as_echo "pre-installed" >&6; }
2abefe3d
PB
13467 fi
13468fi
0b0dc272 13469
5213506e
RW
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13471$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13472if test "x${build}" != "x${host}" ; then
e8b05380
PB
13473 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13474 # We already found the complete path
172e41aa 13475 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13477$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13478 else
13479 # Canadian cross, just use what we found
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13481$as_echo "pre-installed" >&6; }
e8b05380 13482 fi
2abefe3d
PB
13483else
13484 ok=yes
13485 case " ${configdirs} " in
13486 *" gcc "*) ;;
13487 *) ok=no ;;
13488 esac
13489 case ,${enable_languages}, in
13490 *,c++,*) ;;
13491 *) ok=no ;;
13492 esac
13493 if test $ok = yes; then
13494 # An in-tree tool is available and we can use it
9aff220f 13495 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13497$as_echo "just compiled" >&6; }
e8b05380
PB
13498 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
172e41aa 13500 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13503 elif test "x$target" = "x$host"; then
13504 # We can use an host tool
13505 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13507$as_echo "host tool" >&6; }
2abefe3d
PB
13508 else
13509 # We need a cross tool
5213506e
RW
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13511$as_echo "pre-installed" >&6; }
2abefe3d
PB
13512 fi
13513fi
0b0dc272 13514
5213506e
RW
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13516$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13517if test "x${build}" != "x${host}" ; then
e8b05380
PB
13518 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13519 # We already found the complete path
172e41aa 13520 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13522$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13523 else
13524 # Canadian cross, just use what we found
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
e8b05380 13527 fi
2abefe3d
PB
13528else
13529 ok=yes
13530 case " ${configdirs} " in
13531 *" gcc "*) ;;
13532 *) ok=no ;;
13533 esac
13534 case ,${enable_languages}, in
13535 *,c++,*) ;;
13536 *) ok=no ;;
13537 esac
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542$as_echo "just compiled" >&6; }
e8b05380
PB
13543 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
172e41aa 13545 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552$as_echo "host tool" >&6; }
2abefe3d
PB
13553 else
13554 # We need a cross tool
5213506e
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
2abefe3d
PB
13557 fi
13558fi
0b0dc272 13559
5213506e
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13561$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13562if test "x${build}" != "x${host}" ; then
e8b05380
PB
13563 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
172e41aa 13565 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13568 else
13569 # Canadian cross, just use what we found
5213506e
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
e8b05380 13572 fi
2abefe3d
PB
13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" binutils "*) ;;
13577 *) ok=no ;;
13578 esac
1c710c3c 13579
2abefe3d
PB
13580 if test $ok = yes; then
13581 # An in-tree tool is available and we can use it
13582 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13584$as_echo "just compiled" >&6; }
e8b05380
PB
13585 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
172e41aa 13587 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13590 elif test "x$target" = "x$host"; then
13591 # We can use an host tool
13592 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13594$as_echo "host tool" >&6; }
2abefe3d
PB
13595 else
13596 # We need a cross tool
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13598$as_echo "pre-installed" >&6; }
2abefe3d
PB
13599 fi
13600fi
0b0dc272 13601
5213506e
RW
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13603$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13604if test "x${build}" != "x${host}" ; then
e8b05380
PB
13605 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
172e41aa 13607 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13609$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13610 else
13611 # Canadian cross, just use what we found
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
e8b05380 13614 fi
2abefe3d
PB
13615else
13616 ok=yes
13617 case " ${configdirs} " in
13618 *" gcc "*) ;;
13619 *) ok=no ;;
13620 esac
1c710c3c 13621
2abefe3d
PB
13622 if test $ok = yes; then
13623 # An in-tree tool is available and we can use it
13624 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13626$as_echo "just compiled" >&6; }
e8b05380
PB
13627 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
172e41aa 13629 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13632 elif test "x$target" = "x$host"; then
13633 # We can use an host tool
13634 GCC_FOR_TARGET='$()'
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13636$as_echo "host tool" >&6; }
2abefe3d
PB
13637 else
13638 # We need a cross tool
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13640$as_echo "pre-installed" >&6; }
2abefe3d
PB
13641 fi
13642fi
0b0dc272 13643
5213506e
RW
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13645$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13646if test "x${build}" != "x${host}" ; then
e8b05380
PB
13647 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
172e41aa 13649 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13652 else
13653 # Canadian cross, just use what we found
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13655$as_echo "pre-installed" >&6; }
e8b05380 13656 fi
2abefe3d
PB
13657else
13658 ok=yes
13659 case " ${configdirs} " in
13660 *" gcc "*) ;;
13661 *) ok=no ;;
13662 esac
13663 case ,${enable_languages}, in
13664 *,java,*) ;;
13665 *) ok=no ;;
13666 esac
13667 if test $ok = yes; then
13668 # An in-tree tool is available and we can use it
13669 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671$as_echo "just compiled" >&6; }
e8b05380
PB
13672 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
172e41aa 13674 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13677 elif test "x$target" = "x$host"; then
13678 # We can use an host tool
13679 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681$as_echo "host tool" >&6; }
2abefe3d
PB
13682 else
13683 # We need a cross tool
5213506e
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685$as_echo "pre-installed" >&6; }
2abefe3d
PB
13686 fi
13687fi
0b0dc272 13688
5213506e
RW
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13690$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13691if test "x${build}" != "x${host}" ; then
e8b05380
PB
13692 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
172e41aa 13694 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13697 else
13698 # Canadian cross, just use what we found
5213506e
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700$as_echo "pre-installed" >&6; }
e8b05380 13701 fi
2abefe3d
PB
13702else
13703 ok=yes
13704 case " ${configdirs} " in
13705 *" gcc "*) ;;
13706 *) ok=no ;;
13707 esac
13708 case ,${enable_languages}, in
13709 *,fortran,*) ;;
13710 *) ok=no ;;
13711 esac
13712 if test $ok = yes; then
13713 # An in-tree tool is available and we can use it
13714 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13716$as_echo "just compiled" >&6; }
e8b05380
PB
13717 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13718 # We already found the complete path
172e41aa 13719 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13721$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13722 elif test "x$target" = "x$host"; then
13723 # We can use an host tool
13724 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13726$as_echo "host tool" >&6; }
2abefe3d
PB
13727 else
13728 # We need a cross tool
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730$as_echo "pre-installed" >&6; }
2abefe3d
PB
13731 fi
13732fi
0b0dc272 13733
632e2a07
ILT
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13735$as_echo_n "checking where to find the target gccgo... " >&6; }
13736if test "x${build}" != "x${host}" ; then
13737 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
13739 ac_dir=`dirname $GOC_FOR_TARGET`
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741$as_echo "pre-installed in $ac_dir" >&6; }
13742 else
13743 # Canadian cross, just use what we found
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745$as_echo "pre-installed" >&6; }
13746 fi
13747else
13748 ok=yes
13749 case " ${configdirs} " in
13750 *" gcc "*) ;;
13751 *) ok=no ;;
13752 esac
13753 case ,${enable_languages}, in
13754 *,go,*) ;;
13755 *) ok=no ;;
13756 esac
13757 if test $ok = yes; then
13758 # An in-tree tool is available and we can use it
13759 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13761$as_echo "just compiled" >&6; }
13762 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
13764 ac_dir=`dirname $GOC_FOR_TARGET`
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
13767 elif test "x$target" = "x$host"; then
13768 # We can use an host tool
13769 GOC_FOR_TARGET='$(GOC)'
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13771$as_echo "host tool" >&6; }
13772 else
13773 # We need a cross tool
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
13776 fi
13777fi
13778
5213506e
RW
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13780$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13781if test "x${build}" != "x${host}" ; then
e8b05380
PB
13782 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
172e41aa 13784 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13787 else
13788 # Canadian cross, just use what we found
5213506e
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790$as_echo "pre-installed" >&6; }
e8b05380 13791 fi
2abefe3d
PB
13792else
13793 ok=yes
13794 case " ${configdirs} " in
13795 *" ld "*) ;;
13796 *) ok=no ;;
13797 esac
1c710c3c 13798
2abefe3d
PB
13799 if test $ok = yes; then
13800 # An in-tree tool is available and we can use it
13801 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13803$as_echo "just compiled" >&6; }
e8b05380
PB
13804 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
172e41aa 13806 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13809 elif test "x$target" = "x$host"; then
13810 # We can use an host tool
13811 LD_FOR_TARGET='$(LD)'
5213506e
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13813$as_echo "host tool" >&6; }
2abefe3d
PB
13814 else
13815 # We need a cross tool
5213506e
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
2abefe3d
PB
13818 fi
13819fi
0b0dc272 13820
5213506e
RW
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13822$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13823if test "x${build}" != "x${host}" ; then
e8b05380
PB
13824 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
172e41aa 13826 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13829 else
13830 # Canadian cross, just use what we found
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832$as_echo "pre-installed" >&6; }
e8b05380 13833 fi
2abefe3d 13834else
e8b05380
PB
13835 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13836 # We already found the complete path
172e41aa 13837 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13839$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13840 elif test "x$target" = "x$host"; then
2abefe3d
PB
13841 # We can use an host tool
13842 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13844$as_echo "host tool" >&6; }
2abefe3d
PB
13845 else
13846 # We need a cross tool
5213506e
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848$as_echo "pre-installed" >&6; }
2abefe3d
PB
13849 fi
13850fi
0b0dc272 13851
5213506e
RW
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13853$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13854if test "x${build}" != "x${host}" ; then
e8b05380
PB
13855 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13856 # We already found the complete path
172e41aa 13857 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13859$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13860 else
13861 # Canadian cross, just use what we found
5213506e
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13863$as_echo "pre-installed" >&6; }
e8b05380 13864 fi
2abefe3d
PB
13865else
13866 ok=yes
13867 case " ${configdirs} " in
13868 *" binutils "*) ;;
13869 *) ok=no ;;
13870 esac
1c710c3c 13871
2abefe3d
PB
13872 if test $ok = yes; then
13873 # An in-tree tool is available and we can use it
13874 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13876$as_echo "just compiled" >&6; }
e8b05380
PB
13877 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13878 # We already found the complete path
172e41aa 13879 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13881$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13882 elif test "x$target" = "x$host"; then
13883 # We can use an host tool
13884 NM_FOR_TARGET='$(NM)'
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13886$as_echo "host tool" >&6; }
2abefe3d
PB
13887 else
13888 # We need a cross tool
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890$as_echo "pre-installed" >&6; }
2abefe3d
PB
13891 fi
13892fi
0b0dc272 13893
5213506e
RW
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13895$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13896if test "x${build}" != "x${host}" ; then
e8b05380
PB
13897 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
172e41aa 13899 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13902 else
13903 # Canadian cross, just use what we found
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905$as_echo "pre-installed" >&6; }
e8b05380 13906 fi
2abefe3d
PB
13907else
13908 ok=yes
13909 case " ${configdirs} " in
13910 *" binutils "*) ;;
13911 *) ok=no ;;
13912 esac
1c710c3c 13913
2abefe3d
PB
13914 if test $ok = yes; then
13915 # An in-tree tool is available and we can use it
13916 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13918$as_echo "just compiled" >&6; }
e8b05380
PB
13919 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13920 # We already found the complete path
172e41aa 13921 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13923$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13924 elif test "x$target" = "x$host"; then
13925 # We can use an host tool
13926 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13928$as_echo "host tool" >&6; }
2abefe3d
PB
13929 else
13930 # We need a cross tool
5213506e
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13932$as_echo "pre-installed" >&6; }
2abefe3d
PB
13933 fi
13934fi
0b0dc272 13935
5213506e
RW
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13937$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13938if test "x${build}" != "x${host}" ; then
e8b05380
PB
13939 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13940 # We already found the complete path
172e41aa 13941 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13943$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13944 else
13945 # Canadian cross, just use what we found
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13947$as_echo "pre-installed" >&6; }
e8b05380 13948 fi
2abefe3d
PB
13949else
13950 ok=yes
13951 case " ${configdirs} " in
13952 *" binutils "*) ;;
13953 *) ok=no ;;
13954 esac
1c710c3c 13955
2abefe3d
PB
13956 if test $ok = yes; then
13957 # An in-tree tool is available and we can use it
13958 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13960$as_echo "just compiled" >&6; }
e8b05380
PB
13961 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13962 # We already found the complete path
172e41aa 13963 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13965$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13966 elif test "x$target" = "x$host"; then
13967 # We can use an host tool
13968 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13970$as_echo "host tool" >&6; }
2abefe3d
PB
13971 else
13972 # We need a cross tool
5213506e
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13974$as_echo "pre-installed" >&6; }
2abefe3d
PB
13975 fi
13976fi
0b0dc272 13977
e7a82751
RM
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13979$as_echo_n "checking where to find the target readelf... " >&6; }
13980if test "x${build}" != "x${host}" ; then
13981 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
13983 ac_dir=`dirname $READELF_FOR_TARGET`
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985$as_echo "pre-installed in $ac_dir" >&6; }
13986 else
13987 # Canadian cross, just use what we found
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13989$as_echo "pre-installed" >&6; }
13990 fi
13991else
13992 ok=yes
13993 case " ${configdirs} " in
13994 *" binutils "*) ;;
13995 *) ok=no ;;
13996 esac
13997
13998 if test $ok = yes; then
13999 # An in-tree tool is available and we can use it
14000 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14002$as_echo "just compiled" >&6; }
14003 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $READELF_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 READELF_FOR_TARGET='$(READELF)'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012$as_echo "host tool" >&6; }
14013 else
14014 # We need a cross tool
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016$as_echo "pre-installed" >&6; }
14017 fi
14018fi
14019
5213506e
RW
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14021$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14022if test "x${build}" != "x${host}" ; then
e8b05380
PB
14023 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
172e41aa 14025 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14028 else
14029 # Canadian cross, just use what we found
5213506e
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031$as_echo "pre-installed" >&6; }
e8b05380 14032 fi
2abefe3d
PB
14033else
14034 ok=yes
14035 case " ${configdirs} " in
14036 *" binutils "*) ;;
14037 *) ok=no ;;
14038 esac
1c710c3c 14039
2abefe3d
PB
14040 if test $ok = yes; then
14041 # An in-tree tool is available and we can use it
455c8f48 14042 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14044$as_echo "just compiled" >&6; }
e8b05380
PB
14045 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
172e41aa 14047 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14050 elif test "x$target" = "x$host"; then
14051 # We can use an host tool
14052 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14054$as_echo "host tool" >&6; }
2abefe3d
PB
14055 else
14056 # We need a cross tool
5213506e
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058$as_echo "pre-installed" >&6; }
2abefe3d
PB
14059 fi
14060fi
0b0dc272 14061
5213506e
RW
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14063$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14064if test "x${build}" != "x${host}" ; then
e8b05380
PB
14065 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
172e41aa 14067 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14070 else
14071 # Canadian cross, just use what we found
5213506e
RW
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14073$as_echo "pre-installed" >&6; }
e8b05380 14074 fi
2abefe3d
PB
14075else
14076 ok=yes
14077 case " ${configdirs} " in
14078 *" binutils "*) ;;
14079 *) ok=no ;;
14080 esac
1c710c3c 14081
2abefe3d
PB
14082 if test $ok = yes; then
14083 # An in-tree tool is available and we can use it
14084 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14086$as_echo "just compiled" >&6; }
e8b05380
PB
14087 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
172e41aa 14089 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14092 elif test "x$target" = "x$host"; then
14093 # We can use an host tool
14094 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14096$as_echo "host tool" >&6; }
2abefe3d
PB
14097 else
14098 # We need a cross tool
5213506e
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100$as_echo "pre-installed" >&6; }
2abefe3d 14101 fi
671aa708 14102fi
be912515 14103
5213506e
RW
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14105$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14106if test "x${build}" != "x${host}" ; then
14107 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
14109 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14112 else
14113 # Canadian cross, just use what we found
5213506e
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115$as_echo "pre-installed" >&6; }
901119ae
KT
14116 fi
14117else
14118 ok=yes
14119 case " ${configdirs} " in
14120 *" binutils "*) ;;
14121 *) ok=no ;;
14122 esac
14123
14124 if test $ok = yes; then
14125 # An in-tree tool is available and we can use it
14126 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14128$as_echo "just compiled" >&6; }
901119ae
KT
14129 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
14131 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14134 elif test "x$target" = "x$host"; then
14135 # We can use an host tool
14136 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138$as_echo "host tool" >&6; }
901119ae
KT
14139 else
14140 # We need a cross tool
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142$as_echo "pre-installed" >&6; }
901119ae
KT
14143 fi
14144fi
14145
be912515
NN
14146
14147
2abefe3d 14148
0b0dc272 14149
671aa708
NN
14150# Certain tools may need extra flags.
14151AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14152RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14153NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14154
2abefe3d
PB
14155# When building target libraries, except in a Canadian cross, we use
14156# the same toolchain as the compiler we just built.
14157COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14158COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14159COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14160if test $host = $build; then
14161 case " $configdirs " in
14162 *" gcc "*)
14163 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14164 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14165 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14166 ;;
14167 esac
14168fi
14169
14170
14171
14172
14173
5213506e
RW
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14175$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14176# Check whether --enable-maintainer-mode was given.
14177if test "${enable_maintainer_mode+set}" = set; then :
14178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14179else
14180 USE_MAINTAINER_MODE=no
5213506e
RW
14181fi
14182
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14184$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14185
14186
14187if test "$USE_MAINTAINER_MODE" = yes; then
14188 MAINTAINER_MODE_TRUE=
14189 MAINTAINER_MODE_FALSE='#'
14190else
14191 MAINTAINER_MODE_TRUE='#'
14192 MAINTAINER_MODE_FALSE=
1c710c3c 14193fi
ee03dc5e
AO
14194MAINT=$MAINTAINER_MODE_TRUE
14195
2805b53a
NN
14196# ---------------------
14197# GCC bootstrap support
14198# ---------------------
14199
14200# Stage specific cflags for build.
14201stage1_cflags="-g"
14202case $build in
14203 vax-*-*)
14204 case ${GCC} in
14205 yes) stage1_cflags="-g -Wa,-J" ;;
14206 *) stage1_cflags="-g -J" ;;
14207 esac ;;
2805b53a
NN
14208esac
14209
0b50988a 14210# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14211if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14212 saved_CFLAGS="$CFLAGS"
14213
14214 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14215 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14217$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14219/* end confdefs.h. */
14220
9cc1244e
JJ
14221#if (__GNUC__ < 3) \
14222 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14223 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14224#error http://gcc.gnu.org/PR29382
14225#endif
14226
1c710c3c
DJ
14227int
14228main ()
14229{
14230
14231 ;
14232 return 0;
14233}
14234_ACEOF
5213506e
RW
14235if ac_fn_c_try_compile "$LINENO"; then :
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14237$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14238else
5213506e
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240$as_echo "no" >&6; }
1c710c3c 14241fi
5213506e 14242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14243
14244 CFLAGS="$saved_CFLAGS"
14245fi
14246
14247
2805b53a 14248
8efea775 14249# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14250# Check whether --enable-stage1-checking was given.
14251if test "${enable_stage1_checking+set}" = set; then :
14252 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14253else
e643dc23 14254 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14255 stage1_checking=--enable-checking=yes,types
8efea775 14256else
e643dc23 14257 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14258fi
5213506e 14259fi
8efea775
PB
14260
14261
2aeb72e9 14262
5213506e
RW
14263# Enable -Werror in bootstrap stage2 and later.
14264# Check whether --enable-werror was given.
14265if test "${enable_werror+set}" = set; then :
14266 enableval=$enable_werror;
2805b53a 14267else
416cfb5e 14268 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14269 enable_werror=yes
88fceb68
PB
14270else
14271 enable_werror=no
14272fi
5213506e
RW
14273fi
14274
09a9c095
NN
14275case ${enable_werror} in
14276 yes) stage2_werror_flag="--enable-werror-always" ;;
14277 *) stage2_werror_flag="" ;;
2805b53a
NN
14278esac
14279
14280
78767fd9
ILT
14281# If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14282# --enable-build-with-cxx after stage1.
14283if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14284 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14285else
14286 POSTSTAGE1_CONFIGURE_FLAGS=
14287fi
14288
14289
f2689b09
SE
14290# Specify what files to not compare during bootstrap.
14291
14292compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14293case "$target" in
14294 hppa*64*-*-hpux*) ;;
14295 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14296esac
14297
14298
5213506e
RW
14299ac_config_files="$ac_config_files Makefile"
14300
1c710c3c 14301cat >confcache <<\_ACEOF
671aa708
NN
14302# This file is a shell script that caches the results of configure
14303# tests run on this system so they can be shared between configure
1c710c3c
DJ
14304# scripts and configure runs, see configure's option --config-cache.
14305# It is not useful on other systems. If it contains results you don't
14306# want to keep, you may remove or edit it.
671aa708 14307#
1c710c3c
DJ
14308# config.status only pays attention to the cache file if you give it
14309# the --recheck option to rerun configure.
671aa708 14310#
1c710c3c
DJ
14311# `ac_cv_env_foo' variables (set or unset) will be overridden when
14312# loading this file, other *unset* `ac_cv_foo' will be assigned the
14313# following values.
14314
14315_ACEOF
14316
671aa708
NN
14317# The following way of writing the cache mishandles newlines in values,
14318# but we know of no workaround that is simple, portable, and efficient.
5213506e 14319# So, we kill variables containing newlines.
671aa708
NN
14320# Ultrix sh set writes to stderr and can't be redirected directly,
14321# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14322(
14323 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14324 eval ac_val=\$$ac_var
14325 case $ac_val in #(
14326 *${as_nl}*)
14327 case $ac_var in #(
14328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14330 esac
14331 case $ac_var in #(
14332 _ | IFS | as_nl) ;; #(
14333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14334 *) { eval $ac_var=; unset $ac_var;} ;;
14335 esac ;;
14336 esac
14337 done
14338
1c710c3c 14339 (set) 2>&1 |
5213506e
RW
14340 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14341 *${as_nl}ac_space=\ *)
14342 # `set' does not quote correctly, so add quotes: double-quote
14343 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14344 sed -n \
14345 "s/'/'\\\\''/g;
14346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14347 ;; #(
1c710c3c
DJ
14348 *)
14349 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14350 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14351 ;;
5213506e
RW
14352 esac |
14353 sort
14354) |
1c710c3c 14355 sed '
5213506e 14356 /^ac_cv_env_/b end
1c710c3c 14357 t clear
5213506e 14358 :clear
1c710c3c
DJ
14359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14360 t end
5213506e
RW
14361 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14362 :end' >>confcache
14363if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14364 if test -w "$cache_file"; then
14365 test "x$cache_file" != "x/dev/null" &&
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14367$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14368 cat confcache >$cache_file
671aa708 14369 else
5213506e
RW
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14371$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14372 fi
4977bab6 14373fi
671aa708 14374rm -f confcache
79c06341 14375
671aa708
NN
14376test "x$prefix" = xNONE && prefix=$ac_default_prefix
14377# Let make expand exec_prefix.
14378test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14379
671aa708
NN
14380# Transform confdefs.h into DEFS.
14381# Protect against shell expansion while executing Makefile rules.
14382# Protect against Makefile macro expansion.
1c710c3c
DJ
14383#
14384# If the first sed substitution is executed (which looks for macros that
5213506e 14385# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14386# look for a macro that doesn't take arguments.
5213506e
RW
14387ac_script='
14388:mline
14389/\\$/{
14390 N
14391 s,\\\n,,
14392 b mline
14393}
1c710c3c 14394t clear
5213506e
RW
14395:clear
14396s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14397t quote
5213506e 14398s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14399t quote
5213506e
RW
14400b any
14401:quote
14402s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14403s/\[/\\&/g
14404s/\]/\\&/g
14405s/\$/$$/g
14406H
14407:any
14408${
14409 g
14410 s/^\n//
14411 s/\n/ /g
14412 p
14413}
14414'
14415DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14416
14417
14418ac_libobjs=
14419ac_ltlibobjs=
14420for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14421 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14422 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14423 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14424 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14425 # will be set to the directory where LIBOBJS objects are built.
14426 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14427 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14428done
14429LIBOBJS=$ac_libobjs
fb0103e5 14430
1c710c3c 14431LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14432
af71363e 14433
1c710c3c
DJ
14434
14435: ${CONFIG_STATUS=./config.status}
5213506e 14436ac_write_fail=0
1c710c3c
DJ
14437ac_clean_files_save=$ac_clean_files
14438ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14440$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14441as_write_fail=0
14442cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14443#! $SHELL
14444# Generated by $as_me.
671aa708 14445# Run this file to recreate the current configuration.
671aa708 14446# Compiler output produced by configure, useful for debugging
1c710c3c 14447# configure, is in config.log if it exists.
0b0dc272 14448
1c710c3c
DJ
14449debug=false
14450ac_cs_recheck=false
14451ac_cs_silent=false
1c710c3c 14452
5213506e
RW
14453SHELL=\${CONFIG_SHELL-$SHELL}
14454export SHELL
14455_ASEOF
14456cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14457## -------------------- ##
14458## M4sh Initialization. ##
14459## -------------------- ##
14460
14461# Be more Bourne compatible
14462DUALCASE=1; export DUALCASE # for MKS sh
14463if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14464 emulate sh
14465 NULLCMD=:
5213506e 14466 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14467 # is contrary to our usage. Disable this feature.
14468 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14469 setopt NO_GLOB_SUBST
14470else
14471 case `(set -o) 2>/dev/null` in #(
14472 *posix*) :
14473 set -o posix ;; #(
14474 *) :
14475 ;;
14476esac
1c710c3c 14477fi
1c710c3c 14478
5213506e
RW
14479
14480as_nl='
14481'
14482export as_nl
14483# Printing a long string crashes Solaris 7 /usr/bin/printf.
14484as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14485as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14486as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14487# Prefer a ksh shell builtin over an external printf program on Solaris,
14488# but without wasting forks for bash or zsh.
14489if test -z "$BASH_VERSION$ZSH_VERSION" \
14490 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14491 as_echo='print -r --'
14492 as_echo_n='print -rn --'
14493elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14494 as_echo='printf %s\n'
14495 as_echo_n='printf %s'
14496else
14497 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14498 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14499 as_echo_n='/usr/ucb/echo -n'
14500 else
14501 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14502 as_echo_n_body='eval
14503 arg=$1;
14504 case $arg in #(
14505 *"$as_nl"*)
14506 expr "X$arg" : "X\\(.*\\)$as_nl";
14507 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14508 esac;
14509 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14510 '
14511 export as_echo_n_body
14512 as_echo_n='sh -c $as_echo_n_body as_echo'
14513 fi
14514 export as_echo_body
14515 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14516fi
14517
5213506e
RW
14518# The user is always right.
14519if test "${PATH_SEPARATOR+set}" != set; then
14520 PATH_SEPARATOR=:
14521 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14522 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14523 PATH_SEPARATOR=';'
14524 }
14525fi
14526
14527
14528# IFS
14529# We need space, tab and new line, in precisely that order. Quoting is
14530# there to prevent editors from complaining about space-tab.
14531# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14532# splitting by setting IFS to empty value.)
14533IFS=" "" $as_nl"
14534
14535# Find who we are. Look in the path if we contain no directory separator.
14536case $0 in #((
14537 *[\\/]* ) as_myself=$0 ;;
14538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539for as_dir in $PATH
14540do
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14544 done
14545IFS=$as_save_IFS
14546
14547 ;;
14548esac
14549# We did not find ourselves, most probably we were run as `sh COMMAND'
14550# in which case we are not to be found in the path.
14551if test "x$as_myself" = x; then
14552 as_myself=$0
14553fi
14554if test ! -f "$as_myself"; then
14555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14556 exit 1
14557fi
1c710c3c 14558
5213506e
RW
14559# Unset variables that we do not need and which cause bugs (e.g. in
14560# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14561# suppresses any "Segmentation fault" message there. '((' could
14562# trigger a bug in pdksh 5.2.14.
14563for as_var in BASH_ENV ENV MAIL MAILPATH
14564do eval test x\${$as_var+set} = xset \
14565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14566done
1c710c3c
DJ
14567PS1='$ '
14568PS2='> '
14569PS4='+ '
14570
14571# NLS nuisances.
5213506e
RW
14572LC_ALL=C
14573export LC_ALL
14574LANGUAGE=C
14575export LANGUAGE
14576
14577# CDPATH.
14578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14579
14580
14581# as_fn_error ERROR [LINENO LOG_FD]
14582# ---------------------------------
14583# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14584# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14585# script with status $?, using 1 if that was 0.
14586as_fn_error ()
14587{
14588 as_status=$?; test $as_status -eq 0 && as_status=1
14589 if test "$3"; then
14590 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14592 fi
5213506e
RW
14593 $as_echo "$as_me: error: $1" >&2
14594 as_fn_exit $as_status
14595} # as_fn_error
14596
14597
14598# as_fn_set_status STATUS
14599# -----------------------
14600# Set $? to STATUS, without forking.
14601as_fn_set_status ()
14602{
14603 return $1
14604} # as_fn_set_status
14605
14606# as_fn_exit STATUS
14607# -----------------
14608# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14609as_fn_exit ()
14610{
14611 set +e
14612 as_fn_set_status $1
14613 exit $1
14614} # as_fn_exit
14615
14616# as_fn_unset VAR
14617# ---------------
14618# Portably unset VAR.
14619as_fn_unset ()
14620{
14621 { eval $1=; unset $1;}
14622}
14623as_unset=as_fn_unset
14624# as_fn_append VAR VALUE
14625# ----------------------
14626# Append the text in VALUE to the end of the definition contained in VAR. Take
14627# advantage of any shell optimizations that allow amortized linear growth over
14628# repeated appends, instead of the typical quadratic growth present in naive
14629# implementations.
14630if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14631 eval 'as_fn_append ()
14632 {
14633 eval $1+=\$2
14634 }'
14635else
14636 as_fn_append ()
14637 {
14638 eval $1=\$$1\$2
14639 }
14640fi # as_fn_append
14641
14642# as_fn_arith ARG...
14643# ------------------
14644# Perform arithmetic evaluation on the ARGs, and store the result in the
14645# global $as_val. Take advantage of shells that can avoid forks. The arguments
14646# must be portable across $(()) and expr.
14647if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14648 eval 'as_fn_arith ()
14649 {
14650 as_val=$(( $* ))
14651 }'
14652else
14653 as_fn_arith ()
14654 {
14655 as_val=`expr "$@" || test $? -eq 1`
14656 }
14657fi # as_fn_arith
14658
1c710c3c 14659
5213506e
RW
14660if expr a : '\(a\)' >/dev/null 2>&1 &&
14661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14662 as_expr=expr
14663else
14664 as_expr=false
14665fi
14666
5213506e 14667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14668 as_basename=basename
14669else
14670 as_basename=false
14671fi
14672
5213506e
RW
14673if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14674 as_dirname=dirname
14675else
14676 as_dirname=false
14677fi
1c710c3c 14678
5213506e 14679as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14680$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14681 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14683$as_echo X/"$0" |
14684 sed '/^.*\/\([^/][^/]*\)\/*$/{
14685 s//\1/
14686 q
14687 }
14688 /^X\/\(\/\/\)$/{
14689 s//\1/
14690 q
14691 }
14692 /^X\/\(\/\).*/{
14693 s//\1/
14694 q
14695 }
14696 s/.*/./; q'`
2aeb72e9 14697
2aeb72e9
DD
14698# Avoid depending upon Character Ranges.
14699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14702as_cr_digits='0123456789'
14703as_cr_alnum=$as_cr_Letters$as_cr_digits
14704
5213506e
RW
14705ECHO_C= ECHO_N= ECHO_T=
14706case `echo -n x` in #(((((
14707-n*)
14708 case `echo 'xy\c'` in
14709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14710 xy) ECHO_C='\c';;
14711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14712 ECHO_T=' ';;
14713 esac;;
14714*)
14715 ECHO_N='-n';;
1c710c3c
DJ
14716esac
14717
5213506e
RW
14718rm -f conf$$ conf$$.exe conf$$.file
14719if test -d conf$$.dir; then
14720 rm -f conf$$.dir/conf$$.file
1c710c3c 14721else
5213506e
RW
14722 rm -f conf$$.dir
14723 mkdir conf$$.dir 2>/dev/null
1c710c3c 14724fi
5213506e
RW
14725if (echo >conf$$.file) 2>/dev/null; then
14726 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14727 as_ln_s='ln -s'
5213506e
RW
14728 # ... but there are two gotchas:
14729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14731 # In both cases, we have to default to `cp -p'.
14732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14733 as_ln_s='cp -p'
14734 elif ln conf$$.file conf$$ 2>/dev/null; then
14735 as_ln_s=ln
14736 else
14737 as_ln_s='cp -p'
2aeb72e9 14738 fi
1c710c3c
DJ
14739else
14740 as_ln_s='cp -p'
14741fi
5213506e
RW
14742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14743rmdir conf$$.dir 2>/dev/null
14744
14745
14746# as_fn_mkdir_p
14747# -------------
14748# Create "$as_dir" as a directory, including parents if necessary.
14749as_fn_mkdir_p ()
14750{
14751
14752 case $as_dir in #(
14753 -*) as_dir=./$as_dir;;
14754 esac
14755 test -d "$as_dir" || eval $as_mkdir_p || {
14756 as_dirs=
14757 while :; do
14758 case $as_dir in #(
14759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14760 *) as_qdir=$as_dir;;
14761 esac
14762 as_dirs="'$as_qdir' $as_dirs"
14763 as_dir=`$as_dirname -- "$as_dir" ||
14764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14765 X"$as_dir" : 'X\(//\)[^/]' \| \
14766 X"$as_dir" : 'X\(//\)$' \| \
14767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14768$as_echo X"$as_dir" |
14769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14770 s//\1/
14771 q
14772 }
14773 /^X\(\/\/\)[^/].*/{
14774 s//\1/
14775 q
14776 }
14777 /^X\(\/\/\)$/{
14778 s//\1/
14779 q
14780 }
14781 /^X\(\/\).*/{
14782 s//\1/
14783 q
14784 }
14785 s/.*/./; q'`
14786 test -d "$as_dir" && break
14787 done
14788 test -z "$as_dirs" || eval "mkdir $as_dirs"
14789 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14790
1c710c3c 14791
5213506e 14792} # as_fn_mkdir_p
1c710c3c 14793if mkdir -p . 2>/dev/null; then
5213506e 14794 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14795else
14796 test -d ./-p && rmdir ./-p
14797 as_mkdir_p=false
14798fi
14799
5213506e
RW
14800if test -x / >/dev/null 2>&1; then
14801 as_test_x='test -x'
14802else
14803 if ls -dL / >/dev/null 2>&1; then
14804 as_ls_L_option=L
14805 else
14806 as_ls_L_option=
14807 fi
14808 as_test_x='
14809 eval sh -c '\''
14810 if test -d "$1"; then
14811 test -d "$1/.";
14812 else
14813 case $1 in #(
14814 -*)set "./$1";;
14815 esac;
14816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14817 ???[sx]*):;;*)false;;esac;fi
14818 '\'' sh
14819 '
14820fi
14821as_executable_p=$as_test_x
1c710c3c
DJ
14822
14823# Sed expression to map a string onto a valid CPP name.
14824as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14825
14826# Sed expression to map a string onto a valid variable name.
14827as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14828
14829
1c710c3c 14830exec 6>&1
5213506e
RW
14831## ----------------------------------- ##
14832## Main body of $CONFIG_STATUS script. ##
14833## ----------------------------------- ##
14834_ASEOF
14835test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14836
14837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14838# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14839# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14840# values after options handling.
14841ac_log="
1c710c3c 14842This file was extended by $as_me, which was
5213506e 14843generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14844
14845 CONFIG_FILES = $CONFIG_FILES
14846 CONFIG_HEADERS = $CONFIG_HEADERS
14847 CONFIG_LINKS = $CONFIG_LINKS
14848 CONFIG_COMMANDS = $CONFIG_COMMANDS
14849 $ $0 $@
14850
5213506e
RW
14851on `(hostname || uname -n) 2>/dev/null | sed 1q`
14852"
14853
1c710c3c
DJ
14854_ACEOF
14855
5213506e
RW
14856case $ac_config_files in *"
14857"*) set x $ac_config_files; shift; ac_config_files=$*;;
14858esac
1c710c3c 14859
2aeb72e9 14860
2aeb72e9 14861
5213506e
RW
14862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14863# Files that config.status was made for.
14864config_files="$ac_config_files"
1c710c3c 14865
5213506e 14866_ACEOF
2aeb72e9 14867
5213506e 14868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14869ac_cs_usage="\
5213506e
RW
14870\`$as_me' instantiates files and other configuration actions
14871from templates according to the current configuration. Unless the files
14872and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14873
5213506e 14874Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14875
14876 -h, --help print this help, then exit
5213506e
RW
14877 -V, --version print version number and configuration settings, then exit
14878 -q, --quiet, --silent
14879 do not print progress messages
1c710c3c
DJ
14880 -d, --debug don't remove temporary files
14881 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14882 --file=FILE[:TEMPLATE]
14883 instantiate the configuration file FILE
1c710c3c
DJ
14884
14885Configuration files:
14886$config_files
14887
5213506e 14888Report bugs to the package provider."
2aeb72e9 14889
5213506e
RW
14890_ACEOF
14891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14892ac_cs_version="\\
14893config.status
5213506e
RW
14894configured by $0, generated by GNU Autoconf 2.64,
14895 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14896
5213506e 14897Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14898This config.status script is free software; the Free Software Foundation
14899gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14900
14901ac_pwd='$ac_pwd'
14902srcdir='$srcdir'
14903INSTALL='$INSTALL'
87264276 14904AWK='$AWK'
5213506e 14905test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14906_ACEOF
14907
5213506e
RW
14908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14910ac_need_defaults=:
14911while test $# != 0
a4b9e93e 14912do
1c710c3c
DJ
14913 case $1 in
14914 --*=*)
5213506e
RW
14915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14917 ac_shift=:
14918 ;;
5213506e 14919 *)
1c710c3c
DJ
14920 ac_option=$1
14921 ac_optarg=$2
14922 ac_shift=shift
14923 ;;
1c710c3c
DJ
14924 esac
14925
14926 case $ac_option in
14927 # Handling of the options.
671aa708 14928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14929 ac_cs_recheck=: ;;
5213506e
RW
14930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14931 $as_echo "$ac_cs_version"; exit ;;
14932 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14933 debug=: ;;
14934 --file | --fil | --fi | --f )
14935 $ac_shift
5213506e
RW
14936 case $ac_optarg in
14937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14938 esac
14939 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14940 ac_need_defaults=false;;
5213506e
RW
14941 --he | --h | --help | --hel | -h )
14942 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14945 ac_cs_silent=: ;;
14946
14947 # This is an error.
5213506e
RW
14948 -*) as_fn_error "unrecognized option: \`$1'
14949Try \`$0 --help' for more information." ;;
1c710c3c 14950
5213506e
RW
14951 *) as_fn_append ac_config_targets " $1"
14952 ac_need_defaults=false ;;
1c710c3c 14953
0b0dc272 14954 esac
1c710c3c 14955 shift
0b0dc272
AM
14956done
14957
1c710c3c 14958ac_configure_extra_args=
0b0dc272 14959
1c710c3c
DJ
14960if $ac_cs_silent; then
14961 exec 6>/dev/null
14962 ac_configure_extra_args="$ac_configure_extra_args --silent"
14963fi
0b0dc272 14964
1c710c3c 14965_ACEOF
5213506e 14966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14967if \$ac_cs_recheck; then
5213506e
RW
14968 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14969 shift
14970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14971 CONFIG_SHELL='$SHELL'
14972 export CONFIG_SHELL
14973 exec "\$@"
1c710c3c
DJ
14974fi
14975
14976_ACEOF
5213506e
RW
14977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14978exec 5>>config.log
14979{
14980 echo
14981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14982## Running $as_me. ##
14983_ASBOX
14984 $as_echo "$ac_log"
14985} >&5
1c710c3c 14986
5213506e
RW
14987_ACEOF
14988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14989#
14990# INIT-COMMANDS
14991#
14992extrasub_build="$extrasub_build"
14993 extrasub_host="$extrasub_host"
14994 extrasub_target="$extrasub_target"
14995
5213506e 14996_ACEOF
1c710c3c 14997
5213506e 14998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14999
5213506e 15000# Handling of arguments.
1c710c3c
DJ
15001for ac_config_target in $ac_config_targets
15002do
5213506e
RW
15003 case $ac_config_target in
15004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15005
15006 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15007 esac
15008done
15009
5213506e 15010
1c710c3c
DJ
15011# If the user did not use the arguments to specify the items to instantiate,
15012# then the envvar interface is used. Set only those that are not.
15013# We use the long form for the default assignment because of an extremely
15014# bizarre bug on SunOS 4.1.3.
15015if $ac_need_defaults; then
15016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15017fi
15018
15019# Have a temporary directory for convenience. Make it in the build tree
5213506e 15020# simply because there is no reason against having it here, and in addition,
1c710c3c 15021# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15022# Hook for its removal unless debugging.
15023# Note that there is a small window in which the directory will not be cleaned:
15024# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15025$debug ||
15026{
5213506e
RW
15027 tmp=
15028 trap 'exit_status=$?
15029 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15030' 0
15031 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15032}
1c710c3c
DJ
15033# Create a (secure) tmp directory for tmp files.
15034
15035{
5213506e 15036 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15037 test -n "$tmp" && test -d "$tmp"
15038} ||
15039{
5213506e
RW
15040 tmp=./conf$$-$RANDOM
15041 (umask 077 && mkdir "$tmp")
15042} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15043
15044# Set up the scripts for CONFIG_FILES section.
15045# No need to generate them if there are no CONFIG_FILES.
15046# This happens for instance with `./config.status config.h'.
15047if test -n "$CONFIG_FILES"; then
15048
15049if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15050 ac_cs_awk_getline=:
15051 ac_cs_awk_pipe_init=
15052 ac_cs_awk_read_file='
15053 while ((getline aline < (F[key])) > 0)
15054 print(aline)
15055 close(F[key])'
15056 ac_cs_awk_pipe_fini=
15057else
15058 ac_cs_awk_getline=false
15059 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15060 ac_cs_awk_read_file='
15061 print "|#_!!_#|"
15062 print "cat " F[key] " &&"
15063 '$ac_cs_awk_pipe_init
15064 # The final `:' finishes the AND list.
15065 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15066fi
15067ac_cr=`echo X | tr X '\015'`
15068# On cygwin, bash can eat \r inside `` if the user requested igncr.
15069# But we know of no other shell where ac_cr would be empty at this
15070# point, so we can use a bashism as a fallback.
15071if test "x$ac_cr" = x; then
15072 eval ac_cr=\$\'\\r\'
15073fi
15074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15076 ac_cs_awk_cr='\r'
15077else
15078 ac_cs_awk_cr=$ac_cr
15079fi
15080
15081echo 'BEGIN {' >"$tmp/subs1.awk" &&
15082_ACEOF
15083
15084# Create commands to substitute file output variables.
1c710c3c 15085{
5213506e
RW
15086 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15087 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15088 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15089 echo "_ACAWK" &&
15090 echo "_ACEOF"
15091} >conf$$files.sh &&
15092. ./conf$$files.sh ||
15093 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15094rm -f conf$$files.sh
1c710c3c 15095
5213506e
RW
15096{
15097 echo "cat >conf$$subs.awk <<_ACEOF" &&
15098 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15099 echo "_ACEOF"
15100} >conf$$subs.sh ||
15101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15102ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15103ac_delim='%!_!# '
15104for ac_last_try in false false false false false :; do
15105 . ./conf$$subs.sh ||
15106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15107
15108 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15109 if test $ac_delim_n = $ac_delim_num; then
15110 break
15111 elif $ac_last_try; then
15112 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15113 else
15114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15115 fi
15116done
15117rm -f conf$$subs.sh
15118
15119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15121_ACEOF
5213506e
RW
15122sed -n '
15123h
15124s/^/S["/; s/!.*/"]=/
15125p
15126g
15127s/^[^!]*!//
15128:repl
15129t repl
15130s/'"$ac_delim"'$//
15131t delim
15132:nl
15133h
15134s/\(.\{148\}\).*/\1/
15135t more1
15136s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15137p
15138n
15139b repl
15140:more1
15141s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15142p
15143g
15144s/.\{148\}//
15145t nl
15146:delim
15147h
15148s/\(.\{148\}\).*/\1/
15149t more2
15150s/["\\]/\\&/g; s/^/"/; s/$/"/
15151p
15152b
15153:more2
15154s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15155p
15156g
15157s/.\{148\}//
15158t delim
15159' <conf$$subs.awk | sed '
15160/^[^""]/{
15161 N
15162 s/\n//
15163}
15164' >>$CONFIG_STATUS || ac_write_fail=1
15165rm -f conf$$subs.awk
15166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167_ACAWK
15168cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15169 for (key in S) S_is_set[key] = 1
15170 FS = "\a"
15171 \$ac_cs_awk_pipe_init
15172}
15173{
15174 line = $ 0
15175 nfields = split(line, field, "@")
15176 substed = 0
15177 len = length(field[1])
15178 for (i = 2; i < nfields; i++) {
15179 key = field[i]
15180 keylen = length(key)
15181 if (S_is_set[key]) {
15182 value = S[key]
15183 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15184 len += length(value) + length(field[++i])
15185 substed = 1
15186 } else
15187 len += 1 + keylen
15188 }
15189 if (nfields == 3 && !substed) {
15190 key = field[2]
15191 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15192 \$ac_cs_awk_read_file
15193 next
15194 }
15195 }
15196 print line
15197}
15198\$ac_cs_awk_pipe_fini
15199_ACAWK
15200_ACEOF
15201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15203 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15204else
15205 cat
15206fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15207 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15208_ACEOF
15209
15210# VPATH may cause trouble with some makes, so we remove $(srcdir),
15211# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15212# trailing colons and then remove the whole line if VPATH becomes empty
15213# (actually we leave an empty line to preserve line numbers).
15214if test "x$srcdir" = x.; then
15215 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15216s/:*\$(srcdir):*/:/
15217s/:*\${srcdir}:*/:/
15218s/:*@srcdir@:*/:/
15219s/^\([^=]*=[ ]*\):*/\1/
15220s/:*$//
15221s/^[^=]*=[ ]*$//
15222}'
15223fi
2aeb72e9 15224
5213506e
RW
15225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226fi # test -n "$CONFIG_FILES"
2aeb72e9 15227
1c710c3c 15228
5213506e
RW
15229eval set X " :F $CONFIG_FILES "
15230shift
15231for ac_tag
15232do
15233 case $ac_tag in
15234 :[FHLC]) ac_mode=$ac_tag; continue;;
15235 esac
15236 case $ac_mode$ac_tag in
15237 :[FHL]*:*);;
15238 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15239 :[FH]-) ac_tag=-:-;;
15240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15241 esac
15242 ac_save_IFS=$IFS
15243 IFS=:
15244 set x $ac_tag
15245 IFS=$ac_save_IFS
15246 shift
15247 ac_file=$1
15248 shift
79c06341 15249
5213506e
RW
15250 case $ac_mode in
15251 :L) ac_source=$1;;
15252 :[FH])
15253 ac_file_inputs=
15254 for ac_f
15255 do
15256 case $ac_f in
15257 -) ac_f="$tmp/stdin";;
15258 *) # Look for the file first in the build tree, then in the source tree
15259 # (if the path is not absolute). The absolute path cannot be DOS-style,
15260 # because $ac_f cannot contain `:'.
15261 test -f "$ac_f" ||
15262 case $ac_f in
15263 [\\/$]*) false;;
15264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15265 esac ||
15266 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15267 esac
15268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15269 as_fn_append ac_file_inputs " '$ac_f'"
15270 done
1c710c3c 15271
5213506e
RW
15272 # Let's still pretend it is `configure' which instantiates (i.e., don't
15273 # use $as_me), people would be surprised to read:
15274 # /* config.h. Generated by config.status. */
15275 configure_input='Generated from '`
15276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15277 `' by configure.'
15278 if test x"$ac_file" != x-; then
15279 configure_input="$ac_file. $configure_input"
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15281$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15282 fi
5213506e
RW
15283 # Neutralize special characters interpreted by sed in replacement strings.
15284 case $configure_input in #(
15285 *\&* | *\|* | *\\* )
15286 ac_sed_conf_input=`$as_echo "$configure_input" |
15287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15288 *) ac_sed_conf_input=$configure_input;;
15289 esac
11a67599 15290
5213506e
RW
15291 case $ac_tag in
15292 *:-:* | *:-) cat >"$tmp/stdin" \
15293 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15294 esac
15295 ;;
11a67599
ZW
15296 esac
15297
5213506e 15298 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15300 X"$ac_file" : 'X\(//\)[^/]' \| \
15301 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15303$as_echo X"$ac_file" |
15304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15305 s//\1/
15306 q
15307 }
15308 /^X\(\/\/\)[^/].*/{
15309 s//\1/
15310 q
15311 }
15312 /^X\(\/\/\)$/{
15313 s//\1/
15314 q
15315 }
15316 /^X\(\/\).*/{
15317 s//\1/
15318 q
15319 }
15320 s/.*/./; q'`
15321 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15322 ac_builddir=.
0b0dc272 15323
5213506e
RW
15324case "$ac_dir" in
15325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15326*)
15327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15328 # A ".." for each directory in $ac_dir_suffix.
15329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15330 case $ac_top_builddir_sub in
15331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15333 esac ;;
15334esac
15335ac_abs_top_builddir=$ac_pwd
15336ac_abs_builddir=$ac_pwd$ac_dir_suffix
15337# for backward compatibility:
15338ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15339
15340case $srcdir in
5213506e 15341 .) # We are building in place.
1c710c3c 15342 ac_srcdir=.
5213506e
RW
15343 ac_top_srcdir=$ac_top_builddir_sub
15344 ac_abs_top_srcdir=$ac_pwd ;;
15345 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15346 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15347 ac_top_srcdir=$srcdir
15348 ac_abs_top_srcdir=$srcdir ;;
15349 *) # Relative name.
15350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15351 ac_top_srcdir=$ac_top_build_prefix$srcdir
15352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15353esac
5213506e 15354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15355
0b0dc272 15356
5213506e
RW
15357 case $ac_mode in
15358 :F)
15359 #
15360 # CONFIG_FILE
15361 #
1c710c3c
DJ
15362
15363 case $INSTALL in
15364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15366 esac
5213506e 15367_ACEOF
11a67599 15368
5213506e
RW
15369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370# If the template does not know about datarootdir, expand it.
15371# FIXME: This hack should be removed a few years after 2.60.
15372ac_datarootdir_hack=; ac_datarootdir_seen=
15373ac_sed_dataroot='
15374/datarootdir/ {
15375 p
15376 q
15377}
15378/@datadir@/p
15379/@docdir@/p
15380/@infodir@/p
15381/@localedir@/p
15382/@mandir@/p'
15383case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15384*datarootdir*) ac_datarootdir_seen=yes;;
15385*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15387$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15388_ACEOF
5213506e
RW
15389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15390 ac_datarootdir_hack='
15391 s&@datadir@&$datadir&g
15392 s&@docdir@&$docdir&g
15393 s&@infodir@&$infodir&g
15394 s&@localedir@&$localedir&g
15395 s&@mandir@&$mandir&g
15396 s&\\\${datarootdir}&$datarootdir&g' ;;
15397esac
15398_ACEOF
15399
15400# Neutralize VPATH when `$srcdir' = `.'.
15401# Shell code in configure.ac might set extrasub.
15402# FIXME: do we really want to maintain this feature?
15403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15405$extrasub
15406_ACEOF
5213506e 15407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15408:t
15409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15410s|@configure_input@|$ac_sed_conf_input|;t t
15411s&@top_builddir@&$ac_top_builddir_sub&;t t
15412s&@top_build_prefix@&$ac_top_build_prefix&;t t
15413s&@srcdir@&$ac_srcdir&;t t
15414s&@abs_srcdir@&$ac_abs_srcdir&;t t
15415s&@top_srcdir@&$ac_top_srcdir&;t t
15416s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15417s&@builddir@&$ac_builddir&;t t
15418s&@abs_builddir@&$ac_abs_builddir&;t t
15419s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15420s&@INSTALL@&$ac_INSTALL&;t t
15421$ac_datarootdir_hack
15422"
15423eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15424if $ac_cs_awk_getline; then
15425 $AWK -f "$tmp/subs.awk"
15426else
15427 $AWK -f "$tmp/subs.awk" | $SHELL
15428fi >$tmp/out \
15429 || as_fn_error "could not create $ac_file" "$LINENO" 5
15430
15431test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15432 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15435which seems to be undefined. Please make sure it is defined." >&5
15436$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15437which seems to be undefined. Please make sure it is defined." >&2;}
15438
15439 rm -f "$tmp/stdin"
15440 case $ac_file in
15441 -) cat "$tmp/out" && rm -f "$tmp/out";;
15442 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15443 esac \
15444 || as_fn_error "could not create $ac_file" "$LINENO" 5
15445 ;;
11a67599 15446
11a67599 15447
79c06341 15448
5213506e
RW
15449 esac
15450
3e54529c
RW
15451
15452 case $ac_file$ac_mode in
15453 "Makefile":F) sed "$extrasub_build" Makefile |
15454 sed "$extrasub_host" |
15455 sed "$extrasub_target" > mf$$
15456 mv -f mf$$ Makefile ;;
15457
15458 esac
5213506e
RW
15459done # for ac_tag
15460
15461
15462as_fn_exit 0
1c710c3c 15463_ACEOF
1c710c3c
DJ
15464ac_clean_files=$ac_clean_files_save
15465
5213506e
RW
15466test $ac_write_fail = 0 ||
15467 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15468
1c710c3c
DJ
15469
15470# configure is writing to config.log, and then calls config.status.
15471# config.status does its own redirection, appending to config.log.
15472# Unfortunately, on DOS this fails, as config.log is still kept open
15473# by configure, so config.status won't be able to write to it; its
15474# output is simply discarded. So we exec the FD to /dev/null,
15475# effectively closing config.log, so it can be properly (re)opened and
15476# appended to by config.status. When coming back to configure, we
15477# need to make the FD available again.
15478if test "$no_create" != yes; then
15479 ac_cs_success=:
15480 ac_config_status_args=
15481 test "$silent" = yes &&
15482 ac_config_status_args="$ac_config_status_args --quiet"
15483 exec 5>/dev/null
15484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15485 exec 5>>config.log
15486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15487 # would make configure fail if this is the last instruction.
5213506e
RW
15488 $ac_cs_success || as_fn_exit $?
15489fi
15490if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15492$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15493fi
79c06341 15494