]> gcc.gnu.org Git - gcc.git/blame - configure
Regenerate tree using Autoconf 2.64 and Automake 1.11.
[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'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174else
175 as_have_required=no
176fi
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181as_found=false
182for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 183do
5213506e
RW
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
188 /*)
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
197fi
198fi
199 done;;
200 esac
201 as_found=false
202done
203$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206fi; }
207IFS=$as_save_IFS
208
209
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219fi
220
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 227 else
5213506e
RW
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229$0: including any error possibly output before this
230$0: message. Then install a modern shell, or manually run
231$0: the script under such a shell if you do have one."
1c710c3c 232 fi
5213506e
RW
233 exit 1
234fi
235fi
236fi
237SHELL=${CONFIG_SHELL-/bin/sh}
238export SHELL
239# Unset more variables known to interfere with behavior of common tools.
240CLICOLOR_FORCE= GREP_OPTIONS=
241unset CLICOLOR_FORCE GREP_OPTIONS
242
243## --------------------- ##
244## M4sh Shell Functions. ##
245## --------------------- ##
246# as_fn_unset VAR
247# ---------------
248# Portably unset VAR.
249as_fn_unset ()
250{
251 { eval $1=; unset $1;}
252}
253as_unset=as_fn_unset
254
255# as_fn_set_status STATUS
256# -----------------------
257# Set $? to STATUS, without forking.
258as_fn_set_status ()
259{
260 return $1
261} # as_fn_set_status
1c710c3c 262
5213506e
RW
263# as_fn_exit STATUS
264# -----------------
265# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266as_fn_exit ()
267{
268 set +e
269 as_fn_set_status $1
270 exit $1
271} # as_fn_exit
272
273# as_fn_mkdir_p
274# -------------
275# Create "$as_dir" as a directory, including parents if necessary.
276as_fn_mkdir_p ()
277{
278
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295$as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
298 q
299 }
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)$/{
305 s//\1/
306 q
307 }
308 /^X\(\/\).*/{
309 s//\1/
310 q
311 }
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319} # as_fn_mkdir_p
320# as_fn_append VAR VALUE
321# ----------------------
322# Append the text in VALUE to the end of the definition contained in VAR. Take
323# advantage of any shell optimizations that allow amortized linear growth over
324# repeated appends, instead of the typical quadratic growth present in naive
325# implementations.
326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
328 {
329 eval $1+=\$2
330 }'
331else
332 as_fn_append ()
333 {
334 eval $1=\$$1\$2
335 }
336fi # as_fn_append
337
338# as_fn_arith ARG...
339# ------------------
340# Perform arithmetic evaluation on the ARGs, and store the result in the
341# global $as_val. Take advantage of shells that can avoid forks. The arguments
342# must be portable across $(()) and expr.
343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
345 {
346 as_val=$(( $* ))
347 }'
348else
349 as_fn_arith ()
350 {
351 as_val=`expr "$@" || test $? -eq 1`
352 }
353fi # as_fn_arith
354
355
356# as_fn_error ERROR [LINENO LOG_FD]
357# ---------------------------------
358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360# script with status $?, using 1 if that was 0.
361as_fn_error ()
362{
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367 fi
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370} # as_fn_error
371
372if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
374 as_expr=expr
375else
376 as_expr=false
377fi
378
5213506e 379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
380 as_basename=basename
381else
382 as_basename=false
383fi
384
5213506e
RW
385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387else
388 as_dirname=false
389fi
1c710c3c 390
5213506e 391as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
5213506e
RW
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395$as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
398 q
399 }
400 /^X\/\(\/\/\)$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\).*/{
405 s//\1/
406 q
407 }
408 s/.*/./; q'`
1c710c3c 409
2aeb72e9
DD
410# Avoid depending upon Character Ranges.
411as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414as_cr_digits='0123456789'
415as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 416
1c710c3c 417
5213506e
RW
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
424 p
425 /[$]LINENO/=
426 ' <$as_myself |
1c710c3c 427 sed '
5213506e
RW
428 s/[$]LINENO.*/&-/
429 t lineno
430 b
431 :lineno
1c710c3c 432 N
5213506e
RW
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 435 t loop
5213506e 436 s/-\n.*//
1c710c3c 437 ' >$as_me.lineno &&
5213506e
RW
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
440
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
1c710c3c
DJ
445 # Exit status is that of the last command.
446 exit
447}
448
5213506e
RW
449ECHO_C= ECHO_N= ECHO_T=
450case `echo -n x` in #(((((
451-n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
458*)
459 ECHO_N='-n';;
1c710c3c
DJ
460esac
461
5213506e
RW
462rm -f conf$$ conf$$.exe conf$$.file
463if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
1c710c3c 465else
5213506e
RW
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
1c710c3c 468fi
5213506e
RW
469if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 471 as_ln_s='ln -s'
5213506e
RW
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
2aeb72e9 482 fi
1c710c3c
DJ
483else
484 as_ln_s='cp -p'
485fi
5213506e
RW
486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
488
489if mkdir -p . 2>/dev/null; then
5213506e 490 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
491else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
494fi
495
5213506e
RW
496if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
503 fi
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
515 '
516fi
517as_executable_p=$as_test_x
0b0dc272 518
1c710c3c
DJ
519# Sed expression to map a string onto a valid CPP name.
520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521
522# Sed expression to map a string onto a valid variable name.
523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524
525
5213506e 526exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
527
528# Name of the host.
529# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530# so uname gets run too.
531ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532
1c710c3c
DJ
533#
534# Initializations.
535#
671aa708 536ac_default_prefix=/usr/local
5213506e 537ac_clean_files=
1c710c3c 538ac_config_libobj_dir=.
5213506e 539LIBOBJS=
1c710c3c
DJ
540cross_compiling=no
541subdirs=
542MFLAGS=
543MAKEFLAGS=
2aeb72e9 544
1c710c3c
DJ
545# Identity of this package.
546PACKAGE_NAME=
547PACKAGE_TARNAME=
548PACKAGE_VERSION=
549PACKAGE_STRING=
550PACKAGE_BUGREPORT=
5213506e 551PACKAGE_URL=
1c710c3c
DJ
552
553ac_unique_file="move-if-change"
5213506e
RW
554enable_option_checking=no
555ac_subst_vars='LTLIBOBJS
556LIBOBJS
557compare_exclusions
558stage2_werror_flag
559stage1_checking
560stage1_cflags
561MAINT
562MAINTAINER_MODE_FALSE
563MAINTAINER_MODE_TRUE
564COMPILER_NM_FOR_TARGET
565COMPILER_LD_FOR_TARGET
566COMPILER_AS_FOR_TARGET
567FLAGS_FOR_TARGET
568RAW_CXX_FOR_TARGET
569WINDMC_FOR_TARGET
570WINDRES_FOR_TARGET
571STRIP_FOR_TARGET
572RANLIB_FOR_TARGET
573OBJDUMP_FOR_TARGET
574NM_FOR_TARGET
575LIPO_FOR_TARGET
576LD_FOR_TARGET
577DLLTOOL_FOR_TARGET
578AS_FOR_TARGET
579AR_FOR_TARGET
580GFORTRAN_FOR_TARGET
581GCJ_FOR_TARGET
582GCC_FOR_TARGET
583CXX_FOR_TARGET
584CC_FOR_TARGET
585OBJDUMP
586OBJCOPY
587WINDMC
588WINDRES
589STRIP
590RANLIB
591NM
592LIPO
593LD
594DLLTOOL
595AS
596AR
597RUNTEST
598EXPECT
599MAKEINFO
600FLEX
601LEX
602M4
603BISON
604YACC
605config_shell
606WINDRES_FOR_BUILD
607WINDMC_FOR_BUILD
608RANLIB_FOR_BUILD
609NM_FOR_BUILD
610LD_FOR_BUILD
611LDFLAGS_FOR_BUILD
612GFORTRAN_FOR_BUILD
613GCJ_FOR_BUILD
614DLLTOOL_FOR_BUILD
615CXX_FOR_BUILD
616CXXFLAGS_FOR_BUILD
617CFLAGS_FOR_BUILD
618CC_FOR_BUILD
619AS_FOR_BUILD
620AR_FOR_BUILD
621target_configargs
622configdirs
623host_configargs
624build_configdirs
625build_configargs
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
633CXXFLAGS_FOR_TARGET
634CFLAGS_FOR_TARGET
635DEBUG_PREFIX_CFLAGS_FOR_TARGET
636SYSROOT_CFLAGS_FOR_TARGET
637stage1_languages
638clooginc
639clooglibs
640pplinc
641ppllibs
642poststage1_libs
643poststage1_ldflags
644stage1_libs
645stage1_ldflags
646extra_mpc_mpfr_configure_flags
647extra_mpc_gmp_configure_flags
648extra_mpfr_configure_flags
649gmpinc
650gmplibs
651do_compare
652GNATMAKE
653GNATBIND
654ac_ct_CXX
655CXXFLAGS
656CXX
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664target_subdir
665host_subdir
666build_subdir
667build_libsubdir
668LN_S
669LN
670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
673target_os
674target_vendor
675target_cpu
676target
677host_os
678host_vendor
679host_cpu
680host
681target_noncanonical
682host_noncanonical
683build_noncanonical
684build_os
685build_vendor
686build_cpu
687build
688TOPLEVEL_CONFIGURE_ARGUMENTS
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files='serialization_dependencies
728host_makefile_frag
729target_makefile_frag
730alphaieee_frag
731ospace_frag'
732ac_user_opts='
733enable_option_checking
734with_build_libsubdir
735enable_gold
736enable_libada
737enable_libssp
738enable_build_with_cxx
739with_mpc
740with_mpc_include
741with_mpc_lib
742with_mpfr_dir
743with_mpfr
744with_mpfr_include
745with_mpfr_lib
746with_gmp_dir
747with_gmp
748with_gmp_include
749with_gmp_lib
750with_host_libstdcxx
751with_stage1_ldflags
752with_stage1_libs
753with_boot_ldflags
754with_boot_libs
755with_ppl
756with_ppl_include
757with_ppl_lib
758enable_ppl_version_check
759with_cloog
760with_cloog_include
761with_cloog_lib
762enable_cloog_version_check
763enable_stage1_languages
764enable_objc_gc
765with_build_sysroot
766with_debug_prefix_map
767enable_bootstrap
768enable_serial_configure
769with_build_time_tools
770enable_maintainer_mode
771enable_stage1_checking
772enable_werror
773with_datarootdir
774with_docdir
775with_pdfdir
776with_htmldir
777'
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CXX
787CXXFLAGS
788CCC
789AR
790AS
791DLLTOOL
792LD
793LIPO
794NM
795RANLIB
796STRIP
797WINDRES
798WINDMC
799OBJCOPY
800OBJDUMP
801CC_FOR_TARGET
802CXX_FOR_TARGET
803GCC_FOR_TARGET
804GCJ_FOR_TARGET
805GFORTRAN_FOR_TARGET
806AR_FOR_TARGET
807AS_FOR_TARGET
808DLLTOOL_FOR_TARGET
809LD_FOR_TARGET
810LIPO_FOR_TARGET
811NM_FOR_TARGET
812OBJDUMP_FOR_TARGET
813RANLIB_FOR_TARGET
814STRIP_FOR_TARGET
815WINDRES_FOR_TARGET
816WINDMC_FOR_TARGET'
817
671aa708
NN
818
819# Initialize some variables set by options.
1c710c3c
DJ
820ac_init_help=
821ac_init_version=false
5213506e
RW
822ac_unrecognized_opts=
823ac_unrecognized_sep=
671aa708
NN
824# The variables have the same names as the options, with
825# dashes changed to underlines.
1c710c3c 826cache_file=/dev/null
671aa708 827exec_prefix=NONE
671aa708 828no_create=
671aa708
NN
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
671aa708
NN
837verbose=
838x_includes=NONE
839x_libraries=NONE
1c710c3c
DJ
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 846# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
5213506e
RW
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
671aa708
NN
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
671aa708
NN
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
5213506e
RW
857docdir='${datarootdir}/doc/${PACKAGE}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
79c06341 866
671aa708 867ac_prev=
5213506e 868ac_dashdash=
671aa708
NN
869for ac_option
870do
671aa708
NN
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
5213506e 873 eval $ac_prev=\$ac_option
671aa708
NN
874 ac_prev=
875 continue
876 fi
79c06341 877
5213506e
RW
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
671aa708
NN
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
5213506e
RW
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
671aa708
NN
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 892 bindir=$ac_optarg ;;
671aa708
NN
893
894 -build | --build | --buil | --bui | --bu)
1c710c3c 895 ac_prev=build_alias ;;
671aa708 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 897 build_alias=$ac_optarg ;;
671aa708
NN
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
671aa708 908
5213506e 909 -datadir | --datadir | --datadi | --datad)
671aa708 910 ac_prev=datadir ;;
5213506e 911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 912 datadir=$ac_optarg ;;
671aa708 913
5213506e
RW
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
671aa708 921 -disable-* | --disable-*)
5213506e 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 923 # Reject names that are not valid shell variable names.
5213506e
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
671aa708
NN
946
947 -enable-* | --enable-*)
5213506e 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 949 # Reject names that are not valid shell variable names.
5213506e
RW
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
2aeb72e9 960 esac
5213506e 961 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
1c710c3c 970 exec_prefix=$ac_optarg ;;
671aa708
NN
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
1c710c3c
DJ
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
671aa708
NN
982
983 -host | --host | --hos | --ho)
1c710c3c 984 ac_prev=host_alias ;;
671aa708 985 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 986 host_alias=$ac_optarg ;;
671aa708 987
5213506e
RW
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
671aa708
NN
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 999 includedir=$ac_optarg ;;
671aa708
NN
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1004 infodir=$ac_optarg ;;
671aa708
NN
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1009 libdir=$ac_optarg ;;
671aa708
NN
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1016 libexecdir=$ac_optarg ;;
671aa708 1017
5213506e
RW
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
671aa708 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1024 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1028 localstatedir=$ac_optarg ;;
671aa708
NN
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1033 mandir=$ac_optarg ;;
671aa708
NN
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1040 | --no-cr | --no-c | -n)
671aa708
NN
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1054 oldincludedir=$ac_optarg ;;
671aa708
NN
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1059 prefix=$ac_optarg ;;
671aa708
NN
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1066 program_prefix=$ac_optarg ;;
671aa708
NN
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1073 program_suffix=$ac_optarg ;;
671aa708
NN
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1090 program_transform_name=$ac_optarg ;;
671aa708 1091
5213506e
RW
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
671aa708
NN
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1c710c3c 1110 sbindir=$ac_optarg ;;
671aa708
NN
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1c710c3c 1121 sharedstatedir=$ac_optarg ;;
671aa708
NN
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1c710c3c 1126 site=$ac_optarg ;;
671aa708
NN
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1131 srcdir=$ac_optarg ;;
671aa708
NN
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1138 sysconfdir=$ac_optarg ;;
671aa708
NN
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1141 ac_prev=target_alias ;;
671aa708 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1143 target_alias=$ac_optarg ;;
671aa708
NN
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1c710c3c
DJ
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
671aa708
NN
1150
1151 -with-* | --with-*)
5213506e 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1153 # Reject names that are not valid shell variable names.
5213506e
RW
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
2aeb72e9 1164 esac
5213506e 1165 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1166
1167 -without-* | --without-*)
5213506e 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1169 # Reject names that are not valid shell variable names.
5213506e
RW
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
671aa708
NN
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1192 x_includes=$ac_optarg ;;
671aa708
NN
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1199 x_libraries=$ac_optarg ;;
671aa708 1200
5213506e
RW
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information."
671aa708
NN
1203 ;;
1204
1c710c3c
DJ
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
5213506e
RW
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1213 export $ac_envvar ;;
1214
671aa708 1215 *)
1c710c3c 1216 # FIXME: should be removed in autoconf 3.0.
5213506e 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
1c710c3c 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1228 as_fn_error "missing argument to $ac_option"
af71363e 1229fi
af71363e 1230
5213506e
RW
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1236 esac
5213506e 1237fi
2aeb72e9 1238
5213506e
RW
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
2aeb72e9 1244do
5213506e
RW
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
2aeb72e9 1253 case $ac_val in
5213506e
RW
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1256 esac
5213506e 1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1258done
1259
1c710c3c
DJ
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
0b0dc272 1266
1c710c3c
DJ
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
5213506e 1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
671aa708 1282
671aa708 1283
5213506e
RW
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
671aa708
NN
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
5213506e
RW
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
671aa708 1319 srcdir=$ac_confdir
5213506e 1320 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1321 srcdir=..
1322 fi
1323else
1324 ac_srcdir_defaulted=no
1325fi
5213506e
RW
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
ac9e6043
RW
1344ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1345
5213506e
RW
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1c710c3c
DJ
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360\`configure' configures this package to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1c710c3c
DJ
1380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1382 [$ac_default_prefix]
1c710c3c 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1384 [PREFIX]
1c710c3c
DJ
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
5213506e
RW
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430
1431 cat <<\_ACEOF
1432
1433Optional Features:
5213506e 1434 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 1437 --enable-gold use gold instead of ld
30b74385
RW
1438 --enable-libada build libada directory
1439 --enable-libssp build libssp directory
00020c16 1440 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
1441 --disable-ppl-version-check disable check for PPL version
1442 --disable-cloog-version-check disable check for CLooG version
30b74385 1443 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1444 stage1. Mostly useful for compiler development.
30b74385
RW
1445 --enable-objc-gc enable use of Boehm's garbage collector with the
1446 GNU Objective-C runtime
1447 --enable-bootstrap enable bootstrapping [yes if native build]
1448 --enable-serial-[{host,target,build}-]configure
1449 force sequential configuration of
1c710c3c 1450 sub-packages for the host, target or build
30b74385 1451 machine, or all sub-packages
1c710c3c
DJ
1452 --enable-maintainer-mode enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
30b74385
RW
1454 --enable-stage1-checking[=all] choose additional checking for stage1
1455 of the compiler
1c710c3c
DJ
1456 --enable-werror enable -Werror in bootstrap stage2 and later
1457
1458Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1462 --with-mpc=PATH specify prefix directory for installed MPC package.
1463 Equivalent to --with-mpc-include=PATH/include
1464 plus --with-mpc-lib=PATH/lib
1465 --with-mpc-include=PATH
1466 specify directory for installed MPC include files
1467 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1468 --with-mpfr-dir=PATH this option has been REMOVED
1469 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1470 Equivalent to --with-mpfr-include=PATH/include
1471 plus --with-mpfr-lib=PATH/lib
1472 --with-mpfr-include=PATH
30b74385
RW
1473 specify directory for installed MPFR include files
1474 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1475 --with-gmp-dir=PATH this option has been REMOVED
1476 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1477 Equivalent to --with-gmp-include=PATH/include
1478 plus --with-gmp-lib=PATH/lib
30b74385
RW
1479 --with-gmp-include=PATH specify directory for installed GMP include files
1480 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1481 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1482 when linking with PPL
00020c16
ILT
1483 --with-stage1-ldflags=FLAGS Linker flags for stage1
1484 -with-stage1-libs=LIBS Libraries for stage1
1485 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1486 --with-boot-libs=LIBS Libraries for stage2 and later
f8bf9252
SP
1487 --with-ppl=PATH Specify prefix directory for the installed PPL package
1488 Equivalent to --with-ppl-include=PATH/include
1489 plus --with-ppl-lib=PATH/lib
1490 --with-ppl-include=PATH Specify directory for installed PPL include files
1491 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 1492 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
1493 Equivalent to --with-cloog-include=PATH/include
1494 plus --with-cloog-lib=PATH/lib
d789184e
SP
1495 --with-cloog-include=PATH Specify directory for installed CLooG include files
1496 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 1497 --with-build-sysroot=SYSROOT
1c710c3c 1498 use sysroot as the system root during the build
c8aea42c
PB
1499 --with-debug-prefix-map='A=B C=D ...'
1500 map A to B, C to D ... in debug information
30b74385 1501 --with-build-time-tools=PATH
1c710c3c 1502 use given path to find target tools during the build
30b74385
RW
1503 --with-datarootdir use datarootdir as the data root directory.
1504 --with-docdir install documentation in this directory.
1505 --with-pdfdir install pdf in this directory.
1506 --with-htmldir install html in this directory.
1c710c3c
DJ
1507
1508Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
5213506e
RW
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
278a7a38
AO
1518 AR AR for the host
1519 AS AS for the host
1520 DLLTOOL DLLTOOL for the host
1521 LD LD for the host
1522 LIPO LIPO for the host
1523 NM NM for the host
1524 RANLIB RANLIB for the host
1525 STRIP STRIP for the host
1526 WINDRES WINDRES for the host
901119ae 1527 WINDMC WINDMC for the host
278a7a38
AO
1528 OBJCOPY OBJCOPY for the host
1529 OBJDUMP OBJDUMP for the host
1530 CC_FOR_TARGET
1531 CC for the target
1532 CXX_FOR_TARGET
1533 CXX for the target
1534 GCC_FOR_TARGET
1535 GCC for the target
1536 GCJ_FOR_TARGET
1537 GCJ for the target
1538 GFORTRAN_FOR_TARGET
1539 GFORTRAN for the target
1540 AR_FOR_TARGET
1541 AR for the target
1542 AS_FOR_TARGET
1543 AS for the target
1544 DLLTOOL_FOR_TARGET
1545 DLLTOOL for the target
1546 LD_FOR_TARGET
1547 LD for the target
1548 LIPO_FOR_TARGET
1549 LIPO for the target
1550 NM_FOR_TARGET
1551 NM for the target
1552 OBJDUMP_FOR_TARGET
1553 OBJDUMP for the target
1554 RANLIB_FOR_TARGET
1555 RANLIB for the target
1556 STRIP_FOR_TARGET
1557 STRIP for the target
1558 WINDRES_FOR_TARGET
1559 WINDRES for the target
901119ae
KT
1560 WINDMC_FOR_TARGET
1561 WINDMC for the target
1c710c3c
DJ
1562
1563Use these variables to override the choices made by `configure' or to help
1564it to find libraries and programs with nonstandard names/locations.
1565
5213506e 1566Report bugs to the package provider.
1c710c3c 1567_ACEOF
5213506e 1568ac_status=$?
1c710c3c
DJ
1569fi
1570
1571if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1c710c3c 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1c710c3c
DJ
1577 ac_builddir=.
1578
5213506e
RW
1579case "$ac_dir" in
1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581*)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589esac
1590ac_abs_top_builddir=$ac_pwd
1591ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592# for backward compatibility:
1593ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1594
1595case $srcdir in
5213506e 1596 .) # We are building in place.
1c710c3c 1597 ac_srcdir=.
5213506e
RW
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1601 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1608esac
5213506e
RW
1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1619 else
5213506e
RW
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1623 done
1624fi
1625
5213506e 1626test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1627if $ac_init_version; then
1628 cat <<\_ACEOF
5213506e
RW
1629configure
1630generated by GNU Autoconf 2.64
1c710c3c 1631
5213506e 1632Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1633This configure script is free software; the Free Software Foundation
1634gives unlimited permission to copy, distribute and modify it.
1635_ACEOF
5213506e 1636 exit
0b0dc272 1637fi
5213506e
RW
1638
1639## ------------------------ ##
1640## Autoconf initialization. ##
1641## ------------------------ ##
1642
1643# ac_fn_c_try_compile LINENO
1644# --------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_compile ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675fi
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 return $ac_retval
1678
1679} # ac_fn_c_try_compile
1680
1681# ac_fn_cxx_try_compile LINENO
1682# ----------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_cxx_try_compile ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_cxx_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1716
1717} # ac_fn_cxx_try_compile
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 $as_test_x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1762
1763} # ac_fn_c_try_link
1764cat >config.log <<_ACEOF
1c710c3c
DJ
1765This file contains any messages produced by compilers while
1766running configure, to aid debugging if configure makes a mistake.
1767
1768It was created by $as_me, which was
5213506e 1769generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1770
1771 $ $0 $@
1772
1773_ACEOF
5213506e 1774exec 5>>config.log
1c710c3c
DJ
1775{
1776cat <<_ASUNAME
1777## --------- ##
1778## Platform. ##
1779## --------- ##
1780
1781hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789
1790/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1793/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1794/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1797
1798_ASUNAME
1799
1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801for as_dir in $PATH
1802do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
5213506e
RW
1805 $as_echo "PATH: $as_dir"
1806 done
1807IFS=$as_save_IFS
1c710c3c
DJ
1808
1809} >&5
1810
1811cat >&5 <<_ACEOF
1812
1813
1814## ----------- ##
1815## Core tests. ##
1816## ----------- ##
1817
1818_ACEOF
1819
1820
1821# Keep a trace of the command line.
1822# Strip out --no-create and --no-recursion so they do not pile up.
1823# Strip out --silent because we don't want to record it for future runs.
1824# Also quote any args containing shell meta-characters.
1825# Make two passes to allow for proper duplicate-argument suppression.
1826ac_configure_args=
1827ac_configure_args0=
1828ac_configure_args1=
1c710c3c
DJ
1829ac_must_keep_next=false
1830for ac_pass in 1 2
1831do
1832 for ac_arg
1833 do
1834 case $ac_arg in
1835 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837 | -silent | --silent | --silen | --sile | --sil)
1838 continue ;;
5213506e
RW
1839 *\'*)
1840 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1841 esac
1842 case $ac_pass in
5213506e 1843 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1844 2)
5213506e 1845 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1846 if test $ac_must_keep_next = true; then
1847 ac_must_keep_next=false # Got value, back to normal.
1848 else
1849 case $ac_arg in
1850 *=* | --config-cache | -C | -disable-* | --disable-* \
1851 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853 | -with-* | --with-* | -without-* | --without-* | --x)
1854 case "$ac_configure_args0 " in
1855 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856 esac
1857 ;;
1858 -* ) ac_must_keep_next=true ;;
1859 esac
1860 fi
5213506e 1861 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1862 ;;
1863 esac
1864 done
1865done
5213506e
RW
1866{ ac_configure_args0=; unset ac_configure_args0;}
1867{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1868
1869# When interrupted or exit'd, cleanup temporary files, and complete
1870# config.log. We remove comments because anyway the quotes in there
1871# would cause problems or look ugly.
5213506e
RW
1872# WARNING: Use '\'' to represent an apostrophe within the trap.
1873# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1874trap 'exit_status=$?
1875 # Save into config.log some information that might help in debugging.
1876 {
1877 echo
1878
1879 cat <<\_ASBOX
1880## ---------------- ##
1881## Cache variables. ##
1882## ---------------- ##
1883_ASBOX
1884 echo
1885 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1886(
1887 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in #(
1890 *${as_nl}*)
1891 case $ac_var in #(
1892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894 esac
1895 case $ac_var in #(
1896 _ | IFS | as_nl) ;; #(
1897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898 *) { eval $ac_var=; unset $ac_var;} ;;
1899 esac ;;
1900 esac
1901 done
1c710c3c 1902 (set) 2>&1 |
5213506e
RW
1903 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904 *${as_nl}ac_space=\ *)
1c710c3c 1905 sed -n \
5213506e
RW
1906 "s/'\''/'\''\\\\'\'''\''/g;
1907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908 ;; #(
1c710c3c 1909 *)
5213506e 1910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1911 ;;
5213506e
RW
1912 esac |
1913 sort
1914)
1c710c3c
DJ
1915 echo
1916
1917 cat <<\_ASBOX
1918## ----------------- ##
1919## Output variables. ##
1920## ----------------- ##
1921_ASBOX
1922 echo
1923 for ac_var in $ac_subst_vars
1924 do
5213506e
RW
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 esac
1929 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1930 done | sort
1931 echo
1932
1933 if test -n "$ac_subst_files"; then
1934 cat <<\_ASBOX
5213506e
RW
1935## ------------------- ##
1936## File substitutions. ##
1937## ------------------- ##
1c710c3c
DJ
1938_ASBOX
1939 echo
1940 for ac_var in $ac_subst_files
1941 do
5213506e
RW
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1947 done | sort
1948 echo
1949 fi
1950
1951 if test -s confdefs.h; then
1952 cat <<\_ASBOX
1953## ----------- ##
1954## confdefs.h. ##
1955## ----------- ##
1956_ASBOX
1957 echo
5213506e 1958 cat confdefs.h
1c710c3c
DJ
1959 echo
1960 fi
1961 test "$ac_signal" != 0 &&
5213506e
RW
1962 $as_echo "$as_me: caught signal $ac_signal"
1963 $as_echo "$as_me: exit $exit_status"
1c710c3c 1964 } >&5
5213506e
RW
1965 rm -f core *.core core.conftest.* &&
1966 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1967 exit $exit_status
5213506e 1968' 0
1c710c3c 1969for ac_signal in 1 2 13 15; do
5213506e 1970 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
1971done
1972ac_signal=0
1973
1974# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
1975rm -f -r conftest* confdefs.h
1976
1977$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
1978
1979# Predefined preprocessor variables.
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_NAME "$PACKAGE_NAME"
1983_ACEOF
1984
1c710c3c
DJ
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987_ACEOF
1988
1c710c3c
DJ
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_VERSION "$PACKAGE_VERSION"
1991_ACEOF
0b0dc272 1992
1c710c3c
DJ
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_STRING "$PACKAGE_STRING"
1995_ACEOF
1996
1c710c3c
DJ
1997cat >>confdefs.h <<_ACEOF
1998#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999_ACEOF
2000
5213506e
RW
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_URL "$PACKAGE_URL"
2003_ACEOF
2004
1c710c3c
DJ
2005
2006# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2007# Prefer an explicitly selected file to automatically selected ones.
2008ac_site_file1=NONE
2009ac_site_file2=NONE
2010if test -n "$CONFIG_SITE"; then
2011 ac_site_file1=$CONFIG_SITE
2012elif test "x$prefix" != xNONE; then
2013 ac_site_file1=$prefix/share/config.site
2014 ac_site_file2=$prefix/etc/config.site
2015else
2016 ac_site_file1=$ac_default_prefix/share/config.site
2017 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2018fi
5213506e
RW
2019for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2020do
2021 test "x$ac_site_file" = xNONE && continue
671aa708 2022 if test -r "$ac_site_file"; then
5213506e
RW
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2024$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2025 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2026 . "$ac_site_file"
2027 fi
2028done
2029
2030if test -r "$cache_file"; then
1c710c3c
DJ
2031 # Some versions of bash will fail to source /dev/null (special
2032 # files actually), so we avoid doing that.
2033 if test -f "$cache_file"; then
5213506e
RW
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2036 case $cache_file in
5213506e
RW
2037 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038 *) . "./$cache_file";;
1c710c3c
DJ
2039 esac
2040 fi
671aa708 2041else
5213506e
RW
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2044 >$cache_file
2045fi
2046
2047# Check that the precious variables saved in the cache have kept the same
2048# value.
2049ac_cache_corrupted=false
5213506e 2050for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2055 case $ac_old_set,$ac_new_set in
2056 set,)
5213506e
RW
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2059 ac_cache_corrupted=: ;;
2060 ,set)
5213506e
RW
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2063 ac_cache_corrupted=: ;;
2064 ,);;
2065 *)
2066 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2067 # differences in whitespace do not lead to failure.
2068 ac_old_val_w=`echo x $ac_old_val`
2069 ac_new_val_w=`echo x $ac_new_val`
2070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073 ac_cache_corrupted=:
2074 else
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077 eval $ac_var=\$ac_old_val
2078 fi
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2080$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2082$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2083 fi;;
2084 esac
2085 # Pass precious variables to config.status.
2086 if test "$ac_new_set" = set; then
2087 case $ac_new_val in
5213506e 2088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2089 *) ac_arg=$ac_var=$ac_new_val ;;
2090 esac
2091 case " $ac_configure_args " in
2092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2094 esac
2095 fi
2096done
2097if $ac_cache_corrupted; then
5213506e
RW
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2103fi
5213506e
RW
2104## -------------------- ##
2105## Main body of script. ##
2106## -------------------- ##
671aa708 2107
2aeb72e9
DD
2108ac_ext=c
2109ac_cpp='$CPP $CPPFLAGS'
2110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
1c710c3c
DJ
2114
2115
2116
1c710c3c
DJ
2117
2118
0115d4a3 2119
1c710c3c 2120
ad33ff57
RW
2121
2122progname=$0
2123# if PWD already has a value, it is probably wrong.
2124if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2125
2126# Export original configure arguments for use by sub-configures.
2127# Quote arguments with shell meta charatcers.
2128TOPLEVEL_CONFIGURE_ARGUMENTS=
2129set -- "$progname" "$@"
2130for ac_arg
2131do
2132 case "$ac_arg" in
2133 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2134 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2135 # if the argument is of the form -foo=baz, quote the baz part only
2136 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2137 *) ;;
2138 esac
2139 # Add the quoted argument to the list.
2140 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2141done
2142if test "$silent" = yes; then
2143 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2144fi
2145# Remove the initial space we just introduced and, as these will be
2146# expanded by make, quote '$'.
2147TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2148
1c710c3c
DJ
2149
2150# Find the build, host, and target systems.
671aa708 2151ac_aux_dir=
5213506e
RW
2152for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2153 for ac_t in install-sh install.sh shtool; do
2154 if test -f "$ac_dir/$ac_t"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/$ac_t -c"
2157 break 2
2158 fi
2159 done
671aa708
NN
2160done
2161if test -z "$ac_aux_dir"; then
5213506e 2162 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2163fi
5213506e
RW
2164
2165# These three variables are undocumented and unsupported,
2166# and are intended to be withdrawn in a future Autoconf release.
2167# They can cause serious problems if a builder's source tree is in a directory
2168# whose full name contains unusual characters.
2169ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2170ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2171ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172
671aa708 2173
1c710c3c 2174# Make sure we can run config.sub.
5213506e
RW
2175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2177
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2179$as_echo_n "checking build system type... " >&6; }
2180if test "${ac_cv_build+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2182else
2183 ac_build_alias=$build_alias
2184test "x$ac_build_alias" = x &&
2185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186test "x$ac_build_alias" = x &&
2187 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2189 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2190
2191fi
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2193$as_echo "$ac_cv_build" >&6; }
2194case $ac_cv_build in
2195*-*-*) ;;
2196*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2197esac
1c710c3c 2198build=$ac_cv_build
5213506e
RW
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_build
2201shift
2202build_cpu=$1
2203build_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207build_os=$*
2208IFS=$ac_save_IFS
2209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2210
671aa708 2211
1c710c3c
DJ
2212 case ${build_alias} in
2213 "") build_noncanonical=${build} ;;
2214 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2215esac
2216
2217
af71363e 2218
1c710c3c
DJ
2219 case ${host_alias} in
2220 "") host_noncanonical=${build_noncanonical} ;;
2221 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2222esac
2223
af71363e 2224
1c710c3c
DJ
2225
2226 case ${target_alias} in
2227 "") target_noncanonical=${host_noncanonical} ;;
2228 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2229esac
2230
af71363e 2231
1c710c3c
DJ
2232
2233
2234test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
1c710c3c 2237 program_transform_name=s,y,y,
af71363e 2238
5213506e
RW
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2240$as_echo_n "checking host system type... " >&6; }
2241if test "${ac_cv_host+set}" = set; then :
2242 $as_echo_n "(cached) " >&6
af71363e 2243else
5213506e
RW
2244 if test "x$host_alias" = x; then
2245 ac_cv_host=$ac_cv_build
2246else
2247 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2249fi
1c710c3c 2250
af71363e 2251fi
5213506e
RW
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2253$as_echo "$ac_cv_host" >&6; }
2254case $ac_cv_host in
2255*-*-*) ;;
2256*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2257esac
1c710c3c 2258host=$ac_cv_host
5213506e
RW
2259ac_save_IFS=$IFS; IFS='-'
2260set x $ac_cv_host
2261shift
2262host_cpu=$1
2263host_vendor=$2
2264shift; shift
2265# Remember, the first character of IFS is used to create $*,
2266# except with old shells:
2267host_os=$*
2268IFS=$ac_save_IFS
2269case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2270
2271
5213506e
RW
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2273$as_echo_n "checking target system type... " >&6; }
2274if test "${ac_cv_target+set}" = set; then :
2275 $as_echo_n "(cached) " >&6
1c710c3c 2276else
5213506e
RW
2277 if test "x$target_alias" = x; then
2278 ac_cv_target=$ac_cv_host
2279else
2280 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2282fi
1c710c3c
DJ
2283
2284fi
5213506e
RW
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2286$as_echo "$ac_cv_target" >&6; }
2287case $ac_cv_target in
2288*-*-*) ;;
2289*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2290esac
1c710c3c 2291target=$ac_cv_target
5213506e
RW
2292ac_save_IFS=$IFS; IFS='-'
2293set x $ac_cv_target
2294shift
2295target_cpu=$1
2296target_vendor=$2
2297shift; shift
2298# Remember, the first character of IFS is used to create $*,
2299# except with old shells:
2300target_os=$*
2301IFS=$ac_save_IFS
2302case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2303
2304
2305# The aliases save the names the user supplied, while $host etc.
2306# will get canonicalized.
2307test -n "$target_alias" &&
2308 test "$program_prefix$program_suffix$program_transform_name" = \
2309 NONENONEs,x,x, &&
2310 program_prefix=${target_alias}-
5213506e 2311
671aa708 2312test "$program_prefix" != NONE &&
5213506e 2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2314# Use a double $ so make ignores it.
2315test "$program_suffix" != NONE &&
5213506e
RW
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317# Double any \ or $.
1c710c3c 2318# By default was `s,x,x', remove it if useless.
5213506e
RW
2319ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2321
671aa708
NN
2322
2323
775956d0
NN
2324# Get 'install' or 'install-sh' and its variants.
2325# Find a good install program. We prefer a C program (faster),
2326# so one script is as good as another. But avoid the broken or
2327# incompatible versions:
2328# SysV /etc/install, /usr/sbin/install
2329# SunOS /usr/etc/install
2330# IRIX /sbin/install
2331# AIX /bin/install
1c710c3c 2332# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2336# OS/2's system install, which has a completely different semantic
775956d0 2337# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2338# Reject install programs that cannot install multiple files.
5213506e
RW
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2341if test -z "$INSTALL"; then
5213506e
RW
2342if test "${ac_cv_path_install+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2344else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
5213506e
RW
2350 # Account for people who put trailing slashes in PATH elements.
2351case $as_dir/ in #((
2352 ./ | .// | /[cC]/* | \
1c710c3c 2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2355 /usr/ucb/* ) ;;
2356 *)
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2359 # by default.
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2363 if test $ac_prog = install &&
1c710c3c 2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2365 # AIX install. It has an incompatible calling convention.
2366 :
1c710c3c
DJ
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2370 :
775956d0 2371 else
38d24731
RW
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2375 mkdir conftest.dir
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2380 then
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382 break 3
2383 fi
775956d0
NN
2384 fi
2385 fi
2386 done
1c710c3c
DJ
2387 done
2388 ;;
2389esac
5213506e
RW
2390
2391 done
2392IFS=$as_save_IFS
1c710c3c 2393
38d24731 2394rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2395
2396fi
2397 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2398 INSTALL=$ac_cv_path_install
775956d0 2399 else
38d24731
RW
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
775956d0 2402 # break other packages using the cache if that directory is
38d24731 2403 # removed, or if the value is a relative name.
1c710c3c 2404 INSTALL=$ac_install_sh
775956d0
NN
2405 fi
2406fi
5213506e
RW
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408$as_echo "$INSTALL" >&6; }
775956d0
NN
2409
2410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411# It thinks the first close brace ends the variable substitution.
2412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
1c710c3c 2414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2415
2416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
5213506e
RW
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2419$as_echo_n "checking whether ln works... " >&6; }
2420if test "${acx_cv_prog_LN+set}" = set; then :
2421 $as_echo_n "(cached) " >&6
ad6717df
PB
2422else
2423 rm -f conftestdata_t
2424echo >conftestdata_f
2425if ln conftestdata_f conftestdata_t 2>/dev/null
2426then
2427 acx_cv_prog_LN=ln
2428else
2429 acx_cv_prog_LN=no
2430fi
2431rm -f conftestdata_f conftestdata_t
2432
2433fi
2434if test $acx_cv_prog_LN = no; then
2435 LN="cp"
5213506e
RW
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2437$as_echo "no, using $LN" >&6; }
ad6717df
PB
2438else
2439 LN="$acx_cv_prog_LN"
5213506e
RW
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441$as_echo "yes" >&6; }
ad6717df
PB
2442fi
2443
5213506e
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2445$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2446LN_S=$as_ln_s
2447if test "$LN_S" = "ln -s"; then
5213506e
RW
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449$as_echo "yes" >&6; }
fb0103e5 2450else
5213506e
RW
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2452$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2453fi
2454
775956d0 2455
79c06341 2456### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2457### If we are on Windows, search for the shell. This will permit people
2458### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2459### without also having to set CONFIG_SHELL. This code will work when
2460### using bash, which sets OSTYPE.
2461case "${OSTYPE}" in
2462*win32*)
671aa708
NN
2463 if test x${CONFIG_SHELL} = x ; then
2464 if test ! -f /bin/sh ; then
2465 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2466 CONFIG_SHELL=${SHELL}
2467 export CONFIG_SHELL
2468 else
2469 for prog in sh sh.exe bash bash.exe; do
2470 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2471 for dir in $PATH; do
2472 test -z "$dir" && dir=.
2473 if test -f $dir/$prog; then
2474 CONFIG_SHELL=$dir/$prog
2475 export CONFIG_SHELL
2476 break
2477 fi
2478 done
2479 IFS="$save_ifs"
2480 test -n "${CONFIG_SHELL}" && break
2481 done
2482 fi
2483 fi
2484 fi
2485 ;;
2486esac
2487
2488config_shell=${CONFIG_SHELL-/bin/sh}
2489
671aa708 2490moveifchange=${srcdir}/move-if-change
79c06341 2491
ee6a22df
L
2492srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2493
2494# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2495# a relative path.
2496if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2497 INSTALL="${srcpwd}/install-sh -c"
2498fi
2499
671aa708
NN
2500# Set srcdir to "." if that's what it is.
2501# This is important for multilib support.
2502pwd=`${PWDCMD-pwd}`
671aa708
NN
2503if test "${pwd}" = "${srcpwd}" ; then
2504 srcdir=.
79c06341
JL
2505fi
2506
671aa708 2507topsrcdir=$srcpwd
5d4a5ee6 2508
671aa708 2509extra_host_args=
afabd8e6 2510
671aa708
NN
2511### To add a new directory to the tree, first choose whether it is a target
2512### or a host dependent tool. Then put it into the appropriate list
2513### (library or tools, host or target), doing a dependency sort.
79c06341 2514
1c710c3c 2515# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2516# configdirs, or target_configdirs; see the serialization section below.
79c06341 2517
1c710c3c
DJ
2518# Dependency sorting is only needed when *configuration* must be done in
2519# a particular order. In all cases a dependency should be specified in
671aa708 2520# the Makefile, whether or not it's implicitly specified here.
79c06341 2521
671aa708
NN
2522# Double entries in build_configdirs, configdirs, or target_configdirs may
2523# cause circular dependencies and break everything horribly.
79c06341 2524
23f6b2f9
PB
2525# these library is used by various programs built for the build
2526# environment
2527#
2528build_libs="build-libiberty"
2529
2530# these tools are built for the build environment
71b5d516 2531build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2532
671aa708
NN
2533# these libraries are used by various programs built for the host environment
2534#
acd26225 2535host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
671aa708 2536
671aa708
NN
2537# these tools are built for the host environment
2538# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2539# know that we are building the simulator.
2540# binutils, gas and ld appear in that order because it makes sense to run
2541# "make check" in that particular order.
5afab7ad 2542# If --enable-gold is used, "gold" will replace "ld".
8c32c9f0 2543host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2544
2545# libgcj represents the runtime libraries only used by gcj.
2546libgcj="target-libffi \
671aa708
NN
2547 target-zlib \
2548 target-qthreads \
2549 target-libjava"
2550
2551# these libraries are built for the target environment, and are built after
2552# the host libraries and the host tools (which may be a cross compiler)
2553#
291f172e
DJ
2554target_libraries="target-libgcc \
2555 target-libiberty \
671aa708
NN
2556 target-libgloss \
2557 target-newlib \
6d3b5aea 2558 target-libgomp \
cb543528 2559 target-libstdc++-v3 \
6de9cd9a 2560 target-libmudflap \
77008252 2561 target-libssp \
6de9cd9a 2562 target-libgfortran \
7cd0cf9c 2563 target-boehm-gc \
77d187bc 2564 ${libgcj} \
d9cdb878 2565 target-libobjc \
6d3b5aea 2566 target-libada"
671aa708 2567
4dbda6f0
NN
2568# these tools are built using the target libraries, and are intended to
2569# run only in the target environment
671aa708 2570#
4dbda6f0 2571# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2572# list belongs in this list. those programs are also very likely
2573# candidates for the "native_only" list which follows
2574#
97286f7f 2575target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2576
671aa708 2577################################################################################
79c06341 2578
671aa708
NN
2579## All tools belong in one of the four categories, and are assigned above
2580## We assign ${configdirs} this way to remove all embedded newlines. This
2581## is important because configure will choke if they ever get through.
2582## ${configdirs} is directories we build using the host tools.
2583## ${target_configdirs} is directories we build using the target tools.
671aa708 2584configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2585target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2586build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2587
ac9e6043
RW
2588
2589
671aa708 2590################################################################################
79c06341 2591
671aa708 2592srcname="gnu development package"
79c06341 2593
671aa708
NN
2594# This gets set non-empty for some net releases of packages.
2595appdirs=""
79c06341 2596
671aa708
NN
2597# Define is_cross_compiler to save on calls to 'test'.
2598is_cross_compiler=
2599if test x"${host}" = x"${target}" ; then
2600 is_cross_compiler=no
79c06341 2601else
671aa708 2602 is_cross_compiler=yes
1c710c3c 2603fi
79c06341 2604
b4acb5ef 2605# Find the build and target subdir names.
8b87bb96 2606
2e9e6f68
DJ
2607# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2608# have matching libraries, they should use host libraries: Makefile.tpl
2609# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2610# However, they still use the build modules, because the corresponding
2611# host modules (e.g. bison) are only built for the host when bootstrap
2612# finishes. So:
2613# - build_subdir is where we find build modules, and never changes.
2614# - build_libsubdir is where we find build libraries, and can be overridden.
2615
2616# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2617build_subdir="build-${build_noncanonical}"
1c710c3c 2618
5213506e
RW
2619# Check whether --with-build-libsubdir was given.
2620if test "${with_build_libsubdir+set}" = set; then :
2621 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2622else
2623 build_libsubdir="$build_subdir"
5213506e
RW
2624fi
2625
215c351a
PB
2626# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2627if ( test $srcdir = . && test -d gcc ) \
2628 || test -d $srcdir/../host-${host_noncanonical}; then
2629 host_subdir="host-${host_noncanonical}"
2630else
2631 host_subdir=.
2632fi
8b87bb96
NN
2633# No prefix.
2634target_subdir=${target_noncanonical}
1c710c3c 2635
79c06341 2636
671aa708
NN
2637# Skipdirs are removed silently.
2638skipdirs=
2639# Noconfigdirs are removed loudly.
2640noconfigdirs=""
79c06341 2641
671aa708
NN
2642use_gnu_ld=
2643# Make sure we don't let GNU ld be added if we didn't want it.
2644if test x$with_gnu_ld = xno ; then
2645 use_gnu_ld=no
5afab7ad 2646 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2647fi
2648
671aa708
NN
2649use_gnu_as=
2650# Make sure we don't let GNU as be added if we didn't want it.
2651if test x$with_gnu_as = xno ; then
2652 use_gnu_as=no
2653 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2654fi
2655
1c710c3c 2656# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2657# it's not even worth trying to configure, much less build, that tool.
79c06341 2658
671aa708
NN
2659case ${with_x} in
2660 yes | "") ;; # the default value for this tree is that X11 is available
2661 no)
b4f96efe 2662 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2663 # We won't be able to build gdbtk without X.
1c710c3c 2664 enable_gdbtk=no
671aa708
NN
2665 ;;
2666 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2667esac
79c06341 2668
671aa708 2669# Some tools are only suitable for building in a "native" situation.
1c710c3c 2670# Remove these if host!=target.
9e299237 2671native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 2672
671aa708
NN
2673# Similarly, some are only suitable for cross toolchains.
2674# Remove these if host=target.
2675cross_only="target-libgloss target-newlib target-opcodes"
2676
2677case $is_cross_compiler in
2678 no) skipdirs="${skipdirs} ${cross_only}" ;;
2679 yes) skipdirs="${skipdirs} ${native_only}" ;;
2680esac
79c06341 2681
671aa708
NN
2682# If both --with-headers and --with-libs are specified, default to
2683# --without-newlib.
ee6a22df
L
2684if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2685 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2686 if test x"${with_newlib}" = x ; then
2687 with_newlib=no
2688 fi
79c06341
JL
2689fi
2690
671aa708
NN
2691# Recognize --with-newlib/--without-newlib.
2692case ${with_newlib} in
2693 no) skipdirs="${skipdirs} target-newlib" ;;
2694 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2695esac
79c06341 2696
5afab7ad
ILT
2697# Handle --enable-gold.
2698
5213506e
RW
2699# Check whether --enable-gold was given.
2700if test "${enable_gold+set}" = set; then :
2701 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2702else
2703 ENABLE_GOLD=no
5213506e
RW
2704fi
2705
5afab7ad
ILT
2706if test "${ENABLE_GOLD}" = "yes"; then
2707 # Check for ELF target.
2708 is_elf=no
2709 case "${target}" in
2710 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2711 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
144c9175 2712 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
5afab7ad
ILT
2713 case "${target}" in
2714 *-*-linux*aout* | *-*-linux*oldld*)
2715 ;;
2716 *)
2717 is_elf=yes
2718 ;;
2719 esac
2720 esac
2721
2722 if test "$is_elf" = "yes"; then
2723 # Check for target supported by gold.
2724 case "${target}" in
7f1245df 2725 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
2726 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2727 ;;
2728 esac
2729 fi
2730fi
2731
671aa708 2732# Configure extra directories which are host specific
79c06341 2733
671aa708
NN
2734case "${host}" in
2735 *-cygwin*)
2736 configdirs="$configdirs libtermcap" ;;
2737esac
79c06341 2738
4fab7234
HPN
2739# A target can indicate whether a language isn't supported for some reason.
2740# Only spaces may be used in this macro; not newlines or tabs.
2741unsupported_languages=
2742
1c710c3c 2743# Remove more programs from consideration, based on the host or
671aa708
NN
2744# target this usually means that a port of the program doesn't
2745# exist yet.
ec8d6ddc 2746
671aa708
NN
2747case "${host}" in
2748 hppa*64*-*-*)
2749 noconfigdirs="$noconfigdirs byacc"
2750 ;;
f2a0e225 2751 i[3456789]86-*-vsta)
b4f96efe 2752 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2753 ;;
f2a0e225 2754 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2755 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2756 ;;
95af8923
KT
2757 x86_64-*-mingw*)
2758 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2759 ;;
f2a0e225 2760 i[3456789]86-*-mingw32*)
b4f96efe 2761 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2762 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2763 ;;
f2a0e225 2764 i[3456789]86-*-beos*)
b4f96efe 2765 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2766 ;;
671aa708 2767 *-*-cygwin*)
a22c2d8d 2768 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2769 ;;
2770 *-*-netbsd*)
a22c2d8d 2771 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2772 ;;
2773 ppc*-*-pe)
b4f96efe 2774 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2775 ;;
2776 powerpc-*-beos*)
b4f96efe 2777 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2778 ;;
671aa708 2779esac
ec8d6ddc 2780
6de9cd9a 2781
5213506e
RW
2782# Check whether --enable-libada was given.
2783if test "${enable_libada+set}" = set; then :
2784 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2785else
2786 ENABLE_LIBADA=yes
5213506e
RW
2787fi
2788
d9cdb878 2789if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2790 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2791fi
2792
5213506e
RW
2793# Check whether --enable-libssp was given.
2794if test "${enable_libssp+set}" = set; then :
2795 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2796else
2797 ENABLE_LIBSSP=yes
5213506e
RW
2798fi
2799
ef0087a7 2800
671aa708
NN
2801# Save it here so that, even in case of --enable-libgcj, if the Java
2802# front-end isn't enabled, we still get libgcj disabled.
2803libgcj_saved=$libgcj
2804case $enable_libgcj in
2805yes)
2806 # If we reset it here, it won't get added to noconfigdirs in the
2807 # target-specific build rules, so it will be forcibly enabled
2808 # (unless the Java language itself isn't enabled).
2809 libgcj=
2810 ;;
2811no)
2812 # Make sure we get it printed in the list of not supported target libs.
2813 noconfigdirs="$noconfigdirs ${libgcj}"
2814 ;;
2815esac
ec8d6ddc 2816
6de9cd9a 2817
27079765
AH
2818# Disable libmudflap on some systems.
2819if test x$enable_libmudflap = x ; then
dfcada9a 2820 case "${target}" in
416ac4d4 2821 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2822 # Enable libmudflap by default in GNU and friends.
dfcada9a 2823 ;;
a3e8d8b4
LR
2824 *-*-freebsd*)
2825 # Enable libmudflap by default in FreeBSD.
2826 ;;
dfcada9a
MM
2827 *)
2828 # Disable it by default everywhere else.
2829 noconfigdirs="$noconfigdirs target-libmudflap"
2830 ;;
2831 esac
27079765 2832fi
6de9cd9a 2833
27079765
AH
2834# Disable libgomp on non POSIX hosted systems.
2835if test x$enable_libgomp = x ; then
953ff289
DN
2836 # Enable libgomp by default on hosted POSIX systems.
2837 case "${target}" in
416ac4d4 2838 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2839 ;;
2840 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2841 ;;
04879af3 2842 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2843 ;;
cac90078 2844 *-*-darwin* | *-*-aix*)
953ff289
DN
2845 ;;
2846 *)
2847 noconfigdirs="$noconfigdirs target-libgomp"
2848 ;;
2849 esac
27079765 2850fi
953ff289 2851
c03353e2
RIL
2852# Default libgloss CPU subdirectory.
2853libgloss_dir="$target_cpu"
6de9cd9a 2854
671aa708
NN
2855case "${target}" in
2856 *-*-chorusos)
cb253473 2857 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2858 ;;
75eeae1a 2859 powerpc-*-darwin*)
e1514c3f 2860 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2861 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2862 ;;
354ebf88
RW
2863 i[3456789]86-*-darwin*)
2864 noconfigdirs="$noconfigdirs ld gprof"
2865 noconfigdirs="$noconfigdirs sim target-rda"
2866 ;;
2867 x86_64-*-darwin[912]*)
0db3a858
TG
2868 noconfigdirs="$noconfigdirs ld gas gprof"
2869 noconfigdirs="$noconfigdirs sim target-rda"
2870 ;;
42c1cd8a
AT
2871 *-*-darwin*)
2872 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2873 noconfigdirs="$noconfigdirs sim target-rda"
2874 noconfigdirs="$noconfigdirs ${libgcj}"
2875 ;;
671aa708 2876 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2877 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2878 ;;
c3f84f61 2879 *-*-freebsd*)
6de9cd9a
DN
2880 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2881 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2882 && test -f /usr/local/include/gmp.h; then
2883 with_gmp=/usr/local
2884 fi
2885
2886 # Skip some stuff that's unsupported on some FreeBSD configurations.
2887 case "${target}" in
2888 i*86-*-*) ;;
2889 alpha*-*-*) ;;
2890 *)
cb253473 2891 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2892 ;;
2893 esac
2894 ;;
ef4e7569
US
2895 *-*-kaos*)
2896 # Remove unsupported stuff on all kaOS configurations.
cb253473 2897 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2898 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2899 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2900 noconfigdirs="$noconfigdirs target-libgloss"
2901 ;;
671aa708
NN
2902 *-*-netbsd*)
2903 # Skip some stuff on all NetBSD configurations.
2904 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2905
2906 # Skip some stuff that's unsupported on some NetBSD configurations.
2907 case "${target}" in
2908 i*86-*-netbsdelf*) ;;
0590b963 2909 arm*-*-netbsdelf*) ;;
671aa708 2910 *)
cb253473 2911 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2912 ;;
2913 esac
2914 ;;
61fec9ff 2915 *-*-netware*)
cb253473 2916 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2917 ;;
2918 *-*-rtems*)
cb253473 2919 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2920 ;;
a8ba31f2
EC
2921 # The tpf target doesn't support gdb yet.
2922 *-*-tpf*)
cb253473 2923 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2924 ;;
5785c0ed 2925 *-*-uclinux*)
cb253473 2926 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2927 ;;
671aa708 2928 *-*-vxworks*)
cb253473 2929 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2930 ;;
2931 alpha*-dec-osf*)
2932 # ld works, but does not support shared libraries.
2933 # newlib is not 64 bit ready. I'm not sure about fileutils.
2934 # gas doesn't generate exception information.
2935 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2936 ;;
2937 alpha*-*-*vms*)
cb253473 2938 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2939 ;;
2940 alpha*-*-linux*)
2941 # newlib is not 64 bit ready
2942 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2943 ;;
671aa708
NN
2944 alpha*-*-*)
2945 # newlib is not 64 bit ready
cb253473 2946 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2947 ;;
33952f6f 2948 am33_2.0-*-linux*)
cb253473 2949 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2950 ;;
671aa708 2951 sh-*-linux*)
cb253473 2952 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2953 ;;
671aa708 2954 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2955 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2956 noconfigdirs="$noconfigdirs target-examples"
2957 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2958 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2959 noconfigdirs="$noconfigdirs expect dejagnu"
2960 # the C++ libraries don't build on top of CE's C libraries
cb543528 2961 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2962 noconfigdirs="$noconfigdirs target-newlib"
2963 case "${host}" in
2964 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2965 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2966 ;;
2967 esac
c03353e2 2968 libgloss_dir=wince
671aa708
NN
2969 ;;
2970 arc-*-*)
cb253473 2971 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2972 ;;
ee6a22df 2973 arm-semi-aof )
ee6a22df 2974 ;;
671aa708 2975 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2976 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2977 libgloss_dir=arm
671aa708 2978 ;;
b3f8d95d 2979 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2980 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2981 libgloss_dir=arm
671aa708 2982 ;;
077fc835 2983 arm*-*-linux-gnueabi)
c4e9bf2b 2984 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2985 case ${with_newlib} in
2986 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987 esac
c03353e2 2988 libgloss_dir=arm
077fc835 2989 ;;
972974fc 2990 arm*-*-symbianelf*)
cb253473 2991 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2992 libgloss_dir=arm
972974fc 2993 ;;
671aa708 2994 arm-*-pe*)
cb253473 2995 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2996 ;;
671aa708 2997 thumb-*-coff)
cb253473 2998 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2999 ;;
3000 thumb-*-elf)
cb253473 3001 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3002 ;;
671aa708 3003 thumb-*-pe)
cb253473 3004 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3005 ;;
3006 arm-*-riscix*)
cb253473 3007 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3008 ;;
3009 avr-*-*)
ac3949d9 3010 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3011 ;;
6b65a26d 3012 bfin-*-*)
8b3c6c5a 3013 noconfigdirs="$noconfigdirs gdb"
61efc800 3014 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3015 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3016 fi
3017 ;;
671aa708 3018 c4x-*-* | tic4x-*-*)
cb253473 3019 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3020 ;;
3021 c54x*-*-* | tic54x-*-*)
cb253473 3022 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3023 ;;
c993ae60
SR
3024 cr16-*-*)
3025 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3026 ;;
40d64b5a 3027 cris-*-* | crisv32-*-*)
4fab7234 3028 unsupported_languages="$unsupported_languages java"
40d64b5a 3029 case "${target}" in
c2e0d3a9 3030 *-*-aout)
7f26dfa3 3031 unsupported_languages="$unsupported_languages fortran"
4fab7234 3032 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3033 *-*-elf)
789ec619 3034 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3035 *-*-linux*)
789ec619 3036 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3037 *)
7f26dfa3 3038 unsupported_languages="$unsupported_languages fortran"
cb253473 3039 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3040 esac
c03353e2 3041 libgloss_dir=cris
671aa708 3042 ;;
25b656e7 3043 crx-*-*)
cb253473 3044 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3045 ;;
671aa708 3046 d10v-*-*)
cb253473 3047 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3048 ;;
3049 d30v-*-*)
cb253473 3050 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3051 ;;
c03353e2
RIL
3052 ep9312-*-elf | ep9312-*-coff)
3053 libgloss_dir=arm
3054 ;;
671aa708 3055 fr30-*-elf*)
cb253473 3056 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3057 ;;
3058 frv-*-*)
cb253473 3059 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3060 ;;
55f2d967
AG
3061 moxie-*-*)
3062 noconfigdirs="$noconfigdirs ${libgcj}"
3063 noconfigdirs="$noconfigdirs gprof"
3064 ;;
671aa708 3065 h8300*-*-*)
cb253473 3066 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3067 ;;
3068 h8500-*-*)
cb253473 3069 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3070 ;;
ee6a22df 3071 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3072 ;;
671aa708
NN
3073 hppa*64*-*-linux* | parisc*64*-*-linux*)
3074 # In this case, it's because the hppa64-linux target is for
3075 # the kernel only at this point and has no libc, and thus no
3076 # headers, crt*.o, etc., all of which are needed by these.
3077 noconfigdirs="$noconfigdirs target-zlib"
3078 ;;
3e732ba0
JDA
3079 parisc*-*-linux* | hppa*-*-linux*)
3080 ;;
671aa708 3081 hppa*-*-*elf* | \
671aa708
NN
3082 hppa*-*-lites* | \
3083 hppa*-*-openbsd* | \
3084 hppa*64*-*-*)
cb253473 3085 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3086 ;;
2a332582
JDA
3087 hppa*-hp-hpux11*)
3088 noconfigdirs="$noconfigdirs ld shellutils"
3089 ;;
c03353e2
RIL
3090 hppa*-*-pro*)
3091 libgloss_dir=pa
3092 ;;
671aa708
NN
3093 hppa*-*-*)
3094 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3095 # build on HP-UX 10.20.
cb253473 3096 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3097 ;;
fb87ad5d 3098 i960-*-*)
cb253473 3099 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3100 ;;
671aa708
NN
3101 ia64*-*-elf*)
3102 # No gdb support yet.
b4f96efe 3103 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3104 ;;
3105 ia64*-**-hpux*)
3106 # No gdb or ld support yet.
cb253473 3107 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3108 ;;
52535a64
DR
3109 ia64*-*-*vms*)
3110 # No gdb or ld support yet.
3111 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3112 ;;
ee6a22df 3113 i370-*-opened*)
ee6a22df 3114 ;;
f2a0e225 3115 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3116 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3117 libgloss_dir=i386
671aa708 3118 ;;
f2a0e225 3119 i[3456789]86-*-linux*)
671aa708
NN
3120 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3121 # not build java stuff by default.
3122 case "${target}" in
3123 *-*-*libc1*)
cb253473 3124 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3125 esac
3126
3127 # This section makes it possible to build newlib natively on linux.
3128 # If we are using a cross compiler then don't configure newlib.
3129 if test x${is_cross_compiler} != xno ; then
3aa83176 3130 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3131 fi
3132 noconfigdirs="$noconfigdirs target-libgloss"
3133 # If we are not using a cross compiler, do configure newlib.
3134 # Note however, that newlib will only be configured in this situation
3135 # if the --with-newlib option has been given, because otherwise
3136 # 'target-newlib' will appear in skipdirs.
3137 ;;
f2a0e225 3138 i[3456789]86-*-mingw32*)
b91f0a41
CV
3139 target_configdirs="$target_configdirs target-winsup"
3140 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3141 ;;
95af8923
KT
3142 x86_64-*-mingw*)
3143 target_configdirs="$target_configdirs target-winsup"
3144 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3145 ;;
671aa708
NN
3146 *-*-cygwin*)
3147 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3148 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3149 # always build newlib if winsup directory is present.
b91f0a41 3150 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3151 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3152 elif test -d "$srcdir/newlib"; then
b91f0a41 3153 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3154 fi
1c710c3c 3155 ;;
ee6a22df
L
3156 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3157 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3158 ;;
f2a0e225 3159 i[3456789]86-*-pe)
cb253473 3160 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3161 ;;
f2a0e225 3162 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3163 # The linker does not yet know about weak symbols in COFF,
3164 # and is not configured to handle mixed ELF and COFF.
cb253473 3165 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3166 ;;
f2a0e225 3167 i[3456789]86-*-sco*)
cb253473 3168 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3169 ;;
f2a0e225 3170 i[3456789]86-*-solaris2*)
671aa708
NN
3171 noconfigdirs="$noconfigdirs target-libgloss"
3172 ;;
f2a0e225 3173 i[3456789]86-*-sysv4*)
cb253473 3174 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3175 ;;
f2a0e225 3176 i[3456789]86-*-beos*)
cb253473 3177 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3178 ;;
d1f8db0c
PB
3179 i[3456789]86-*-rdos*)
3180 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3181 ;;
fb87ad5d 3182 m32r-*-*)
cb253473 3183 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3184 ;;
671aa708 3185 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3186 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3187 libgloss_dir=m68hc11
671aa708
NN
3188 ;;
3189 m68k-*-elf*)
cb253473 3190 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3191 ;;
3192 m68k-*-coff*)
cb253473 3193 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3194 ;;
c03353e2
RIL
3195 m68*-*-* | fido-*-*)
3196 libgloss_dir=m68k
3197 ;;
671aa708
NN
3198 mcore-*-pe*)
3199 # The EPOC C++ environment does not support exceptions or rtti,
3200 # and so building libstdc++-v3 tends not to always work.
3201 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3202 ;;
3203 mmix-*-*)
4fab7234 3204 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3205 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3206 ;;
3207 mn10200-*-*)
cb253473 3208 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3209 ;;
3210 mn10300-*-*)
cb253473 3211 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3212 ;;
ab34901f 3213 mt-*-*)
79dd769c
AH
3214 noconfigdirs="$noconfigdirs sim"
3215 ;;
671aa708
NN
3216 powerpc-*-aix*)
3217 # copied from rs6000-*-* entry
a891a473 3218 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3219 ;;
3220 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3221 target_configdirs="$target_configdirs target-winsup"
cb253473 3222 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3223 # always build newlib.
3224 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3225 ;;
3226 # This is temporary until we can link against shared libraries
3227 powerpcle-*-solaris*)
cb253473 3228 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3229 libgloss_dir=rs6000
671aa708
NN
3230 ;;
3231 powerpc-*-beos*)
cb253473 3232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3233 ;;
671aa708 3234 powerpc-*-eabi)
cb253473 3235 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3236 libgloss_dir=rs6000
ee6a22df
L
3237 ;;
3238 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3239 libgloss_dir=rs6000
671aa708 3240 ;;
671aa708 3241 rs6000-*-lynxos*)
cb253473 3242 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3243 ;;
3244 rs6000-*-aix*)
a891a473 3245 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3246 ;;
3247 rs6000-*-*)
cb253473 3248 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3249 ;;
3250 m68k-apollo-*)
cb253473 3251 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3252 ;;
ca9fe997
ME
3253 microblaze*)
3254 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3255 ;;
d9dced13
RS
3256 mips*-sde-elf*)
3257 skipdirs="$skipdirs target-libiberty"
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 if test x$with_newlib = xyes; then
3260 noconfigdirs="$noconfigdirs gprof"
3261 fi
3262 libgloss_dir=mips
3263 ;;
671aa708 3264 mips*-*-irix5*)
cb253473 3265 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3266 ;;
3267 mips*-*-irix6*)
671aa708
NN
3268 # Linking libjava exceeds command-line length limits on at least
3269 # IRIX 6.2, but not on IRIX 6.5.
3270 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3271 # <oldham@codesourcery.com>
cb253473 3272 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3273 ;;
671aa708 3274 mips*-*-bsd*)
cb253473 3275 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3276 ;;
671aa708
NN
3277 mips*-*-linux*)
3278 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3279 ;;
3280 mips*-*-*)
cb253473 3281 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3282 libgloss_dir=mips
671aa708
NN
3283 ;;
3284 romp-*-*)
cb253473 3285 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3286 ;;
669f01d8 3287 sh-*-* | sh64-*-*)
671aa708 3288 case "${host}" in
f2a0e225
KC
3289 i[3456789]86-*-vsta) ;; # don't add gprof back in
3290 i[3456789]86-*-go32*) ;; # don't add gprof back in
3291 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3292 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3293 esac
ea2002ba
CB
3294 case "${target}" in
3295 sh*-*-elf)
3296 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3297 *)
3298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3299 esac
671aa708 3300 ;;
c03353e2
RIL
3301 sparclet-*-aout* | sparc86x-*-*)
3302 libgloss_dir=sparc
3303 ;;
671aa708 3304 sparc-*-elf*)
cb253473 3305 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3306 ;;
3307 sparc64-*-elf*)
cb253473 3308 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3309 libgloss_dir=sparc
671aa708
NN
3310 ;;
3311 sparclite-*-*)
cb253473 3312 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3313 libgloss_dir=sparc
671aa708
NN
3314 ;;
3315 sparc-*-sunos4*)
cb253473 3316 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3317 if test x${is_cross_compiler} != xno ; then
3318 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3319 else
3320 use_gnu_ld=no
3321 fi
3322 ;;
bba5e0ca 3323 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3324 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3325 ;;
671aa708
NN
3326 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3327 ;;
3328 v810-*-*)
cb253473 3329 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
3330 ;;
3331 v850-*-*)
cb253473 3332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3333 ;;
3334 v850e-*-*)
cb253473 3335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3336 ;;
3337 v850ea-*-*)
cb253473 3338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3339 ;;
3340 vax-*-vms)
cb253473 3341 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3342 ;;
3343 vax-*-*)
cb253473 3344 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3345 ;;
aa12a573 3346 xtensa*-*-*)
cb253473 3347 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3348 ;;
671aa708 3349 ip2k-*-*)
cb253473 3350 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3351 ;;
416ac4d4 3352 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3353 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 ;;
3355 *-*-lynxos*)
cb253473 3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3357 ;;
671aa708 3358 *-*-*)
cb253473 3359 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3360 ;;
3361esac
79c06341 3362
671aa708
NN
3363# If we aren't building newlib, then don't build libgloss, since libgloss
3364# depends upon some newlib header files.
3365case "${noconfigdirs}" in
3366 *target-libgloss*) ;;
3367 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3368esac
3369
671aa708
NN
3370# Work in distributions that contain no compiler tools, like Autoconf.
3371tentative_cc=""
3372host_makefile_frag=/dev/null
3373if test -d ${srcdir}/config ; then
3374case "${host}" in
3375 m68k-hp-hpux*)
3376 # Avoid "too much defining" errors from HPUX compiler.
3377 tentative_cc="cc -Wp,-H256000"
3378 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3379 # If it's HP/UX ar, this should be harmless.
3380 RANLIB="ar ts"
3381 ;;
3382 m68k-apollo-sysv*)
3383 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3384 ;;
3385 m68k-apollo-bsd*)
3386 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3387 # chokes on bfd, the compiler won't let you assign integers to enums, and
3388 # other problems. Defining CC to gcc is a questionable way to say "don't use
3389 # the apollo compiler" (the preferred version of GCC could be called cc,
3390 # or whatever), but I'm not sure leaving CC as cc is any better...
3391 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3392 # Used to have BISON=yacc.
3393 tentative_cc=gcc
3394 ;;
3395 m88k-dg-dgux*)
3396 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3397 ;;
3398 m88k-harris-cxux*)
3399 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3400 tentative_cc="cc -Xa"
3401 host_makefile_frag="config/mh-cxux"
3402 ;;
3403 m88k-motorola-sysv*)
3404 ;;
3405 mips*-dec-ultrix*)
3406 tentative_cc="cc -Wf,-XNg1000"
3407 host_makefile_frag="config/mh-decstation"
3408 ;;
3409 mips*-nec-sysv4*)
3410 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3411 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3412 host_makefile_frag="config/mh-necv4"
3413 ;;
3414 mips*-sgi-irix4*)
3415 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3416 # environment. Also bump switch table size so that cp-parse will
3417 # compile. Bump string length limit so linker builds.
3418 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3419 ;;
3420 mips*-*-sysv4*)
3421 host_makefile_frag="config/mh-sysv4"
3422 ;;
3423 mips*-*-sysv*)
3424 # This is for a MIPS running RISC/os 4.52C.
3425
3426 # This is needed for GDB, but needs to be in the top-level make because
3427 # if a library is compiled with the bsd headers and gets linked with the
3428 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3429 # a different size).
3430 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3431 # known except to select the sysv environment. Could we use /proc instead?
3432 # These "sysv environments" and "bsd environments" often end up being a pain.
3433 #
3434 # This is not part of CFLAGS because perhaps not all C compilers have this
3435 # option.
3436 tentative_cc="cc -systype sysv"
3437 ;;
3438 i370-ibm-opened*)
3439 tentative_cc="c89"
3440 ;;
f2a0e225 3441 i[3456789]86-*-sysv5*)
671aa708
NN
3442 host_makefile_frag="config/mh-sysv5"
3443 ;;
f2a0e225 3444 i[3456789]86-*-dgux*)
671aa708
NN
3445 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3446 host_makefile_frag="config/mh-dgux386"
3447 ;;
f2a0e225 3448 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3449 # The MetaWare compiler will generate a copyright message unless you
3450 # turn it off by adding the -Hnocopyr flag.
3451 tentative_cc="cc -Hnocopyr"
3452 ;;
f2a0e225 3453 i[3456789]86-ncr-sysv4*)
671aa708
NN
3454 # for an NCR 3000 (i486/SVR4) system.
3455 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3456 # This compiler not only emits obnoxious copyright messages every time
3457 # you run it, but it chokes and dies on a whole bunch of GNU source
3458 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3459 tentative_cc="/usr/ccs/ATT/cc"
3460 host_makefile_frag="config/mh-ncr3000"
3461 ;;
f2a0e225 3462 i[3456789]86-*-sco3.2v5*)
671aa708 3463 ;;
f2a0e225 3464 i[3456789]86-*-sco*)
671aa708
NN
3465 # The native C compiler botches some simple uses of const. Unfortunately,
3466 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3467 tentative_cc="cc -Dconst="
3468 host_makefile_frag="config/mh-sco"
3469 ;;
f2a0e225 3470 i[3456789]86-*-udk*)
671aa708
NN
3471 host_makefile_frag="config/mh-sysv5"
3472 ;;
f2a0e225 3473 i[3456789]86-*-solaris2*)
671aa708
NN
3474 host_makefile_frag="config/mh-sysv4"
3475 ;;
f2a0e225 3476 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3477 host_makefile_frag="config/mh-djgpp"
3478 ;;
3479 *-cygwin*)
2a79c47f 3480
5213506e
RW
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3482$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f
NC
3483echo a >cygwin-cat-check
3484if test `cat cygwin-cat-check` == a ; then
3485 rm cygwin-cat-check
5213506e
RW
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487$as_echo "yes" >&6; }
2a79c47f
NC
3488else
3489 rm cygwin-cat-check
5213506e
RW
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3493 Please either mount the build directory in binary mode or run the following
3494 commands before running any configure script:
3495set -o igncr
3496export SHELLOPTS
5213506e 3497 " "$LINENO" 5
2a79c47f
NC
3498fi
3499
671aa708
NN
3500 host_makefile_frag="config/mh-cygwin"
3501 ;;
c53a18d3 3502 *-mingw*)
1f5a6b84 3503 host_makefile_frag="config/mh-mingw"
95af8923 3504 ;;
671aa708
NN
3505 *-interix*)
3506 host_makefile_frag="config/mh-interix"
3507 ;;
3508 vax-*-ultrix2*)
3509 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3510 tentative_cc=gcc
3511 ;;
3512 *-*-solaris2*)
3513 host_makefile_frag="config/mh-solaris"
3514 ;;
3515 m68k-sun-sunos*)
3516 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3517 # without overflowing the jump tables (-J says to use a 32 bit table)
3518 tentative_cc="cc -J"
3519 ;;
efd41714 3520 hppa*-hp-hpux10*)
671aa708 3521 tentative_cc="cc -Wp,-H256000"
efd41714 3522 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3523 ;;
efd41714
PB
3524 hppa*-hp-hpux* | hppa*-*-hiux*)
3525 tentative_cc="cc -Wp,-H256000"
3526 host_makefile_frag="config/mh-pa"
3527 ;;
3528 hppa*-*)
3529 host_makefile_frag="config/mh-pa"
3530 ;;
3531 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3532 tentative_cc="cc -Wp,-H256000"
3533 ;;
3534 rs6000-*-lynxos*)
3535 # /bin/cc is less than useful for our purposes. Always use GCC
3536 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3537 host_makefile_frag="config/mh-lynxrs6k"
3538 ;;
45f366ab 3539 powerpc-*-darwin*)
be8fff81
RB
3540 host_makefile_frag="config/mh-ppc-darwin"
3541 ;;
d19bca38
PB
3542 powerpc-*-aix*)
3543 host_makefile_frag="config/mh-ppc-aix"
3544 ;;
3545 rs6000-*-aix*)
3546 host_makefile_frag="config/mh-ppc-aix"
3547 ;;
671aa708
NN
3548 *-*-lynxos*)
3549 # /bin/cc is less than useful for our purposes. Always use GCC
3550 tentative_cc="/bin/gcc"
3551 ;;
3552 *-*-sysv4*)
3553 host_makefile_frag="config/mh-sysv4"
3554 ;;
95c53c62
RS
3555 # This is placed last to prevent interfering with the cases above.
3556 i[3456789]86-*-*)
3557 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3558 host_makefile_frag="config/mh-x86omitfp"
3559 ;;
671aa708
NN
3560esac
3561fi
3562
55ffb5ed
NN
3563# If we aren't going to be using gcc, see if we can extract a definition
3564# of CC from the fragment.
3565# Actually, use the 'pre-extracted' version above.
3566if test -z "${CC}" && test "${build}" = "${host}" ; then
3567 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3568 found=
3569 for dir in $PATH; do
3570 test -z "$dir" && dir=.
3571 if test -f $dir/gcc; then
3572 found=yes
3573 break
3574 fi
3575 done
3576 IFS="$save_ifs"
3577 if test -z "${found}" && test -n "${tentative_cc}" ; then
3578 CC=$tentative_cc
3579 fi
3580fi
3581
3582if test "${build}" != "${host}" ; then
0999159b
PB
3583 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3584 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3585 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3586 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3587 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3588 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3589 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3590 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3591 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3592 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3593 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3594 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3595else
3596 AR_FOR_BUILD="\$(AR)"
3597 AS_FOR_BUILD="\$(AS)"
fb0103e5 3598 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3599 CXX_FOR_BUILD="\$(CXX)"
3600 GCJ_FOR_BUILD="\$(GCJ)"
3601 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3602 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3603 LD_FOR_BUILD="\$(LD)"
3604 NM_FOR_BUILD="\$(NM)"
3605 RANLIB_FOR_BUILD="\$(RANLIB)"
3606 WINDRES_FOR_BUILD="\$(WINDRES)"
3607 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3608fi
3609
3610ac_ext=c
1c710c3c
DJ
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3622else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
5213506e
RW
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3635 break 2
3636 fi
3637done
5213506e
RW
3638 done
3639IFS=$as_save_IFS
1c710c3c
DJ
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
5213506e
RW
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646$as_echo "$CC" >&6; }
1c710c3c 3647else
5213506e
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
1c710c3c
DJ
3650fi
3651
5213506e 3652
1c710c3c
DJ
3653fi
3654if test -z "$ac_cv_prog_CC"; then
3655 ac_ct_CC=$CC
fb0103e5
RG
3656 # Extract the first word of "gcc", so it can be a program name with args.
3657set dummy gcc; ac_word=$2
5213506e
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3662else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
5213506e
RW
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3673 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3675 break 2
3676 fi
3677done
5213506e
RW
3678 done
3679IFS=$as_save_IFS
1c710c3c
DJ
3680
3681fi
3682fi
3683ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684if test -n "$ac_ct_CC"; then
5213506e
RW
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3687else
5213506e
RW
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
1c710c3c
DJ
3690fi
3691
5213506e
RW
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696yes:)
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701 CC=$ac_ct_CC
3702 fi
1c710c3c
DJ
3703else
3704 CC="$ac_cv_prog_CC"
3705fi
3706
3707if test -z "$CC"; then
5213506e
RW
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3710set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712$as_echo_n "checking for $ac_word... " >&6; }
3713if test "${ac_cv_prog_CC+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3715else
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3718else
1c710c3c
DJ
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
5213506e
RW
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3728 break 2
3729 fi
3730done
5213506e
RW
3731 done
3732IFS=$as_save_IFS
1c710c3c 3733
0b0dc272 3734fi
0b0dc272 3735fi
1c710c3c 3736CC=$ac_cv_prog_CC
af71363e 3737if test -n "$CC"; then
5213506e
RW
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739$as_echo "$CC" >&6; }
2aeb72e9 3740else
5213506e
RW
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742$as_echo "no" >&6; }
2aeb72e9
DD
3743fi
3744
2aeb72e9 3745
5213506e 3746 fi
1c710c3c 3747fi
55ffb5ed
NN
3748if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750set dummy cc; ac_word=$2
5213506e
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
0b0dc272 3759 ac_prog_rejected=no
1c710c3c
DJ
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
5213506e
RW
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3769 continue
3770 fi
3771 ac_cv_prog_CC="cc"
5213506e 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3773 break 2
3774 fi
3775done
5213506e
RW
3776 done
3777IFS=$as_save_IFS
1c710c3c 3778
55ffb5ed
NN
3779if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3782 shift
1c710c3c 3783 if test $# != 0; then
55ffb5ed
NN
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3787 shift
1c710c3c 3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3789 fi
3790fi
3791fi
3792fi
1c710c3c 3793CC=$ac_cv_prog_CC
55ffb5ed 3794if test -n "$CC"; then
5213506e
RW
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796$as_echo "$CC" >&6; }
55ffb5ed 3797else
5213506e
RW
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
55ffb5ed
NN
3800fi
3801
5213506e 3802
1c710c3c
DJ
3803fi
3804if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
5213506e 3806 for ac_prog in cl.exe
1c710c3c
DJ
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if test "${ac_cv_prog_CC+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3814else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
1c710c3c
DJ
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
5213506e
RW
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3827 break 2
3828 fi
3829done
5213506e
RW
3830 done
3831IFS=$as_save_IFS
1c710c3c 3832
55ffb5ed
NN
3833fi
3834fi
1c710c3c 3835CC=$ac_cv_prog_CC
55ffb5ed 3836if test -n "$CC"; then
5213506e
RW
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838$as_echo "$CC" >&6; }
a4b9e93e 3839else
5213506e
RW
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
fb0103e5 3842fi
af71363e 3843
5213506e 3844
1c710c3c
DJ
3845 test -n "$CC" && break
3846 done
af71363e 3847fi
1c710c3c
DJ
3848if test -z "$CC"; then
3849 ac_ct_CC=$CC
5213506e 3850 for ac_prog in cl.exe
1c710c3c
DJ
3851do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853set dummy $ac_prog; ac_word=$2
5213506e
RW
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
0b0dc272 3858else
1c710c3c
DJ
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3861else
1c710c3c
DJ
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
5213506e
RW
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3869 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3871 break 2
3872 fi
3873done
5213506e
RW
3874 done
3875IFS=$as_save_IFS
1c710c3c 3876
af71363e
AS
3877fi
3878fi
1c710c3c
DJ
3879ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880if test -n "$ac_ct_CC"; then
5213506e
RW
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3883else
5213506e
RW
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
af71363e 3886fi
0b0dc272 3887
5213506e 3888
1c710c3c
DJ
3889 test -n "$ac_ct_CC" && break
3890done
3891
5213506e
RW
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896yes:)
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899ac_tool_warned=yes ;;
3900esac
3901 CC=$ac_ct_CC
3902 fi
1c710c3c
DJ
3903fi
3904
3905fi
3906
3907
5213506e
RW
3908test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error "no acceptable C compiler found in \$PATH
3911See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
3912
3913# Provide some information about the compiler.
5213506e
RW
3914$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915set X $ac_compile
3916ac_compiler=$2
3917for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924$as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 3926 ac_status=$?
5213506e
RW
3927 if test -s conftest.err; then
3928 sed '10a\
3929... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3932 rm -f conftest.er1 conftest.err
3933 fi
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936done
1c710c3c 3937
5213506e 3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
3939/* end confdefs.h. */
3940
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949ac_clean_files_save=$ac_clean_files
5213506e 3950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
3951# Try to create an executable without -o first, disregard a.out.
3952# It will help us diagnose broken compilers, and finding out an intuition
3953# of exeext.
5213506e
RW
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955$as_echo_n "checking for C compiler default output file name... " >&6; }
3956ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958# The possible output files:
3959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961ac_rmfiles=
3962for ac_file in $ac_files
3963do
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968done
3969rm -f $ac_rmfiles
3970
3971if { { ac_try="$ac_link_default"
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977$as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_link_default") 2>&5
1c710c3c 3979 ac_status=$?
5213506e
RW
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984# in a Makefile. We should not override ac_cv_exeext if it was cached,
3985# so that the user can short-circuit this test for compilers unknown to
3986# Autoconf.
3987for ac_file in $ac_files ''
1c710c3c
DJ
3988do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
5213506e 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
5213506e
RW
3998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
1c710c3c
DJ
4007 break;;
4008 * )
4009 break;;
4010 esac
4011done
5213506e
RW
4012test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
1c710c3c 4014else
5213506e
RW
4015 ac_file=''
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4018$as_echo "$ac_file" >&6; }
4019if test -z "$ac_file"; then :
4020 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
5213506e
RW
4023{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025{ as_fn_set_status 77
4026as_fn_error "C compiler cannot create executables
4027See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4028fi
1c710c3c 4029ac_exeext=$ac_cv_exeext
1c710c3c 4030
5213506e 4031# Check that the compiler produces executables we can run. If not, either
1c710c3c 4032# the compiler is broken, or we cross compile.
5213506e
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4034$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4035# If not cross compiling, check that we can run a simple program.
4036if test "$cross_compiling" != yes; then
4037 if { ac_try='./$ac_file'
5213506e
RW
4038 { { case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_try") 2>&5
1c710c3c 4045 ac_status=$?
5213506e
RW
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; }; then
1c710c3c
DJ
4048 cross_compiling=no
4049 else
4050 if test "$cross_compiling" = maybe; then
4051 cross_compiling=yes
4052 else
5213506e
RW
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error "cannot run C compiled programs.
1c710c3c 4056If you meant to cross compile, use \`--host'.
5213506e 4057See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4058 fi
4059 fi
4060fi
5213506e
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062$as_echo "yes" >&6; }
1c710c3c 4063
5213506e 4064rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4065ac_clean_files=$ac_clean_files_save
5213506e 4066# Check that the compiler produces executables we can run. If not, either
1c710c3c 4067# the compiler is broken, or we cross compile.
5213506e
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4069$as_echo_n "checking whether we are cross compiling... " >&6; }
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071$as_echo "$cross_compiling" >&6; }
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4074$as_echo_n "checking for suffix of executables... " >&6; }
4075if { { ac_try="$ac_link"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_link") 2>&5
1c710c3c 4083 ac_status=$?
5213506e
RW
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
1c710c3c
DJ
4086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4087# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4088# work properly (i.e., refer to `conftest.exe'), while it won't with
4089# `rm'.
4090for ac_file in conftest.exe conftest conftest.*; do
4091 test -f "$ac_file" || continue
4092 case $ac_file in
5213506e 4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4095 break;;
4096 * ) break;;
4097 esac
4098done
af71363e 4099else
5213506e
RW
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102as_fn_error "cannot compute suffix of executables: cannot compile and link
4103See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4104fi
1c710c3c 4105rm -f conftest$ac_cv_exeext
5213506e
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4107$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4108
4109rm -f conftest.$ac_ext
4110EXEEXT=$ac_cv_exeext
4111ac_exeext=$EXEEXT
5213506e
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4113$as_echo_n "checking for suffix of object files... " >&6; }
4114if test "${ac_cv_objext+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
1c710c3c 4116else
5213506e 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.o conftest.obj
5213506e
RW
4129if { { ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135$as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_compile") 2>&5
1c710c3c 4137 ac_status=$?
5213506e
RW
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; then :
4140 for ac_file in conftest.o conftest.obj conftest.*; do
4141 test -f "$ac_file" || continue;
1c710c3c 4142 case $ac_file in
5213506e 4143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4145 break;;
4146 esac
4147done
4148else
5213506e 4149 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
5213506e
RW
4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error "cannot compute suffix of object files: cannot compile
4155See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4156fi
1c710c3c
DJ
4157rm -f conftest.$ac_cv_objext conftest.$ac_ext
4158fi
5213506e
RW
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4160$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4161OBJEXT=$ac_cv_objext
4162ac_objext=$OBJEXT
5213506e
RW
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4165if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
1c710c3c 4167else
5213506e 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4169/* end confdefs.h. */
4170
4171int
4172main ()
4173{
4174#ifndef __GNUC__
4175 choke me
4176#endif
4177
4178 ;
4179 return 0;
4180}
4181_ACEOF
5213506e 4182if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4183 ac_compiler_gnu=yes
4184else
5213506e 4185 ac_compiler_gnu=no
1c710c3c 4186fi
5213506e 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4188ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
4190fi
5213506e
RW
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4193if test $ac_compiler_gnu = yes; then
4194 GCC=yes
4195else
4196 GCC=
4197fi
1c710c3c
DJ
4198ac_test_CFLAGS=${CFLAGS+set}
4199ac_save_CFLAGS=$CFLAGS
5213506e
RW
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201$as_echo_n "checking whether $CC accepts -g... " >&6; }
4202if test "${ac_cv_prog_cc_g+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204else
4205 ac_save_c_werror_flag=$ac_c_werror_flag
4206 ac_c_werror_flag=yes
4207 ac_cv_prog_cc_g=no
4208 CFLAGS="-g"
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4210/* end confdefs.h. */
4211
4212int
4213main ()
4214{
4215
4216 ;
4217 return 0;
4218}
4219_ACEOF
5213506e 4220if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4221 ac_cv_prog_cc_g=yes
4222else
5213506e
RW
4223 CFLAGS=""
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h. */
4226
4227int
4228main ()
4229{
4230
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236
4237else
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="-g"
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
af71363e 4242
5213506e
RW
4243int
4244main ()
4245{
4246
4247 ;
4248 return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_prog_cc_g=yes
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4255fi
5213506e 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4257fi
5213506e
RW
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_c_werror_flag=$ac_save_c_werror_flag
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4263if test "$ac_test_CFLAGS" = set; then
1c710c3c 4264 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4265elif test $ac_cv_prog_cc_g = yes; then
4266 if test "$GCC" = yes; then
4267 CFLAGS="-g -O2"
4268 else
4269 CFLAGS="-g"
4270 fi
4271else
4272 if test "$GCC" = yes; then
4273 CFLAGS="-O2"
4274 else
4275 CFLAGS=
4276 fi
4277fi
5213506e
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4280if test "${ac_cv_prog_cc_c89+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
1c710c3c 4282else
5213506e 4283 ac_cv_prog_cc_c89=no
1c710c3c 4284ac_save_CC=$CC
5213506e 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4286/* end confdefs.h. */
4287#include <stdarg.h>
4288#include <stdio.h>
4289#include <sys/types.h>
4290#include <sys/stat.h>
4291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4292struct buf { int x; };
4293FILE * (*rcsopen) (struct buf *, struct stat *, int);
4294static char *e (p, i)
4295 char **p;
4296 int i;
4297{
4298 return p[i];
4299}
4300static char *f (char * (*g) (char **, int), char **p, ...)
4301{
4302 char *s;
4303 va_list v;
4304 va_start (v,p);
4305 s = g (p, va_arg (v,int));
4306 va_end (v);
4307 return s;
4308}
4309
4310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4311 function prototypes and stuff, but not '\xHH' hex character constants.
4312 These don't provoke an error unfortunately, instead are silently treated
5213506e 4313 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4315 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4316 that's true only with -std. */
1c710c3c
DJ
4317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4318
5213506e
RW
4319/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4320 inside strings and character constants. */
4321#define FOO(x) 'x'
4322int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4323
1c710c3c
DJ
4324int test (int i, double x);
4325struct s1 {int (*f) (int a);};
4326struct s2 {int (*f) (double a);};
4327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4328int argc;
4329char **argv;
4330int
4331main ()
4332{
4333return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4334 ;
4335 return 0;
4336}
4337_ACEOF
5213506e
RW
4338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4340do
4341 CC="$ac_save_CC $ac_arg"
5213506e
RW
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4344fi
5213506e
RW
4345rm -f core conftest.err conftest.$ac_objext
4346 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4347done
5213506e 4348rm -f conftest.$ac_ext
1c710c3c
DJ
4349CC=$ac_save_CC
4350
4351fi
5213506e
RW
4352# AC_CACHE_VAL
4353case "x$ac_cv_prog_cc_c89" in
4354 x)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356$as_echo "none needed" >&6; } ;;
4357 xno)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359$as_echo "unsupported" >&6; } ;;
1c710c3c 4360 *)
5213506e
RW
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4364esac
5213506e 4365if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4366
2aeb72e9
DD
4367fi
4368
2aeb72e9
DD
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
5213506e 4375ac_ext=cpp
2aeb72e9
DD
4376ac_cpp='$CXXCPP $CPPFLAGS'
4377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4380if test -z "$CXX"; then
4381 if test -n "$CCC"; then
4382 CXX=$CCC
4383 else
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4386 do
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390$as_echo_n "checking for $ac_word... " >&6; }
4391if test "${ac_cv_prog_CXX+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4393else
4394 if test -n "$CXX"; then
4395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
5213506e
RW
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4406 break 2
4407 fi
4408done
5213506e
RW
4409 done
4410IFS=$as_save_IFS
55ffb5ed 4411
c3a86da9
DJ
4412fi
4413fi
4414CXX=$ac_cv_prog_CXX
4415if test -n "$CXX"; then
5213506e
RW
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4417$as_echo "$CXX" >&6; }
c3a86da9 4418else
5213506e
RW
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420$as_echo "no" >&6; }
c3a86da9
DJ
4421fi
4422
5213506e 4423
c3a86da9
DJ
4424 test -n "$CXX" && break
4425 done
4426fi
4427if test -z "$CXX"; then
4428 ac_ct_CXX=$CXX
5213506e 4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4430do
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432set dummy $ac_prog; ac_word=$2
5213506e
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4437else
4438 if test -n "$ac_ct_CXX"; then
4439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
5213506e
RW
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4448 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4450 break 2
4451 fi
4452done
5213506e
RW
4453 done
4454IFS=$as_save_IFS
c3a86da9
DJ
4455
4456fi
4457fi
4458ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459if test -n "$ac_ct_CXX"; then
5213506e
RW
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4461$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4462else
5213506e
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
c3a86da9
DJ
4465fi
4466
5213506e 4467
c3a86da9
DJ
4468 test -n "$ac_ct_CXX" && break
4469done
c3a86da9 4470
5213506e
RW
4471 if test "x$ac_ct_CXX" = x; then
4472 CXX="g++"
4473 else
4474 case $cross_compiling:$ac_tool_warned in
4475yes:)
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478ac_tool_warned=yes ;;
4479esac
4480 CXX=$ac_ct_CXX
4481 fi
c3a86da9
DJ
4482fi
4483
5213506e
RW
4484 fi
4485fi
c3a86da9 4486# Provide some information about the compiler.
5213506e
RW
4487$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4488set X $ac_compile
4489ac_compiler=$2
4490for ac_option in --version -v -V -qversion; do
4491 { { ac_try="$ac_compiler $ac_option >&5"
4492case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497$as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4499 ac_status=$?
5213506e
RW
4500 if test -s conftest.err; then
4501 sed '10a\
4502... rest of stderr output deleted ...
4503 10q' conftest.err >conftest.er1
4504 cat conftest.er1 >&5
4505 rm -f conftest.er1 conftest.err
4506 fi
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509done
c3a86da9 4510
5213506e
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4512$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4513if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
c3a86da9 4515else
5213506e 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4517/* end confdefs.h. */
4518
4519int
4520main ()
4521{
4522#ifndef __GNUC__
4523 choke me
4524#endif
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
5213506e 4530if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4531 ac_compiler_gnu=yes
4532else
5213506e 4533 ac_compiler_gnu=no
c3a86da9 4534fi
5213506e 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4536ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
4538fi
5213506e
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4540$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4541if test $ac_compiler_gnu = yes; then
4542 GXX=yes
4543else
4544 GXX=
4545fi
c3a86da9
DJ
4546ac_test_CXXFLAGS=${CXXFLAGS+set}
4547ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4549$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4550if test "${ac_cv_prog_cxx_g+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4554 ac_cxx_werror_flag=yes
4555 ac_cv_prog_cxx_g=no
4556 CXXFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4558/* end confdefs.h. */
4559
4560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
5213506e 4568if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4569 ac_cv_prog_cxx_g=yes
4570else
5213506e
RW
4571 CXXFLAGS=""
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4573/* end confdefs.h. */
5213506e 4574
c3a86da9
DJ
4575int
4576main ()
4577{
5213506e 4578
c3a86da9
DJ
4579 ;
4580 return 0;
4581}
4582_ACEOF
5213506e 4583if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4584
5213506e
RW
4585else
4586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587 CXXFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4589/* end confdefs.h. */
5213506e 4590
c3a86da9
DJ
4591int
4592main ()
4593{
5213506e 4594
c3a86da9
DJ
4595 ;
4596 return 0;
4597}
4598_ACEOF
5213506e
RW
4599if ac_fn_cxx_try_compile "$LINENO"; then :
4600 ac_cv_prog_cxx_g=yes
11a67599 4601fi
5213506e
RW
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605fi
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4610$as_echo "$ac_cv_prog_cxx_g" >&6; }
4611if test "$ac_test_CXXFLAGS" = set; then
4612 CXXFLAGS=$ac_save_CXXFLAGS
4613elif test $ac_cv_prog_cxx_g = yes; then
4614 if test "$GXX" = yes; then
4615 CXXFLAGS="-g -O2"
4616 else
4617 CXXFLAGS="-g"
4618 fi
4619else
4620 if test "$GXX" = yes; then
4621 CXXFLAGS="-O2"
4622 else
4623 CXXFLAGS=
4624 fi
c3a86da9 4625fi
c3a86da9
DJ
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633# We must set the default linker to the linker used by gcc for the correct
4634# operation of libtool. If LD is not defined and we are using gcc, try to
4635# set the LD default to the ld used by gcc.
4636if test -z "$LD"; then
4637 if test "$GCC" = yes; then
4638 case $build in
4639 *-*-mingw*)
4640 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4641 *)
4642 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4643 esac
4644 case $gcc_prog_ld in
4645 # Accept absolute paths.
4646 [\\/]* | [A-Za-z]:[\\/]*)
4647 LD="$gcc_prog_ld" ;;
4648 esac
4649 fi
23f6b2f9
PB
4650fi
4651
23f6b2f9
PB
4652
4653
55ffb5ed 4654
1c710c3c
DJ
4655if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4657set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4662else
4663 if test -n "$GNATBIND"; then
4664 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4665else
1c710c3c
DJ
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
5213506e
RW
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4673 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4675 break 2
4676 fi
4677done
5213506e
RW
4678 done
4679IFS=$as_save_IFS
1c710c3c 4680
55ffb5ed
NN
4681fi
4682fi
1c710c3c 4683GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4684if test -n "$GNATBIND"; then
5213506e
RW
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4686$as_echo "$GNATBIND" >&6; }
55ffb5ed 4687else
5213506e
RW
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
55ffb5ed
NN
4690fi
4691
5213506e 4692
1c710c3c 4693fi
55ffb5ed 4694if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4695 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4696 # Extract the first word of "gnatbind", so it can be a program name with args.
4697set dummy gnatbind; ac_word=$2
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
55ffb5ed 4702else
1c710c3c
DJ
4703 if test -n "$ac_ct_GNATBIND"; then
4704 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4705else
1c710c3c
DJ
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
5213506e
RW
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4713 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4715 break 2
4716 fi
4717done
5213506e
RW
4718 done
4719IFS=$as_save_IFS
1c710c3c 4720
55ffb5ed
NN
4721fi
4722fi
1c710c3c
DJ
4723ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4724if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4726$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4727else
5213506e
RW
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
55ffb5ed
NN
4730fi
4731
5213506e
RW
4732 if test "x$ac_ct_GNATBIND" = x; then
4733 GNATBIND="no"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 GNATBIND=$ac_ct_GNATBIND
4742 fi
55ffb5ed 4743else
1c710c3c 4744 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4745fi
4746
1c710c3c
DJ
4747if test -n "$ac_tool_prefix"; then
4748 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4749set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
5305be7e
RG
4754else
4755 if test -n "$GNATMAKE"; then
4756 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4757else
1c710c3c
DJ
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
5213506e
RW
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4765 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4767 break 2
4768 fi
4769done
5213506e
RW
4770 done
4771IFS=$as_save_IFS
1c710c3c 4772
5305be7e
RG
4773fi
4774fi
1c710c3c 4775GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4776if test -n "$GNATMAKE"; then
5213506e
RW
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4778$as_echo "$GNATMAKE" >&6; }
5305be7e 4779else
5213506e
RW
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
5305be7e
RG
4782fi
4783
5213506e 4784
1c710c3c 4785fi
5305be7e 4786if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4787 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4788 # Extract the first word of "gnatmake", so it can be a program name with args.
4789set dummy gnatmake; ac_word=$2
5213506e
RW
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
5305be7e 4794else
1c710c3c
DJ
4795 if test -n "$ac_ct_GNATMAKE"; then
4796 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4797else
1c710c3c
DJ
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
5213506e
RW
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4805 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4807 break 2
4808 fi
4809done
5213506e
RW
4810 done
4811IFS=$as_save_IFS
1c710c3c 4812
5305be7e
RG
4813fi
4814fi
1c710c3c
DJ
4815ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4816if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4818$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4819else
5213506e
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
5305be7e
RG
4822fi
4823
5213506e
RW
4824 if test "x$ac_ct_GNATMAKE" = x; then
4825 GNATMAKE="no"
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833 GNATMAKE=$ac_ct_GNATMAKE
4834 fi
5305be7e 4835else
1c710c3c 4836 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4837fi
4838
5213506e
RW
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4840$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4841if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4843else
4844 cat >conftest.adb <<EOF
4845procedure conftest is begin null; end conftest;
4846EOF
4847acx_cv_cc_gcc_supports_ada=no
4848# There is a bug in old released versions of GCC which causes the
4849# driver to exit successfully when the appropriate language module
4850# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4851# Therefore we must check for the error message as well as an
4852# unsuccessful exit.
1db673ca
RO
4853# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4854# given a .adb file, but produce no object file. So we must check
4855# if an object file was really produced to guard against this.
55ffb5ed 4856errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4857if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4858 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4859fi
4860rm -f conftest.*
4861fi
5213506e
RW
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4863$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4864
5305be7e 4865if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4866 have_gnat=yes
4867else
4868 have_gnat=no
4869fi
4870
5213506e
RW
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4872$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4873if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
a76494aa
PB
4875else
4876 echo abfoo >t1
4877 echo cdfoo >t2
4878 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4879 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4881 :
4882 else
4883 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4884 fi
4885 fi
a76494aa
PB
4886 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4887 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4888 :
a76494aa
PB
4889 else
4890 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4891 fi
4892 fi
4893 rm t1 t2
4894
4895fi
5213506e
RW
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4897$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
4898do_compare="$gcc_cv_prog_cmp_skip"
4899
4900
55ffb5ed 4901
00020c16 4902# See if we are building gcc with C++.
5213506e
RW
4903# Check whether --enable-build-with-cxx was given.
4904if test "${enable_build_with_cxx+set}" = set; then :
4905 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
4906else
4907 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
4908fi
4909
00020c16 4910
acd26225 4911# Check for GMP, MPFR and MPC
e69bf64b 4912gmplibs="-lmpfr -lgmp"
6de9cd9a 4913gmpinc=
e69bf64b 4914have_gmp=no
5f4a82c0 4915mpclibs=-lmpc
acd26225
KG
4916mpcinc=
4917have_mpc=no
4918
4919# Specify a location for mpc
4920# check for this first so it ends up on the link line before mpfr.
4921
5213506e
RW
4922# Check whether --with-mpc was given.
4923if test "${with_mpc+set}" = set; then :
4924 withval=$with_mpc;
4925fi
acd26225 4926
acd26225 4927
5213506e
RW
4928# Check whether --with-mpc_include was given.
4929if test "${with_mpc_include+set}" = set; then :
4930 withval=$with_mpc_include;
4931fi
acd26225 4932
acd26225 4933
5213506e
RW
4934# Check whether --with-mpc_lib was given.
4935if test "${with_mpc_lib+set}" = set; then :
4936 withval=$with_mpc_lib;
4937fi
acd26225 4938
acd26225
KG
4939
4940if test "x$with_mpc" != x; then
4941 mpclibs="-L$with_mpc/lib -lmpc"
4942 mpcinc="-I$with_mpc/include $mpcinc"
4943fi
4944if test "x$with_mpc_include" != x; then
4945 mpcinc="-I$with_mpc_include $mpcinc"
4946fi
4947if test "x$with_mpc_lib" != x; then
4948 mpclibs="-L$with_mpc_lib -lmpc"
4949fi
4950if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4951 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4952 mpcinc='-I$$s/mpc/src '"$mpcinc"
4953 # Do not test the mpc version. Assume that it is sufficient, since
4954 # it is in the source tree, and the library has not been built yet
4955 # but it would be included on the link line in the version check below
4956 # hence making the test fail.
4957 have_mpc=yes
4958fi
e69bf64b 4959
bebf829d
PB
4960# Specify a location for mpfr
4961# check for this first so it ends up on the link line before gmp.
1c710c3c 4962
5213506e
RW
4963# Check whether --with-mpfr-dir was given.
4964if test "${with_mpfr_dir+set}" = set; then :
4965 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
4966Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
4967fi
4968
bebf829d
PB
4969
4970
5213506e
RW
4971# Check whether --with-mpfr was given.
4972if test "${with_mpfr+set}" = set; then :
4973 withval=$with_mpfr;
4974fi
1c710c3c 4975
bebf829d 4976
5213506e
RW
4977# Check whether --with-mpfr_include was given.
4978if test "${with_mpfr_include+set}" = set; then :
4979 withval=$with_mpfr_include;
4980fi
1c710c3c 4981
8a877c9c 4982
5213506e
RW
4983# Check whether --with-mpfr_lib was given.
4984if test "${with_mpfr_lib+set}" = set; then :
4985 withval=$with_mpfr_lib;
4986fi
8a877c9c 4987
bebf829d
PB
4988
4989if test "x$with_mpfr" != x; then
4990 gmplibs="-L$with_mpfr/lib $gmplibs"
4991 gmpinc="-I$with_mpfr/include"
4992fi
8a877c9c
KG
4993if test "x$with_mpfr_include" != x; then
4994 gmpinc="-I$with_mpfr_include"
4995fi
4996if test "x$with_mpfr_lib" != x; then
4997 gmplibs="-L$with_mpfr_lib $gmplibs"
4998fi
e69bf64b
PB
4999if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5000 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5001 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
acd26225 5002 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
e69bf64b
PB
5003 # Do not test the mpfr version. Assume that it is sufficient, since
5004 # it is in the source tree, and the library has not been built yet
5005 # but it would be included on the link line in the version check below
5006 # hence making the test fail.
5007 have_gmp=yes
5008fi
bebf829d 5009
6de9cd9a 5010# Specify a location for gmp
1c710c3c 5011
5213506e
RW
5012# Check whether --with-gmp-dir was given.
5013if test "${with_gmp_dir+set}" = set; then :
5014 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5015Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5016fi
5017
6de9cd9a 5018
6de9cd9a 5019
5213506e
RW
5020# Check whether --with-gmp was given.
5021if test "${with_gmp+set}" = set; then :
5022 withval=$with_gmp;
5023fi
1c710c3c 5024
6de9cd9a 5025
5213506e
RW
5026# Check whether --with-gmp_include was given.
5027if test "${with_gmp_include+set}" = set; then :
5028 withval=$with_gmp_include;
5029fi
1c710c3c 5030
8a877c9c 5031
5213506e
RW
5032# Check whether --with-gmp_lib was given.
5033if test "${with_gmp_lib+set}" = set; then :
5034 withval=$with_gmp_lib;
5035fi
8a877c9c
KG
5036
5037
6de9cd9a 5038
bebf829d
PB
5039if test "x$with_gmp" != x; then
5040 gmplibs="-L$with_gmp/lib $gmplibs"
5041 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5042fi
8a877c9c
KG
5043if test "x$with_gmp_include" != x; then
5044 gmpinc="-I$with_gmp_include $gmpinc"
5045fi
5046if test "x$with_gmp_lib" != x; then
5047 gmplibs="-L$with_gmp_lib $gmplibs"
5048fi
e69bf64b
PB
5049if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5050 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5051 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 5052 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
acd26225 5053 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5054 # Do not test the gmp version. Assume that it is sufficient, since
5055 # it is in the source tree, and the library has not been built yet
5056 # but it would be included on the link line in the version check below
5057 # hence making the test fail.
5058 have_gmp=yes
5059fi
6de9cd9a 5060
d943d7c4 5061if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5062 have_gmp=yes
5063 saved_CFLAGS="$CFLAGS"
5064 CFLAGS="$CFLAGS $gmpinc"
5065 # Check GMP actually works
5213506e
RW
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5067$as_echo_n "checking for correct version of gmp.h... " >&6; }
1c710c3c 5068
5213506e 5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5070/* end confdefs.h. */
6de9cd9a 5071#include "gmp.h"
1c710c3c
DJ
5072int
5073main ()
5074{
6de9cd9a 5075
a3337ea2 5076 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
5077 choke me
5078 #endif
1c710c3c
DJ
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5213506e
RW
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086$as_echo "yes" >&6; }
1c710c3c 5087else
5213506e
RW
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5090fi
5213506e 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5092
acd26225 5093 # If we have GMP, check the MPFR version.
e69bf64b 5094 if test x"$have_gmp" = xyes; then
5213506e
RW
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5096$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5098/* end confdefs.h. */
70ec446f 5099#include <gmp.h>
e69bf64b 5100 #include <mpfr.h>
1c710c3c
DJ
5101int
5102main ()
5103{
e48d66a9 5104
a3337ea2 5105 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5106 choke me
5107 #endif
1c710c3c
DJ
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
5213506e
RW
5113if ac_fn_c_try_compile "$LINENO"; then :
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5115/* end confdefs.h. */
a3993f33 5116#include <gmp.h>
e69bf64b 5117 #include <mpfr.h>
1c710c3c
DJ
5118int
5119main ()
5120{
a3993f33 5121
36c713e0 5122 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
5123 choke me
5124 #endif
acd26225
KG
5125
5126 ;
5127 return 0;
5128}
5129_ACEOF
5213506e
RW
5130if ac_fn_c_try_compile "$LINENO"; then :
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132$as_echo "yes" >&6; }
acd26225 5133else
5213506e
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5135$as_echo "buggy but acceptable" >&6; }
acd26225 5136fi
5213506e 5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5138else
5213506e
RW
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }; have_gmp=no
acd26225 5141fi
5213506e 5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5143 fi
5144
5145 # Check for the MPC header version.
5146 if test x"$have_mpc" != xyes ; then
5147 CFLAGS="$CFLAGS $mpcinc"
5213506e
RW
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5149$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5151/* end confdefs.h. */
5152#include <mpc.h>
5153int
5154main ()
5155{
5156
5157 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5158 choke me
5159 #endif
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5213506e
RW
5165if ac_fn_c_try_compile "$LINENO"; then :
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167$as_echo "yes" >&6; }; have_mpc=maybe
acd26225 5168else
5213506e
RW
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
acd26225 5171fi
5213506e 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5173 fi
5174
5175 # Now check the MPFR library.
5176 if test x"$have_gmp" = xyes; then
5177 saved_LIBS="$LIBS"
5178 LIBS="$LIBS $gmplibs"
5213506e
RW
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5180$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5182/* end confdefs.h. */
5183#include <gmp.h>
5184 #include <mpfr.h>
5185int
5186main ()
5187{
5188
5189 mpfr_t n;
5190 mpfr_t x;
5191 int t;
5192 mpfr_init (n);
5193 mpfr_init (x);
5194 mpfr_atan2 (n, n, x, GMP_RNDN);
5195 mpfr_erfc (n, x, GMP_RNDN);
5196 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
5197
5198 ;
5199 return 0;
5200}
5201_ACEOF
5213506e
RW
5202if ac_fn_c_try_link "$LINENO"; then :
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5204$as_echo "yes" >&6; }
1c710c3c 5205else
5213506e
RW
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5208fi
5213506e
RW
5209rm -f core conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5211 LIBS="$saved_LIBS"
5212 fi
5213
5214 if test x"$have_mpc" = xmaybe; then
5215 saved_LIBS="$LIBS"
5216 LIBS="$LIBS $mpclibs $gmplibs"
5213506e
RW
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5218$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5220/* end confdefs.h. */
5221#include <mpc.h>
5222int
5223main ()
5224{
5225
5226 mpc_t n;
5227 mpc_init2 (n, 53);
5228 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5229 mpc_sin (n, n, MPC_RNDNN);
5230 mpc_cos (n, n, MPC_RNDNN);
5231 mpc_tan (n, n, MPC_RNDNN);
5232 mpc_sinh (n, n, MPC_RNDNN);
5233 mpc_cosh (n, n, MPC_RNDNN);
5234 mpc_tanh (n, n, MPC_RNDNN);
5235 mpc_exp (n, n, MPC_RNDNN);
5236 mpc_log (n, n, MPC_RNDNN);
5237 mpc_sqrt (n, n, MPC_RNDNN);
5238 mpc_proj (n, n, MPC_RNDNN);
5239 mpc_neg (n, n, MPC_RNDNN);
5240 mpc_sqr (n, n, MPC_RNDNN);
5241 mpc_clear (n);
5242
5243 ;
5244 return 0;
5245}
5246_ACEOF
5213506e
RW
5247if ac_fn_c_try_link "$LINENO"; then :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249$as_echo "yes" >&6; }; have_mpc=yes
1c710c3c 5250else
5213506e
RW
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
1c710c3c 5253fi
5213506e
RW
5254rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
acd26225 5256 LIBS="$saved_LIBS"
e69bf64b 5257 fi
acd26225 5258
e69bf64b 5259 CFLAGS="$saved_CFLAGS"
6de9cd9a 5260
e69bf64b 5261 if test x$have_gmp != xyes; then
5213506e 5262 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
5263Try the --with-gmp and/or --with-mpfr options to specify their locations.
5264Copies of these libraries' source code can be found at their respective
5265hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5266See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5267If you obtained GMP and/or MPFR from a vendor distribution package, make
5268sure that you have installed both the libraries and the header files.
5213506e 5269They may be located in separate packages." "$LINENO" 5
e69bf64b 5270 fi
70ec446f
KG
5271fi
5272
5f4a82c0
KG
5273if test x$have_mpc != xyes ; then
5274 mpcinc=
5275 mpclibs=
5276fi
5277
acd26225
KG
5278gmpinc="$mpcinc $gmpinc"
5279gmplibs="$mpclibs $gmplibs"
5280
5281# Flags needed for both GMP, MPFR and/or MPC.
5282
5283
6de9cd9a
DN
5284
5285
5286
9e3eba15 5287
f38095f3
JM
5288# Allow host libstdc++ to be specified for static linking with PPL.
5289
5213506e
RW
5290# Check whether --with-host-libstdcxx was given.
5291if test "${with_host_libstdcxx+set}" = set; then :
5292 withval=$with_host_libstdcxx;
5293fi
f38095f3 5294
f38095f3
JM
5295
5296case $with_host_libstdcxx in
5297 no|yes)
5213506e 5298 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5299 ;;
5300esac
f8bf9252 5301
00020c16
ILT
5302# Linker flags to use for stage1 or when not boostrapping.
5303
5213506e
RW
5304# Check whether --with-stage1-ldflags was given.
5305if test "${with_stage1_ldflags+set}" = set; then :
5306 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5307 stage1_ldflags=
5308 else
5309 stage1_ldflags=$withval
5310 fi
5311else
5312 stage1_ldflags=
5213506e
RW
5313fi
5314
00020c16
ILT
5315
5316
5317# Libraries to use for stage1 or when not bootstrapping.
5318
5213506e
RW
5319# Check whether --with-stage1-libs was given.
5320if test "${with_stage1_libs+set}" = set; then :
5321 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5322 stage1_libs=
5323 else
5324 stage1_libs=$withval
5325 fi
5326else
5327 stage1_libs=$with_host_libstdcxx
5213506e
RW
5328fi
5329
00020c16
ILT
5330
5331
5332# Linker flags to use for stage2 and later builds.
5333
5213506e
RW
5334# Check whether --with-boot-ldflags was given.
5335if test "${with_boot_ldflags+set}" = set; then :
5336 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5337 poststage1_ldflags=
5338 else
5339 poststage1_ldflags=$withval
5340 fi
5341else
5342 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5343 poststage1_ldflags=-static-libstdc++
5344 else
5345 poststage1_ldflags=
5346 fi
5213506e
RW
5347fi
5348
00020c16
ILT
5349
5350
5351# Libraries to use for stage2 and later builds. This defaults to the
5352# argument passed to --with-host-libstdcxx.
5353
5213506e
RW
5354# Check whether --with-boot-libs was given.
5355if test "${with_boot_libs+set}" = set; then :
5356 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5357 poststage1_libs=
5358 else
5359 poststage1_libs=$withval
5360 fi
5361else
00020c16 5362 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5363fi
5364
00020c16
ILT
5365
5366
f8bf9252
SP
5367# Check for PPL
5368ppl_major_version=0
5369ppl_minor_version=10
00020c16 5370ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5371pplinc=
5372
5373
5213506e
RW
5374# Check whether --with-ppl was given.
5375if test "${with_ppl+set}" = set; then :
5376 withval=$with_ppl;
0b70eafd
DK
5377else
5378 with_ppl=no
5213506e 5379fi
f8bf9252 5380
f8bf9252 5381
5213506e
RW
5382# Check whether --with-ppl_include was given.
5383if test "${with_ppl_include+set}" = set; then :
5384 withval=$with_ppl_include;
5385fi
5386
f8bf9252 5387
5213506e
RW
5388# Check whether --with-ppl_lib was given.
5389if test "${with_ppl_lib+set}" = set; then :
5390 withval=$with_ppl_lib;
5391fi
f8bf9252 5392
f8bf9252 5393
53095c56
SP
5394case $with_ppl in
5395 no)
5396 ppllibs=
5397 ;;
5398 *)
00020c16 5399 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56
SP
5400 pplinc="-I$with_ppl/include $pplinc"
5401 LIBS="$ppllibs $LIBS"
5402 ;;
5403esac
f8bf9252
SP
5404if test "x$with_ppl_include" != x; then
5405 pplinc="-I$with_ppl_include $pplinc"
5406fi
5407if test "x$with_ppl_lib" != x; then
00020c16 5408 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5409 LIBS="$ppllibs $LIBS"
5410fi
5411if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
00020c16 5412 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
f8bf9252
SP
5413 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5414 LIBS="$ppllibs $LIBS"
5415fi
5416
5213506e
RW
5417# Check whether --enable-ppl-version-check was given.
5418if test "${enable_ppl_version_check+set}" = set; then :
5419 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5420else
5421 ENABLE_PPL_CHECK=yes
5213506e
RW
5422fi
5423
f8bf9252 5424
d789184e
SP
5425if test "${ENABLE_PPL_CHECK}" = "yes"; then
5426 saved_CFLAGS="$CFLAGS"
5427 CFLAGS="$CFLAGS $pplinc $gmpinc"
5213506e
RW
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5429$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5431/* end confdefs.h. */
5432#include "ppl_c.h"
5433int
5434main ()
5435{
5436
d789184e
SP
5437 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5438 choke me
5439 #endif
f8bf9252
SP
5440
5441 ;
5442 return 0;
5443}
5444_ACEOF
5213506e
RW
5445if ac_fn_c_try_compile "$LINENO"; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447$as_echo "yes" >&6; }
f8bf9252 5448else
5213506e
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }; ppllibs= ; pplinc=
f8bf9252 5451fi
5213506e 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5453 CFLAGS="$saved_CFLAGS"
5454fi
5455
5456# Flags needed for PPL
5457
5458
f8bf9252 5459
f8bf9252 5460
d789184e 5461# Check for CLOOG
23d9794a 5462clooglibs=" -lcloog "
d789184e
SP
5463clooginc=" -DCLOOG_PPL_BACKEND "
5464
5465
5213506e
RW
5466# Check whether --with-cloog was given.
5467if test "${with_cloog+set}" = set; then :
5468 withval=$with_cloog;
0b70eafd
DK
5469else
5470 with_cloog=no
5213506e
RW
5471fi
5472
d789184e 5473
5213506e
RW
5474# Check whether --with-cloog_include was given.
5475if test "${with_cloog_include+set}" = set; then :
5476 withval=$with_cloog_include;
5477fi
d789184e 5478
d789184e 5479
5213506e
RW
5480# Check whether --with-cloog_lib was given.
5481if test "${with_cloog_lib+set}" = set; then :
5482 withval=$with_cloog_lib;
5483fi
d789184e 5484
d789184e 5485
53095c56
SP
5486case $with_cloog in
5487 no)
5488 clooglibs=
5489 clooginc=
5490 ;;
5491 *)
5492 clooglibs="-L$with_cloog/lib -lcloog"
5493 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5494 LIBS="$clooglibs $LIBS"
5495 ;;
5496esac
d789184e
SP
5497if test "x$with_cloog_include" != x; then
5498 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5499fi
5500if test "x$with_cloog_lib" != x; then
5501 clooglibs="-L$with_cloog_lib -lcloog"
5502 LIBS="$clooglibs $LIBS"
5503fi
5504if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5505 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5506 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5507 LIBS="$clooglibs $LIBS"
5508fi
5509
5213506e
RW
5510# Check whether --enable-cloog-version-check was given.
5511if test "${enable_cloog_version_check+set}" = set; then :
5512 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
d789184e
SP
5513else
5514 ENABLE_CLOOG_CHECK=yes
5213506e
RW
5515fi
5516
d789184e
SP
5517
5518if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5519 saved_CFLAGS="$CFLAGS"
5520 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5213506e
RW
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5522$as_echo_n "checking for correct version of CLooG... " >&6; }
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5524/* end confdefs.h. */
5525#include "cloog/cloog.h"
5526int
5527main ()
5528{
5529
d789184e
SP
5530 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5531 choke me
5532 #endif
f8bf9252
SP
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5213506e
RW
5538if ac_fn_c_try_compile "$LINENO"; then :
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540$as_echo "yes" >&6; }
f8bf9252 5541else
5213506e
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }; clooglibs= ; clooginc=
f8bf9252 5544fi
5213506e 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5546 CFLAGS="$saved_CFLAGS"
5547fi
f8bf9252
SP
5548
5549# Flags needed for CLOOG
5550
5551
5552
5553
1e0f07d3 5554# By default, C is the only stage 1 language.
e1888513 5555stage1_languages=,c,
2805b53a 5556
00020c16
ILT
5557# Target libraries that we bootstrap.
5558bootstrap_target_libs=,target-libgcc,
5559
55ffb5ed
NN
5560# Figure out what language subdirectories are present.
5561# Look if the user specified --enable-languages="..."; if not, use
5562# the environment variable $LANGUAGES if defined. $LANGUAGES might
5563# go away some day.
5564# NB: embedded tabs in this IF block -- do not untabify
5565if test -d ${srcdir}/gcc; then
5566 if test x"${enable_languages+set}" != xset; then
5567 if test x"${LANGUAGES+set}" = xset; then
5568 enable_languages="${LANGUAGES}"
5569 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5570 else
5571 enable_languages=all
5572 fi
5573 else
5574 if test x"${enable_languages}" = x ||
5575 test x"${enable_languages}" = xyes;
5576 then
5577 echo configure.in: --enable-languages needs at least one language argument 1>&2
5578 exit 1
5579 fi
5580 fi
5581 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5582
7f26dfa3
FXC
5583 # 'f95' is the old name for the 'fortran' language. We issue a warning
5584 # and make the substitution.
5585 case ,${enable_languages}, in
5586 *,f95,*)
5587 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5588 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5589 ;;
5590 esac
5591
55ffb5ed
NN
5592 # First scan to see if an enabled language requires some other language.
5593 # We assume that a given config-lang.in will list all the language
5594 # front ends it requires, even if some are required indirectly.
5595 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5596 case ${lang_frag} in
5597 ..) ;;
5598 # The odd quoting in the next line works around
5599 # an apparent bug in bash 1.12 on linux.
5600 ${srcdir}/gcc/[*]/config-lang.in) ;;
5601 *)
5602 # From the config-lang.in, get $language, $lang_requires
5603 language=
5604 lang_requires=
5605 . ${lang_frag}
5606 for other in ${lang_requires} ; do
5607 case ,${enable_languages}, in
5608 *,$other,*) ;;
5609 *,all,*) ;;
5610 *,$language,*)
5611 echo " \`$other' language required by \`$language'; enabling" 1>&2
5612 enable_languages="${enable_languages},${other}"
5613 ;;
5614 esac
5615 done
5616 ;;
5617 esac
5618 done
5619
e1888513 5620 new_enable_languages=,c,
55ffb5ed 5621 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5622 potential_languages=,c,
55ffb5ed
NN
5623
5624 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5625 case ${lang_frag} in
5626 ..) ;;
5627 # The odd quoting in the next line works around
5628 # an apparent bug in bash 1.12 on linux.
5629 ${srcdir}/gcc/[*]/config-lang.in) ;;
5630 *)
1c710c3c 5631 # From the config-lang.in, get $language, $target_libs,
2805b53a 5632 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5633 language=
5634 target_libs=
5635 lang_dirs=
1546bb64 5636 subdir_requires=
e1888513
PB
5637 boot_language=no
5638 build_by_default=yes
55ffb5ed 5639 . ${lang_frag}
e1888513
PB
5640 if test x${language} = x; then
5641 echo "${lang_frag} doesn't set \$language." 1>&2
5642 exit 1
5643 fi
5644
00020c16
ILT
5645 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5646 boot_language=yes
5647 fi
5648
e1888513
PB
5649 case ,${enable_languages}, in
5650 *,${language},*)
55ffb5ed
NN
5651 # Language was explicitly selected; include it.
5652 add_this_lang=yes
5653 ;;
e1888513
PB
5654 *,all,*)
5655 # 'all' was selected, select it if it is a default language
5656 add_this_lang=${build_by_default}
55ffb5ed
NN
5657 ;;
5658 *)
5659 add_this_lang=no
5660 ;;
5661 esac
6de9cd9a 5662
1546bb64 5663 # Disable languages that need other directories if these aren't available.
95695ad3 5664 for i in $subdir_requires; do
b6348cb3 5665 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5666 case ,${enable_languages}, in
5667 *,${language},*)
5668 # Specifically requested language; tell them.
5213506e 5669 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
5670 ;;
5671 *)
5672 # Silently disable.
e1888513 5673 add_this_lang=unsupported
1546bb64
PB
5674 ;;
5675 esac
5676 done
5677
e1888513
PB
5678 # Disable Ada if no preexisting GNAT is available.
5679 case ,${enable_languages},:${language}:${have_gnat} in
5680 *,${language},*:ada:no)
5681 # Specifically requested language; tell them.
5213506e 5682 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
5683 ;;
5684 *:ada:no)
5685 # Silently disable.
5686 add_this_lang=unsupported
5687 ;;
5688 esac
5689
4fab7234
HPN
5690 # Disable a language that is unsupported by the target.
5691 case " $unsupported_languages " in
5692 *" $language "*)
e1888513 5693 add_this_lang=unsupported
4fab7234
HPN
5694 ;;
5695 esac
5696
6de9cd9a 5697 case $add_this_lang in
e1888513 5698 unsupported)
55ffb5ed 5699 # Remove language-dependent dirs.
2805b53a
NN
5700 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5701 ;;
e1888513
PB
5702 no)
5703 # Remove language-dependent dirs; still show language as supported.
5704 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5705 potential_languages="${potential_languages}${language},"
5706 ;;
5707 yes)
5708 new_enable_languages="${new_enable_languages}${language},"
5709 potential_languages="${potential_languages}${language},"
2805b53a
NN
5710 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5711 case ${boot_language} in
5712 yes)
340de83f 5713 # Add to (comma-separated) list of stage 1 languages.
e1888513 5714 stage1_languages="${stage1_languages}${language},"
00020c16
ILT
5715 # We need to bootstrap any supporting libraries.
5716 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
5717 ;;
5718 esac
5719 ;;
55ffb5ed
NN
5720 esac
5721 ;;
5722 esac
5723 done
5724
5213506e
RW
5725 # Check whether --enable-stage1-languages was given.
5726if test "${enable_stage1_languages+set}" = set; then :
5727 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
5728 ,no,|,,)
5729 # Set it to something that will have no effect in the loop below
5730 enable_stage1_languages=c ;;
5731 ,yes,)
5732 enable_stage1_languages=`echo $new_enable_languages | \
5733 sed -e "s/^,//" -e "s/,$//" ` ;;
5734 *,all,*)
5735 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5736 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5737 esac
5738
5739 # Add "good" languages from enable_stage1_languages to stage1_languages,
5740 # while "bad" languages go in missing_languages. Leave no duplicates.
5741 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5742 case $potential_languages in
5743 *,$i,*)
5744 case $stage1_languages in
5745 *,$i,*) ;;
5746 *) stage1_languages="$stage1_languages$i," ;;
5747 esac ;;
5748 *)
5749 case $missing_languages in
5750 *,$i,*) ;;
5751 *) missing_languages="$missing_languages$i," ;;
5752 esac ;;
5753 esac
5754 done
5213506e
RW
5755fi
5756
e1888513
PB
5757
5758 # Remove leading/trailing commas that were added for simplicity
5759 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5760 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5761 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5762 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5763
55ffb5ed 5764 if test "x$missing_languages" != x; then
5213506e 5765 as_fn_error "
0cf085e4 5766The following requested languages could not be built: ${missing_languages}
5213506e 5767Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 5768 fi
55ffb5ed
NN
5769 if test "x$new_enable_languages" != "x$enable_languages"; then
5770 echo The following languages will be built: ${new_enable_languages}
e1888513 5771 enable_languages="$new_enable_languages"
55ffb5ed 5772 fi
e1888513 5773
1c710c3c 5774
b2eaac4a 5775 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5776fi
5777
27079765
AH
5778# Handle --disable-<component> generically.
5779for dir in $configdirs $build_configdirs $target_configdirs ; do
5780 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5781 varname=`echo $dirname | sed -e s/+/_/g`
5782 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5783 noconfigdirs="$noconfigdirs $dir"
5784 fi
5785done
5786
7cd0cf9c 5787# Check for Boehm's garbage collector
5213506e
RW
5788# Check whether --enable-objc-gc was given.
5789if test "${enable_objc_gc+set}" = set; then :
5790 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5791 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 5792 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
5793 ;;
5794esac
5213506e
RW
5795fi
5796
7cd0cf9c
DA
5797
5798# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5799case ,${enable_languages},:${enable_objc_gc} in
5800 *,objc,*:yes)
7cd0cf9c
DA
5801 # Keep target-boehm-gc if requested for Objective-C.
5802 ;;
7cd0cf9c 5803 *)
2a79fd67
DA
5804 # Otherwise remove target-boehm-gc depending on target-libjava.
5805 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5806 noconfigdirs="$noconfigdirs target-boehm-gc"
5807 fi
7cd0cf9c
DA
5808 ;;
5809esac
5810
ee6a22df
L
5811# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5812# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5813# If we have the source for $noconfigdirs entries, add them to $notsupp.
5814
5815notsupp=""
5816for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5817 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5818 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5819 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5820 if test -r $srcdir/$dirname/configure ; then
5821 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5822 true
5823 else
5824 notsupp="$notsupp $dir"
5825 fi
5826 fi
5827 fi
ee6a22df
L
5828 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5829 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5830 if test -r $srcdir/$dirname/configure ; then
5831 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5832 true
5833 else
5834 notsupp="$notsupp $dir"
5835 fi
5836 fi
5837 fi
55ffb5ed
NN
5838 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5839 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5840 if test -r $srcdir/$dirname/configure ; then
5841 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5842 true
5843 else
5844 notsupp="$notsupp $dir"
5845 fi
5846 fi
5847 fi
5848done
5849
5850# Sometimes the tools are distributed with libiberty but with no other
5851# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5852# Don't let libgcc imply libiberty either.
55ffb5ed 5853if test -n "${target_configdirs}" ; then
54fdc474 5854 libgcc=
55ffb5ed
NN
5855 others=
5856 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5857 if test "$i" = "libgcc"; then
5858 libgcc=target-libgcc
5859 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5860 if test -r $srcdir/$i/configure ; then
5861 others=yes;
5862 break;
5863 fi
5864 fi
5865 done
5866 if test -z "${others}" ; then
54fdc474 5867 target_configdirs=$libgcc
55ffb5ed
NN
5868 fi
5869fi
5870
5871# Quietly strip out all directories which aren't configurable in this tree.
5872# This relies on all configurable subdirectories being autoconfiscated, which
5873# is now the case.
23f6b2f9
PB
5874build_configdirs_all="$build_configdirs"
5875build_configdirs=
5876for i in ${build_configdirs_all} ; do
1c710c3c 5877 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5878 if test -f ${srcdir}/$j/configure ; then
5879 build_configdirs="${build_configdirs} $i"
5880 fi
5881done
5882
55ffb5ed
NN
5883configdirs_all="$configdirs"
5884configdirs=
5885for i in ${configdirs_all} ; do
5886 if test -f ${srcdir}/$i/configure ; then
5887 configdirs="${configdirs} $i"
5888 fi
5889done
23f6b2f9 5890
55ffb5ed
NN
5891target_configdirs_all="$target_configdirs"
5892target_configdirs=
5893for i in ${target_configdirs_all} ; do
1c710c3c 5894 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5895 if test -f ${srcdir}/$j/configure ; then
5896 target_configdirs="${target_configdirs} $i"
5897 fi
5898done
5899
5900# Produce a warning message for the subdirs we can't configure.
5901# This isn't especially interesting in the Cygnus tree, but in the individual
5902# FSF releases, it's important to let people know when their machine isn't
5903# supported by the one or two programs in a package.
5904
5905if test -n "${notsupp}" && test -z "${norecursion}" ; then
5906 # If $appdirs is non-empty, at least one of those directories must still
5907 # be configured, or we error out. (E.g., if the gas release supports a
5908 # specified target in some subdirs but not the gas subdir, we shouldn't
5909 # pretend that all is well.)
5910 if test -n "$appdirs" ; then
5911 for dir in $appdirs ; do
5912 if test -r $dir/Makefile.in ; then
5913 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5914 appdirs=""
5915 break
5916 fi
23f6b2f9 5917 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5918 appdirs=""
5919 break
5920 fi
5921 fi
5922 done
5923 if test -n "$appdirs" ; then
5924 echo "*** This configuration is not supported by this package." 1>&2
5925 exit 1
5926 fi
5927 fi
5928 # Okay, some application will build, or we don't care to check. Still
5929 # notify of subdirs not getting built.
5930 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5931 echo " ${notsupp}" 1>&2
5932 echo " (Any other directories should still work fine.)" 1>&2
5933fi
5934
5935case "$host" in
5936 *msdosdjgpp*)
5937 enable_gdbtk=no ;;
5938esac
5939
c3a86da9
DJ
5940# To find our prefix, in gcc_cv_tool_prefix.
5941
5942# The user is always right.
5943if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5946 chmod +x conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948 PATH_SEPARATOR=';'
5949 else
5950 PATH_SEPARATOR=:
5951 fi
5952 rm -f conf$$.sh
5953fi
5954
5955
5956
5957if test "x$exec_prefix" = xNONE; then
5958 if test "x$prefix" = xNONE; then
5959 gcc_cv_tool_prefix=$ac_default_prefix
5960 else
5961 gcc_cv_tool_prefix=$prefix
5962 fi
5963else
5964 gcc_cv_tool_prefix=$exec_prefix
5965fi
5966
5967# If there is no compiler in the tree, use the PATH only. In any
5968# case, if there is no compiler in the tree nobody should use
5969# AS_FOR_TARGET and LD_FOR_TARGET.
5970if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5971 gcc_version=`cat $srcdir/gcc/BASE-VER`
5972 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5973 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5974 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5975 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5976 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5977 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5978else
5979 gcc_cv_tool_dirs=
5980fi
5981
5982if test x$build = x$target && test -n "$md_exec_prefix"; then
5983 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5984fi
5985
5986
5987
55ffb5ed
NN
5988copy_dirs=
5989
1c710c3c 5990
5213506e
RW
5991# Check whether --with-build-sysroot was given.
5992if test "${with_build_sysroot+set}" = set; then :
5993 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
5994 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5995 fi
5996else
5997 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 5998fi
526635cb
MM
5999
6000
c8aea42c 6001
5213506e
RW
6002
6003# Check whether --with-debug-prefix-map was given.
6004if test "${with_debug_prefix_map+set}" = set; then :
6005 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6006 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6007 for debug_map in $withval; do
6008 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6009 done
6010 fi
6011else
6012 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6013fi
6014
c8aea42c
PB
6015
6016
1c8bd6a3
PB
6017# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6018# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6019# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6020# We want to ensure that TARGET libraries (which we know are built with
6021# gcc) are built with "-O2 -g", so include those options when setting
6022# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6023if test "x$CFLAGS_FOR_TARGET" = x; then
6024 CFLAGS_FOR_TARGET=$CFLAGS
6025 case " $CFLAGS " in
6026 *" -O2 "*) ;;
6027 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6028 esac
6029 case " $CFLAGS " in
6030 *" -g "* | *" -g3 "*) ;;
6031 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6032 esac
6033fi
6034
6035
6036if test "x$CXXFLAGS_FOR_TARGET" = x; then
6037 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6038 case " $CXXFLAGS " in
6039 *" -O2 "*) ;;
6040 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6041 esac
6042 case " $CXXFLAGS " in
6043 *" -g "* | *" -g3 "*) ;;
6044 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6045 esac
6046fi
6047
6048
55ffb5ed
NN
6049# Handle --with-headers=XXX. If the value is not "yes", the contents of
6050# the named directory are copied to $(tooldir)/sys-include.
6051if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6052 if test x${is_cross_compiler} = xno ; then
6053 echo 1>&2 '***' --with-headers is only supported when cross compiling
6054 exit 1
6055 fi
6056 if test x"${with_headers}" != xyes ; then
c3a86da9 6057 x=${gcc_cv_tool_prefix}
1c710c3c 6058 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6059 fi
6060fi
6061
6062# Handle --with-libs=XXX. If the value is not "yes", the contents of
6063# the name directories are copied to $(tooldir)/lib. Multiple directories
6064# are permitted.
6065if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6066 if test x${is_cross_compiler} = xno ; then
6067 echo 1>&2 '***' --with-libs is only supported when cross compiling
6068 exit 1
6069 fi
6070 if test x"${with_libs}" != xyes ; then
6071 # Copy the libraries in reverse order, so that files in the first named
6072 # library override files in subsequent libraries.
c3a86da9 6073 x=${gcc_cv_tool_prefix}
55ffb5ed 6074 for l in ${with_libs}; do
1c710c3c 6075 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6076 done
6077 fi
6078fi
6079
e8b05380
PB
6080# Set with_gnu_as and with_gnu_ld as appropriate.
6081#
6082# This is done by determining whether or not the appropriate directory
6083# is available, and by checking whether or not specific configurations
6084# have requested that this magic not happen.
1c710c3c
DJ
6085#
6086# The command line options always override the explicit settings in
e8b05380
PB
6087# configure.in, and the settings in configure.in override this magic.
6088#
1c710c3c 6089# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
6090# want to do that, then you should use the --without-gnu-as and
6091# --without-gnu-ld options for the configure script.
6092
6093if test x${use_gnu_as} = x &&
6094 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6095 with_gnu_as=yes
6096 extra_host_args="$extra_host_args --with-gnu-as"
6097fi
6098
6099if test x${use_gnu_ld} = x &&
5afab7ad 6100 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6101 with_gnu_ld=yes
6102 extra_host_args="$extra_host_args --with-gnu-ld"
6103fi
6104
6105# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6106# can detect this case.
6107
6108if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6109 with_newlib=yes
6110 extra_host_args="$extra_host_args --with-newlib"
6111fi
6112
55ffb5ed
NN
6113# Handle ${copy_dirs}
6114set fnord ${copy_dirs}
6115shift
6116while test $# != 0 ; do
6117 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6118 :
6119 else
6120 echo Copying $1 to $2
6121
6122 # Use the install script to create the directory and all required
6123 # parent directories.
6124 if test -d $2 ; then
6125 :
6126 else
6127 echo >config.temp
6128 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6129 fi
6130
6131 # Copy the directory, assuming we have tar.
6132 # FIXME: Should we use B in the second tar? Not all systems support it.
6133 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6134
6135 # It is the responsibility of the user to correctly adjust all
6136 # symlinks. If somebody can figure out how to handle them correctly
6137 # here, feel free to add the code.
6138
6139 echo $1 > $2/COPIED
6140 fi
6141 shift; shift
6142done
6143
e8b05380
PB
6144# Determine a target-dependent exec_prefix that the installed
6145# gcc will search in. Keep this list sorted by triplet, with
6146# the *-*-osname triplets last.
6147md_exec_prefix=
6148case "${target}" in
6149 alpha*-*-*vms*)
6150 md_exec_prefix=/gnu/lib/gcc-lib
6151 ;;
30b74385 6152 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6153 md_exec_prefix=/dev/env/DJDIR/bin
6154 ;;
30b74385 6155 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6156 if test $with_gnu_as = yes; then
6157 md_exec_prefix=/usr/gnu/bin
6158 else
6159 md_exec_prefix=/usr/ccs/bin/elf
6160 fi
6161 ;;
6162
6163 mn10300-*-* | \
6164 powerpc-*-chorusos* | \
6165 powerpc*-*-eabi* | \
6166 powerpc*-*-sysv* | \
6167 powerpc*-*-kaos* | \
6168 s390x-ibm-tpf*)
6169 md_exec_prefix=/usr/ccs/bin
6170 ;;
6171 sparc64-*-elf*)
6172 ;;
6173 v850*-*-*)
6174 md_exec_prefix=/usr/ccs/bin
6175 ;;
aa12a573 6176 xtensa*-*-elf*)
e8b05380
PB
6177 ;;
6178
6179 *-*-beos* | \
6180 *-*-elf* | \
6181 *-*-hpux* | \
6182 *-*-netware* | \
6183 *-*-nto-qnx* | \
6184 *-*-rtems* | \
6185 *-*-solaris2* | \
30b74385 6186 *-*-sysv[45]* | \
e8b05380
PB
6187 *-*-vxworks* | \
6188 *-wrs-windiss)
6189 md_exec_prefix=/usr/ccs/bin
6190 ;;
6191esac
6192
671aa708
NN
6193extra_arflags_for_target=
6194extra_nmflags_for_target=
6195extra_ranlibflags_for_target=
6196target_makefile_frag=/dev/null
6197case "${target}" in
3e19841a
PB
6198 mep*-*-*)
6199 target_makefile_frag="config/mt-mep"
6200 ;;
58e24147
AM
6201 spu-*-*)
6202 target_makefile_frag="config/mt-spu"
6203 ;;
4bf6c438
RS
6204 mips*-sde-elf*)
6205 target_makefile_frag="config/mt-sde"
6206 ;;
1ec3b87b
RS
6207 mipsisa*-*-elfoabi*)
6208 target_makefile_frag="config/mt-mips-elfoabi"
6209 ;;
08d0963a
RS
6210 mips*-*-*linux* | mips*-*-gnu*)
6211 target_makefile_frag="config/mt-mips-gnu"
6212 ;;
61fec9ff 6213 *-*-netware*)
671aa708
NN
6214 target_makefile_frag="config/mt-netware"
6215 ;;
416ac4d4 6216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6217 target_makefile_frag="config/mt-gnu"
671aa708
NN
6218 ;;
6219 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6220 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6221 # commands to handle both 32-bit and 64-bit objects. These flags are
6222 # harmless if we're using GNU nm or ar.
6223 extra_arflags_for_target=" -X32_64"
6224 extra_nmflags_for_target=" -B -X32_64"
6225 ;;
6226 *-*-darwin*)
6227 # ranlib from Darwin requires the -c flag to look at common symbols.
6228 extra_ranlibflags_for_target=" -c"
6229 ;;
6230 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6231 target_makefile_frag="config/mt-wince"
6232 ;;
6233esac
6234
6235alphaieee_frag=/dev/null
6236case $target in
6237 alpha*-*-*)
6238 # This just makes sure to use the -mieee option to build target libs.
6239 # This should probably be set individually by each library.
6240 alphaieee_frag="config/mt-alphaieee"
6241 ;;
6242esac
6243
6244# If --enable-target-optspace always use -Os instead of -O2 to build
6245# the target libraries, similarly if it is not specified, use -Os
6246# on selected platforms.
6247ospace_frag=/dev/null
6248case "${enable_target_optspace}:${target}" in
6249 yes:*)
6250 ospace_frag="config/mt-ospace"
6251 ;;
6252 :d30v-*)
6253 ospace_frag="config/mt-d30v"
6254 ;;
6255 :m32r-* | :d10v-* | :fr30-*)
6256 ospace_frag="config/mt-ospace"
6257 ;;
6258 no:* | :*)
6259 ;;
6260 *)
6261 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6262 ;;
6263esac
6264
671aa708
NN
6265# Default to using --with-stabs for certain targets.
6266if test x${with_stabs} = x ; then
6267 case "${target}" in
89a95129 6268 mips*-*-irix[56]*)
671aa708
NN
6269 ;;
6270 mips*-*-* | alpha*-*-osf*)
6271 with_stabs=yes;
6272 extra_host_args="${extra_host_args} --with-stabs"
6273 ;;
6274 esac
6275fi
6276
6277# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6278# them automatically.
6279case "${host}" in
1c710c3c 6280 hppa*64*-*-hpux11*)
671aa708
NN
6281 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6282 ;;
6283esac
6284
671aa708
NN
6285# Some systems (e.g., one of the i386-aix systems the gas testers are
6286# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6287tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6288build_tooldir=${tooldir}
6289
671aa708
NN
6290# Create a .gdbinit file which runs the one in srcdir
6291# and tells GDB to look there for source files.
6292
6293if test -r ${srcdir}/.gdbinit ; then
6294 case ${srcdir} in
6295 .) ;;
6296 *) cat > ./.gdbinit <<EOF
6297# ${NO_EDIT}
6298dir ${srcdir}
6299dir .
6300source ${srcdir}/.gdbinit
6301EOF
6302 ;;
6303 esac
6304fi
6305
671aa708
NN
6306# Make sure that the compiler is able to generate an executable. If it
6307# can't, we are probably in trouble. We don't care whether we can run the
6308# executable--we might be using a cross compiler--we only care whether it
6309# can be created. At this point the main configure script has set CC.
6310we_are_ok=no
6311echo "int main () { return 0; }" > conftest.c
6312${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6313if test $? = 0 ; then
6314 if test -s conftest || test -s conftest.exe ; then
6315 we_are_ok=yes
6316 fi
1c710c3c 6317fi
671aa708
NN
6318case $we_are_ok in
6319 no)
6320 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6321 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6322 rm -f conftest*
6323 exit 1
6324 ;;
6325esac
6326rm -f conftest*
6327
6328# The Solaris /usr/ucb/cc compiler does not appear to work.
6329case "${host}" in
6330 sparc-sun-solaris2*)
6331 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6332 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6333 could_use=
6334 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6335 if test -d /opt/cygnus/bin ; then
6336 if test "$could_use" = "" ; then
6337 could_use="/opt/cygnus/bin"
6338 else
6339 could_use="$could_use or /opt/cygnus/bin"
6340 fi
6341 fi
6342 if test "$could_use" = "" ; then
6343 echo "Warning: compilation may fail because you're using"
6344 echo "/usr/ucb/cc. You should change your PATH or CC "
6345 echo "variable and rerun configure."
6346 else
6347 echo "Warning: compilation may fail because you're using"
6348 echo "/usr/ucb/cc, when you should use the C compiler from"
6349 echo "$could_use. You should change your"
6350 echo "PATH or CC variable and rerun configure."
6351 fi
6352 fi
6353 ;;
6354esac
6355
d89f0ad6 6356# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6357case "${host}" in
6358 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6359 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6360 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6361 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6362esac
6363
d89f0ad6
AL
6364# On systems where the dynamic library environment variable is PATH,
6365# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6366# built executables to PATH.
6367if test "$RPATH_ENVVAR" = PATH; then
6368 GCC_SHLIB_SUBDIR=/shlib
6369else
6370 GCC_SHLIB_SUBDIR=
6371fi
6372
671aa708
NN
6373# Record target_configdirs and the configure arguments for target and
6374# build configuration in Makefile.
6375target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6376build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6377
671aa708
NN
6378# Determine whether gdb needs tk/tcl or not.
6379# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6380# and in that case we want gdb to be built without tk. Ugh!
6381# In fact I believe gdb is the *only* package directly dependent on tk,
6382# so we should be able to put the 'maybe's in unconditionally and
6383# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6384# 100% sure that that's safe though.
e914a571 6385
b4f96efe 6386gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6387case "$enable_gdbtk" in
6388 no)
6389 GDB_TK="" ;;
e914a571
AC
6390 yes)
6391 GDB_TK="${gdb_tk}" ;;
671aa708 6392 *)
e914a571
AC
6393 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6394 # distro. Eventually someone will fix this and move Insight, nee
6395 # gdbtk to a separate directory.
6396 if test -d ${srcdir}/gdb/gdbtk ; then
6397 GDB_TK="${gdb_tk}"
6398 else
6399 GDB_TK=""
6400 fi
6401 ;;
671aa708 6402esac
ef9db8d5
DJ
6403CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6404INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6405
60975492 6406# Strip out unwanted targets.
8b87bb96
NN
6407
6408# While at that, we remove Makefiles if we were started for recursive
6409# configuration, so that the top-level Makefile reconfigures them,
6410# like we used to do when configure itself was recursive.
8b87bb96 6411
60975492
PB
6412# Loop over modules. $extrasub must be used with care, limiting as
6413# much as possible the usage of range addresses. That's because autoconf
6414# splits the sed script to overcome limits in the number of commands,
6415# and relying on carefully-timed sed passes may turn out to be very hard
6416# to maintain later. In this particular case, you just have to be careful
6417# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6418
5213506e
RW
6419# Check whether --enable-bootstrap was given.
6420if test "${enable_bootstrap+set}" = set; then :
6421 enableval=$enable_bootstrap;
f516a7da 6422else
ce521a9c 6423 enable_bootstrap=default
5213506e
RW
6424fi
6425
f516a7da 6426
ce521a9c
PB
6427# Issue errors and warnings for invalid/strange bootstrap combinations.
6428case "$configdirs" in
6429 *gcc*) have_compiler=yes ;;
6430 *) have_compiler=no ;;
6431esac
6432
6433case "$have_compiler:$host:$target:$enable_bootstrap" in
6434 *:*:*:no) ;;
6435
1ca26cd2 6436 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6437 # and we are in a native configuration.
6438 yes:$build:$build:default)
1ca26cd2 6439 enable_bootstrap=yes ;;
ce521a9c
PB
6440
6441 *:*:*:default)
6442 enable_bootstrap=no ;;
6443
6444 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6445 yes:$build:$build:yes)
ce521a9c
PB
6446 ;;
6447
6448 # Other configurations, but we have a compiler. Assume the user knows
6449 # what he's doing.
2d309510 6450 yes:*:*:yes)
5213506e
RW
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6452$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6453 ;;
6454
6455 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6456 no:*:*:yes)
5213506e 6457 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
6458
6459 # Fail if wrong command line
6460 *)
5213506e 6461 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
6462 ;;
6463esac
6464
6465# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
6466case "$enable_bootstrap" in
6467 yes)
5607edfd 6468 bootstrap_suffix=bootstrap ;;
f516a7da 6469 no)
5607edfd 6470 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
6471esac
6472
23f6b2f9 6473for module in ${build_configdirs} ; do
5607edfd
PB
6474 if test -z "${no_recursion}" \
6475 && test -f ${build_subdir}/${module}/Makefile; then
6476 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6477 rm -f ${build_subdir}/${module}/Makefile
6478 fi
6479 extrasub="$extrasub
6480/^@if build-$module\$/d
6481/^@endif build-$module\$/d
6482/^@if build-$module-$bootstrap_suffix\$/d
6483/^@endif build-$module-$bootstrap_suffix\$/d"
6484done
6485for module in ${configdirs} ; do
a6fbc1e2 6486 if test -z "${no_recursion}"; then
f063a9ed 6487 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6488 if test -f ${file}; then
6489 echo 1>&2 "*** removing ${file} to force reconfigure"
6490 rm -f ${file}
6491 fi
6492 done
5607edfd
PB
6493 fi
6494 extrasub="$extrasub
6495/^@if $module\$/d
6496/^@endif $module\$/d
6497/^@if $module-$bootstrap_suffix\$/d
6498/^@endif $module-$bootstrap_suffix\$/d"
6499done
6500for module in ${target_configdirs} ; do
6501 if test -z "${no_recursion}" \
6502 && test -f ${target_subdir}/${module}/Makefile; then
6503 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6504 rm -f ${target_subdir}/${module}/Makefile
6505 fi
00020c16
ILT
6506
6507 # We only bootstrap target libraries listed in bootstrap_target_libs.
6508 case $bootstrap_target_libs in
6509 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6510 *) target_bootstrap_suffix=no-bootstrap ;;
6511 esac
6512
5607edfd
PB
6513 extrasub="$extrasub
6514/^@if target-$module\$/d
6515/^@endif target-$module\$/d
00020c16
ILT
6516/^@if target-$module-$target_bootstrap_suffix\$/d
6517/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
6518done
6519
60975492
PB
6520extrasub="$extrasub
6521/^@if /,/^@endif /d"
671aa708
NN
6522
6523# Create the serialization dependencies. This uses a temporary file.
6524
5213506e
RW
6525# Check whether --enable-serial-configure was given.
6526if test "${enable_serial_configure+set}" = set; then :
6527 enableval=$enable_serial_configure;
6528fi
ade82b16
AO
6529
6530
bf1d3e81
NN
6531case ${enable_serial_configure} in
6532 yes)
6533 enable_serial_build_configure=yes
6534 enable_serial_host_configure=yes
6535 enable_serial_target_configure=yes
6536 ;;
6537esac
6538
671aa708
NN
6539# These force 'configure's to be done one at a time, to avoid problems
6540# with contention over a shared config.cache.
6541rm -f serdep.tmp
ade82b16 6542echo '# serdep.tmp' > serdep.tmp
671aa708 6543olditem=
bf1d3e81 6544test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6545for item in ${build_configdirs} ; do
6546 case ${olditem} in
6547 "") ;;
ade82b16 6548 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6549 esac
6550 olditem=${item}
6551done
6552olditem=
bf1d3e81 6553test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6554for item in ${configdirs} ; do
6555 case ${olditem} in
6556 "") ;;
ade82b16 6557 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6558 esac
6559 olditem=${item}
6560done
6561olditem=
bf1d3e81 6562test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6563for item in ${target_configdirs} ; do
6564 case ${olditem} in
6565 "") ;;
ade82b16 6566 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6567 esac
6568 olditem=${item}
6569done
6570serialization_dependencies=serdep.tmp
6571
6572
ade82b16 6573# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6574# target, nonopt, and variable assignments. These are the ones we
6575# might not want to pass down to subconfigures. Also strip
6576# program-prefix, program-suffix, and program-transform-name, so that
6577# we can pass down a consistent program-transform-name.
6578baseargs=
6579keep_next=no
6580skip_next=no
6581eval "set -- $ac_configure_args"
44bfc3ac
DJ
6582for ac_arg
6583do
1c710c3c
DJ
6584 if test X"$skip_next" = X"yes"; then
6585 skip_next=no
6586 continue
6587 fi
6588 if test X"$keep_next" = X"yes"; then
6589 case $ac_arg in
6590 *\'*)
6591 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6592 esac
6593 baseargs="$baseargs '$ac_arg'"
6594 keep_next=no
6595 continue
6596 fi
6597
6598 # Handle separated arguments. Based on the logic generated by
6599 # autoconf 2.59.
6600 case $ac_arg in
6601 *=* | --config-cache | -C | -disable-* | --disable-* \
6602 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6603 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6604 | -with-* | --with-* | -without-* | --without-* | --x)
6605 separate_arg=no
6606 ;;
6607 -*)
6608 separate_arg=yes
6609 ;;
6610 *)
6611 separate_arg=no
6612 ;;
6613 esac
6614
6615 case "$ac_arg" in
6616 --no*)
6617 continue
6618 ;;
6619 --c* | \
6620 --sr* | \
6621 --ho* | \
6622 --bu* | \
6623 --t* | \
6624 --program-* | \
6625 -cache_file* | \
6626 -srcdir* | \
6627 -host* | \
6628 -build* | \
6629 -target* | \
6630 -program-prefix* | \
6631 -program-suffix* | \
6632 -program-transform-name* )
6633 skip_next=$separate_arg
6634 continue
6635 ;;
6636 -*)
6637 # An option. Add it.
6638 case $ac_arg in
6639 *\'*)
6640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6641 esac
6642 baseargs="$baseargs '$ac_arg'"
6643 keep_next=$separate_arg
6644 ;;
6645 *)
6646 # Either a variable assignment, or a nonopt (triplet). Don't
6647 # pass it down; let the Makefile handle this.
6648 continue
6649 ;;
6650 esac
6651done
6652# Remove the initial space we just introduced and, as these will be
6653# expanded by make, quote '$'.
6654baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6655
43bb47c2
DJ
6656# Add in --program-transform-name, after --program-prefix and
6657# --program-suffix have been applied to it. Autoconf has already
6658# doubled dollar signs and backslashes in program_transform_name; we want
6659# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6660# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6661# Also, because we want to override the logic in subdir configure scripts to
6662# choose program_transform_name, replace any s,x,x, with s,y,y,.
6663sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6664${program_transform_name}
6665EOF_SED
6666gcc_transform_name=`cat conftestsed.out`
6667rm -f conftestsed.out
6668baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6669if test "$silent" = yes; then
6670 baseargs="$baseargs --silent"
6671fi
0115d4a3 6672baseargs="$baseargs --disable-option-checking"
43bb47c2 6673
671aa708
NN
6674# For the build-side libraries, we just need to pretend we're native,
6675# and not use the same cache file. Multilibs are neither needed nor
6676# desired.
e69bf64b 6677build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6678
6679# For host modules, accept cache file option, or specification as blank.
6680case "${cache_file}" in
6681"") # empty
6682 cache_file_option="" ;;
6683/* | [A-Za-z]:[\\/]* ) # absolute path
6684 cache_file_option="--cache-file=${cache_file}" ;;
6685*) # relative path
6686 cache_file_option="--cache-file=../${cache_file}" ;;
6687esac
6688
09438bde
NN
6689# Host dirs don't like to share a cache file either, horribly enough.
6690# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6691host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6692
6693target_configargs=${baseargs}
6694
6695# Passing a --with-cross-host argument lets the target libraries know
6696# whether they are being built with a cross-compiler or being built
6697# native. However, it would be better to use other mechanisms to make the
6698# sorts of decisions they want to make on this basis. Please consider
6699# this option to be deprecated. FIXME.
6700if test x${is_cross_compiler} = xyes ; then
1c710c3c 6701 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6702fi
6703
6704# Default to --enable-multilib.
6705if test x${enable_multilib} = x ; then
6706 target_configargs="--enable-multilib ${target_configargs}"
6707fi
6708
6709# Pass --with-newlib if appropriate. Note that target_configdirs has
6710# changed from the earlier setting of with_newlib.
6711if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6712 target_configargs="--with-newlib ${target_configargs}"
6713fi
6714
6b9eb62c
NN
6715# Different target subdirs use different values of certain variables
6716# (notably CXX). Worse, multilibs use *lots* of different values.
6717# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6718# it doesn't automatically accept command-line overrides of them.
6719# This means it's not safe for target subdirs to share a cache file,
6720# which is disgusting, but there you have it. Hopefully this can be
6721# fixed in future. It's still worthwhile to use a cache file for each
6722# directory. I think.
6723
bebcd931
MS
6724# Pass the appropriate --build, --host, --target and --cache-file arguments.
6725# We need to pass --target, as newer autoconf's requires consistency
6726# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6727target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6728
671aa708
NN
6729FLAGS_FOR_TARGET=
6730case " $target_configdirs " in
6731 *" newlib "*)
6732 case " $target_configargs " in
6733 *" --with-newlib "*)
6734 case "$target" in
6735 *-cygwin*)
aa8f1f57 6736 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' ;;
671aa708
NN
6737 esac
6738
6739 # If we're not building GCC, don't discard standard headers.
6740 if test -d ${srcdir}/gcc; then
6741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6742
6743 if test "${build}" != "${host}"; then
6744 # On Canadian crosses, CC_FOR_TARGET will have already been set
6745 # by `configure', so we won't have an opportunity to add -Bgcc/
6746 # to it. This is right: we don't want to search that directory
6747 # for binaries, but we want the header files in there, so add
6748 # them explicitly.
215c351a 6749 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6750
6751 # Someone might think of using the pre-installed headers on
6752 # Canadian crosses, in case the installed compiler is not fully
6753 # compatible with the compiler being built. In this case, it
6754 # would be better to flag an error than risking having
6755 # incompatible object files being constructed. We can't
6756 # guarantee that an error will be flagged, but let's hope the
6757 # compiler will do it, when presented with incompatible header
6758 # files.
6759 fi
6760 fi
6761
6762 case "${target}-${is_cross_compiler}" in
f2a0e225 6763 i[3456789]86-*-linux*-no)
671aa708
NN
6764 # Here host == target, so we don't need to build gcc,
6765 # so we don't want to discard standard headers.
6766 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6767 ;;
6768 *)
6769 # If we're building newlib, use its generic headers last, but search
6770 # for any libc-related directories first (so make it the last -B
6771 # switch).
6772 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
6773
6774 # If we're building libgloss, find the startup file, simulator library
6775 # and linker script.
6776 case " $target_configdirs " in
6777 *" libgloss "*)
6778 # Look for startup file, simulator library and maybe linker script.
6779 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6780 # Look for libnosys.a in case the target needs it.
6781 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6782 # Most targets have the linker script in the source directory.
6783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6784 ;;
6785 esac
671aa708
NN
6786 ;;
6787 esac
6788 ;;
6789 esac
6790 ;;
6791esac
b91f0a41
CV
6792case "$target" in
6793*-mingw*)
6794 # Can't be handled as Cygwin above since Mingw does not use newlib.
6795 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' ;;
6796esac
671aa708 6797
6691a79e
ME
6798# Allow the user to override the flags for
6799# our build compiler if desired.
f019adc1
MF
6800if test x"${build}" = x"${host}" ; then
6801 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6802 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6803 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6804fi
6691a79e 6805
671aa708
NN
6806# On Canadian crosses, we'll be searching the right directories for
6807# the previously-installed cross compiler, so don't bother to add
6808# flags for directories within the install tree of the compiler
6809# being built; programs in there won't even run.
6810if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6811 # Search for pre-installed headers if nothing else fits.
9124bc53 6812 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
6813fi
6814
6815if test "x${use_gnu_ld}" = x &&
6816 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6817 # Arrange for us to find uninstalled linker scripts.
215c351a 6818 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6819fi
6820
e88a2c09
DD
6821# Search for other target-specific linker scripts and such.
6822case "${target}" in
3e19841a
PB
6823 mep*)
6824 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6825 ;;
e88a2c09
DD
6826esac
6827
671aa708 6828# Makefile fragments.
7b61653a
PE
6829for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6830do
6831 eval fragval=\$$frag
6832 if test $fragval != /dev/null; then
6833 eval $frag=${srcdir}/$fragval
6834 fi
6835done
671aa708
NN
6836
6837
6838
6839
6840
6841# Miscellanea: directories, flags, etc.
6842
6843
6844
6845
6846
6847
6848
d89f0ad6 6849
23f6b2f9 6850# Build module lists & subconfigure args.
671aa708
NN
6851
6852
6853
2abefe3d
PB
6854# Host module lists & subconfigure args.
6855
6856
6857
6858# Target module lists & subconfigure args.
6859
6860
6861
6862# Build tools.
6863
6864
6865
0999159b
PB
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
2abefe3d
PB
6880# Generate default definitions for YACC, M4, LEX and other programs that run
6881# on the build machine. These are used if the Makefile can't locate these
6882# programs in objdir.
6883MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6884
6885for ac_prog in 'bison -y' byacc yacc
6886do
1c710c3c 6887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6888set dummy $ac_prog; ac_word=$2
5213506e
RW
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_YACC+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
2abefe3d
PB
6893else
6894 if test -n "$YACC"; then
6895 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6896else
1c710c3c
DJ
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
5213506e
RW
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 6904 ac_cv_prog_YACC="$ac_prog"
5213506e 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
6906 break 2
6907 fi
6908done
5213506e
RW
6909 done
6910IFS=$as_save_IFS
1c710c3c 6911
2abefe3d
PB
6912fi
6913fi
1c710c3c 6914YACC=$ac_cv_prog_YACC
2abefe3d 6915if test -n "$YACC"; then
5213506e
RW
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6917$as_echo "$YACC" >&6; }
2abefe3d 6918else
5213506e
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
2abefe3d
PB
6921fi
6922
5213506e 6923
1c710c3c 6924 test -n "$YACC" && break
2abefe3d
PB
6925done
6926test -n "$YACC" || YACC="$MISSING bison -y"
6927
6928case " $build_configdirs " in
6929 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6930 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6931esac
6932
6933for ac_prog in bison
6934do
1c710c3c 6935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6936set dummy $ac_prog; ac_word=$2
5213506e
RW
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_BISON+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
2abefe3d
PB
6941else
6942 if test -n "$BISON"; then
6943 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6944else
1c710c3c
DJ
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
5213506e
RW
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 6952 ac_cv_prog_BISON="$ac_prog"
5213506e 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
6954 break 2
6955 fi
6956done
5213506e
RW
6957 done
6958IFS=$as_save_IFS
1c710c3c 6959
2abefe3d
PB
6960fi
6961fi
1c710c3c 6962BISON=$ac_cv_prog_BISON
2abefe3d 6963if test -n "$BISON"; then
5213506e
RW
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6965$as_echo "$BISON" >&6; }
2abefe3d 6966else
5213506e
RW
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
2abefe3d
PB
6969fi
6970
5213506e 6971
1c710c3c 6972 test -n "$BISON" && break
2abefe3d
PB
6973done
6974test -n "$BISON" || BISON="$MISSING bison"
6975
6976case " $build_configdirs " in
6977 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6978esac
6979
6980for ac_prog in gm4 gnum4 m4
6981do
1c710c3c 6982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6983set dummy $ac_prog; ac_word=$2
5213506e
RW
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if test "${ac_cv_prog_M4+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
2abefe3d
PB
6988else
6989 if test -n "$M4"; then
6990 ac_cv_prog_M4="$M4" # Let the user override the test.
6991else
1c710c3c
DJ
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
5213506e
RW
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 6999 ac_cv_prog_M4="$ac_prog"
5213506e 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7001 break 2
7002 fi
7003done
5213506e
RW
7004 done
7005IFS=$as_save_IFS
1c710c3c 7006
2abefe3d
PB
7007fi
7008fi
1c710c3c 7009M4=$ac_cv_prog_M4
2abefe3d 7010if test -n "$M4"; then
5213506e
RW
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7012$as_echo "$M4" >&6; }
2abefe3d 7013else
5213506e
RW
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
2abefe3d
PB
7016fi
7017
5213506e 7018
1c710c3c 7019 test -n "$M4" && break
2abefe3d
PB
7020done
7021test -n "$M4" || M4="$MISSING m4"
7022
7023case " $build_configdirs " in
7024 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7025esac
7026
7027for ac_prog in flex lex
7028do
1c710c3c 7029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7030set dummy $ac_prog; ac_word=$2
5213506e
RW
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if test "${ac_cv_prog_LEX+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
2abefe3d
PB
7035else
7036 if test -n "$LEX"; then
7037 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7038else
1c710c3c
DJ
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
5213506e
RW
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7046 ac_cv_prog_LEX="$ac_prog"
5213506e 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7048 break 2
7049 fi
7050done
5213506e
RW
7051 done
7052IFS=$as_save_IFS
1c710c3c 7053
2abefe3d
PB
7054fi
7055fi
1c710c3c 7056LEX=$ac_cv_prog_LEX
2abefe3d 7057if test -n "$LEX"; then
5213506e
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7059$as_echo "$LEX" >&6; }
2abefe3d 7060else
5213506e
RW
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
2abefe3d
PB
7063fi
7064
5213506e 7065
1c710c3c 7066 test -n "$LEX" && break
2abefe3d
PB
7067done
7068test -n "$LEX" || LEX="$MISSING flex"
7069
7070case " $build_configdirs " in
7071 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7072 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7073esac
7074
7075for ac_prog in flex
7076do
1c710c3c 7077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7078set dummy $ac_prog; ac_word=$2
5213506e
RW
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if test "${ac_cv_prog_FLEX+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
2abefe3d
PB
7083else
7084 if test -n "$FLEX"; then
7085 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7086else
1c710c3c
DJ
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
5213506e
RW
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7094 ac_cv_prog_FLEX="$ac_prog"
5213506e 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7096 break 2
7097 fi
7098done
5213506e
RW
7099 done
7100IFS=$as_save_IFS
1c710c3c 7101
2abefe3d
PB
7102fi
7103fi
1c710c3c 7104FLEX=$ac_cv_prog_FLEX
2abefe3d 7105if test -n "$FLEX"; then
5213506e
RW
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7107$as_echo "$FLEX" >&6; }
2abefe3d 7108else
5213506e
RW
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
2abefe3d
PB
7111fi
7112
5213506e 7113
1c710c3c 7114 test -n "$FLEX" && break
2abefe3d
PB
7115done
7116test -n "$FLEX" || FLEX="$MISSING flex"
7117
7118case " $build_configdirs " in
7119 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7120esac
7121
7122for ac_prog in makeinfo
7123do
1c710c3c 7124 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7125set dummy $ac_prog; ac_word=$2
5213506e
RW
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
2abefe3d
PB
7130else
7131 if test -n "$MAKEINFO"; then
7132 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7133else
1c710c3c
DJ
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
5213506e
RW
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7141 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7143 break 2
7144 fi
7145done
5213506e
RW
7146 done
7147IFS=$as_save_IFS
1c710c3c 7148
2abefe3d
PB
7149fi
7150fi
1c710c3c 7151MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7152if test -n "$MAKEINFO"; then
5213506e
RW
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7154$as_echo "$MAKEINFO" >&6; }
2abefe3d 7155else
5213506e
RW
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
2abefe3d
PB
7158fi
7159
5213506e 7160
1c710c3c 7161 test -n "$MAKEINFO" && break
2abefe3d
PB
7162done
7163test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7164
7165case " $build_configdirs " in
7166 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7167 *)
7168
d18ff35a 7169 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7170 # higher, else we use the "missing" dummy.
7171 if ${MAKEINFO} --version \
d18ff35a 7172 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7173 :
7174 else
7175 MAKEINFO="$MISSING makeinfo"
7176 fi
7177 ;;
7178
7179esac
671aa708 7180
2abefe3d 7181# FIXME: expect and dejagnu may become build tools?
671aa708 7182
2abefe3d
PB
7183for ac_prog in expect
7184do
1c710c3c 7185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7186set dummy $ac_prog; ac_word=$2
5213506e
RW
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if test "${ac_cv_prog_EXPECT+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
2abefe3d
PB
7191else
7192 if test -n "$EXPECT"; then
7193 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7194else
1c710c3c
DJ
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
5213506e
RW
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7202 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7204 break 2
7205 fi
7206done
5213506e
RW
7207 done
7208IFS=$as_save_IFS
1c710c3c 7209
2abefe3d
PB
7210fi
7211fi
1c710c3c 7212EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7213if test -n "$EXPECT"; then
5213506e
RW
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7215$as_echo "$EXPECT" >&6; }
2abefe3d 7216else
5213506e
RW
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
2abefe3d 7219fi
671aa708 7220
5213506e 7221
1c710c3c 7222 test -n "$EXPECT" && break
2abefe3d
PB
7223done
7224test -n "$EXPECT" || EXPECT="expect"
671aa708 7225
2abefe3d
PB
7226case " $configdirs " in
7227 *" expect "*)
7228 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7229 ;;
7230esac
671aa708 7231
2abefe3d
PB
7232for ac_prog in runtest
7233do
1c710c3c 7234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7235set dummy $ac_prog; ac_word=$2
5213506e
RW
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
2abefe3d
PB
7240else
7241 if test -n "$RUNTEST"; then
7242 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7243else
1c710c3c
DJ
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
5213506e
RW
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7251 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7253 break 2
7254 fi
7255done
5213506e
RW
7256 done
7257IFS=$as_save_IFS
1c710c3c 7258
2abefe3d
PB
7259fi
7260fi
1c710c3c 7261RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7262if test -n "$RUNTEST"; then
5213506e
RW
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7264$as_echo "$RUNTEST" >&6; }
2abefe3d 7265else
5213506e
RW
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
2abefe3d 7268fi
671aa708 7269
5213506e 7270
1c710c3c 7271 test -n "$RUNTEST" && break
2abefe3d
PB
7272done
7273test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7274
2abefe3d
PB
7275case " $configdirs " in
7276 *" dejagnu "*)
c394e891 7277 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7278 ;;
7279esac
671aa708
NN
7280
7281
671aa708 7282# Host tools.
ca9f4b81
AO
7283ncn_tool_prefix=
7284test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7285ncn_target_tool_prefix=
7286test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7287
278a7a38
AO
7288
7289
7290if test -n "$AR"; then
7291 ac_cv_prog_AR=$AR
7292elif test -n "$ac_cv_prog_AR"; then
7293 AR=$ac_cv_prog_AR
7294fi
7295
7296if test -n "$ac_cv_prog_AR"; then
7297 for ncn_progname in ar; do
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if test "${ac_cv_prog_AR+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
278a7a38
AO
7304else
7305 if test -n "$AR"; then
7306 ac_cv_prog_AR="$AR" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
5213506e
RW
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7315 ac_cv_prog_AR="${ncn_progname}"
5213506e 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7317 break 2
7318 fi
7319done
5213506e
RW
7320 done
7321IFS=$as_save_IFS
278a7a38
AO
7322
7323fi
7324fi
7325AR=$ac_cv_prog_AR
7326if test -n "$AR"; then
5213506e
RW
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7328$as_echo "$AR" >&6; }
278a7a38 7329else
5213506e
RW
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
278a7a38
AO
7332fi
7333
5213506e 7334
278a7a38
AO
7335 done
7336fi
7337
7338for ncn_progname in ar; do
2693c0b0
PB
7339 if test -n "$ncn_tool_prefix"; then
7340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_AR+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7346else
7347 if test -n "$AR"; then
7348 ac_cv_prog_AR="$AR" # Let the user override the test.
7349else
1c710c3c
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
5213506e
RW
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7357 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7359 break 2
7360 fi
7361done
5213506e
RW
7362 done
7363IFS=$as_save_IFS
1c710c3c 7364
ca9f4b81
AO
7365fi
7366fi
1c710c3c 7367AR=$ac_cv_prog_AR
ca9f4b81 7368if test -n "$AR"; then
5213506e
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7370$as_echo "$AR" >&6; }
ca9f4b81 7371else
5213506e
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
ca9f4b81
AO
7374fi
7375
5213506e 7376
2693c0b0
PB
7377 fi
7378 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382$as_echo_n "checking for $ac_word... " >&6; }
7383if test "${ac_cv_prog_AR+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
ca9f4b81 7385else
2693c0b0 7386 if test -n "$AR"; then
af71363e
AS
7387 ac_cv_prog_AR="$AR" # Let the user override the test.
7388else
1c710c3c
DJ
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
5213506e
RW
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7396 ac_cv_prog_AR="${ncn_progname}"
5213506e 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7398 break 2
7399 fi
7400done
5213506e
RW
7401 done
7402IFS=$as_save_IFS
1c710c3c 7403
ca9f4b81
AO
7404fi
7405fi
1c710c3c 7406AR=$ac_cv_prog_AR
2693c0b0 7407if test -n "$AR"; then
5213506e
RW
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7409$as_echo "$AR" >&6; }
ca9f4b81 7410else
5213506e
RW
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
ca9f4b81 7413fi
1c710c3c 7414
5213506e 7415
2693c0b0
PB
7416 fi
7417 test -n "$ac_cv_prog_AR" && break
7418done
7419
7420if test -z "$ac_cv_prog_AR" ; then
7421 set dummy ar
7422 if test $build = $host ; then
7423 AR="$2"
ca9f4b81 7424 else
2693c0b0 7425 AR="${ncn_tool_prefix}$2"
ca9f4b81 7426 fi
ca9f4b81
AO
7427fi
7428
278a7a38
AO
7429
7430
7431if test -n "$AS"; then
7432 ac_cv_prog_AS=$AS
7433elif test -n "$ac_cv_prog_AS"; then
7434 AS=$ac_cv_prog_AS
7435fi
7436
7437if test -n "$ac_cv_prog_AS"; then
7438 for ncn_progname in as; do
7439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7440set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if test "${ac_cv_prog_AS+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
278a7a38
AO
7445else
7446 if test -n "$AS"; then
7447 ac_cv_prog_AS="$AS" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
5213506e
RW
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7456 ac_cv_prog_AS="${ncn_progname}"
5213506e 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7458 break 2
7459 fi
7460done
5213506e
RW
7461 done
7462IFS=$as_save_IFS
278a7a38
AO
7463
7464fi
7465fi
7466AS=$ac_cv_prog_AS
7467if test -n "$AS"; then
5213506e
RW
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7469$as_echo "$AS" >&6; }
278a7a38 7470else
5213506e
RW
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
278a7a38
AO
7473fi
7474
5213506e 7475
278a7a38
AO
7476 done
7477fi
7478
7479for ncn_progname in as; do
2693c0b0
PB
7480 if test -n "$ncn_tool_prefix"; then
7481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_AS+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7487else
7488 if test -n "$AS"; then
7489 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7490else
1c710c3c
DJ
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
5213506e
RW
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7498 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7500 break 2
7501 fi
7502done
5213506e
RW
7503 done
7504IFS=$as_save_IFS
1c710c3c 7505
ca9f4b81
AO
7506fi
7507fi
1c710c3c 7508AS=$ac_cv_prog_AS
ca9f4b81 7509if test -n "$AS"; then
5213506e
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7511$as_echo "$AS" >&6; }
ca9f4b81 7512else
5213506e
RW
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
ca9f4b81
AO
7515fi
7516
5213506e 7517
2693c0b0
PB
7518 fi
7519 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7521set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if test "${ac_cv_prog_AS+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
ca9f4b81 7526else
2693c0b0
PB
7527 if test -n "$AS"; then
7528 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7529else
1c710c3c
DJ
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
5213506e
RW
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7537 ac_cv_prog_AS="${ncn_progname}"
5213506e 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7539 break 2
7540 fi
7541done
5213506e
RW
7542 done
7543IFS=$as_save_IFS
1c710c3c 7544
ca9f4b81
AO
7545fi
7546fi
1c710c3c 7547AS=$ac_cv_prog_AS
2693c0b0 7548if test -n "$AS"; then
5213506e
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7550$as_echo "$AS" >&6; }
ca9f4b81 7551else
5213506e
RW
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
ca9f4b81 7554fi
1c710c3c 7555
5213506e 7556
2693c0b0
PB
7557 fi
7558 test -n "$ac_cv_prog_AS" && break
7559done
7560
7561if test -z "$ac_cv_prog_AS" ; then
7562 set dummy as
7563 if test $build = $host ; then
7564 AS="$2"
ca9f4b81 7565 else
2693c0b0 7566 AS="${ncn_tool_prefix}$2"
ca9f4b81 7567 fi
ca9f4b81
AO
7568fi
7569
278a7a38
AO
7570
7571
7572if test -n "$DLLTOOL"; then
7573 ac_cv_prog_DLLTOOL=$DLLTOOL
7574elif test -n "$ac_cv_prog_DLLTOOL"; then
7575 DLLTOOL=$ac_cv_prog_DLLTOOL
7576fi
7577
7578if test -n "$ac_cv_prog_DLLTOOL"; then
7579 for ncn_progname in dlltool; do
7580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
7584if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
278a7a38
AO
7586else
7587 if test -n "$DLLTOOL"; then
7588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
5213506e
RW
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7597 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7599 break 2
7600 fi
7601done
5213506e
RW
7602 done
7603IFS=$as_save_IFS
278a7a38
AO
7604
7605fi
7606fi
7607DLLTOOL=$ac_cv_prog_DLLTOOL
7608if test -n "$DLLTOOL"; then
5213506e
RW
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7610$as_echo "$DLLTOOL" >&6; }
278a7a38 7611else
5213506e
RW
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
278a7a38
AO
7614fi
7615
5213506e 7616
278a7a38
AO
7617 done
7618fi
7619
7620for ncn_progname in dlltool; do
2693c0b0
PB
7621 if test -n "$ncn_tool_prefix"; then
7622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7628else
7629 if test -n "$DLLTOOL"; then
7630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7631else
1c710c3c
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
5213506e
RW
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7639 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7641 break 2
7642 fi
7643done
5213506e
RW
7644 done
7645IFS=$as_save_IFS
1c710c3c 7646
ca9f4b81
AO
7647fi
7648fi
1c710c3c 7649DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7650if test -n "$DLLTOOL"; then
5213506e
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7652$as_echo "$DLLTOOL" >&6; }
ca9f4b81 7653else
5213506e
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
ca9f4b81
AO
7656fi
7657
5213506e 7658
2693c0b0
PB
7659 fi
7660 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
7665if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
ca9f4b81 7667else
2693c0b0
PB
7668 if test -n "$DLLTOOL"; then
7669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7670else
1c710c3c
DJ
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
5213506e
RW
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7678 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7680 break 2
7681 fi
7682done
5213506e
RW
7683 done
7684IFS=$as_save_IFS
1c710c3c 7685
ca9f4b81
AO
7686fi
7687fi
1c710c3c 7688DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7689if test -n "$DLLTOOL"; then
5213506e
RW
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7691$as_echo "$DLLTOOL" >&6; }
ca9f4b81 7692else
5213506e
RW
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
ca9f4b81 7695fi
1c710c3c 7696
5213506e 7697
2693c0b0
PB
7698 fi
7699 test -n "$ac_cv_prog_DLLTOOL" && break
7700done
7701
7702if test -z "$ac_cv_prog_DLLTOOL" ; then
7703 set dummy dlltool
7704 if test $build = $host ; then
7705 DLLTOOL="$2"
ca9f4b81 7706 else
2693c0b0 7707 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7708 fi
ca9f4b81
AO
7709fi
7710
278a7a38
AO
7711
7712
7713if test -n "$LD"; then
7714 ac_cv_prog_LD=$LD
7715elif test -n "$ac_cv_prog_LD"; then
7716 LD=$ac_cv_prog_LD
7717fi
7718
7719if test -n "$ac_cv_prog_LD"; then
7720 for ncn_progname in ld; do
7721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7722set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_LD+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
278a7a38
AO
7727else
7728 if test -n "$LD"; then
7729 ac_cv_prog_LD="$LD" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
5213506e
RW
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7738 ac_cv_prog_LD="${ncn_progname}"
5213506e 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7740 break 2
7741 fi
7742done
5213506e
RW
7743 done
7744IFS=$as_save_IFS
278a7a38
AO
7745
7746fi
7747fi
7748LD=$ac_cv_prog_LD
7749if test -n "$LD"; then
5213506e
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751$as_echo "$LD" >&6; }
278a7a38 7752else
5213506e
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
278a7a38
AO
7755fi
7756
5213506e 7757
278a7a38
AO
7758 done
7759fi
7760
7761for ncn_progname in ld; do
2693c0b0
PB
7762 if test -n "$ncn_tool_prefix"; then
7763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_LD+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7769else
7770 if test -n "$LD"; then
7771 ac_cv_prog_LD="$LD" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
5213506e
RW
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7780 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7782 break 2
7783 fi
7784done
5213506e
RW
7785 done
7786IFS=$as_save_IFS
1c710c3c 7787
ca9f4b81
AO
7788fi
7789fi
1c710c3c 7790LD=$ac_cv_prog_LD
ca9f4b81 7791if test -n "$LD"; then
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7793$as_echo "$LD" >&6; }
ca9f4b81 7794else
5213506e
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
ca9f4b81
AO
7797fi
7798
5213506e 7799
2693c0b0
PB
7800 fi
7801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if test "${ac_cv_prog_LD+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
ca9f4b81 7808else
2693c0b0
PB
7809 if test -n "$LD"; then
7810 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7811else
1c710c3c
DJ
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
5213506e
RW
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7819 ac_cv_prog_LD="${ncn_progname}"
5213506e 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7821 break 2
7822 fi
7823done
5213506e
RW
7824 done
7825IFS=$as_save_IFS
1c710c3c 7826
ca9f4b81
AO
7827fi
7828fi
1c710c3c 7829LD=$ac_cv_prog_LD
2693c0b0 7830if test -n "$LD"; then
5213506e
RW
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7832$as_echo "$LD" >&6; }
ca9f4b81 7833else
5213506e
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
ca9f4b81 7836fi
1c710c3c 7837
5213506e 7838
2693c0b0
PB
7839 fi
7840 test -n "$ac_cv_prog_LD" && break
7841done
7842
7843if test -z "$ac_cv_prog_LD" ; then
7844 set dummy ld
7845 if test $build = $host ; then
7846 LD="$2"
ca9f4b81 7847 else
2693c0b0 7848 LD="${ncn_tool_prefix}$2"
ca9f4b81 7849 fi
ca9f4b81
AO
7850fi
7851
278a7a38
AO
7852
7853
7854if test -n "$LIPO"; then
7855 ac_cv_prog_LIPO=$LIPO
7856elif test -n "$ac_cv_prog_LIPO"; then
7857 LIPO=$ac_cv_prog_LIPO
7858fi
7859
7860if test -n "$ac_cv_prog_LIPO"; then
7861 for ncn_progname in lipo; do
7862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7863set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_LIPO+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
278a7a38
AO
7868else
7869 if test -n "$LIPO"; then
7870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
5213506e
RW
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7879 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7881 break 2
7882 fi
7883done
5213506e
RW
7884 done
7885IFS=$as_save_IFS
278a7a38
AO
7886
7887fi
7888fi
7889LIPO=$ac_cv_prog_LIPO
7890if test -n "$LIPO"; then
5213506e
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7892$as_echo "$LIPO" >&6; }
278a7a38 7893else
5213506e
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
278a7a38
AO
7896fi
7897
5213506e 7898
278a7a38
AO
7899 done
7900fi
7901
7902for ncn_progname in lipo; do
2abefe3d
PB
7903 if test -n "$ncn_tool_prefix"; then
7904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907$as_echo_n "checking for $ac_word... " >&6; }
7908if test "${ac_cv_prog_LIPO+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
2abefe3d
PB
7910else
7911 if test -n "$LIPO"; then
7912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7913else
1c710c3c
DJ
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
5213506e
RW
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7921 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7923 break 2
7924 fi
7925done
5213506e
RW
7926 done
7927IFS=$as_save_IFS
1c710c3c 7928
2abefe3d
PB
7929fi
7930fi
1c710c3c 7931LIPO=$ac_cv_prog_LIPO
2abefe3d 7932if test -n "$LIPO"; then
5213506e
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7934$as_echo "$LIPO" >&6; }
2abefe3d 7935else
5213506e
RW
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
2abefe3d
PB
7938fi
7939
5213506e 7940
2abefe3d
PB
7941 fi
7942 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7944set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
7947if test "${ac_cv_prog_LIPO+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
2abefe3d
PB
7949else
7950 if test -n "$LIPO"; then
7951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7952else
1c710c3c
DJ
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
5213506e
RW
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7960 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7962 break 2
7963 fi
7964done
5213506e
RW
7965 done
7966IFS=$as_save_IFS
1c710c3c 7967
2abefe3d
PB
7968fi
7969fi
1c710c3c 7970LIPO=$ac_cv_prog_LIPO
2abefe3d 7971if test -n "$LIPO"; then
5213506e
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7973$as_echo "$LIPO" >&6; }
2abefe3d 7974else
5213506e
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
2abefe3d 7977fi
1c710c3c 7978
5213506e 7979
2abefe3d
PB
7980 fi
7981 test -n "$ac_cv_prog_LIPO" && break
7982done
7983
7984if test -z "$ac_cv_prog_LIPO" ; then
7985 set dummy lipo
7986 if test $build = $host ; then
7987 LIPO="$2"
7988 else
7989 LIPO="${ncn_tool_prefix}$2"
7990 fi
7991fi
7992
278a7a38
AO
7993
7994
7995if test -n "$NM"; then
7996 ac_cv_prog_NM=$NM
7997elif test -n "$ac_cv_prog_NM"; then
7998 NM=$ac_cv_prog_NM
7999fi
8000
8001if test -n "$ac_cv_prog_NM"; then
8002 for ncn_progname in nm; do
8003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8004set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
8007if test "${ac_cv_prog_NM+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8009else
8010 if test -n "$NM"; then
8011 ac_cv_prog_NM="$NM" # Let the user override the test.
8012else
1c710c3c
DJ
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
5213506e
RW
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8020 ac_cv_prog_NM="${ncn_progname}"
5213506e 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8022 break 2
8023 fi
8024done
5213506e
RW
8025 done
8026IFS=$as_save_IFS
1c710c3c 8027
ca9f4b81
AO
8028fi
8029fi
1c710c3c 8030NM=$ac_cv_prog_NM
ca9f4b81 8031if test -n "$NM"; then
5213506e
RW
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8033$as_echo "$NM" >&6; }
ca9f4b81 8034else
5213506e
RW
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
ca9f4b81
AO
8037fi
8038
5213506e 8039
278a7a38
AO
8040 done
8041fi
8042
8043for ncn_progname in nm; do
8044 if test -n "$ncn_tool_prefix"; then
8045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8046set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if test "${ac_cv_prog_NM+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
ca9f4b81 8051else
2693c0b0
PB
8052 if test -n "$NM"; then
8053 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8054else
1c710c3c
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
5213506e
RW
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8062 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8064 break 2
8065 fi
8066done
5213506e
RW
8067 done
8068IFS=$as_save_IFS
1c710c3c 8069
ca9f4b81
AO
8070fi
8071fi
1c710c3c 8072NM=$ac_cv_prog_NM
2693c0b0 8073if test -n "$NM"; then
5213506e
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8075$as_echo "$NM" >&6; }
ca9f4b81 8076else
5213506e
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
ca9f4b81 8079fi
1c710c3c 8080
5213506e 8081
2693c0b0 8082 fi
278a7a38
AO
8083 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if test "${ac_cv_prog_NM+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
278a7a38
AO
8090else
8091 if test -n "$NM"; then
8092 ac_cv_prog_NM="$NM" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
5213506e
RW
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8101 ac_cv_prog_NM="${ncn_progname}"
5213506e 8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8103 break 2
8104 fi
8105done
5213506e
RW
8106 done
8107IFS=$as_save_IFS
278a7a38
AO
8108
8109fi
8110fi
8111NM=$ac_cv_prog_NM
8112if test -n "$NM"; then
5213506e
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8114$as_echo "$NM" >&6; }
278a7a38 8115else
5213506e
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
278a7a38
AO
8118fi
8119
5213506e 8120
278a7a38
AO
8121 fi
8122 test -n "$ac_cv_prog_NM" && break
8123done
8124
8125if test -z "$ac_cv_prog_NM" ; then
8126 set dummy nm
8127 if test $build = $host ; then
8128 NM="$2"
8129 else
8130 NM="${ncn_tool_prefix}$2"
8131 fi
8132fi
8133
8134
8135
8136if test -n "$RANLIB"; then
8137 ac_cv_prog_RANLIB=$RANLIB
8138elif test -n "$ac_cv_prog_RANLIB"; then
8139 RANLIB=$ac_cv_prog_RANLIB
8140fi
8141
8142if test -n "$ac_cv_prog_RANLIB"; then
8143 for ncn_progname in ranlib; do
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147$as_echo_n "checking for $ac_word... " >&6; }
8148if test "${ac_cv_prog_RANLIB+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
278a7a38
AO
8150else
8151 if test -n "$RANLIB"; then
8152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
5213506e
RW
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8161 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8163 break 2
8164 fi
8165done
5213506e
RW
8166 done
8167IFS=$as_save_IFS
278a7a38
AO
8168
8169fi
8170fi
8171RANLIB=$ac_cv_prog_RANLIB
8172if test -n "$RANLIB"; then
5213506e
RW
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8174$as_echo "$RANLIB" >&6; }
278a7a38 8175else
5213506e
RW
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177$as_echo "no" >&6; }
278a7a38
AO
8178fi
8179
5213506e 8180
278a7a38
AO
8181 done
8182fi
ca9f4b81 8183
278a7a38 8184for ncn_progname in ranlib; do
2693c0b0
PB
8185 if test -n "$ncn_tool_prefix"; then
8186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8187set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_RANLIB+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8192else
8193 if test -n "$RANLIB"; then
8194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8195else
1c710c3c
DJ
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
5213506e
RW
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8203 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8205 break 2
8206 fi
8207done
5213506e
RW
8208 done
8209IFS=$as_save_IFS
1c710c3c 8210
ca9f4b81
AO
8211fi
8212fi
1c710c3c 8213RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8214if test -n "$RANLIB"; then
5213506e
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8216$as_echo "$RANLIB" >&6; }
ca9f4b81 8217else
5213506e
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
ca9f4b81
AO
8220fi
8221
5213506e 8222
2693c0b0
PB
8223 fi
8224 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_RANLIB+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
ca9f4b81 8231else
2693c0b0
PB
8232 if test -n "$RANLIB"; then
8233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8234else
1c710c3c
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
5213506e
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8242 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8244 break 2
8245 fi
8246done
5213506e
RW
8247 done
8248IFS=$as_save_IFS
1c710c3c 8249
ca9f4b81
AO
8250fi
8251fi
1c710c3c 8252RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8253if test -n "$RANLIB"; then
5213506e
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8255$as_echo "$RANLIB" >&6; }
ca9f4b81 8256else
5213506e
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
ca9f4b81 8259fi
1c710c3c 8260
5213506e 8261
ca9f4b81 8262 fi
2693c0b0
PB
8263 test -n "$ac_cv_prog_RANLIB" && break
8264done
8265
8266if test -z "$ac_cv_prog_RANLIB" ; then
8267 RANLIB=":"
ca9f4b81
AO
8268fi
8269
278a7a38
AO
8270
8271
8272if test -n "$STRIP"; then
8273 ac_cv_prog_STRIP=$STRIP
8274elif test -n "$ac_cv_prog_STRIP"; then
8275 STRIP=$ac_cv_prog_STRIP
8276fi
8277
8278if test -n "$ac_cv_prog_STRIP"; then
8279 for ncn_progname in strip; do
8280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if test "${ac_cv_prog_STRIP+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
278a7a38
AO
8286else
8287 if test -n "$STRIP"; then
8288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
5213506e
RW
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8297 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8299 break 2
8300 fi
8301done
5213506e
RW
8302 done
8303IFS=$as_save_IFS
278a7a38
AO
8304
8305fi
8306fi
8307STRIP=$ac_cv_prog_STRIP
8308if test -n "$STRIP"; then
5213506e
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8310$as_echo "$STRIP" >&6; }
278a7a38 8311else
5213506e
RW
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
278a7a38
AO
8314fi
8315
5213506e 8316
278a7a38
AO
8317 done
8318fi
8319
8320for ncn_progname in strip; do
2abefe3d
PB
8321 if test -n "$ncn_tool_prefix"; then
8322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8323set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325$as_echo_n "checking for $ac_word... " >&6; }
8326if test "${ac_cv_prog_STRIP+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
2abefe3d
PB
8328else
8329 if test -n "$STRIP"; then
8330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8331else
1c710c3c
DJ
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
5213506e
RW
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8339 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8341 break 2
8342 fi
8343done
5213506e
RW
8344 done
8345IFS=$as_save_IFS
1c710c3c 8346
2abefe3d
PB
8347fi
8348fi
1c710c3c 8349STRIP=$ac_cv_prog_STRIP
2abefe3d 8350if test -n "$STRIP"; then
5213506e
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8352$as_echo "$STRIP" >&6; }
2abefe3d 8353else
5213506e
RW
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
2abefe3d
PB
8356fi
8357
5213506e 8358
2abefe3d
PB
8359 fi
8360 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_STRIP+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
2abefe3d
PB
8367else
8368 if test -n "$STRIP"; then
8369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8370else
1c710c3c
DJ
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
5213506e
RW
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8378 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8380 break 2
8381 fi
8382done
5213506e
RW
8383 done
8384IFS=$as_save_IFS
1c710c3c 8385
2abefe3d
PB
8386fi
8387fi
1c710c3c 8388STRIP=$ac_cv_prog_STRIP
2abefe3d 8389if test -n "$STRIP"; then
5213506e
RW
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8391$as_echo "$STRIP" >&6; }
2abefe3d 8392else
5213506e
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
2abefe3d 8395fi
1c710c3c 8396
5213506e 8397
2abefe3d
PB
8398 fi
8399 test -n "$ac_cv_prog_STRIP" && break
8400done
8401
8402if test -z "$ac_cv_prog_STRIP" ; then
8403 STRIP=":"
8404fi
8405
278a7a38
AO
8406
8407
8408if test -n "$WINDRES"; then
8409 ac_cv_prog_WINDRES=$WINDRES
8410elif test -n "$ac_cv_prog_WINDRES"; then
8411 WINDRES=$ac_cv_prog_WINDRES
8412fi
8413
8414if test -n "$ac_cv_prog_WINDRES"; then
8415 for ncn_progname in windres; do
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419$as_echo_n "checking for $ac_word... " >&6; }
8420if test "${ac_cv_prog_WINDRES+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
278a7a38
AO
8422else
8423 if test -n "$WINDRES"; then
8424 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8425else
8426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
5213506e
RW
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8433 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8435 break 2
8436 fi
8437done
5213506e
RW
8438 done
8439IFS=$as_save_IFS
278a7a38
AO
8440
8441fi
8442fi
8443WINDRES=$ac_cv_prog_WINDRES
8444if test -n "$WINDRES"; then
5213506e
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8446$as_echo "$WINDRES" >&6; }
278a7a38 8447else
5213506e
RW
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449$as_echo "no" >&6; }
278a7a38
AO
8450fi
8451
5213506e 8452
278a7a38
AO
8453 done
8454fi
8455
8456for ncn_progname in windres; do
2693c0b0
PB
8457 if test -n "$ncn_tool_prefix"; then
8458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8459set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if test "${ac_cv_prog_WINDRES+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8464else
8465 if test -n "$WINDRES"; then
8466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8467else
1c710c3c
DJ
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
5213506e
RW
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8475 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8477 break 2
8478 fi
8479done
5213506e
RW
8480 done
8481IFS=$as_save_IFS
1c710c3c 8482
ca9f4b81
AO
8483fi
8484fi
1c710c3c 8485WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8486if test -n "$WINDRES"; then
5213506e
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8488$as_echo "$WINDRES" >&6; }
ca9f4b81 8489else
5213506e
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
ca9f4b81
AO
8492fi
8493
5213506e 8494
2693c0b0
PB
8495 fi
8496 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_WINDRES+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
ca9f4b81 8503else
2693c0b0
PB
8504 if test -n "$WINDRES"; then
8505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8506else
1c710c3c
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
5213506e
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8514 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8516 break 2
8517 fi
8518done
5213506e
RW
8519 done
8520IFS=$as_save_IFS
1c710c3c 8521
ca9f4b81
AO
8522fi
8523fi
1c710c3c 8524WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8525if test -n "$WINDRES"; then
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8527$as_echo "$WINDRES" >&6; }
ca9f4b81 8528else
5213506e
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
ca9f4b81 8531fi
1c710c3c 8532
5213506e 8533
2693c0b0
PB
8534 fi
8535 test -n "$ac_cv_prog_WINDRES" && break
8536done
8537
8538if test -z "$ac_cv_prog_WINDRES" ; then
8539 set dummy windres
8540 if test $build = $host ; then
8541 WINDRES="$2"
ca9f4b81 8542 else
2693c0b0 8543 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 8544 fi
ca9f4b81
AO
8545fi
8546
278a7a38
AO
8547
8548
901119ae
KT
8549if test -n "$WINDMC"; then
8550 ac_cv_prog_WINDMC=$WINDMC
8551elif test -n "$ac_cv_prog_WINDMC"; then
8552 WINDMC=$ac_cv_prog_WINDMC
8553fi
8554
8555if test -n "$ac_cv_prog_WINDMC"; then
8556 for ncn_progname in windmc; do
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560$as_echo_n "checking for $ac_word... " >&6; }
8561if test "${ac_cv_prog_WINDMC+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
901119ae
KT
8563else
8564 if test -n "$WINDMC"; then
8565 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8566else
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
5213506e
RW
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 8574 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
8576 break 2
8577 fi
8578done
5213506e
RW
8579 done
8580IFS=$as_save_IFS
901119ae
KT
8581
8582fi
8583fi
8584WINDMC=$ac_cv_prog_WINDMC
8585if test -n "$WINDMC"; then
5213506e
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8587$as_echo "$WINDMC" >&6; }
901119ae 8588else
5213506e
RW
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
901119ae
KT
8591fi
8592
5213506e 8593
901119ae
KT
8594 done
8595fi
8596
8597for ncn_progname in windmc; do
8598 if test -n "$ncn_tool_prefix"; then
8599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8600set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if test "${ac_cv_prog_WINDMC+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
901119ae
KT
8605else
8606 if test -n "$WINDMC"; then
8607 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
5213506e
RW
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 8616 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
8618 break 2
8619 fi
8620done
5213506e
RW
8621 done
8622IFS=$as_save_IFS
901119ae
KT
8623
8624fi
8625fi
8626WINDMC=$ac_cv_prog_WINDMC
8627if test -n "$WINDMC"; then
5213506e
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8629$as_echo "$WINDMC" >&6; }
901119ae 8630else
5213506e
RW
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
901119ae
KT
8633fi
8634
5213506e 8635
901119ae
KT
8636 fi
8637 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_WINDMC+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
901119ae
KT
8644else
8645 if test -n "$WINDMC"; then
8646 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8647else
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
5213506e
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 8655 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
8657 break 2
8658 fi
8659done
5213506e
RW
8660 done
8661IFS=$as_save_IFS
901119ae
KT
8662
8663fi
8664fi
8665WINDMC=$ac_cv_prog_WINDMC
8666if test -n "$WINDMC"; then
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8668$as_echo "$WINDMC" >&6; }
901119ae 8669else
5213506e
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
901119ae
KT
8672fi
8673
5213506e 8674
901119ae
KT
8675 fi
8676 test -n "$ac_cv_prog_WINDMC" && break
8677done
8678
8679if test -z "$ac_cv_prog_WINDMC" ; then
8680 set dummy windmc
8681 if test $build = $host ; then
8682 WINDMC="$2"
8683 else
8684 WINDMC="${ncn_tool_prefix}$2"
8685 fi
8686fi
8687
8688
8689
278a7a38
AO
8690if test -n "$OBJCOPY"; then
8691 ac_cv_prog_OBJCOPY=$OBJCOPY
8692elif test -n "$ac_cv_prog_OBJCOPY"; then
8693 OBJCOPY=$ac_cv_prog_OBJCOPY
8694fi
8695
8696if test -n "$ac_cv_prog_OBJCOPY"; then
8697 for ncn_progname in objcopy; do
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701$as_echo_n "checking for $ac_word... " >&6; }
8702if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
278a7a38
AO
8704else
8705 if test -n "$OBJCOPY"; then
8706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8707else
8708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
5213506e
RW
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8715 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8717 break 2
8718 fi
8719done
5213506e
RW
8720 done
8721IFS=$as_save_IFS
278a7a38
AO
8722
8723fi
8724fi
8725OBJCOPY=$ac_cv_prog_OBJCOPY
8726if test -n "$OBJCOPY"; then
5213506e
RW
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8728$as_echo "$OBJCOPY" >&6; }
278a7a38 8729else
5213506e
RW
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
278a7a38
AO
8732fi
8733
5213506e 8734
278a7a38
AO
8735 done
8736fi
8737
8738for ncn_progname in objcopy; do
2693c0b0
PB
8739 if test -n "$ncn_tool_prefix"; then
8740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743$as_echo_n "checking for $ac_word... " >&6; }
8744if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8746else
8747 if test -n "$OBJCOPY"; then
8748 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8749else
1c710c3c
DJ
8750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
5213506e
RW
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8757 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8759 break 2
8760 fi
8761done
5213506e
RW
8762 done
8763IFS=$as_save_IFS
1c710c3c 8764
ca9f4b81
AO
8765fi
8766fi
1c710c3c 8767OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8768if test -n "$OBJCOPY"; then
5213506e
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8770$as_echo "$OBJCOPY" >&6; }
ca9f4b81 8771else
5213506e
RW
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773$as_echo "no" >&6; }
ca9f4b81
AO
8774fi
8775
5213506e 8776
2693c0b0
PB
8777 fi
8778 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
ca9f4b81 8785else
2693c0b0
PB
8786 if test -n "$OBJCOPY"; then
8787 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8788else
1c710c3c
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
5213506e
RW
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8796 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8798 break 2
8799 fi
8800done
5213506e
RW
8801 done
8802IFS=$as_save_IFS
1c710c3c 8803
ca9f4b81
AO
8804fi
8805fi
1c710c3c 8806OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8807if test -n "$OBJCOPY"; then
5213506e
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8809$as_echo "$OBJCOPY" >&6; }
ca9f4b81 8810else
5213506e
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
ca9f4b81 8813fi
1c710c3c 8814
5213506e 8815
2693c0b0
PB
8816 fi
8817 test -n "$ac_cv_prog_OBJCOPY" && break
8818done
8819
8820if test -z "$ac_cv_prog_OBJCOPY" ; then
8821 set dummy objcopy
8822 if test $build = $host ; then
8823 OBJCOPY="$2"
ca9f4b81 8824 else
2693c0b0 8825 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8826 fi
ca9f4b81
AO
8827fi
8828
278a7a38
AO
8829
8830
8831if test -n "$OBJDUMP"; then
8832 ac_cv_prog_OBJDUMP=$OBJDUMP
8833elif test -n "$ac_cv_prog_OBJDUMP"; then
8834 OBJDUMP=$ac_cv_prog_OBJDUMP
8835fi
8836
8837if test -n "$ac_cv_prog_OBJDUMP"; then
8838 for ncn_progname in objdump; do
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
278a7a38
AO
8845else
8846 if test -n "$OBJDUMP"; then
8847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
5213506e
RW
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8856 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8858 break 2
8859 fi
8860done
5213506e
RW
8861 done
8862IFS=$as_save_IFS
278a7a38
AO
8863
8864fi
8865fi
8866OBJDUMP=$ac_cv_prog_OBJDUMP
8867if test -n "$OBJDUMP"; then
5213506e
RW
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8869$as_echo "$OBJDUMP" >&6; }
278a7a38 8870else
5213506e
RW
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
278a7a38
AO
8873fi
8874
5213506e 8875
278a7a38
AO
8876 done
8877fi
8878
8879for ncn_progname in objdump; do
2693c0b0
PB
8880 if test -n "$ncn_tool_prefix"; then
8881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8882set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884$as_echo_n "checking for $ac_word... " >&6; }
8885if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8887else
8888 if test -n "$OBJDUMP"; then
8889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8890else
1c710c3c
DJ
8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
5213506e
RW
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8898 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8900 break 2
8901 fi
8902done
5213506e
RW
8903 done
8904IFS=$as_save_IFS
1c710c3c 8905
ca9f4b81
AO
8906fi
8907fi
1c710c3c 8908OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8909if test -n "$OBJDUMP"; then
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8911$as_echo "$OBJDUMP" >&6; }
ca9f4b81 8912else
5213506e
RW
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914$as_echo "no" >&6; }
ca9f4b81
AO
8915fi
8916
5213506e 8917
2693c0b0
PB
8918 fi
8919 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
ca9f4b81 8926else
2693c0b0
PB
8927 if test -n "$OBJDUMP"; then
8928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8929else
1c710c3c
DJ
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
5213506e
RW
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8937 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8939 break 2
8940 fi
8941done
5213506e
RW
8942 done
8943IFS=$as_save_IFS
1c710c3c 8944
ca9f4b81
AO
8945fi
8946fi
1c710c3c 8947OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8948if test -n "$OBJDUMP"; then
5213506e
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8950$as_echo "$OBJDUMP" >&6; }
ca9f4b81 8951else
5213506e
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
ca9f4b81 8954fi
1c710c3c 8955
5213506e 8956
2693c0b0
PB
8957 fi
8958 test -n "$ac_cv_prog_OBJDUMP" && break
8959done
8960
8961if test -z "$ac_cv_prog_OBJDUMP" ; then
8962 set dummy objdump
8963 if test $build = $host ; then
8964 OBJDUMP="$2"
ca9f4b81 8965 else
2693c0b0 8966 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8967 fi
ca9f4b81
AO
8968fi
8969
671aa708
NN
8970
8971
8972
8973
8974
2abefe3d 8975# Target tools.
1c710c3c 8976
5213506e
RW
8977# Check whether --with-build-time-tools was given.
8978if test "${with_build_time_tools+set}" = set; then :
8979 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
8980 x/*) ;;
8981 *)
8982 with_build_time_tools=
5213506e
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8984$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8985 ;;
8986 esac
ca9f4b81 8987else
e8b05380 8988 with_build_time_tools=
5213506e
RW
8989fi
8990
ca9f4b81 8991
278a7a38
AO
8992
8993
8994if test -n "$CC_FOR_TARGET"; then
8995 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8996elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8997 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8998fi
8999
9000if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9001 for ncn_progname in cc gcc; do
9002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9003set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005$as_echo_n "checking for $ac_word... " >&6; }
9006if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
278a7a38
AO
9008else
9009 if test -n "$CC_FOR_TARGET"; then
9010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9011else
9012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013for as_dir in $PATH
9014do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
5213506e
RW
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9019 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9021 break 2
9022 fi
9023done
5213506e
RW
9024 done
9025IFS=$as_save_IFS
278a7a38
AO
9026
9027fi
9028fi
9029CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9030if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9032$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9033else
5213506e
RW
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035$as_echo "no" >&6; }
278a7a38
AO
9036fi
9037
5213506e 9038
278a7a38
AO
9039 done
9040fi
9041
9042if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9043 for ncn_progname in cc gcc; do
5213506e
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9045$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9046 if test -x $with_build_time_tools/${ncn_progname}; then
9047 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049$as_echo "yes" >&6; }
72a7ab82 9050 break
e8b05380 9051 else
5213506e
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
72a7ab82
AP
9054 fi
9055 done
4de997d1
PB
9056fi
9057
e8b05380
PB
9058if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9059 for ncn_progname in cc gcc; do
9060 if test -n "$ncn_target_tool_prefix"; then
9061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
4de997d1
PB
9067else
9068 if test -n "$CC_FOR_TARGET"; then
9069 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9070else
1c710c3c
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
5213506e
RW
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9078 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9080 break 2
9081 fi
9082done
5213506e
RW
9083 done
9084IFS=$as_save_IFS
1c710c3c 9085
4de997d1
PB
9086fi
9087fi
1c710c3c 9088CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9089if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9091$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9092else
5213506e
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
4de997d1
PB
9095fi
9096
5213506e 9097
e8b05380
PB
9098 fi
9099 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9101set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
4de997d1 9106else
2693c0b0
PB
9107 if test -n "$CC_FOR_TARGET"; then
9108 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9109else
1c710c3c
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
5213506e
RW
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9117 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9119 break 2
9120 fi
9121done
5213506e
RW
9122 done
9123IFS=$as_save_IFS
1c710c3c 9124
4de997d1
PB
9125fi
9126fi
1c710c3c 9127CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9128if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9130$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9131else
5213506e
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
4de997d1 9134fi
1c710c3c 9135
5213506e 9136
e8b05380
PB
9137 fi
9138 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9139 done
9140fi
1c710c3c 9141
2693c0b0
PB
9142if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9143 set dummy cc gcc
9144 if test $build = $target ; then
9145 CC_FOR_TARGET="$2"
4de997d1 9146 else
2693c0b0 9147 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9148 fi
1c00b503
PB
9149else
9150 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9151fi
9152
278a7a38
AO
9153
9154
9155if test -n "$CXX_FOR_TARGET"; then
9156 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9157elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9158 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9159fi
9160
9161if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9162 for ncn_progname in c++ g++ cxx gxx; do
9163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166$as_echo_n "checking for $ac_word... " >&6; }
9167if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
278a7a38
AO
9169else
9170 if test -n "$CXX_FOR_TARGET"; then
9171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9172else
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
5213506e
RW
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9182 break 2
9183 fi
9184done
5213506e
RW
9185 done
9186IFS=$as_save_IFS
278a7a38
AO
9187
9188fi
9189fi
9190CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9191if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9193$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9194else
5213506e
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196$as_echo "no" >&6; }
278a7a38
AO
9197fi
9198
5213506e 9199
278a7a38
AO
9200 done
9201fi
9202
9203if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9204 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9206$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9207 if test -x $with_build_time_tools/${ncn_progname}; then
9208 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9210$as_echo "yes" >&6; }
e8b05380
PB
9211 break
9212 else
5213506e
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
e8b05380
PB
9215 fi
9216 done
9217fi
9218
9219if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9220 for ncn_progname in c++ g++ cxx gxx; do
9221 if test -n "$ncn_target_tool_prefix"; then
9222 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9223set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
4de997d1
PB
9228else
9229 if test -n "$CXX_FOR_TARGET"; then
9230 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9231else
1c710c3c
DJ
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
5213506e
RW
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9239 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9241 break 2
9242 fi
9243done
5213506e
RW
9244 done
9245IFS=$as_save_IFS
1c710c3c 9246
4de997d1
PB
9247fi
9248fi
1c710c3c 9249CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9250if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9252$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9253else
5213506e
RW
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
4de997d1
PB
9256fi
9257
5213506e 9258
e8b05380
PB
9259 fi
9260 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9262set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264$as_echo_n "checking for $ac_word... " >&6; }
9265if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
4de997d1 9267else
2693c0b0
PB
9268 if test -n "$CXX_FOR_TARGET"; then
9269 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9270else
1c710c3c
DJ
9271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272for as_dir in $PATH
9273do
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
5213506e
RW
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9278 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9280 break 2
9281 fi
9282done
5213506e
RW
9283 done
9284IFS=$as_save_IFS
1c710c3c 9285
4de997d1
PB
9286fi
9287fi
1c710c3c 9288CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9289if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9291$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9292else
5213506e
RW
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
4de997d1 9295fi
1c710c3c 9296
5213506e 9297
e8b05380
PB
9298 fi
9299 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9300 done
9301fi
1c710c3c 9302
2693c0b0
PB
9303if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9304 set dummy c++ g++ cxx gxx
9305 if test $build = $target ; then
9306 CXX_FOR_TARGET="$2"
4de997d1 9307 else
2693c0b0 9308 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9309 fi
1c00b503
PB
9310else
9311 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9312fi
9313
278a7a38
AO
9314
9315
9316if test -n "$GCC_FOR_TARGET"; then
9317 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9318elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9319 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9320fi
9321
9322if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9323 for ncn_progname in gcc; do
9324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9325set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327$as_echo_n "checking for $ac_word... " >&6; }
9328if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
278a7a38
AO
9330else
9331 if test -n "$GCC_FOR_TARGET"; then
9332 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9333else
9334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335for as_dir in $PATH
9336do
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
5213506e
RW
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9341 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9343 break 2
9344 fi
9345done
5213506e
RW
9346 done
9347IFS=$as_save_IFS
278a7a38
AO
9348
9349fi
9350fi
9351GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9352if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9354$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 9355else
5213506e
RW
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357$as_echo "no" >&6; }
278a7a38
AO
9358fi
9359
5213506e 9360
278a7a38
AO
9361 done
9362fi
9363
9364if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9365 for ncn_progname in gcc; do
5213506e
RW
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9367$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9368 if test -x $with_build_time_tools/${ncn_progname}; then
9369 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371$as_echo "yes" >&6; }
e8b05380
PB
9372 break
9373 else
5213506e
RW
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
e8b05380
PB
9376 fi
9377 done
9378fi
9379
9380if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9381 for ncn_progname in gcc; do
9382 if test -n "$ncn_target_tool_prefix"; then
9383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9384set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386$as_echo_n "checking for $ac_word... " >&6; }
9387if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
ca9f4b81 9389else
e8b05380
PB
9390 if test -n "$GCC_FOR_TARGET"; then
9391 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9392else
1c710c3c
DJ
9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394for as_dir in $PATH
9395do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
5213506e
RW
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9400 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9402 break 2
9403 fi
9404done
5213506e
RW
9405 done
9406IFS=$as_save_IFS
1c710c3c 9407
ca9f4b81
AO
9408fi
9409fi
1c710c3c 9410GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9411if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9413$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 9414else
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
ca9f4b81
AO
9417fi
9418
5213506e 9419
e8b05380
PB
9420 fi
9421 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9423set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425$as_echo_n "checking for $ac_word... " >&6; }
9426if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
ca9f4b81 9428else
e8b05380
PB
9429 if test -n "$GCC_FOR_TARGET"; then
9430 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9431else
1c710c3c
DJ
9432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $PATH
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
5213506e
RW
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9439 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9441 break 2
9442 fi
9443done
5213506e
RW
9444 done
9445IFS=$as_save_IFS
1c710c3c 9446
ca9f4b81
AO
9447fi
9448fi
1c710c3c 9449GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9450if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9452$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 9453else
5213506e
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
ca9f4b81 9456fi
1c710c3c 9457
5213506e 9458
e8b05380
PB
9459 fi
9460 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9461 done
9462fi
1c710c3c 9463
e8b05380
PB
9464if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9465 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
9466else
9467 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
9468fi
9469
278a7a38
AO
9470
9471
9472if test -n "$GCJ_FOR_TARGET"; then
9473 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9474elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9475 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9476fi
9477
9478if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9479 for ncn_progname in gcj; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
9484if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
278a7a38
AO
9486else
9487 if test -n "$GCJ_FOR_TARGET"; then
9488 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
5213506e
RW
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9497 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9499 break 2
9500 fi
9501done
5213506e
RW
9502 done
9503IFS=$as_save_IFS
278a7a38
AO
9504
9505fi
9506fi
9507GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9508if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9510$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9511else
5213506e
RW
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
278a7a38
AO
9514fi
9515
5213506e 9516
278a7a38
AO
9517 done
9518fi
9519
9520if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9521 for ncn_progname in gcj; do
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9523$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9524 if test -x $with_build_time_tools/${ncn_progname}; then
9525 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9527$as_echo "yes" >&6; }
e8b05380
PB
9528 break
9529 else
5213506e
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531$as_echo "no" >&6; }
e8b05380
PB
9532 fi
9533 done
9534fi
9535
9536if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9537 for ncn_progname in gcj; do
9538 if test -n "$ncn_target_tool_prefix"; then
9539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
e8b05380 9545else
fb0103e5
RG
9546 if test -n "$GCJ_FOR_TARGET"; then
9547 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9548else
1c710c3c
DJ
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
5213506e
RW
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9556 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9558 break 2
9559 fi
9560done
5213506e
RW
9561 done
9562IFS=$as_save_IFS
1c710c3c 9563
e8b05380
PB
9564fi
9565fi
278a7a38
AO
9566GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9567if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9569$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9570else
5213506e
RW
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
278a7a38
AO
9573fi
9574
5213506e 9575
278a7a38
AO
9576 fi
9577 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
278a7a38
AO
9584else
9585 if test -n "$GCJ_FOR_TARGET"; then
9586 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
5213506e
RW
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9595 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9597 break 2
9598 fi
9599done
5213506e
RW
9600 done
9601IFS=$as_save_IFS
278a7a38
AO
9602
9603fi
9604fi
9605GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9606if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9608$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 9609else
5213506e
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
278a7a38
AO
9612fi
9613
5213506e 9614
278a7a38
AO
9615 fi
9616 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9617 done
9618fi
9619
9620if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9621 set dummy gcj
9622 if test $build = $target ; then
9623 GCJ_FOR_TARGET="$2"
9624 else
9625 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9626 fi
1c00b503
PB
9627else
9628 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9629fi
9630
9631
9632
9633if test -n "$GFORTRAN_FOR_TARGET"; then
9634 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9635elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9636 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9637fi
9638
278a7a38
AO
9639if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9640 for ncn_progname in gfortran; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9642set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; }
9645if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
e8b05380 9647else
278a7a38
AO
9648 if test -n "$GFORTRAN_FOR_TARGET"; then
9649 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9650else
1c710c3c
DJ
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
5213506e
RW
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9658 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9660 break 2
9661 fi
9662done
5213506e
RW
9663 done
9664IFS=$as_save_IFS
1c710c3c 9665
e8b05380
PB
9666fi
9667fi
278a7a38
AO
9668GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9669if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9671$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 9672else
5213506e
RW
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
e8b05380 9675fi
1c710c3c 9676
5213506e 9677
e8b05380
PB
9678 done
9679fi
1c710c3c 9680
278a7a38 9681if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9682 for ncn_progname in gfortran; do
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9684$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9685 if test -x $with_build_time_tools/${ncn_progname}; then
9686 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
e8b05380
PB
9689 break
9690 else
5213506e
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
e8b05380
PB
9693 fi
9694 done
9695fi
9696
9697if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9698 for ncn_progname in gfortran; do
9699 if test -n "$ncn_target_tool_prefix"; then
9700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703$as_echo_n "checking for $ac_word... " >&6; }
9704if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
e8b05380
PB
9706else
9707 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9708 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9709else
9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
5213506e
RW
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9717 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9719 break 2
9720 fi
9721done
5213506e
RW
9722 done
9723IFS=$as_save_IFS
1c710c3c 9724
e8b05380
PB
9725fi
9726fi
1c710c3c 9727GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9728if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9730$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 9731else
5213506e
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733$as_echo "no" >&6; }
e8b05380
PB
9734fi
9735
5213506e 9736
e8b05380
PB
9737 fi
9738 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9740set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
e8b05380
PB
9745else
9746 if test -n "$GFORTRAN_FOR_TARGET"; then
9747 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9748else
1c710c3c
DJ
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
5213506e
RW
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9756 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9758 break 2
9759 fi
9760done
5213506e
RW
9761 done
9762IFS=$as_save_IFS
1c710c3c 9763
e8b05380
PB
9764fi
9765fi
1c710c3c 9766GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9767if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9769$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 9770else
5213506e
RW
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
e8b05380 9773fi
1c710c3c 9774
5213506e 9775
e8b05380
PB
9776 fi
9777 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9778 done
9779fi
1c710c3c 9780
e8b05380
PB
9781if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9782 set dummy gfortran
2693c0b0 9783 if test $build = $target ; then
e8b05380 9784 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9785 else
e8b05380
PB
9786 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9787 fi
1c00b503
PB
9788else
9789 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9790fi
9791
9792
9793
e8b05380
PB
9794cat > conftest.c << \EOF
9795#ifdef __GNUC__
9796 gcc_yay;
9797#endif
9798EOF
9799if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9800 have_gcc_for_target=yes
9801else
9802 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9803 have_gcc_for_target=no
9804fi
9805rm conftest.c
9806
9807
9808
9809
9810if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9811 if test -n "$with_build_time_tools"; then
5213506e
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9813$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9814 if test -x $with_build_time_tools/ar; then
9815 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9816 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9818$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 9819 else
5213506e
RW
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821$as_echo "no" >&6; }
d1f8db0c 9822 fi
e8b05380
PB
9823 elif test $build != $host && test $have_gcc_for_target = yes; then
9824 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9825 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9826 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9827 fi
9828fi
3e19841a 9829if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9830 # Extract the first word of "ar", so it can be a program name with args.
9831set dummy ar; ac_word=$2
5213506e
RW
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833$as_echo_n "checking for $ac_word... " >&6; }
9834if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
e8b05380 9836else
1c710c3c
DJ
9837 case $AR_FOR_TARGET in
9838 [\\/]* | ?:[\\/]*)
e8b05380
PB
9839 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9840 ;;
e8b05380 9841 *)
1c710c3c
DJ
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $gcc_cv_tool_dirs
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
5213506e
RW
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9849 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9851 break 2
9852 fi
9853done
5213506e
RW
9854 done
9855IFS=$as_save_IFS
1c710c3c 9856
e8b05380
PB
9857 ;;
9858esac
9859fi
1c710c3c 9860AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 9861if test -n "$AR_FOR_TARGET"; then
5213506e
RW
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9863$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 9864else
5213506e
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
4de997d1
PB
9867fi
9868
5213506e 9869
e8b05380
PB
9870fi
9871if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9872
9873
9874if test -n "$AR_FOR_TARGET"; then
9875 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9876elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9877 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9878fi
9879
9880if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9881 for ncn_progname in ar; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
278a7a38
AO
9888else
9889 if test -n "$AR_FOR_TARGET"; then
9890 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
5213506e
RW
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9899 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9901 break 2
9902 fi
9903done
5213506e
RW
9904 done
9905IFS=$as_save_IFS
278a7a38
AO
9906
9907fi
9908fi
9909AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9910if test -n "$AR_FOR_TARGET"; then
5213506e
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9912$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 9913else
5213506e
RW
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
278a7a38
AO
9916fi
9917
5213506e 9918
278a7a38
AO
9919 done
9920fi
9921
9922if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9923 for ncn_progname in ar; do
5213506e
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929$as_echo "yes" >&6; }
e8b05380
PB
9930 break
9931 else
5213506e
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
e8b05380
PB
9934 fi
9935 done
9936fi
9937
9938if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9939 for ncn_progname in ar; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
4de997d1 9947else
e8b05380
PB
9948 if test -n "$AR_FOR_TARGET"; then
9949 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9950else
1c710c3c
DJ
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
5213506e
RW
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9958 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9960 break 2
9961 fi
9962done
5213506e
RW
9963 done
9964IFS=$as_save_IFS
1c710c3c 9965
4de997d1
PB
9966fi
9967fi
1c710c3c 9968AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9969if test -n "$AR_FOR_TARGET"; then
5213506e
RW
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9971$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 9972else
5213506e
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
4de997d1
PB
9975fi
9976
5213506e 9977
e8b05380
PB
9978 fi
9979 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
e8b05380
PB
9986else
9987 if test -n "$AR_FOR_TARGET"; then
9988 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9989else
1c710c3c
DJ
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
5213506e
RW
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9997 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9999 break 2
10000 fi
10001done
5213506e
RW
10002 done
10003IFS=$as_save_IFS
1c710c3c 10004
e8b05380
PB
10005fi
10006fi
1c710c3c 10007AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10008if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10010$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10011else
5213506e
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
e8b05380 10014fi
1c710c3c 10015
5213506e 10016
e8b05380
PB
10017 fi
10018 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10019 done
10020fi
1c710c3c 10021
e8b05380
PB
10022if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10023 set dummy ar
10024 if test $build = $target ; then
10025 AR_FOR_TARGET="$2"
10026 else
10027 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10028 fi
1c00b503
PB
10029else
10030 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10031fi
10032
d1f8db0c
PB
10033else
10034 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10035fi
10036
10037
10038
10039
10040if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10041 if test -n "$with_build_time_tools"; then
5213506e
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10043$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10044 if test -x $with_build_time_tools/as; then
10045 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10046 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10048$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10049 else
5213506e
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
d1f8db0c 10052 fi
e8b05380
PB
10053 elif test $build != $host && test $have_gcc_for_target = yes; then
10054 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10055 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10056 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10057 fi
10058fi
3e19841a 10059if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10060 # Extract the first word of "as", so it can be a program name with args.
10061set dummy as; ac_word=$2
5213506e
RW
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063$as_echo_n "checking for $ac_word... " >&6; }
10064if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
e8b05380 10066else
1c710c3c
DJ
10067 case $AS_FOR_TARGET in
10068 [\\/]* | ?:[\\/]*)
e8b05380
PB
10069 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10070 ;;
e8b05380 10071 *)
1c710c3c
DJ
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073for as_dir in $gcc_cv_tool_dirs
10074do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
5213506e
RW
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10079 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10081 break 2
10082 fi
10083done
5213506e
RW
10084 done
10085IFS=$as_save_IFS
1c710c3c 10086
e8b05380
PB
10087 ;;
10088esac
10089fi
1c710c3c 10090AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10091if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10093$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10094else
5213506e
RW
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
e8b05380
PB
10097fi
10098
5213506e 10099
e8b05380
PB
10100fi
10101if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10102
10103
10104if test -n "$AS_FOR_TARGET"; then
10105 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10106elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10107 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10108fi
10109
10110if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10111 for ncn_progname in as; do
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
10116if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
278a7a38
AO
10118else
10119 if test -n "$AS_FOR_TARGET"; then
10120 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10121else
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
5213506e
RW
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10129 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10131 break 2
10132 fi
10133done
5213506e
RW
10134 done
10135IFS=$as_save_IFS
278a7a38
AO
10136
10137fi
10138fi
10139AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10140if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10142$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10143else
5213506e
RW
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
278a7a38
AO
10146fi
10147
5213506e 10148
278a7a38
AO
10149 done
10150fi
10151
10152if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10153 for ncn_progname in as; do
5213506e
RW
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10155$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10156 if test -x $with_build_time_tools/${ncn_progname}; then
10157 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159$as_echo "yes" >&6; }
e8b05380
PB
10160 break
10161 else
5213506e
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
e8b05380
PB
10164 fi
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10169 for ncn_progname in as; do
10170 if test -n "$ncn_target_tool_prefix"; then
10171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
e8b05380
PB
10177else
10178 if test -n "$AS_FOR_TARGET"; then
10179 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10180else
1c710c3c
DJ
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
5213506e
RW
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10188 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10190 break 2
10191 fi
10192done
5213506e
RW
10193 done
10194IFS=$as_save_IFS
1c710c3c 10195
e8b05380
PB
10196fi
10197fi
1c710c3c 10198AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10199if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10201$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10202else
5213506e
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
e8b05380
PB
10205fi
10206
5213506e 10207
e8b05380
PB
10208 fi
10209 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10211set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213$as_echo_n "checking for $ac_word... " >&6; }
10214if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
4de997d1 10216else
e8b05380
PB
10217 if test -n "$AS_FOR_TARGET"; then
10218 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 10219else
1c710c3c
DJ
10220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221for as_dir in $PATH
10222do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
5213506e
RW
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10227 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10229 break 2
10230 fi
10231done
5213506e
RW
10232 done
10233IFS=$as_save_IFS
1c710c3c 10234
4de997d1
PB
10235fi
10236fi
1c710c3c 10237AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10238if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10240$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 10241else
5213506e
RW
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
4de997d1 10244fi
1c710c3c 10245
5213506e 10246
e8b05380
PB
10247 fi
10248 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10249 done
10250fi
1c710c3c 10251
e8b05380
PB
10252if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10253 set dummy as
10254 if test $build = $target ; then
10255 AS_FOR_TARGET="$2"
10256 else
10257 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10258 fi
1c00b503
PB
10259else
10260 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 10261fi
2693c0b0 10262
d1f8db0c
PB
10263else
10264 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
10265fi
10266
e8b05380
PB
10267
10268
10269
10270if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10271 if test -n "$with_build_time_tools"; then
5213506e
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10273$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10274 if test -x $with_build_time_tools/dlltool; then
10275 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10276 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10278$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 10279 else
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
d1f8db0c 10282 fi
e8b05380
PB
10283 elif test $build != $host && test $have_gcc_for_target = yes; then
10284 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
10285 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10286 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
10287 fi
10288fi
3e19841a 10289if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10290 # Extract the first word of "dlltool", so it can be a program name with args.
10291set dummy dlltool; ac_word=$2
5213506e
RW
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293$as_echo_n "checking for $ac_word... " >&6; }
10294if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
4de997d1 10296else
1c710c3c
DJ
10297 case $DLLTOOL_FOR_TARGET in
10298 [\\/]* | ?:[\\/]*)
e8b05380
PB
10299 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10300 ;;
e8b05380 10301 *)
1c710c3c
DJ
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $gcc_cv_tool_dirs
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
5213506e
RW
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10309 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10311 break 2
10312 fi
10313done
5213506e
RW
10314 done
10315IFS=$as_save_IFS
1c710c3c 10316
e8b05380
PB
10317 ;;
10318esac
4de997d1 10319fi
1c710c3c 10320DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 10321if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10323$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10324else
5213506e
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
4de997d1
PB
10327fi
10328
5213506e 10329
e8b05380
PB
10330fi
10331if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
10332
10333
10334if test -n "$DLLTOOL_FOR_TARGET"; then
10335 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10336elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10337 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10338fi
10339
10340if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10341 for ncn_progname in dlltool; do
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
278a7a38
AO
10348else
10349 if test -n "$DLLTOOL_FOR_TARGET"; then
10350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
5213506e
RW
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10361 break 2
10362 fi
10363done
5213506e
RW
10364 done
10365IFS=$as_save_IFS
278a7a38
AO
10366
10367fi
10368fi
10369DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10370if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10372$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 10373else
5213506e
RW
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
278a7a38
AO
10376fi
10377
5213506e 10378
278a7a38
AO
10379 done
10380fi
10381
10382if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10383 for ncn_progname in dlltool; do
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10385$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10386 if test -x $with_build_time_tools/${ncn_progname}; then
10387 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10389$as_echo "yes" >&6; }
e8b05380
PB
10390 break
10391 else
5213506e
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
e8b05380
PB
10394 fi
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10399 for ncn_progname in dlltool; do
10400 if test -n "$ncn_target_tool_prefix"; then
10401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404$as_echo_n "checking for $ac_word... " >&6; }
10405if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
4de997d1 10407else
e8b05380
PB
10408 if test -n "$DLLTOOL_FOR_TARGET"; then
10409 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10410else
1c710c3c
DJ
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
5213506e
RW
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10418 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10420 break 2
10421 fi
10422done
5213506e
RW
10423 done
10424IFS=$as_save_IFS
1c710c3c 10425
4de997d1
PB
10426fi
10427fi
1c710c3c 10428DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10429if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10431$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10432else
5213506e
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
4de997d1 10435fi
4de997d1 10436
5213506e 10437
e8b05380
PB
10438 fi
10439 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10441set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443$as_echo_n "checking for $ac_word... " >&6; }
10444if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
4de997d1 10446else
e8b05380
PB
10447 if test -n "$DLLTOOL_FOR_TARGET"; then
10448 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10449else
1c710c3c
DJ
10450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451for as_dir in $PATH
10452do
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
5213506e
RW
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10457 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10459 break 2
10460 fi
10461done
5213506e
RW
10462 done
10463IFS=$as_save_IFS
1c710c3c 10464
4de997d1
PB
10465fi
10466fi
1c710c3c 10467DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10468if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10470$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 10471else
5213506e
RW
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473$as_echo "no" >&6; }
4de997d1 10474fi
1c710c3c 10475
5213506e 10476
e8b05380
PB
10477 fi
10478 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10479 done
10480fi
1c710c3c 10481
e8b05380
PB
10482if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10483 set dummy dlltool
10484 if test $build = $target ; then
10485 DLLTOOL_FOR_TARGET="$2"
10486 else
10487 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10488 fi
1c00b503
PB
10489else
10490 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
10491fi
10492
d1f8db0c
PB
10493else
10494 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
10495fi
10496
4de997d1 10497
e8b05380
PB
10498
10499
10500if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10501 if test -n "$with_build_time_tools"; then
5213506e
RW
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10503$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10504 if test -x $with_build_time_tools/ld; then
10505 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10506 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10508$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 10509 else
5213506e
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
d1f8db0c 10512 fi
e8b05380
PB
10513 elif test $build != $host && test $have_gcc_for_target = yes; then
10514 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
10515 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10516 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 10517 fi
e8b05380 10518fi
3e19841a 10519if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10520 # Extract the first word of "ld", so it can be a program name with args.
10521set dummy ld; ac_word=$2
5213506e
RW
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523$as_echo_n "checking for $ac_word... " >&6; }
10524if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
4de997d1 10526else
1c710c3c
DJ
10527 case $LD_FOR_TARGET in
10528 [\\/]* | ?:[\\/]*)
e8b05380
PB
10529 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10530 ;;
e8b05380 10531 *)
1c710c3c
DJ
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $gcc_cv_tool_dirs
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
5213506e
RW
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10539 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10541 break 2
10542 fi
10543done
5213506e
RW
10544 done
10545IFS=$as_save_IFS
1c710c3c 10546
e8b05380
PB
10547 ;;
10548esac
4de997d1 10549fi
1c710c3c 10550LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 10551if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10553$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 10554else
5213506e
RW
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556$as_echo "no" >&6; }
4de997d1 10557fi
2693c0b0 10558
5213506e 10559
e8b05380
PB
10560fi
10561if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
10562
10563
10564if test -n "$LD_FOR_TARGET"; then
10565 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10566elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10567 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10568fi
10569
10570if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10571 for ncn_progname in ld; do
10572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10573set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575$as_echo_n "checking for $ac_word... " >&6; }
10576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
278a7a38
AO
10578else
10579 if test -n "$LD_FOR_TARGET"; then
10580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10581else
10582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583for as_dir in $PATH
10584do
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
5213506e
RW
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10589 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10591 break 2
10592 fi
10593done
5213506e
RW
10594 done
10595IFS=$as_save_IFS
278a7a38
AO
10596
10597fi
10598fi
10599LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10600if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10602$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 10603else
5213506e
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
278a7a38
AO
10606fi
10607
5213506e 10608
278a7a38
AO
10609 done
10610fi
10611
10612if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10613 for ncn_progname in ld; do
5213506e
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10615$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10616 if test -x $with_build_time_tools/${ncn_progname}; then
10617 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619$as_echo "yes" >&6; }
e8b05380
PB
10620 break
10621 else
5213506e
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
e8b05380
PB
10624 fi
10625 done
ca9f4b81
AO
10626fi
10627
e8b05380
PB
10628if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10629 for ncn_progname in ld; do
10630 if test -n "$ncn_target_tool_prefix"; then
10631 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10632set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
ca9f4b81 10637else
4de997d1
PB
10638 if test -n "$LD_FOR_TARGET"; then
10639 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10640else
1c710c3c
DJ
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
5213506e
RW
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10648 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10650 break 2
10651 fi
10652done
5213506e
RW
10653 done
10654IFS=$as_save_IFS
1c710c3c 10655
ca9f4b81
AO
10656fi
10657fi
1c710c3c 10658LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10659if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10661$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 10662else
5213506e
RW
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
ca9f4b81
AO
10665fi
10666
5213506e 10667
e8b05380
PB
10668 fi
10669 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10671set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673$as_echo_n "checking for $ac_word... " >&6; }
10674if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
ca9f4b81 10676else
2693c0b0
PB
10677 if test -n "$LD_FOR_TARGET"; then
10678 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10679else
1c710c3c
DJ
10680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
5213506e
RW
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10687 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10689 break 2
10690 fi
10691done
5213506e
RW
10692 done
10693IFS=$as_save_IFS
1c710c3c 10694
ca9f4b81
AO
10695fi
10696fi
1c710c3c 10697LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10698if test -n "$LD_FOR_TARGET"; then
5213506e
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10700$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 10701else
5213506e
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
ca9f4b81 10704fi
1c710c3c 10705
5213506e 10706
e8b05380
PB
10707 fi
10708 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10709 done
10710fi
1c710c3c 10711
2693c0b0
PB
10712if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10713 set dummy ld
10714 if test $build = $target ; then
10715 LD_FOR_TARGET="$2"
ca9f4b81 10716 else
2693c0b0 10717 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10718 fi
1c00b503
PB
10719else
10720 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10721fi
10722
d1f8db0c
PB
10723else
10724 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10725fi
10726
10727
10728
10729
10730if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10731 if test -n "$with_build_time_tools"; then
5213506e
RW
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10733$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10734 if test -x $with_build_time_tools/lipo; then
10735 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10736 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10738$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 10739 else
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
d1f8db0c 10742 fi
e8b05380
PB
10743 elif test $build != $host && test $have_gcc_for_target = yes; then
10744 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10745 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10746 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10747 fi
10748fi
278a7a38
AO
10749if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10750 # Extract the first word of "lipo", so it can be a program name with args.
10751set dummy lipo; ac_word=$2
5213506e
RW
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
278a7a38
AO
10756else
10757 case $LIPO_FOR_TARGET in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10760 ;;
10761 *)
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763for as_dir in $gcc_cv_tool_dirs
10764do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
5213506e
RW
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10769 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10771 break 2
10772 fi
10773done
5213506e
RW
10774 done
10775IFS=$as_save_IFS
278a7a38
AO
10776
10777 ;;
10778esac
10779fi
10780LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 10781if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10783$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 10784else
5213506e
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
278a7a38
AO
10787fi
10788
5213506e 10789
278a7a38
AO
10790fi
10791if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10792
10793
10794if test -n "$LIPO_FOR_TARGET"; then
10795 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10796elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10797 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10798fi
10799
10800if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10801 for ncn_progname in lipo; do
10802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805$as_echo_n "checking for $ac_word... " >&6; }
10806if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
e8b05380 10808else
278a7a38
AO
10809 if test -n "$LIPO_FOR_TARGET"; then
10810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10811else
10812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813for as_dir in $PATH
1c710c3c
DJ
10814do
10815 IFS=$as_save_IFS
10816 test -z "$as_dir" && as_dir=.
5213506e
RW
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10821 break 2
10822 fi
10823done
5213506e
RW
10824 done
10825IFS=$as_save_IFS
1c710c3c 10826
e8b05380 10827fi
278a7a38
AO
10828fi
10829LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10830if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10832$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 10833else
5213506e
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835$as_echo "no" >&6; }
e8b05380
PB
10836fi
10837
5213506e 10838
278a7a38 10839 done
e8b05380 10840fi
278a7a38
AO
10841
10842if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10843 for ncn_progname in lipo; do
5213506e
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10845$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10846 if test -x $with_build_time_tools/${ncn_progname}; then
10847 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10849$as_echo "yes" >&6; }
e8b05380
PB
10850 break
10851 else
5213506e
RW
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
e8b05380
PB
10854 fi
10855 done
10856fi
10857
10858if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10859 for ncn_progname in lipo; do
10860 if test -n "$ncn_target_tool_prefix"; then
10861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10862set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
10865if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
040b1c5a
GK
10867else
10868 if test -n "$LIPO_FOR_TARGET"; then
10869 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10870else
1c710c3c
DJ
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
5213506e
RW
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10878 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10880 break 2
10881 fi
10882done
5213506e
RW
10883 done
10884IFS=$as_save_IFS
1c710c3c 10885
040b1c5a
GK
10886fi
10887fi
1c710c3c 10888LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10889if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10891$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 10892else
5213506e
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
040b1c5a
GK
10895fi
10896
5213506e 10897
e8b05380
PB
10898 fi
10899 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903$as_echo_n "checking for $ac_word... " >&6; }
10904if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
040b1c5a
GK
10906else
10907 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10908 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10909else
1c710c3c
DJ
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
5213506e
RW
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10917 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10919 break 2
10920 fi
10921done
5213506e
RW
10922 done
10923IFS=$as_save_IFS
1c710c3c 10924
040b1c5a
GK
10925fi
10926fi
1c710c3c 10927LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10928if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10930$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 10931else
5213506e
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
040b1c5a 10934fi
1c710c3c 10935
5213506e 10936
e8b05380
PB
10937 fi
10938 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10939 done
10940fi
1c710c3c 10941
040b1c5a
GK
10942if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10943 set dummy lipo
10944 if test $build = $target ; then
10945 LIPO_FOR_TARGET="$2"
10946 else
10947 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10948 fi
1c00b503
PB
10949else
10950 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10951fi
10952
d1f8db0c
PB
10953else
10954 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10955fi
10956
10957
10958
10959
10960if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10961 if test -n "$with_build_time_tools"; then
5213506e
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
10963$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10964 if test -x $with_build_time_tools/nm; then
10965 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10966 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
10968$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 10969 else
5213506e
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
d1f8db0c 10972 fi
e8b05380
PB
10973 elif test $build != $host && test $have_gcc_for_target = yes; then
10974 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10975 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10976 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10977 fi
10978fi
3e19841a 10979if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10980 # Extract the first word of "nm", so it can be a program name with args.
10981set dummy nm; ac_word=$2
5213506e
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
e8b05380 10986else
1c710c3c
DJ
10987 case $NM_FOR_TARGET in
10988 [\\/]* | ?:[\\/]*)
e8b05380
PB
10989 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10990 ;;
e8b05380 10991 *)
1c710c3c
DJ
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $gcc_cv_tool_dirs
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
5213506e
RW
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10999 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11001 break 2
11002 fi
11003done
5213506e
RW
11004 done
11005IFS=$as_save_IFS
1c710c3c 11006
e8b05380
PB
11007 ;;
11008esac
11009fi
1c710c3c 11010NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11011if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11013$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11014else
5213506e
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
e8b05380
PB
11017fi
11018
5213506e 11019
e8b05380
PB
11020fi
11021if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11022
11023
11024if test -n "$NM_FOR_TARGET"; then
11025 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11026elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11027 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11028fi
11029
11030if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11031 for ncn_progname in nm; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
11036if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
278a7a38
AO
11038else
11039 if test -n "$NM_FOR_TARGET"; then
11040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
5213506e
RW
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11049 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11051 break 2
11052 fi
11053done
5213506e
RW
11054 done
11055IFS=$as_save_IFS
278a7a38
AO
11056
11057fi
11058fi
11059NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11060if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11062$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11063else
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
278a7a38
AO
11066fi
11067
5213506e 11068
278a7a38
AO
11069 done
11070fi
11071
11072if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11073 for ncn_progname in nm; do
5213506e
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11075$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11076 if test -x $with_build_time_tools/${ncn_progname}; then
11077 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079$as_echo "yes" >&6; }
e8b05380
PB
11080 break
11081 else
5213506e
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083$as_echo "no" >&6; }
e8b05380
PB
11084 fi
11085 done
11086fi
11087
11088if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11089 for ncn_progname in nm; do
11090 if test -n "$ncn_target_tool_prefix"; then
11091 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11092set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094$as_echo_n "checking for $ac_word... " >&6; }
11095if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
ca9f4b81 11097else
4de997d1
PB
11098 if test -n "$NM_FOR_TARGET"; then
11099 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11100else
1c710c3c
DJ
11101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102for as_dir in $PATH
11103do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
5213506e
RW
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11108 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11110 break 2
11111 fi
11112done
5213506e
RW
11113 done
11114IFS=$as_save_IFS
1c710c3c 11115
ca9f4b81
AO
11116fi
11117fi
1c710c3c 11118NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11119if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11121$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11122else
5213506e
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124$as_echo "no" >&6; }
ca9f4b81
AO
11125fi
11126
5213506e 11127
e8b05380
PB
11128 fi
11129 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
ca9f4b81 11136else
2693c0b0
PB
11137 if test -n "$NM_FOR_TARGET"; then
11138 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11139else
1c710c3c
DJ
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
5213506e
RW
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11147 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11149 break 2
11150 fi
11151done
5213506e
RW
11152 done
11153IFS=$as_save_IFS
1c710c3c 11154
ca9f4b81
AO
11155fi
11156fi
1c710c3c 11157NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11158if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11160$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11161else
5213506e
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
ca9f4b81 11164fi
1c710c3c 11165
5213506e 11166
e8b05380
PB
11167 fi
11168 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11169 done
11170fi
1c710c3c 11171
2693c0b0
PB
11172if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11173 set dummy nm
11174 if test $build = $target ; then
11175 NM_FOR_TARGET="$2"
ca9f4b81 11176 else
2693c0b0 11177 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11178 fi
1c00b503
PB
11179else
11180 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11181fi
11182
d1f8db0c
PB
11183else
11184 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11185fi
11186
11187
11188
11189
11190if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11191 if test -n "$with_build_time_tools"; then
5213506e
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11193$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11194 if test -x $with_build_time_tools/objdump; then
11195 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11196 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11198$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11199 else
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
d1f8db0c 11202 fi
e8b05380
PB
11203 elif test $build != $host && test $have_gcc_for_target = yes; then
11204 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
11205 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11206 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
11207 fi
11208fi
3e19841a 11209if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11210 # Extract the first word of "objdump", so it can be a program name with args.
11211set dummy objdump; ac_word=$2
5213506e
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
e8b05380 11216else
1c710c3c
DJ
11217 case $OBJDUMP_FOR_TARGET in
11218 [\\/]* | ?:[\\/]*)
e8b05380
PB
11219 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11220 ;;
e8b05380 11221 *)
1c710c3c
DJ
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $gcc_cv_tool_dirs
11224do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
5213506e
RW
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11229 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11231 break 2
11232 fi
11233done
5213506e
RW
11234 done
11235IFS=$as_save_IFS
1c710c3c 11236
e8b05380
PB
11237 ;;
11238esac
11239fi
1c710c3c 11240OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 11241if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11243$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 11244else
5213506e
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
e8b05380
PB
11247fi
11248
5213506e 11249
e8b05380
PB
11250fi
11251if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
11252
11253
11254if test -n "$OBJDUMP_FOR_TARGET"; then
11255 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11256elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11257 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11258fi
11259
11260if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11261 for ncn_progname in objdump; do
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
11266if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
278a7a38
AO
11268else
11269 if test -n "$OBJDUMP_FOR_TARGET"; then
11270 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
5213506e
RW
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11279 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11281 break 2
11282 fi
11283done
5213506e
RW
11284 done
11285IFS=$as_save_IFS
278a7a38
AO
11286
11287fi
11288fi
11289OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11290if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11292$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 11293else
5213506e
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
278a7a38
AO
11296fi
11297
5213506e 11298
278a7a38
AO
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11303 for ncn_progname in objdump; do
5213506e
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11305$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11306 if test -x $with_build_time_tools/${ncn_progname}; then
11307 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11309$as_echo "yes" >&6; }
e8b05380
PB
11310 break
11311 else
5213506e
RW
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
e8b05380
PB
11314 fi
11315 done
11316fi
11317
11318if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11319 for ncn_progname in objdump; do
11320 if test -n "$ncn_target_tool_prefix"; then
11321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11322set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
11325if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
d739199a
DJ
11327else
11328 if test -n "$OBJDUMP_FOR_TARGET"; then
11329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11330else
1c710c3c
DJ
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
5213506e
RW
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11338 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11340 break 2
11341 fi
11342done
5213506e
RW
11343 done
11344IFS=$as_save_IFS
1c710c3c 11345
d739199a
DJ
11346fi
11347fi
1c710c3c 11348OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11349if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11351$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 11352else
5213506e
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
d739199a
DJ
11355fi
11356
5213506e 11357
e8b05380
PB
11358 fi
11359 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 11361set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363$as_echo_n "checking for $ac_word... " >&6; }
11364if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
d739199a
DJ
11366else
11367 if test -n "$OBJDUMP_FOR_TARGET"; then
11368 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11369else
1c710c3c
DJ
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
5213506e
RW
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11377 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11379 break 2
11380 fi
11381done
5213506e
RW
11382 done
11383IFS=$as_save_IFS
1c710c3c 11384
d739199a
DJ
11385fi
11386fi
1c710c3c 11387OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11388if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11390$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 11391else
5213506e
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
d739199a 11394fi
1c710c3c 11395
5213506e 11396
e8b05380
PB
11397 fi
11398 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11399 done
11400fi
1c710c3c 11401
d739199a
DJ
11402if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11403 set dummy objdump
11404 if test $build = $target ; then
11405 OBJDUMP_FOR_TARGET="$2"
11406 else
11407 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11408 fi
1c00b503
PB
11409else
11410 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
11411fi
11412
d1f8db0c
PB
11413else
11414 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
11415fi
11416
11417
11418
11419
11420if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11421 if test -n "$with_build_time_tools"; then
5213506e
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11423$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11424 if test -x $with_build_time_tools/ranlib; then
11425 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11426 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11428$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 11429 else
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
d1f8db0c 11432 fi
e8b05380
PB
11433 elif test $build != $host && test $have_gcc_for_target = yes; then
11434 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
11435 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11436 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
11437 fi
11438fi
3e19841a 11439if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11440 # Extract the first word of "ranlib", so it can be a program name with args.
11441set dummy ranlib; ac_word=$2
5213506e
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
11444if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
e8b05380 11446else
1c710c3c
DJ
11447 case $RANLIB_FOR_TARGET in
11448 [\\/]* | ?:[\\/]*)
e8b05380
PB
11449 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11450 ;;
e8b05380 11451 *)
1c710c3c
DJ
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453for as_dir in $gcc_cv_tool_dirs
11454do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
5213506e
RW
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11459 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11461 break 2
11462 fi
11463done
5213506e
RW
11464 done
11465IFS=$as_save_IFS
1c710c3c 11466
e8b05380
PB
11467 ;;
11468esac
11469fi
1c710c3c 11470RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 11471if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11473$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 11474else
5213506e
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476$as_echo "no" >&6; }
e8b05380
PB
11477fi
11478
5213506e 11479
e8b05380
PB
11480fi
11481if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
11482
11483
11484if test -n "$RANLIB_FOR_TARGET"; then
11485 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11486elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11487 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11488fi
11489
11490if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11491 for ncn_progname in ranlib; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495$as_echo_n "checking for $ac_word... " >&6; }
11496if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
278a7a38
AO
11498else
11499 if test -n "$RANLIB_FOR_TARGET"; then
11500 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11501else
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
5213506e
RW
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11509 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11511 break 2
11512 fi
11513done
5213506e
RW
11514 done
11515IFS=$as_save_IFS
278a7a38
AO
11516
11517fi
11518fi
11519RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11520if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11522$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 11523else
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
278a7a38
AO
11526fi
11527
5213506e 11528
278a7a38
AO
11529 done
11530fi
11531
11532if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11533 for ncn_progname in ranlib; do
5213506e
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11535$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11536 if test -x $with_build_time_tools/${ncn_progname}; then
11537 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539$as_echo "yes" >&6; }
e8b05380
PB
11540 break
11541 else
5213506e
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
e8b05380
PB
11544 fi
11545 done
11546fi
11547
11548if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11549 for ncn_progname in ranlib; do
11550 if test -n "$ncn_target_tool_prefix"; then
11551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 11552set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554$as_echo_n "checking for $ac_word... " >&6; }
11555if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
ca9f4b81 11557else
4de997d1
PB
11558 if test -n "$RANLIB_FOR_TARGET"; then
11559 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11560else
1c710c3c
DJ
11561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564 IFS=$as_save_IFS
11565 test -z "$as_dir" && as_dir=.
5213506e
RW
11566 for ac_exec_ext in '' $ac_executable_extensions; do
11567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11568 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11570 break 2
11571 fi
11572done
5213506e
RW
11573 done
11574IFS=$as_save_IFS
1c710c3c 11575
ca9f4b81
AO
11576fi
11577fi
1c710c3c 11578RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 11579if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11581$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 11582else
5213506e
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
ca9f4b81
AO
11585fi
11586
5213506e 11587
e8b05380
PB
11588 fi
11589 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11591set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593$as_echo_n "checking for $ac_word... " >&6; }
11594if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
ca9f4b81 11596else
2693c0b0
PB
11597 if test -n "$RANLIB_FOR_TARGET"; then
11598 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11599else
1c710c3c
DJ
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
5213506e
RW
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11607 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11609 break 2
11610 fi
11611done
5213506e
RW
11612 done
11613IFS=$as_save_IFS
1c710c3c 11614
ca9f4b81
AO
11615fi
11616fi
1c710c3c 11617RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 11618if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11620$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 11621else
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
ca9f4b81 11624fi
1c710c3c 11625
5213506e 11626
e8b05380
PB
11627 fi
11628 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11629 done
11630fi
1c710c3c 11631
e8b05380
PB
11632if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11633 set dummy ranlib
11634 if test $build = $target ; then
11635 RANLIB_FOR_TARGET="$2"
11636 else
11637 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11638 fi
1c00b503
PB
11639else
11640 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 11641fi
2693c0b0 11642
d1f8db0c
PB
11643else
11644 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
11645fi
11646
e8b05380
PB
11647
11648
11649
11650if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11651 if test -n "$with_build_time_tools"; then
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11653$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11654 if test -x $with_build_time_tools/strip; then
11655 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11656 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11658$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 11659 else
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
d1f8db0c 11662 fi
e8b05380
PB
11663 elif test $build != $host && test $have_gcc_for_target = yes; then
11664 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
11665 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11666 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
11667 fi
11668fi
3e19841a 11669if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11670 # Extract the first word of "strip", so it can be a program name with args.
11671set dummy strip; ac_word=$2
5213506e
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
11674if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
e8b05380 11676else
1c710c3c
DJ
11677 case $STRIP_FOR_TARGET in
11678 [\\/]* | ?:[\\/]*)
e8b05380
PB
11679 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11680 ;;
e8b05380 11681 *)
1c710c3c
DJ
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $gcc_cv_tool_dirs
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
5213506e
RW
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11689 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11691 break 2
11692 fi
11693done
5213506e
RW
11694 done
11695IFS=$as_save_IFS
1c710c3c 11696
e8b05380
PB
11697 ;;
11698esac
11699fi
1c710c3c 11700STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 11701if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11703$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 11704else
5213506e
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
e8b05380
PB
11707fi
11708
5213506e 11709
e8b05380
PB
11710fi
11711if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11712
11713
11714if test -n "$STRIP_FOR_TARGET"; then
11715 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11716elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11717 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11718fi
11719
11720if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11721 for ncn_progname in strip; do
11722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11723set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725$as_echo_n "checking for $ac_word... " >&6; }
11726if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
278a7a38
AO
11728else
11729 if test -n "$STRIP_FOR_TARGET"; then
11730 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11731else
11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
5213506e
RW
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11739 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11741 break 2
11742 fi
11743done
5213506e
RW
11744 done
11745IFS=$as_save_IFS
278a7a38
AO
11746
11747fi
11748fi
11749STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11750if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11752$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 11753else
5213506e
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
278a7a38
AO
11756fi
11757
5213506e 11758
278a7a38
AO
11759 done
11760fi
11761
11762if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11763 for ncn_progname in strip; do
5213506e
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11765$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11766 if test -x $with_build_time_tools/${ncn_progname}; then
11767 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769$as_echo "yes" >&6; }
e8b05380
PB
11770 break
11771 else
5213506e
RW
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
e8b05380
PB
11774 fi
11775 done
11776fi
11777
11778if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11779 for ncn_progname in strip; do
11780 if test -n "$ncn_target_tool_prefix"; then
11781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11782set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
11785if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11786 $as_echo_n "(cached) " >&6
af71363e
AS
11787else
11788 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11789 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
5213506e
RW
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11798 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11800 break 2
11801 fi
11802done
5213506e
RW
11803 done
11804IFS=$as_save_IFS
1c710c3c 11805
040b1c5a
GK
11806fi
11807fi
1c710c3c 11808STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11809if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11811$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 11812else
5213506e
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
040b1c5a
GK
11815fi
11816
5213506e 11817
e8b05380
PB
11818 fi
11819 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11821set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823$as_echo_n "checking for $ac_word... " >&6; }
11824if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
040b1c5a
GK
11826else
11827 if test -n "$STRIP_FOR_TARGET"; then
11828 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11829else
1c710c3c
DJ
11830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831for as_dir in $PATH
11832do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
5213506e
RW
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11837 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11839 break 2
11840 fi
11841done
5213506e
RW
11842 done
11843IFS=$as_save_IFS
1c710c3c 11844
040b1c5a
GK
11845fi
11846fi
1c710c3c 11847STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11848if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11850$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 11851else
5213506e
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853$as_echo "no" >&6; }
040b1c5a 11854fi
1c710c3c 11855
5213506e 11856
e8b05380
PB
11857 fi
11858 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11859 done
11860fi
1c710c3c 11861
040b1c5a
GK
11862if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11863 set dummy strip
11864 if test $build = $target ; then
11865 STRIP_FOR_TARGET="$2"
11866 else
11867 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11868 fi
1c00b503
PB
11869else
11870 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11871fi
11872
d1f8db0c
PB
11873else
11874 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11875fi
11876
11877
11878
11879
11880if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11881 if test -n "$with_build_time_tools"; then
5213506e
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11883$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11884 if test -x $with_build_time_tools/windres; then
11885 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11886 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11888$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 11889 else
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
d1f8db0c 11892 fi
e8b05380
PB
11893 elif test $build != $host && test $have_gcc_for_target = yes; then
11894 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11895 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11896 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11897 fi
11898fi
3e19841a 11899if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11900 # Extract the first word of "windres", so it can be a program name with args.
11901set dummy windres; ac_word=$2
5213506e
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
e8b05380 11906else
1c710c3c
DJ
11907 case $WINDRES_FOR_TARGET in
11908 [\\/]* | ?:[\\/]*)
e8b05380
PB
11909 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11910 ;;
e8b05380 11911 *)
1c710c3c
DJ
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $gcc_cv_tool_dirs
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
5213506e
RW
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11919 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11921 break 2
11922 fi
11923done
5213506e
RW
11924 done
11925IFS=$as_save_IFS
1c710c3c 11926
e8b05380
PB
11927 ;;
11928esac
11929fi
1c710c3c 11930WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 11931if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11933$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 11934else
5213506e
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
e8b05380
PB
11937fi
11938
5213506e 11939
e8b05380
PB
11940fi
11941if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11942
11943
11944if test -n "$WINDRES_FOR_TARGET"; then
11945 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11946elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11947 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11948fi
11949
11950if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11951 for ncn_progname in windres; do
11952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11953set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
11956if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
278a7a38
AO
11958else
11959 if test -n "$WINDRES_FOR_TARGET"; then
11960 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11961else
11962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
5213506e
RW
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11969 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11971 break 2
11972 fi
11973done
5213506e
RW
11974 done
11975IFS=$as_save_IFS
278a7a38
AO
11976
11977fi
11978fi
11979WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11980if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11982$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 11983else
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
278a7a38
AO
11986fi
11987
5213506e 11988
278a7a38
AO
11989 done
11990fi
11991
11992if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11993 for ncn_progname in windres; do
5213506e
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11995$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11996 if test -x $with_build_time_tools/${ncn_progname}; then
11997 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999$as_echo "yes" >&6; }
e8b05380
PB
12000 break
12001 else
5213506e
RW
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
e8b05380
PB
12004 fi
12005 done
12006fi
12007
12008if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12009 for ncn_progname in windres; do
12010 if test -n "$ncn_target_tool_prefix"; then
12011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014$as_echo_n "checking for $ac_word... " >&6; }
12015if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
ca9f4b81 12017else
4de997d1
PB
12018 if test -n "$WINDRES_FOR_TARGET"; then
12019 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12020else
1c710c3c
DJ
12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
5213506e
RW
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12028 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12030 break 2
12031 fi
12032done
5213506e
RW
12033 done
12034IFS=$as_save_IFS
1c710c3c 12035
ca9f4b81
AO
12036fi
12037fi
1c710c3c 12038WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12039if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12041$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12042else
5213506e
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
ca9f4b81
AO
12045fi
12046
5213506e 12047
e8b05380
PB
12048 fi
12049 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12051set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053$as_echo_n "checking for $ac_word... " >&6; }
12054if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
ca9f4b81 12056else
2693c0b0
PB
12057 if test -n "$WINDRES_FOR_TARGET"; then
12058 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12059else
1c710c3c
DJ
12060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061for as_dir in $PATH
12062do
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
5213506e
RW
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12067 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12069 break 2
12070 fi
12071done
5213506e
RW
12072 done
12073IFS=$as_save_IFS
1c710c3c 12074
ca9f4b81
AO
12075fi
12076fi
1c710c3c 12077WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12078if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12080$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12081else
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083$as_echo "no" >&6; }
ca9f4b81 12084fi
1c710c3c 12085
5213506e 12086
e8b05380
PB
12087 fi
12088 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12089 done
12090fi
1c710c3c 12091
2693c0b0
PB
12092if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12093 set dummy windres
12094 if test $build = $target ; then
12095 WINDRES_FOR_TARGET="$2"
ca9f4b81 12096 else
2693c0b0 12097 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12098 fi
1c00b503
PB
12099else
12100 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12101fi
12102
d1f8db0c
PB
12103else
12104 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12105fi
12106
4977bab6 12107
901119ae
KT
12108
12109
12110if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12111 if test -n "$with_build_time_tools"; then
5213506e
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12113$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12114 if test -x $with_build_time_tools/windmc; then
12115 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12116 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12118$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12119 else
5213506e
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
901119ae
KT
12122 fi
12123 elif test $build != $host && test $have_gcc_for_target = yes; then
12124 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12125 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12126 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12127 fi
12128fi
12129if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12130 # Extract the first word of "windmc", so it can be a program name with args.
12131set dummy windmc; ac_word=$2
5213506e
RW
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
901119ae
KT
12136else
12137 case $WINDMC_FOR_TARGET in
12138 [\\/]* | ?:[\\/]*)
12139 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12140 ;;
12141 *)
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143for as_dir in $gcc_cv_tool_dirs
12144do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
5213506e
RW
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12149 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12151 break 2
12152 fi
12153done
5213506e
RW
12154 done
12155IFS=$as_save_IFS
901119ae
KT
12156
12157 ;;
12158esac
12159fi
12160WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12161if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12163$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12164else
5213506e
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
901119ae
KT
12167fi
12168
5213506e 12169
901119ae
KT
12170fi
12171if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12172
12173
12174if test -n "$WINDMC_FOR_TARGET"; then
12175 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12176elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12177 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12178fi
12179
12180if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12181 for ncn_progname in windmc; do
12182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12183set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185$as_echo_n "checking for $ac_word... " >&6; }
12186if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
901119ae
KT
12188else
12189 if test -n "$WINDMC_FOR_TARGET"; then
12190 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12191else
12192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
5213506e
RW
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12199 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12201 break 2
12202 fi
12203done
5213506e
RW
12204 done
12205IFS=$as_save_IFS
901119ae
KT
12206
12207fi
12208fi
12209WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12210if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12212$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12213else
5213506e
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
901119ae
KT
12216fi
12217
5213506e 12218
901119ae
KT
12219 done
12220fi
12221
12222if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12223 for ncn_progname in windmc; do
5213506e
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12225$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
12226 if test -x $with_build_time_tools/${ncn_progname}; then
12227 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229$as_echo "yes" >&6; }
901119ae
KT
12230 break
12231 else
5213506e
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
901119ae
KT
12234 fi
12235 done
12236fi
12237
12238if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12239 for ncn_progname in windmc; do
12240 if test -n "$ncn_target_tool_prefix"; then
12241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
12245if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
901119ae
KT
12247else
12248 if test -n "$WINDMC_FOR_TARGET"; then
12249 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
5213506e
RW
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12258 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12260 break 2
12261 fi
12262done
5213506e
RW
12263 done
12264IFS=$as_save_IFS
901119ae
KT
12265
12266fi
12267fi
12268WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12269if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12271$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12272else
5213506e
RW
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
901119ae
KT
12275fi
12276
5213506e 12277
901119ae
KT
12278 fi
12279 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283$as_echo_n "checking for $ac_word... " >&6; }
12284if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
901119ae
KT
12286else
12287 if test -n "$WINDMC_FOR_TARGET"; then
12288 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12289else
12290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291for as_dir in $PATH
12292do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
5213506e
RW
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12297 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12299 break 2
12300 fi
12301done
5213506e
RW
12302 done
12303IFS=$as_save_IFS
901119ae
KT
12304
12305fi
12306fi
12307WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12308if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12310$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12311else
5213506e
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
901119ae
KT
12314fi
12315
5213506e 12316
901119ae
KT
12317 fi
12318 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12323 set dummy windmc
12324 if test $build = $target ; then
12325 WINDMC_FOR_TARGET="$2"
12326 else
12327 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12328 fi
1c00b503
PB
12329else
12330 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
12331fi
12332
12333else
12334 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12335fi
12336
12337
2abefe3d
PB
12338RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12339
5213506e
RW
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12341$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 12342if test "x${build}" != "x${host}" ; then
e8b05380
PB
12343 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12344 # We already found the complete path
172e41aa 12345 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12347$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12348 else
12349 # Canadian cross, just use what we found
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12351$as_echo "pre-installed" >&6; }
e8b05380 12352 fi
2abefe3d
PB
12353else
12354 ok=yes
12355 case " ${configdirs} " in
12356 *" binutils "*) ;;
12357 *) ok=no ;;
12358 esac
1c710c3c 12359
2abefe3d
PB
12360 if test $ok = yes; then
12361 # An in-tree tool is available and we can use it
12362 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12364$as_echo "just compiled" >&6; }
e8b05380
PB
12365 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12366 # We already found the complete path
172e41aa 12367 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12369$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12370 elif test "x$target" = "x$host"; then
12371 # We can use an host tool
12372 AR_FOR_TARGET='$(AR)'
5213506e
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12374$as_echo "host tool" >&6; }
2abefe3d
PB
12375 else
12376 # We need a cross tool
5213506e
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12378$as_echo "pre-installed" >&6; }
2abefe3d
PB
12379 fi
12380fi
0b0dc272 12381
5213506e
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12383$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 12384if test "x${build}" != "x${host}" ; then
e8b05380
PB
12385 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12386 # We already found the complete path
172e41aa 12387 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12389$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12390 else
12391 # Canadian cross, just use what we found
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12393$as_echo "pre-installed" >&6; }
e8b05380 12394 fi
2abefe3d
PB
12395else
12396 ok=yes
12397 case " ${configdirs} " in
12398 *" gas "*) ;;
12399 *) ok=no ;;
12400 esac
1c710c3c 12401
2abefe3d
PB
12402 if test $ok = yes; then
12403 # An in-tree tool is available and we can use it
12404 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12406$as_echo "just compiled" >&6; }
e8b05380
PB
12407 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12408 # We already found the complete path
172e41aa 12409 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12411$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12412 elif test "x$target" = "x$host"; then
12413 # We can use an host tool
12414 AS_FOR_TARGET='$(AS)'
5213506e
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12416$as_echo "host tool" >&6; }
2abefe3d
PB
12417 else
12418 # We need a cross tool
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12420$as_echo "pre-installed" >&6; }
2abefe3d
PB
12421 fi
12422fi
0b0dc272 12423
5213506e
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12425$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 12426if test "x${build}" != "x${host}" ; then
e8b05380
PB
12427 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12428 # We already found the complete path
172e41aa 12429 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12431$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12432 else
12433 # Canadian cross, just use what we found
5213506e
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12435$as_echo "pre-installed" >&6; }
e8b05380 12436 fi
2abefe3d
PB
12437else
12438 ok=yes
12439 case " ${configdirs} " in
12440 *" gcc "*) ;;
12441 *) ok=no ;;
12442 esac
1c710c3c 12443
2abefe3d
PB
12444 if test $ok = yes; then
12445 # An in-tree tool is available and we can use it
12446 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12448$as_echo "just compiled" >&6; }
e8b05380
PB
12449 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12450 # We already found the complete path
172e41aa 12451 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12454 elif test "x$target" = "x$host"; then
12455 # We can use an host tool
12456 CC_FOR_TARGET='$(CC)'
5213506e
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12458$as_echo "host tool" >&6; }
2abefe3d
PB
12459 else
12460 # We need a cross tool
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12462$as_echo "pre-installed" >&6; }
2abefe3d
PB
12463 fi
12464fi
0b0dc272 12465
5213506e
RW
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12467$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 12468if test "x${build}" != "x${host}" ; then
e8b05380
PB
12469 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12470 # We already found the complete path
172e41aa 12471 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12473$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12474 else
12475 # Canadian cross, just use what we found
5213506e
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12477$as_echo "pre-installed" >&6; }
e8b05380 12478 fi
2abefe3d
PB
12479else
12480 ok=yes
12481 case " ${configdirs} " in
12482 *" gcc "*) ;;
12483 *) ok=no ;;
12484 esac
12485 case ,${enable_languages}, in
12486 *,c++,*) ;;
12487 *) ok=no ;;
12488 esac
12489 if test $ok = yes; then
12490 # An in-tree tool is available and we can use it
12491 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12493$as_echo "just compiled" >&6; }
e8b05380
PB
12494 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12495 # We already found the complete path
172e41aa 12496 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12498$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12499 elif test "x$target" = "x$host"; then
12500 # We can use an host tool
12501 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12503$as_echo "host tool" >&6; }
2abefe3d
PB
12504 else
12505 # We need a cross tool
5213506e
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12507$as_echo "pre-installed" >&6; }
2abefe3d
PB
12508 fi
12509fi
0b0dc272 12510
5213506e
RW
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12512$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 12513if test "x${build}" != "x${host}" ; then
e8b05380
PB
12514 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12515 # We already found the complete path
172e41aa 12516 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12518$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12519 else
12520 # Canadian cross, just use what we found
5213506e
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12522$as_echo "pre-installed" >&6; }
e8b05380 12523 fi
2abefe3d
PB
12524else
12525 ok=yes
12526 case " ${configdirs} " in
12527 *" gcc "*) ;;
12528 *) ok=no ;;
12529 esac
12530 case ,${enable_languages}, in
12531 *,c++,*) ;;
12532 *) ok=no ;;
12533 esac
12534 if test $ok = yes; then
12535 # An in-tree tool is available and we can use it
12536 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
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12538$as_echo "just compiled" >&6; }
e8b05380
PB
12539 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12540 # We already found the complete path
172e41aa 12541 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12543$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12544 elif test "x$target" = "x$host"; then
12545 # We can use an host tool
12546 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12548$as_echo "host tool" >&6; }
2abefe3d
PB
12549 else
12550 # We need a cross tool
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12552$as_echo "pre-installed" >&6; }
2abefe3d
PB
12553 fi
12554fi
0b0dc272 12555
5213506e
RW
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12557$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 12558if test "x${build}" != "x${host}" ; then
e8b05380
PB
12559 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12560 # We already found the complete path
172e41aa 12561 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12563$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12564 else
12565 # Canadian cross, just use what we found
5213506e
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12567$as_echo "pre-installed" >&6; }
e8b05380 12568 fi
2abefe3d
PB
12569else
12570 ok=yes
12571 case " ${configdirs} " in
12572 *" binutils "*) ;;
12573 *) ok=no ;;
12574 esac
1c710c3c 12575
2abefe3d
PB
12576 if test $ok = yes; then
12577 # An in-tree tool is available and we can use it
12578 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12580$as_echo "just compiled" >&6; }
e8b05380
PB
12581 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12582 # We already found the complete path
172e41aa 12583 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12585$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12586 elif test "x$target" = "x$host"; then
12587 # We can use an host tool
12588 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12590$as_echo "host tool" >&6; }
2abefe3d
PB
12591 else
12592 # We need a cross tool
5213506e
RW
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12594$as_echo "pre-installed" >&6; }
2abefe3d
PB
12595 fi
12596fi
0b0dc272 12597
5213506e
RW
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12599$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 12600if test "x${build}" != "x${host}" ; then
e8b05380
PB
12601 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12602 # We already found the complete path
172e41aa 12603 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12605$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12606 else
12607 # Canadian cross, just use what we found
5213506e
RW
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12609$as_echo "pre-installed" >&6; }
e8b05380 12610 fi
2abefe3d
PB
12611else
12612 ok=yes
12613 case " ${configdirs} " in
12614 *" gcc "*) ;;
12615 *) ok=no ;;
12616 esac
1c710c3c 12617
2abefe3d
PB
12618 if test $ok = yes; then
12619 # An in-tree tool is available and we can use it
12620 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12622$as_echo "just compiled" >&6; }
e8b05380
PB
12623 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12624 # We already found the complete path
172e41aa 12625 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12627$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12628 elif test "x$target" = "x$host"; then
12629 # We can use an host tool
12630 GCC_FOR_TARGET='$()'
5213506e
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12632$as_echo "host tool" >&6; }
2abefe3d
PB
12633 else
12634 # We need a cross tool
5213506e
RW
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12636$as_echo "pre-installed" >&6; }
2abefe3d
PB
12637 fi
12638fi
0b0dc272 12639
5213506e
RW
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12641$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 12642if test "x${build}" != "x${host}" ; then
e8b05380
PB
12643 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12644 # We already found the complete path
172e41aa 12645 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12647$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12648 else
12649 # Canadian cross, just use what we found
5213506e
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12651$as_echo "pre-installed" >&6; }
e8b05380 12652 fi
2abefe3d
PB
12653else
12654 ok=yes
12655 case " ${configdirs} " in
12656 *" gcc "*) ;;
12657 *) ok=no ;;
12658 esac
12659 case ,${enable_languages}, in
12660 *,java,*) ;;
12661 *) ok=no ;;
12662 esac
12663 if test $ok = yes; then
12664 # An in-tree tool is available and we can use it
12665 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12667$as_echo "just compiled" >&6; }
e8b05380
PB
12668 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12669 # We already found the complete path
172e41aa 12670 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12672$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12673 elif test "x$target" = "x$host"; then
12674 # We can use an host tool
12675 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12677$as_echo "host tool" >&6; }
2abefe3d
PB
12678 else
12679 # We need a cross tool
5213506e
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12681$as_echo "pre-installed" >&6; }
2abefe3d
PB
12682 fi
12683fi
0b0dc272 12684
5213506e
RW
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12686$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 12687if test "x${build}" != "x${host}" ; then
e8b05380
PB
12688 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12689 # We already found the complete path
172e41aa 12690 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12692$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12693 else
12694 # Canadian cross, just use what we found
5213506e
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12696$as_echo "pre-installed" >&6; }
e8b05380 12697 fi
2abefe3d
PB
12698else
12699 ok=yes
12700 case " ${configdirs} " in
12701 *" gcc "*) ;;
12702 *) ok=no ;;
12703 esac
12704 case ,${enable_languages}, in
12705 *,fortran,*) ;;
12706 *) ok=no ;;
12707 esac
12708 if test $ok = yes; then
12709 # An in-tree tool is available and we can use it
12710 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12712$as_echo "just compiled" >&6; }
e8b05380
PB
12713 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12714 # We already found the complete path
172e41aa 12715 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12717$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12718 elif test "x$target" = "x$host"; then
12719 # We can use an host tool
12720 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12722$as_echo "host tool" >&6; }
2abefe3d
PB
12723 else
12724 # We need a cross tool
5213506e
RW
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12726$as_echo "pre-installed" >&6; }
2abefe3d
PB
12727 fi
12728fi
0b0dc272 12729
5213506e
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12731$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 12732if test "x${build}" != "x${host}" ; then
e8b05380
PB
12733 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12734 # We already found the complete path
172e41aa 12735 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12738 else
12739 # Canadian cross, just use what we found
5213506e
RW
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741$as_echo "pre-installed" >&6; }
e8b05380 12742 fi
2abefe3d
PB
12743else
12744 ok=yes
12745 case " ${configdirs} " in
12746 *" ld "*) ;;
12747 *) ok=no ;;
12748 esac
1c710c3c 12749
2abefe3d
PB
12750 if test $ok = yes; then
12751 # An in-tree tool is available and we can use it
12752 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754$as_echo "just compiled" >&6; }
e8b05380
PB
12755 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12756 # We already found the complete path
172e41aa 12757 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12760 elif test "x$target" = "x$host"; then
12761 # We can use an host tool
12762 LD_FOR_TARGET='$(LD)'
5213506e
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764$as_echo "host tool" >&6; }
2abefe3d
PB
12765 else
12766 # We need a cross tool
5213506e
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768$as_echo "pre-installed" >&6; }
2abefe3d
PB
12769 fi
12770fi
0b0dc272 12771
5213506e
RW
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12773$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 12774if test "x${build}" != "x${host}" ; then
e8b05380
PB
12775 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12776 # We already found the complete path
172e41aa 12777 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12780 else
12781 # Canadian cross, just use what we found
5213506e
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783$as_echo "pre-installed" >&6; }
e8b05380 12784 fi
2abefe3d 12785else
e8b05380
PB
12786 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12787 # We already found the complete path
172e41aa 12788 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12790$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 12791 elif test "x$target" = "x$host"; then
2abefe3d
PB
12792 # We can use an host tool
12793 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12795$as_echo "host tool" >&6; }
2abefe3d
PB
12796 else
12797 # We need a cross tool
5213506e
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12799$as_echo "pre-installed" >&6; }
2abefe3d
PB
12800 fi
12801fi
0b0dc272 12802
5213506e
RW
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12804$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 12805if test "x${build}" != "x${host}" ; then
e8b05380
PB
12806 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12807 # We already found the complete path
172e41aa 12808 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12810$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12811 else
12812 # Canadian cross, just use what we found
5213506e
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12814$as_echo "pre-installed" >&6; }
e8b05380 12815 fi
2abefe3d
PB
12816else
12817 ok=yes
12818 case " ${configdirs} " in
12819 *" binutils "*) ;;
12820 *) ok=no ;;
12821 esac
1c710c3c 12822
2abefe3d
PB
12823 if test $ok = yes; then
12824 # An in-tree tool is available and we can use it
12825 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12827$as_echo "just compiled" >&6; }
e8b05380
PB
12828 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12829 # We already found the complete path
172e41aa 12830 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12832$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12833 elif test "x$target" = "x$host"; then
12834 # We can use an host tool
12835 NM_FOR_TARGET='$(NM)'
5213506e
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12837$as_echo "host tool" >&6; }
2abefe3d
PB
12838 else
12839 # We need a cross tool
5213506e
RW
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12841$as_echo "pre-installed" >&6; }
2abefe3d
PB
12842 fi
12843fi
0b0dc272 12844
5213506e
RW
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12846$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 12847if test "x${build}" != "x${host}" ; then
e8b05380
PB
12848 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12849 # We already found the complete path
172e41aa 12850 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12852$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12853 else
12854 # Canadian cross, just use what we found
5213506e
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12856$as_echo "pre-installed" >&6; }
e8b05380 12857 fi
2abefe3d
PB
12858else
12859 ok=yes
12860 case " ${configdirs} " in
12861 *" binutils "*) ;;
12862 *) ok=no ;;
12863 esac
1c710c3c 12864
2abefe3d
PB
12865 if test $ok = yes; then
12866 # An in-tree tool is available and we can use it
12867 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12869$as_echo "just compiled" >&6; }
e8b05380
PB
12870 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12871 # We already found the complete path
172e41aa 12872 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12874$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12875 elif test "x$target" = "x$host"; then
12876 # We can use an host tool
12877 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12879$as_echo "host tool" >&6; }
2abefe3d
PB
12880 else
12881 # We need a cross tool
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12883$as_echo "pre-installed" >&6; }
2abefe3d
PB
12884 fi
12885fi
0b0dc272 12886
5213506e
RW
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12888$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 12889if test "x${build}" != "x${host}" ; then
e8b05380
PB
12890 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12891 # We already found the complete path
172e41aa 12892 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12894$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12895 else
12896 # Canadian cross, just use what we found
5213506e
RW
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12898$as_echo "pre-installed" >&6; }
e8b05380 12899 fi
2abefe3d
PB
12900else
12901 ok=yes
12902 case " ${configdirs} " in
12903 *" binutils "*) ;;
12904 *) ok=no ;;
12905 esac
1c710c3c 12906
2abefe3d
PB
12907 if test $ok = yes; then
12908 # An in-tree tool is available and we can use it
12909 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12911$as_echo "just compiled" >&6; }
e8b05380
PB
12912 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12913 # We already found the complete path
172e41aa 12914 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12917 elif test "x$target" = "x$host"; then
12918 # We can use an host tool
12919 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12921$as_echo "host tool" >&6; }
2abefe3d
PB
12922 else
12923 # We need a cross tool
5213506e
RW
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12925$as_echo "pre-installed" >&6; }
2abefe3d
PB
12926 fi
12927fi
0b0dc272 12928
5213506e
RW
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
12930$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 12931if test "x${build}" != "x${host}" ; then
e8b05380
PB
12932 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12933 # We already found the complete path
172e41aa 12934 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12936$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12937 else
12938 # Canadian cross, just use what we found
5213506e
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12940$as_echo "pre-installed" >&6; }
e8b05380 12941 fi
2abefe3d
PB
12942else
12943 ok=yes
12944 case " ${configdirs} " in
12945 *" binutils "*) ;;
12946 *) ok=no ;;
12947 esac
1c710c3c 12948
2abefe3d
PB
12949 if test $ok = yes; then
12950 # An in-tree tool is available and we can use it
12951 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12953$as_echo "just compiled" >&6; }
e8b05380
PB
12954 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12955 # We already found the complete path
172e41aa 12956 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
12959 elif test "x$target" = "x$host"; then
12960 # We can use an host tool
12961 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12963$as_echo "host tool" >&6; }
2abefe3d
PB
12964 else
12965 # We need a cross tool
5213506e
RW
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12967$as_echo "pre-installed" >&6; }
2abefe3d
PB
12968 fi
12969fi
0b0dc272 12970
5213506e
RW
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
12972$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 12973if test "x${build}" != "x${host}" ; then
e8b05380
PB
12974 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12975 # We already found the complete path
172e41aa 12976 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12978$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
12979 else
12980 # Canadian cross, just use what we found
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12982$as_echo "pre-installed" >&6; }
e8b05380 12983 fi
2abefe3d
PB
12984else
12985 ok=yes
12986 case " ${configdirs} " in
12987 *" binutils "*) ;;
12988 *) ok=no ;;
12989 esac
1c710c3c 12990
2abefe3d
PB
12991 if test $ok = yes; then
12992 # An in-tree tool is available and we can use it
12993 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12995$as_echo "just compiled" >&6; }
e8b05380
PB
12996 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12997 # We already found the complete path
172e41aa 12998 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13001 elif test "x$target" = "x$host"; then
13002 # We can use an host tool
13003 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13005$as_echo "host tool" >&6; }
2abefe3d
PB
13006 else
13007 # We need a cross tool
5213506e
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13009$as_echo "pre-installed" >&6; }
2abefe3d 13010 fi
671aa708 13011fi
be912515 13012
5213506e
RW
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13014$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13015if test "x${build}" != "x${host}" ; then
13016 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13017 # We already found the complete path
13018 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13020$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13021 else
13022 # Canadian cross, just use what we found
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13024$as_echo "pre-installed" >&6; }
901119ae
KT
13025 fi
13026else
13027 ok=yes
13028 case " ${configdirs} " in
13029 *" binutils "*) ;;
13030 *) ok=no ;;
13031 esac
13032
13033 if test $ok = yes; then
13034 # An in-tree tool is available and we can use it
13035 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13037$as_echo "just compiled" >&6; }
901119ae
KT
13038 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13039 # We already found the complete path
13040 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13043 elif test "x$target" = "x$host"; then
13044 # We can use an host tool
13045 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13047$as_echo "host tool" >&6; }
901119ae
KT
13048 else
13049 # We need a cross tool
5213506e
RW
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13051$as_echo "pre-installed" >&6; }
901119ae
KT
13052 fi
13053fi
13054
be912515
NN
13055
13056
2abefe3d 13057
0b0dc272 13058
671aa708
NN
13059# Certain tools may need extra flags.
13060AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13061RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13062NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13063
2abefe3d
PB
13064# When building target libraries, except in a Canadian cross, we use
13065# the same toolchain as the compiler we just built.
13066COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13067COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13068COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13069if test $host = $build; then
13070 case " $configdirs " in
13071 *" gcc "*)
13072 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13073 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13074 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13075 ;;
13076 esac
13077fi
13078
13079
13080
13081
13082
5213506e
RW
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13084$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13085# Check whether --enable-maintainer-mode was given.
13086if test "${enable_maintainer_mode+set}" = set; then :
13087 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13088else
13089 USE_MAINTAINER_MODE=no
5213506e
RW
13090fi
13091
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13093$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13094
13095
13096if test "$USE_MAINTAINER_MODE" = yes; then
13097 MAINTAINER_MODE_TRUE=
13098 MAINTAINER_MODE_FALSE='#'
13099else
13100 MAINTAINER_MODE_TRUE='#'
13101 MAINTAINER_MODE_FALSE=
1c710c3c 13102fi
ee03dc5e
AO
13103MAINT=$MAINTAINER_MODE_TRUE
13104
2805b53a
NN
13105# ---------------------
13106# GCC bootstrap support
13107# ---------------------
13108
13109# Stage specific cflags for build.
13110stage1_cflags="-g"
13111case $build in
13112 vax-*-*)
13113 case ${GCC} in
13114 yes) stage1_cflags="-g -Wa,-J" ;;
13115 *) stage1_cflags="-g -J" ;;
13116 esac ;;
2805b53a
NN
13117esac
13118
0b50988a 13119# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13120if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13121 saved_CFLAGS="$CFLAGS"
13122
13123 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13124 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13126$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13128/* end confdefs.h. */
13129
9cc1244e
JJ
13130#if (__GNUC__ < 3) \
13131 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13132 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13133#error http://gcc.gnu.org/PR29382
13134#endif
13135
1c710c3c
DJ
13136int
13137main ()
13138{
13139
13140 ;
13141 return 0;
13142}
13143_ACEOF
5213506e
RW
13144if ac_fn_c_try_compile "$LINENO"; then :
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 13147else
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
1c710c3c 13150fi
5213506e 13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
13152
13153 CFLAGS="$saved_CFLAGS"
13154fi
13155
13156
2805b53a 13157
8efea775 13158# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
13159# Check whether --enable-stage1-checking was given.
13160if test "${enable_stage1_checking+set}" = set; then :
13161 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 13162else
e643dc23 13163 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 13164 stage1_checking=--enable-checking=yes,types
8efea775 13165else
e643dc23 13166 stage1_checking=--enable-checking=$enable_checking,types
8efea775 13167fi
5213506e 13168fi
8efea775
PB
13169
13170
2aeb72e9 13171
5213506e
RW
13172# Enable -Werror in bootstrap stage2 and later.
13173# Check whether --enable-werror was given.
13174if test "${enable_werror+set}" = set; then :
13175 enableval=$enable_werror;
2805b53a 13176else
416cfb5e 13177 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 13178 enable_werror=yes
88fceb68
PB
13179else
13180 enable_werror=no
13181fi
5213506e
RW
13182fi
13183
09a9c095
NN
13184case ${enable_werror} in
13185 yes) stage2_werror_flag="--enable-werror-always" ;;
13186 *) stage2_werror_flag="" ;;
2805b53a
NN
13187esac
13188
13189
32845532 13190# Flags needed to enable html installing and building
1c710c3c 13191
5213506e
RW
13192# Check whether --with-datarootdir was given.
13193if test "${with_datarootdir+set}" = set; then :
13194 withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
32845532
CD
13195else
13196 datarootdir="\${prefix}/share"
5213506e
RW
13197fi
13198
32845532
CD
13199
13200
5213506e
RW
13201# Check whether --with-docdir was given.
13202if test "${with_docdir+set}" = set; then :
13203 withval=$with_docdir; docdir="\${prefix}/${withval}"
32845532
CD
13204else
13205 docdir="\${datarootdir}/doc"
5213506e
RW
13206fi
13207
32845532
CD
13208
13209
5213506e
RW
13210# Check whether --with-pdfdir was given.
13211if test "${with_pdfdir+set}" = set; then :
13212 withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
9c4d2493
BM
13213else
13214 pdfdir="\${docdir}"
5213506e
RW
13215fi
13216
9c4d2493
BM
13217
13218
5213506e
RW
13219# Check whether --with-htmldir was given.
13220if test "${with_htmldir+set}" = set; then :
13221 withval=$with_htmldir; htmldir="\${prefix}/${withval}"
32845532
CD
13222else
13223 htmldir="\${docdir}"
5213506e
RW
13224fi
13225
32845532
CD
13226
13227
13228
13229
172e41aa 13230
11a67599 13231
f2689b09
SE
13232# Specify what files to not compare during bootstrap.
13233
13234compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13235case "$target" in
13236 hppa*64*-*-hpux*) ;;
13237 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13238esac
13239
13240
5213506e
RW
13241ac_config_files="$ac_config_files Makefile"
13242
1c710c3c 13243cat >confcache <<\_ACEOF
671aa708
NN
13244# This file is a shell script that caches the results of configure
13245# tests run on this system so they can be shared between configure
1c710c3c
DJ
13246# scripts and configure runs, see configure's option --config-cache.
13247# It is not useful on other systems. If it contains results you don't
13248# want to keep, you may remove or edit it.
671aa708 13249#
1c710c3c
DJ
13250# config.status only pays attention to the cache file if you give it
13251# the --recheck option to rerun configure.
671aa708 13252#
1c710c3c
DJ
13253# `ac_cv_env_foo' variables (set or unset) will be overridden when
13254# loading this file, other *unset* `ac_cv_foo' will be assigned the
13255# following values.
13256
13257_ACEOF
13258
671aa708
NN
13259# The following way of writing the cache mishandles newlines in values,
13260# but we know of no workaround that is simple, portable, and efficient.
5213506e 13261# So, we kill variables containing newlines.
671aa708
NN
13262# Ultrix sh set writes to stderr and can't be redirected directly,
13263# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
13264(
13265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13266 eval ac_val=\$$ac_var
13267 case $ac_val in #(
13268 *${as_nl}*)
13269 case $ac_var in #(
13270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13272 esac
13273 case $ac_var in #(
13274 _ | IFS | as_nl) ;; #(
13275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13276 *) { eval $ac_var=; unset $ac_var;} ;;
13277 esac ;;
13278 esac
13279 done
13280
1c710c3c 13281 (set) 2>&1 |
5213506e
RW
13282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13283 *${as_nl}ac_space=\ *)
13284 # `set' does not quote correctly, so add quotes: double-quote
13285 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
13286 sed -n \
13287 "s/'/'\\\\''/g;
13288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 13289 ;; #(
1c710c3c
DJ
13290 *)
13291 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 13292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 13293 ;;
5213506e
RW
13294 esac |
13295 sort
13296) |
1c710c3c 13297 sed '
5213506e 13298 /^ac_cv_env_/b end
1c710c3c 13299 t clear
5213506e 13300 :clear
1c710c3c
DJ
13301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13302 t end
5213506e
RW
13303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13304 :end' >>confcache
13305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13306 if test -w "$cache_file"; then
13307 test "x$cache_file" != "x/dev/null" &&
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13309$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 13310 cat confcache >$cache_file
671aa708 13311 else
5213506e
RW
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 13314 fi
4977bab6 13315fi
671aa708 13316rm -f confcache
79c06341 13317
671aa708
NN
13318test "x$prefix" = xNONE && prefix=$ac_default_prefix
13319# Let make expand exec_prefix.
13320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 13321
671aa708
NN
13322# Transform confdefs.h into DEFS.
13323# Protect against shell expansion while executing Makefile rules.
13324# Protect against Makefile macro expansion.
1c710c3c
DJ
13325#
13326# If the first sed substitution is executed (which looks for macros that
5213506e 13327# take arguments), then branch to the quote section. Otherwise,
1c710c3c 13328# look for a macro that doesn't take arguments.
5213506e
RW
13329ac_script='
13330:mline
13331/\\$/{
13332 N
13333 s,\\\n,,
13334 b mline
13335}
1c710c3c 13336t clear
5213506e
RW
13337:clear
13338s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13339t quote
5213506e 13340s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 13341t quote
5213506e
RW
13342b any
13343:quote
13344s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13345s/\[/\\&/g
13346s/\]/\\&/g
13347s/\$/$$/g
13348H
13349:any
13350${
13351 g
13352 s/^\n//
13353 s/\n/ /g
13354 p
13355}
13356'
13357DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
13358
13359
13360ac_libobjs=
13361ac_ltlibobjs=
13362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13363 # 1. Remove the extension, and $U if already installed.
5213506e
RW
13364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13367 # will be set to the directory where LIBOBJS objects are built.
13368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
13370done
13371LIBOBJS=$ac_libobjs
fb0103e5 13372
1c710c3c 13373LTLIBOBJS=$ac_ltlibobjs
0b0dc272 13374
af71363e 13375
1c710c3c
DJ
13376
13377: ${CONFIG_STATUS=./config.status}
5213506e 13378ac_write_fail=0
1c710c3c
DJ
13379ac_clean_files_save=$ac_clean_files
13380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13383as_write_fail=0
13384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
13385#! $SHELL
13386# Generated by $as_me.
671aa708 13387# Run this file to recreate the current configuration.
671aa708 13388# Compiler output produced by configure, useful for debugging
1c710c3c 13389# configure, is in config.log if it exists.
0b0dc272 13390
1c710c3c
DJ
13391debug=false
13392ac_cs_recheck=false
13393ac_cs_silent=false
1c710c3c 13394
5213506e
RW
13395SHELL=\${CONFIG_SHELL-$SHELL}
13396export SHELL
13397_ASEOF
13398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13399## -------------------- ##
13400## M4sh Initialization. ##
13401## -------------------- ##
13402
13403# Be more Bourne compatible
13404DUALCASE=1; export DUALCASE # for MKS sh
13405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
13406 emulate sh
13407 NULLCMD=:
5213506e 13408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
13409 # is contrary to our usage. Disable this feature.
13410 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
13411 setopt NO_GLOB_SUBST
13412else
13413 case `(set -o) 2>/dev/null` in #(
13414 *posix*) :
13415 set -o posix ;; #(
13416 *) :
13417 ;;
13418esac
1c710c3c 13419fi
1c710c3c 13420
5213506e
RW
13421
13422as_nl='
13423'
13424export as_nl
13425# Printing a long string crashes Solaris 7 /usr/bin/printf.
13426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13429# Prefer a ksh shell builtin over an external printf program on Solaris,
13430# but without wasting forks for bash or zsh.
13431if test -z "$BASH_VERSION$ZSH_VERSION" \
13432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13433 as_echo='print -r --'
13434 as_echo_n='print -rn --'
13435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13436 as_echo='printf %s\n'
13437 as_echo_n='printf %s'
13438else
13439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13441 as_echo_n='/usr/ucb/echo -n'
13442 else
13443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13444 as_echo_n_body='eval
13445 arg=$1;
13446 case $arg in #(
13447 *"$as_nl"*)
13448 expr "X$arg" : "X\\(.*\\)$as_nl";
13449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13450 esac;
13451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13452 '
13453 export as_echo_n_body
13454 as_echo_n='sh -c $as_echo_n_body as_echo'
13455 fi
13456 export as_echo_body
13457 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
13458fi
13459
5213506e
RW
13460# The user is always right.
13461if test "${PATH_SEPARATOR+set}" != set; then
13462 PATH_SEPARATOR=:
13463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13465 PATH_SEPARATOR=';'
13466 }
13467fi
13468
13469
13470# IFS
13471# We need space, tab and new line, in precisely that order. Quoting is
13472# there to prevent editors from complaining about space-tab.
13473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13474# splitting by setting IFS to empty value.)
13475IFS=" "" $as_nl"
13476
13477# Find who we are. Look in the path if we contain no directory separator.
13478case $0 in #((
13479 *[\\/]* ) as_myself=$0 ;;
13480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13486 done
13487IFS=$as_save_IFS
13488
13489 ;;
13490esac
13491# We did not find ourselves, most probably we were run as `sh COMMAND'
13492# in which case we are not to be found in the path.
13493if test "x$as_myself" = x; then
13494 as_myself=$0
13495fi
13496if test ! -f "$as_myself"; then
13497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498 exit 1
13499fi
1c710c3c 13500
5213506e
RW
13501# Unset variables that we do not need and which cause bugs (e.g. in
13502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13503# suppresses any "Segmentation fault" message there. '((' could
13504# trigger a bug in pdksh 5.2.14.
13505for as_var in BASH_ENV ENV MAIL MAILPATH
13506do eval test x\${$as_var+set} = xset \
13507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13508done
1c710c3c
DJ
13509PS1='$ '
13510PS2='> '
13511PS4='+ '
13512
13513# NLS nuisances.
5213506e
RW
13514LC_ALL=C
13515export LC_ALL
13516LANGUAGE=C
13517export LANGUAGE
13518
13519# CDPATH.
13520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13521
13522
13523# as_fn_error ERROR [LINENO LOG_FD]
13524# ---------------------------------
13525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13527# script with status $?, using 1 if that was 0.
13528as_fn_error ()
13529{
13530 as_status=$?; test $as_status -eq 0 && as_status=1
13531 if test "$3"; then
13532 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 13534 fi
5213506e
RW
13535 $as_echo "$as_me: error: $1" >&2
13536 as_fn_exit $as_status
13537} # as_fn_error
13538
13539
13540# as_fn_set_status STATUS
13541# -----------------------
13542# Set $? to STATUS, without forking.
13543as_fn_set_status ()
13544{
13545 return $1
13546} # as_fn_set_status
13547
13548# as_fn_exit STATUS
13549# -----------------
13550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551as_fn_exit ()
13552{
13553 set +e
13554 as_fn_set_status $1
13555 exit $1
13556} # as_fn_exit
13557
13558# as_fn_unset VAR
13559# ---------------
13560# Portably unset VAR.
13561as_fn_unset ()
13562{
13563 { eval $1=; unset $1;}
13564}
13565as_unset=as_fn_unset
13566# as_fn_append VAR VALUE
13567# ----------------------
13568# Append the text in VALUE to the end of the definition contained in VAR. Take
13569# advantage of any shell optimizations that allow amortized linear growth over
13570# repeated appends, instead of the typical quadratic growth present in naive
13571# implementations.
13572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13573 eval 'as_fn_append ()
13574 {
13575 eval $1+=\$2
13576 }'
13577else
13578 as_fn_append ()
13579 {
13580 eval $1=\$$1\$2
13581 }
13582fi # as_fn_append
13583
13584# as_fn_arith ARG...
13585# ------------------
13586# Perform arithmetic evaluation on the ARGs, and store the result in the
13587# global $as_val. Take advantage of shells that can avoid forks. The arguments
13588# must be portable across $(()) and expr.
13589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13590 eval 'as_fn_arith ()
13591 {
13592 as_val=$(( $* ))
13593 }'
13594else
13595 as_fn_arith ()
13596 {
13597 as_val=`expr "$@" || test $? -eq 1`
13598 }
13599fi # as_fn_arith
13600
1c710c3c 13601
5213506e
RW
13602if expr a : '\(a\)' >/dev/null 2>&1 &&
13603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
13604 as_expr=expr
13605else
13606 as_expr=false
13607fi
13608
5213506e 13609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
13610 as_basename=basename
13611else
13612 as_basename=false
13613fi
13614
5213506e
RW
13615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13616 as_dirname=dirname
13617else
13618 as_dirname=false
13619fi
1c710c3c 13620
5213506e 13621as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
13622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13623 X"$0" : 'X\(//\)$' \| \
5213506e
RW
13624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13625$as_echo X/"$0" |
13626 sed '/^.*\/\([^/][^/]*\)\/*$/{
13627 s//\1/
13628 q
13629 }
13630 /^X\/\(\/\/\)$/{
13631 s//\1/
13632 q
13633 }
13634 /^X\/\(\/\).*/{
13635 s//\1/
13636 q
13637 }
13638 s/.*/./; q'`
2aeb72e9 13639
2aeb72e9
DD
13640# Avoid depending upon Character Ranges.
13641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13644as_cr_digits='0123456789'
13645as_cr_alnum=$as_cr_Letters$as_cr_digits
13646
5213506e
RW
13647ECHO_C= ECHO_N= ECHO_T=
13648case `echo -n x` in #(((((
13649-n*)
13650 case `echo 'xy\c'` in
13651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13652 xy) ECHO_C='\c';;
13653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13654 ECHO_T=' ';;
13655 esac;;
13656*)
13657 ECHO_N='-n';;
1c710c3c
DJ
13658esac
13659
5213506e
RW
13660rm -f conf$$ conf$$.exe conf$$.file
13661if test -d conf$$.dir; then
13662 rm -f conf$$.dir/conf$$.file
1c710c3c 13663else
5213506e
RW
13664 rm -f conf$$.dir
13665 mkdir conf$$.dir 2>/dev/null
1c710c3c 13666fi
5213506e
RW
13667if (echo >conf$$.file) 2>/dev/null; then
13668 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 13669 as_ln_s='ln -s'
5213506e
RW
13670 # ... but there are two gotchas:
13671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673 # In both cases, we have to default to `cp -p'.
13674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675 as_ln_s='cp -p'
13676 elif ln conf$$.file conf$$ 2>/dev/null; then
13677 as_ln_s=ln
13678 else
13679 as_ln_s='cp -p'
2aeb72e9 13680 fi
1c710c3c
DJ
13681else
13682 as_ln_s='cp -p'
13683fi
5213506e
RW
13684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13685rmdir conf$$.dir 2>/dev/null
13686
13687
13688# as_fn_mkdir_p
13689# -------------
13690# Create "$as_dir" as a directory, including parents if necessary.
13691as_fn_mkdir_p ()
13692{
13693
13694 case $as_dir in #(
13695 -*) as_dir=./$as_dir;;
13696 esac
13697 test -d "$as_dir" || eval $as_mkdir_p || {
13698 as_dirs=
13699 while :; do
13700 case $as_dir in #(
13701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13702 *) as_qdir=$as_dir;;
13703 esac
13704 as_dirs="'$as_qdir' $as_dirs"
13705 as_dir=`$as_dirname -- "$as_dir" ||
13706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707 X"$as_dir" : 'X\(//\)[^/]' \| \
13708 X"$as_dir" : 'X\(//\)$' \| \
13709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13710$as_echo X"$as_dir" |
13711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712 s//\1/
13713 q
13714 }
13715 /^X\(\/\/\)[^/].*/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)$/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\).*/{
13724 s//\1/
13725 q
13726 }
13727 s/.*/./; q'`
13728 test -d "$as_dir" && break
13729 done
13730 test -z "$as_dirs" || eval "mkdir $as_dirs"
13731 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13732
1c710c3c 13733
5213506e 13734} # as_fn_mkdir_p
1c710c3c 13735if mkdir -p . 2>/dev/null; then
5213506e 13736 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
13737else
13738 test -d ./-p && rmdir ./-p
13739 as_mkdir_p=false
13740fi
13741
5213506e
RW
13742if test -x / >/dev/null 2>&1; then
13743 as_test_x='test -x'
13744else
13745 if ls -dL / >/dev/null 2>&1; then
13746 as_ls_L_option=L
13747 else
13748 as_ls_L_option=
13749 fi
13750 as_test_x='
13751 eval sh -c '\''
13752 if test -d "$1"; then
13753 test -d "$1/.";
13754 else
13755 case $1 in #(
13756 -*)set "./$1";;
13757 esac;
13758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13759 ???[sx]*):;;*)false;;esac;fi
13760 '\'' sh
13761 '
13762fi
13763as_executable_p=$as_test_x
1c710c3c
DJ
13764
13765# Sed expression to map a string onto a valid CPP name.
13766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13767
13768# Sed expression to map a string onto a valid variable name.
13769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13770
13771
1c710c3c 13772exec 6>&1
5213506e
RW
13773## ----------------------------------- ##
13774## Main body of $CONFIG_STATUS script. ##
13775## ----------------------------------- ##
13776_ASEOF
13777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13778
13779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13780# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 13781# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
13782# values after options handling.
13783ac_log="
1c710c3c 13784This file was extended by $as_me, which was
5213506e 13785generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
13786
13787 CONFIG_FILES = $CONFIG_FILES
13788 CONFIG_HEADERS = $CONFIG_HEADERS
13789 CONFIG_LINKS = $CONFIG_LINKS
13790 CONFIG_COMMANDS = $CONFIG_COMMANDS
13791 $ $0 $@
13792
5213506e
RW
13793on `(hostname || uname -n) 2>/dev/null | sed 1q`
13794"
13795
1c710c3c
DJ
13796_ACEOF
13797
5213506e
RW
13798case $ac_config_files in *"
13799"*) set x $ac_config_files; shift; ac_config_files=$*;;
13800esac
1c710c3c 13801
2aeb72e9 13802
2aeb72e9 13803
5213506e
RW
13804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13805# Files that config.status was made for.
13806config_files="$ac_config_files"
1c710c3c 13807
5213506e 13808_ACEOF
2aeb72e9 13809
5213506e 13810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 13811ac_cs_usage="\
5213506e
RW
13812\`$as_me' instantiates files and other configuration actions
13813from templates according to the current configuration. Unless the files
13814and actions are specified as TAGs, all are instantiated by default.
1c710c3c 13815
5213506e 13816Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
13817
13818 -h, --help print this help, then exit
5213506e
RW
13819 -V, --version print version number and configuration settings, then exit
13820 -q, --quiet, --silent
13821 do not print progress messages
1c710c3c
DJ
13822 -d, --debug don't remove temporary files
13823 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
13824 --file=FILE[:TEMPLATE]
13825 instantiate the configuration file FILE
1c710c3c
DJ
13826
13827Configuration files:
13828$config_files
13829
5213506e 13830Report bugs to the package provider."
2aeb72e9 13831
5213506e
RW
13832_ACEOF
13833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
13834ac_cs_version="\\
13835config.status
5213506e
RW
13836configured by $0, generated by GNU Autoconf 2.64,
13837 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13838
5213506e 13839Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
13840This config.status script is free software; the Free Software Foundation
13841gives unlimited permission to copy, distribute and modify it."
5213506e
RW
13842
13843ac_pwd='$ac_pwd'
13844srcdir='$srcdir'
13845INSTALL='$INSTALL'
13846test -n "\$AWK" || AWK=awk
1c710c3c
DJ
13847_ACEOF
13848
5213506e
RW
13849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850# The default lists apply if the user does not specify any file.
1c710c3c
DJ
13851ac_need_defaults=:
13852while test $# != 0
a4b9e93e 13853do
1c710c3c
DJ
13854 case $1 in
13855 --*=*)
5213506e
RW
13856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
13858 ac_shift=:
13859 ;;
5213506e 13860 *)
1c710c3c
DJ
13861 ac_option=$1
13862 ac_optarg=$2
13863 ac_shift=shift
13864 ;;
1c710c3c
DJ
13865 esac
13866
13867 case $ac_option in
13868 # Handling of the options.
671aa708 13869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13870 ac_cs_recheck=: ;;
5213506e
RW
13871 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13872 $as_echo "$ac_cs_version"; exit ;;
13873 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
13874 debug=: ;;
13875 --file | --fil | --fi | --f )
13876 $ac_shift
5213506e
RW
13877 case $ac_optarg in
13878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13879 esac
13880 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 13881 ac_need_defaults=false;;
5213506e
RW
13882 --he | --h | --help | --hel | -h )
13883 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
13884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13886 ac_cs_silent=: ;;
13887
13888 # This is an error.
5213506e
RW
13889 -*) as_fn_error "unrecognized option: \`$1'
13890Try \`$0 --help' for more information." ;;
1c710c3c 13891
5213506e
RW
13892 *) as_fn_append ac_config_targets " $1"
13893 ac_need_defaults=false ;;
1c710c3c 13894
0b0dc272 13895 esac
1c710c3c 13896 shift
0b0dc272
AM
13897done
13898
1c710c3c 13899ac_configure_extra_args=
0b0dc272 13900
1c710c3c
DJ
13901if $ac_cs_silent; then
13902 exec 6>/dev/null
13903 ac_configure_extra_args="$ac_configure_extra_args --silent"
13904fi
0b0dc272 13905
1c710c3c 13906_ACEOF
5213506e 13907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 13908if \$ac_cs_recheck; then
5213506e
RW
13909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13910 shift
13911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13912 CONFIG_SHELL='$SHELL'
13913 export CONFIG_SHELL
13914 exec "\$@"
1c710c3c
DJ
13915fi
13916
13917_ACEOF
5213506e
RW
13918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13919exec 5>>config.log
13920{
13921 echo
13922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13923## Running $as_me. ##
13924_ASBOX
13925 $as_echo "$ac_log"
13926} >&5
1c710c3c 13927
5213506e
RW
13928_ACEOF
13929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930_ACEOF
1c710c3c 13931
5213506e 13932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 13933
5213506e 13934# Handling of arguments.
1c710c3c
DJ
13935for ac_config_target in $ac_config_targets
13936do
5213506e
RW
13937 case $ac_config_target in
13938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13939
13940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
13941 esac
13942done
13943
5213506e 13944
1c710c3c
DJ
13945# If the user did not use the arguments to specify the items to instantiate,
13946# then the envvar interface is used. Set only those that are not.
13947# We use the long form for the default assignment because of an extremely
13948# bizarre bug on SunOS 4.1.3.
13949if $ac_need_defaults; then
13950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13951fi
13952
13953# Have a temporary directory for convenience. Make it in the build tree
5213506e 13954# simply because there is no reason against having it here, and in addition,
1c710c3c 13955# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
13956# Hook for its removal unless debugging.
13957# Note that there is a small window in which the directory will not be cleaned:
13958# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
13959$debug ||
13960{
5213506e
RW
13961 tmp=
13962 trap 'exit_status=$?
13963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13964' 0
13965 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 13966}
1c710c3c
DJ
13967# Create a (secure) tmp directory for tmp files.
13968
13969{
5213506e 13970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13971 test -n "$tmp" && test -d "$tmp"
13972} ||
13973{
5213506e
RW
13974 tmp=./conf$$-$RANDOM
13975 (umask 077 && mkdir "$tmp")
13976} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13977
13978# Set up the scripts for CONFIG_FILES section.
13979# No need to generate them if there are no CONFIG_FILES.
13980# This happens for instance with `./config.status config.h'.
13981if test -n "$CONFIG_FILES"; then
13982
13983if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13984 ac_cs_awk_getline=:
13985 ac_cs_awk_pipe_init=
13986 ac_cs_awk_read_file='
13987 while ((getline aline < (F[key])) > 0)
13988 print(aline)
13989 close(F[key])'
13990 ac_cs_awk_pipe_fini=
13991else
13992 ac_cs_awk_getline=false
13993 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13994 ac_cs_awk_read_file='
13995 print "|#_!!_#|"
13996 print "cat " F[key] " &&"
13997 '$ac_cs_awk_pipe_init
13998 # The final `:' finishes the AND list.
13999 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14000fi
14001ac_cr=`echo X | tr X '\015'`
14002# On cygwin, bash can eat \r inside `` if the user requested igncr.
14003# But we know of no other shell where ac_cr would be empty at this
14004# point, so we can use a bashism as a fallback.
14005if test "x$ac_cr" = x; then
14006 eval ac_cr=\$\'\\r\'
14007fi
14008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14010 ac_cs_awk_cr='\r'
14011else
14012 ac_cs_awk_cr=$ac_cr
14013fi
14014
14015echo 'BEGIN {' >"$tmp/subs1.awk" &&
14016_ACEOF
14017
14018# Create commands to substitute file output variables.
1c710c3c 14019{
5213506e
RW
14020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14022 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14023 echo "_ACAWK" &&
14024 echo "_ACEOF"
14025} >conf$$files.sh &&
14026. ./conf$$files.sh ||
14027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14028rm -f conf$$files.sh
1c710c3c 14029
5213506e
RW
14030{
14031 echo "cat >conf$$subs.awk <<_ACEOF" &&
14032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14033 echo "_ACEOF"
14034} >conf$$subs.sh ||
14035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14036ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14037ac_delim='%!_!# '
14038for ac_last_try in false false false false false :; do
14039 . ./conf$$subs.sh ||
14040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14041
14042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14043 if test $ac_delim_n = $ac_delim_num; then
14044 break
14045 elif $ac_last_try; then
14046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14047 else
14048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14049 fi
14050done
14051rm -f conf$$subs.sh
14052
14053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14055_ACEOF
5213506e
RW
14056sed -n '
14057h
14058s/^/S["/; s/!.*/"]=/
14059p
14060g
14061s/^[^!]*!//
14062:repl
14063t repl
14064s/'"$ac_delim"'$//
14065t delim
14066:nl
14067h
14068s/\(.\{148\}\).*/\1/
14069t more1
14070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14071p
14072n
14073b repl
14074:more1
14075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14076p
14077g
14078s/.\{148\}//
14079t nl
14080:delim
14081h
14082s/\(.\{148\}\).*/\1/
14083t more2
14084s/["\\]/\\&/g; s/^/"/; s/$/"/
14085p
14086b
14087:more2
14088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14089p
14090g
14091s/.\{148\}//
14092t delim
14093' <conf$$subs.awk | sed '
14094/^[^""]/{
14095 N
14096 s/\n//
14097}
14098' >>$CONFIG_STATUS || ac_write_fail=1
14099rm -f conf$$subs.awk
14100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101_ACAWK
14102cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14103 for (key in S) S_is_set[key] = 1
14104 FS = "\a"
14105 \$ac_cs_awk_pipe_init
14106}
14107{
14108 line = $ 0
14109 nfields = split(line, field, "@")
14110 substed = 0
14111 len = length(field[1])
14112 for (i = 2; i < nfields; i++) {
14113 key = field[i]
14114 keylen = length(key)
14115 if (S_is_set[key]) {
14116 value = S[key]
14117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14118 len += length(value) + length(field[++i])
14119 substed = 1
14120 } else
14121 len += 1 + keylen
14122 }
14123 if (nfields == 3 && !substed) {
14124 key = field[2]
14125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14126 \$ac_cs_awk_read_file
14127 next
14128 }
14129 }
14130 print line
14131}
14132\$ac_cs_awk_pipe_fini
14133_ACAWK
14134_ACEOF
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14138else
14139 cat
14140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14142_ACEOF
14143
14144# VPATH may cause trouble with some makes, so we remove $(srcdir),
14145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14146# trailing colons and then remove the whole line if VPATH becomes empty
14147# (actually we leave an empty line to preserve line numbers).
14148if test "x$srcdir" = x.; then
14149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14150s/:*\$(srcdir):*/:/
14151s/:*\${srcdir}:*/:/
14152s/:*@srcdir@:*/:/
14153s/^\([^=]*=[ ]*\):*/\1/
14154s/:*$//
14155s/^[^=]*=[ ]*$//
14156}'
14157fi
2aeb72e9 14158
5213506e
RW
14159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160fi # test -n "$CONFIG_FILES"
2aeb72e9 14161
1c710c3c 14162
5213506e
RW
14163eval set X " :F $CONFIG_FILES "
14164shift
14165for ac_tag
14166do
14167 case $ac_tag in
14168 :[FHLC]) ac_mode=$ac_tag; continue;;
14169 esac
14170 case $ac_mode$ac_tag in
14171 :[FHL]*:*);;
14172 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14173 :[FH]-) ac_tag=-:-;;
14174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14175 esac
14176 ac_save_IFS=$IFS
14177 IFS=:
14178 set x $ac_tag
14179 IFS=$ac_save_IFS
14180 shift
14181 ac_file=$1
14182 shift
79c06341 14183
5213506e
RW
14184 case $ac_mode in
14185 :L) ac_source=$1;;
14186 :[FH])
14187 ac_file_inputs=
14188 for ac_f
14189 do
14190 case $ac_f in
14191 -) ac_f="$tmp/stdin";;
14192 *) # Look for the file first in the build tree, then in the source tree
14193 # (if the path is not absolute). The absolute path cannot be DOS-style,
14194 # because $ac_f cannot contain `:'.
14195 test -f "$ac_f" ||
14196 case $ac_f in
14197 [\\/$]*) false;;
14198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14199 esac ||
14200 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14201 esac
14202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14203 as_fn_append ac_file_inputs " '$ac_f'"
14204 done
1c710c3c 14205
5213506e
RW
14206 # Let's still pretend it is `configure' which instantiates (i.e., don't
14207 # use $as_me), people would be surprised to read:
14208 # /* config.h. Generated by config.status. */
14209 configure_input='Generated from '`
14210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14211 `' by configure.'
14212 if test x"$ac_file" != x-; then
14213 configure_input="$ac_file. $configure_input"
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14215$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 14216 fi
5213506e
RW
14217 # Neutralize special characters interpreted by sed in replacement strings.
14218 case $configure_input in #(
14219 *\&* | *\|* | *\\* )
14220 ac_sed_conf_input=`$as_echo "$configure_input" |
14221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14222 *) ac_sed_conf_input=$configure_input;;
14223 esac
11a67599 14224
5213506e
RW
14225 case $ac_tag in
14226 *:-:* | *:-) cat >"$tmp/stdin" \
14227 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14228 esac
14229 ;;
11a67599
ZW
14230 esac
14231
5213506e 14232 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
14233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14234 X"$ac_file" : 'X\(//\)[^/]' \| \
14235 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14237$as_echo X"$ac_file" |
14238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14239 s//\1/
14240 q
14241 }
14242 /^X\(\/\/\)[^/].*/{
14243 s//\1/
14244 q
14245 }
14246 /^X\(\/\/\)$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\(\/\).*/{
14251 s//\1/
14252 q
14253 }
14254 s/.*/./; q'`
14255 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 14256 ac_builddir=.
0b0dc272 14257
5213506e
RW
14258case "$ac_dir" in
14259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14260*)
14261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14262 # A ".." for each directory in $ac_dir_suffix.
14263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14264 case $ac_top_builddir_sub in
14265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14267 esac ;;
14268esac
14269ac_abs_top_builddir=$ac_pwd
14270ac_abs_builddir=$ac_pwd$ac_dir_suffix
14271# for backward compatibility:
14272ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
14273
14274case $srcdir in
5213506e 14275 .) # We are building in place.
1c710c3c 14276 ac_srcdir=.
5213506e
RW
14277 ac_top_srcdir=$ac_top_builddir_sub
14278 ac_abs_top_srcdir=$ac_pwd ;;
14279 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 14280 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14281 ac_top_srcdir=$srcdir
14282 ac_abs_top_srcdir=$srcdir ;;
14283 *) # Relative name.
14284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14285 ac_top_srcdir=$ac_top_build_prefix$srcdir
14286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 14287esac
5213506e 14288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 14289
0b0dc272 14290
5213506e
RW
14291 case $ac_mode in
14292 :F)
14293 #
14294 # CONFIG_FILE
14295 #
1c710c3c
DJ
14296
14297 case $INSTALL in
14298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 14299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 14300 esac
5213506e 14301_ACEOF
11a67599 14302
5213506e
RW
14303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304# If the template does not know about datarootdir, expand it.
14305# FIXME: This hack should be removed a few years after 2.60.
14306ac_datarootdir_hack=; ac_datarootdir_seen=
14307ac_sed_dataroot='
14308/datarootdir/ {
14309 p
14310 q
14311}
14312/@datadir@/p
14313/@docdir@/p
14314/@infodir@/p
14315/@localedir@/p
14316/@mandir@/p'
14317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14318*datarootdir*) ac_datarootdir_seen=yes;;
14319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 14322_ACEOF
5213506e
RW
14323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14324 ac_datarootdir_hack='
14325 s&@datadir@&$datadir&g
14326 s&@docdir@&$docdir&g
14327 s&@infodir@&$infodir&g
14328 s&@localedir@&$localedir&g
14329 s&@mandir@&$mandir&g
14330 s&\\\${datarootdir}&$datarootdir&g' ;;
14331esac
14332_ACEOF
14333
14334# Neutralize VPATH when `$srcdir' = `.'.
14335# Shell code in configure.ac might set extrasub.
14336# FIXME: do we really want to maintain this feature?
14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338ac_sed_extra="$ac_vpsub
1c710c3c
DJ
14339$extrasub
14340_ACEOF
5213506e 14341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
14342:t
14343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14344s|@configure_input@|$ac_sed_conf_input|;t t
14345s&@top_builddir@&$ac_top_builddir_sub&;t t
14346s&@top_build_prefix@&$ac_top_build_prefix&;t t
14347s&@srcdir@&$ac_srcdir&;t t
14348s&@abs_srcdir@&$ac_abs_srcdir&;t t
14349s&@top_srcdir@&$ac_top_srcdir&;t t
14350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14351s&@builddir@&$ac_builddir&;t t
14352s&@abs_builddir@&$ac_abs_builddir&;t t
14353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14354s&@INSTALL@&$ac_INSTALL&;t t
14355$ac_datarootdir_hack
14356"
14357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14358if $ac_cs_awk_getline; then
14359 $AWK -f "$tmp/subs.awk"
14360else
14361 $AWK -f "$tmp/subs.awk" | $SHELL
14362fi >$tmp/out \
14363 || as_fn_error "could not create $ac_file" "$LINENO" 5
14364
14365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14369which seems to be undefined. Please make sure it is defined." >&5
14370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14371which seems to be undefined. Please make sure it is defined." >&2;}
14372
14373 rm -f "$tmp/stdin"
14374 case $ac_file in
14375 -) cat "$tmp/out" && rm -f "$tmp/out";;
14376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14377 esac \
14378 || as_fn_error "could not create $ac_file" "$LINENO" 5
14379 ;;
11a67599 14380
11a67599 14381
79c06341 14382
5213506e
RW
14383 esac
14384
14385done # for ac_tag
14386
14387
14388as_fn_exit 0
1c710c3c 14389_ACEOF
1c710c3c
DJ
14390ac_clean_files=$ac_clean_files_save
14391
5213506e
RW
14392test $ac_write_fail = 0 ||
14393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14394
1c710c3c
DJ
14395
14396# configure is writing to config.log, and then calls config.status.
14397# config.status does its own redirection, appending to config.log.
14398# Unfortunately, on DOS this fails, as config.log is still kept open
14399# by configure, so config.status won't be able to write to it; its
14400# output is simply discarded. So we exec the FD to /dev/null,
14401# effectively closing config.log, so it can be properly (re)opened and
14402# appended to by config.status. When coming back to configure, we
14403# need to make the FD available again.
14404if test "$no_create" != yes; then
14405 ac_cs_success=:
14406 ac_config_status_args=
14407 test "$silent" = yes &&
14408 ac_config_status_args="$ac_config_status_args --quiet"
14409 exec 5>/dev/null
14410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14411 exec 5>>config.log
14412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14413 # would make configure fail if this is the last instruction.
5213506e
RW
14414 $ac_cs_success || as_fn_exit $?
14415fi
14416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 14419fi
79c06341 14420
This page took 4.774983 seconds and 5 git commands to generate.