*** empty log message ***
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
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.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
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'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
b121d7d4 573READELF_FOR_TARGET
81ecdfbb
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
e552509b 582GOC_FOR_TARGET
81ecdfbb
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
b121d7d4 588READELF
81ecdfbb
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
81ecdfbb
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
e552509b 615GOC_FOR_BUILD
81ecdfbb
RW
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
700d40ca 645extra_host_libiberty_configure_flags
81ecdfbb
RW
646clooginc
647clooglibs
7ec59b9e
L
648islinc
649isllibs
81ecdfbb 650poststage1_ldflags
143754cd 651poststage1_libs
81ecdfbb
RW
652stage1_libs
653stage1_ldflags
7ec59b9e 654extra_isl_gmp_configure_flags
81ecdfbb
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
ffdd6afc 673EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
8e957354
PB
678AWK
679SED
81ecdfbb
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
c7791212 748enable_ld
89a1e9c3
PB
749enable_libquadmath
750enable_libquadmath_support
81ecdfbb
RW
751enable_libada
752enable_libssp
ffdd6afc
ILT
753enable_static_libjava
754enable_bootstrap
81ecdfbb
RW
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
81ecdfbb 769with_boot_libs
143754cd 770with_boot_ldflags
7ec59b9e
L
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
81ecdfbb
RW
775with_cloog
776with_cloog_include
777with_cloog_lib
778enable_cloog_version_check
700d40ca 779enable_lto
81ecdfbb
RW
780enable_stage1_languages
781enable_objc_gc
782with_build_sysroot
783with_debug_prefix_map
96655cc4 784with_build_config
81ecdfbb
RW
785enable_serial_configure
786with_build_time_tools
787enable_maintainer_mode
788enable_stage1_checking
789enable_werror
81ecdfbb
RW
790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
4074d5f2
RW
802build_configargs
803host_configargs
804target_configargs
81ecdfbb
RW
805AR
806AS
807DLLTOOL
808LD
809LIPO
810NM
811RANLIB
812STRIP
813WINDRES
814WINDMC
815OBJCOPY
816OBJDUMP
b121d7d4 817READELF
81ecdfbb
RW
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
e552509b 823GOC_FOR_TARGET
81ecdfbb
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
b121d7d4 832READELF_FOR_TARGET
81ecdfbb
RW
833STRIP_FOR_TARGET
834WINDRES_FOR_TARGET
835WINDMC_FOR_TARGET'
836
a0da8069
NN
837
838# Initialize some variables set by options.
c6b750e1
DJ
839ac_init_help=
840ac_init_version=false
81ecdfbb
RW
841ac_unrecognized_opts=
842ac_unrecognized_sep=
a0da8069
NN
843# The variables have the same names as the options, with
844# dashes changed to underlines.
c6b750e1 845cache_file=/dev/null
a0da8069 846exec_prefix=NONE
a0da8069 847no_create=
a0da8069
NN
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
a0da8069
NN
856verbose=
857x_includes=NONE
858x_libraries=NONE
c6b750e1
DJ
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 865# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
a0da8069
NN
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
a0da8069
NN
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
81ecdfbb
RW
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
252b5132 885
a0da8069 886ac_prev=
81ecdfbb 887ac_dashdash=
a0da8069
NN
888for ac_option
889do
a0da8069
NN
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
81ecdfbb 892 eval $ac_prev=\$ac_option
a0da8069
NN
893 ac_prev=
894 continue
895 fi
252b5132 896
81ecdfbb
RW
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
a0da8069
NN
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
81ecdfbb
RW
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
a0da8069
NN
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 911 bindir=$ac_optarg ;;
a0da8069
NN
912
913 -build | --build | --buil | --bui | --bu)
c6b750e1 914 ac_prev=build_alias ;;
a0da8069 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 916 build_alias=$ac_optarg ;;
a0da8069
NN
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
a0da8069 927
81ecdfbb 928 -datadir | --datadir | --datadi | --datad)
a0da8069 929 ac_prev=datadir ;;
81ecdfbb 930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 931 datadir=$ac_optarg ;;
a0da8069 932
81ecdfbb
RW
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
a0da8069 940 -disable-* | --disable-*)
81ecdfbb 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 942 # Reject names that are not valid shell variable names.
81ecdfbb
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
a0da8069
NN
965
966 -enable-* | --enable-*)
81ecdfbb 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 968 # Reject names that are not valid shell variable names.
81ecdfbb
RW
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
a0da8069 979 esac
81ecdfbb 980 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
c6b750e1 989 exec_prefix=$ac_optarg ;;
a0da8069
NN
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
c6b750e1
DJ
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
a0da8069
NN
1001
1002 -host | --host | --hos | --ho)
c6b750e1 1003 ac_prev=host_alias ;;
a0da8069 1004 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1005 host_alias=$ac_optarg ;;
a0da8069 1006
81ecdfbb
RW
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
a0da8069
NN
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1018 includedir=$ac_optarg ;;
a0da8069
NN
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1023 infodir=$ac_optarg ;;
a0da8069
NN
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1028 libdir=$ac_optarg ;;
a0da8069
NN
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1035 libexecdir=$ac_optarg ;;
a0da8069 1036
81ecdfbb
RW
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
a0da8069 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1043 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1047 localstatedir=$ac_optarg ;;
a0da8069
NN
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1052 mandir=$ac_optarg ;;
a0da8069
NN
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1059 | --no-cr | --no-c | -n)
a0da8069
NN
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1073 oldincludedir=$ac_optarg ;;
a0da8069
NN
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1078 prefix=$ac_optarg ;;
a0da8069
NN
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1085 program_prefix=$ac_optarg ;;
a0da8069
NN
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1092 program_suffix=$ac_optarg ;;
a0da8069
NN
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1109 program_transform_name=$ac_optarg ;;
a0da8069 1110
81ecdfbb
RW
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
a0da8069
NN
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
c6b750e1 1129 sbindir=$ac_optarg ;;
a0da8069
NN
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
c6b750e1 1140 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
c6b750e1 1145 site=$ac_optarg ;;
a0da8069
NN
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1150 srcdir=$ac_optarg ;;
a0da8069
NN
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1157 sysconfdir=$ac_optarg ;;
a0da8069
NN
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1160 ac_prev=target_alias ;;
a0da8069 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1162 target_alias=$ac_optarg ;;
a0da8069
NN
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
c6b750e1
DJ
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
a0da8069
NN
1169
1170 -with-* | --with-*)
81ecdfbb 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1172 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
a0da8069 1183 esac
81ecdfbb 1184 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1185
1186 -without-* | --without-*)
81ecdfbb 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1188 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
a0da8069
NN
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1211 x_includes=$ac_optarg ;;
a0da8069
NN
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1218 x_libraries=$ac_optarg ;;
a0da8069 1219
81ecdfbb
RW
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information."
a0da8069
NN
1222 ;;
1223
c6b750e1
DJ
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1232 export $ac_envvar ;;
1233
a0da8069 1234 *)
c6b750e1 1235 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
c6b750e1 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1247 as_fn_error "missing argument to $ac_option"
a0da8069 1248fi
a0da8069 1249
81ecdfbb
RW
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1255 esac
81ecdfbb 1256fi
a0da8069 1257
81ecdfbb
RW
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
a0da8069 1263do
81ecdfbb
RW
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
c6b750e1 1272 case $ac_val in
81ecdfbb
RW
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1275 esac
81ecdfbb 1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1277done
1278
c6b750e1
DJ
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
376a0e54 1285
c6b750e1
DJ
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
81ecdfbb 1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
a0da8069 1301
a0da8069 1302
81ecdfbb
RW
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
a0da8069
NN
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
81ecdfbb
RW
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
a0da8069 1338 srcdir=$ac_confdir
81ecdfbb 1339 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
81ecdfbb
RW
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
6d0cd39e
AM
1363case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367esac
9cc8ae67
PB
1368ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
81ecdfbb
RW
1370for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
c6b750e1
DJ
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
c6b750e1
DJ
1404Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1406 [$ac_default_prefix]
c6b750e1 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1408 [PREFIX]
c6b750e1
DJ
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
81ecdfbb
RW
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1437_ACEOF
1438
1439 cat <<\_ACEOF
1440
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
a0da8069 1451fi
a0da8069 1452
c6b750e1
DJ
1453if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457Optional Features:
81ecdfbb 1458 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
521ec477
DD
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
ffdd6afc
ILT
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1471 --disable-isl-version-check
1472 disable check for ISL version
e552509b
ILT
1473 --disable-cloog-version-check
1474 disable check for CLooG version
700d40ca 1475 --enable-lto enable link time optimization support
7837304f
AS
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1480 Objective-C runtime
521ec477 1481 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1484 sub-packages
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1490 compiler
c6b750e1
DJ
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1492
1493Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
c6b750e1 1506 --with-mpfr-include=PATH
521ec477
DD
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
521ec477
DD
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1517 linking with PPL
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
7ec59b9e 1524 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1525 package. Equivalent to
7ec59b9e
L
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1537 library
521ec477 1538 --with-build-sysroot=SYSROOT
c6b750e1 1539 use sysroot as the system root during the build
8a6ee3ab 1540 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
521ec477 1544 --with-build-time-tools=PATH
c6b750e1 1545 use given path to find target tools during the build
c6b750e1
DJ
1546
1547Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
81ecdfbb
RW
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
4074d5f2
RW
1557 build_configargs
1558 additional configure arguments for build directories
1559 host_configargs
1560 additional configure arguments for host directories
1561 target_configargs
1562 additional configure arguments for target directories
9a819804
AO
1563 AR AR for the host
1564 AS AS for the host
1565 DLLTOOL DLLTOOL for the host
1566 LD LD for the host
1567 LIPO LIPO for the host
1568 NM NM for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
0c24b341 1572 WINDMC WINDMC for the host
9a819804
AO
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
b121d7d4 1575 READELF READELF for the host
9a819804
AO
1576 CC_FOR_TARGET
1577 CC for the target
1578 CXX_FOR_TARGET
1579 CXX for the target
1580 GCC_FOR_TARGET
1581 GCC for the target
1582 GCJ_FOR_TARGET
1583 GCJ for the target
1584 GFORTRAN_FOR_TARGET
1585 GFORTRAN for the target
e552509b
ILT
1586 GOC_FOR_TARGET
1587 GOC for the target
9a819804
AO
1588 AR_FOR_TARGET
1589 AR for the target
1590 AS_FOR_TARGET
1591 AS for the target
1592 DLLTOOL_FOR_TARGET
1593 DLLTOOL for the target
1594 LD_FOR_TARGET
1595 LD for the target
1596 LIPO_FOR_TARGET
1597 LIPO for the target
1598 NM_FOR_TARGET
1599 NM for the target
1600 OBJDUMP_FOR_TARGET
1601 OBJDUMP for the target
1602 RANLIB_FOR_TARGET
1603 RANLIB for the target
b121d7d4
DD
1604 READELF_FOR_TARGET
1605 READELF for the target
9a819804
AO
1606 STRIP_FOR_TARGET
1607 STRIP for the target
1608 WINDRES_FOR_TARGET
1609 WINDRES for the target
0c24b341
NC
1610 WINDMC_FOR_TARGET
1611 WINDMC for the target
c6b750e1
DJ
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
81ecdfbb 1616Report bugs to the package provider.
c6b750e1 1617_ACEOF
81ecdfbb 1618ac_status=$?
c6b750e1
DJ
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
c6b750e1 1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
c6b750e1
DJ
1627 ac_builddir=.
1628
81ecdfbb
RW
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1644
1645case $srcdir in
81ecdfbb 1646 .) # We are building in place.
c6b750e1 1647 ac_srcdir=.
81ecdfbb
RW
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1651 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1658esac
81ecdfbb
RW
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1669 else
81ecdfbb
RW
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1673 done
1674fi
1675
81ecdfbb 1676test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1677if $ac_init_version; then
1678 cat <<\_ACEOF
81ecdfbb
RW
1679configure
1680generated by GNU Autoconf 2.64
c6b750e1 1681
81ecdfbb 1682Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
81ecdfbb 1686 exit
c6b750e1 1687fi
81ecdfbb
RW
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_cxx_try_compile LINENO
1732# ----------------------------
1733# Try to compile conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_compile ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758else
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1766
1767} # ac_fn_cxx_try_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799else
1800 $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813} # ac_fn_c_try_link
7ec59b9e
L
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855} # ac_fn_c_try_run
81ecdfbb 1856cat >config.log <<_ACEOF
c6b750e1
DJ
1857This file contains any messages produced by compilers while
1858running configure, to aid debugging if configure makes a mistake.
1859
1860It was created by $as_me, which was
81ecdfbb 1861generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1862
1863 $ $0 $@
1864
1865_ACEOF
81ecdfbb 1866exec 5>>config.log
c6b750e1
DJ
1867{
1868cat <<_ASUNAME
1869## --------- ##
1870## Platform. ##
1871## --------- ##
1872
1873hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1885/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1886/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890_ASUNAME
1891
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1897 $as_echo "PATH: $as_dir"
1898 done
1899IFS=$as_save_IFS
c6b750e1
DJ
1900
1901} >&5
1902
1903cat >&5 <<_ACEOF
1904
1905
1906## ----------- ##
1907## Core tests. ##
1908## ----------- ##
1909
1910_ACEOF
1911
1912
1913# Keep a trace of the command line.
1914# Strip out --no-create and --no-recursion so they do not pile up.
1915# Strip out --silent because we don't want to record it for future runs.
1916# Also quote any args containing shell meta-characters.
1917# Make two passes to allow for proper duplicate-argument suppression.
1918ac_configure_args=
1919ac_configure_args0=
1920ac_configure_args1=
c6b750e1
DJ
1921ac_must_keep_next=false
1922for ac_pass in 1 2
1923do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
81ecdfbb
RW
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1933 esac
1934 case $ac_pass in
81ecdfbb 1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1936 2)
81ecdfbb 1937 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
81ecdfbb 1953 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1954 ;;
1955 esac
1956 done
1957done
81ecdfbb
RW
1958{ ac_configure_args0=; unset ac_configure_args0;}
1959{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1960
1961# When interrupted or exit'd, cleanup temporary files, and complete
1962# config.log. We remove comments because anyway the quotes in there
1963# would cause problems or look ugly.
81ecdfbb
RW
1964# WARNING: Use '\'' to represent an apostrophe within the trap.
1965# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1966trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 cat <<\_ASBOX
1972## ---------------- ##
1973## Cache variables. ##
1974## ---------------- ##
1975_ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1978(
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1991 esac ;;
1992 esac
1993 done
c6b750e1 1994 (set) 2>&1 |
81ecdfbb
RW
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
c6b750e1 1997 sed -n \
81ecdfbb
RW
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
c6b750e1 2001 *)
81ecdfbb 2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2003 ;;
81ecdfbb
RW
2004 esac |
2005 sort
2006)
c6b750e1
DJ
2007 echo
2008
2009 cat <<\_ASBOX
2010## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##
2013_ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
81ecdfbb
RW
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
81ecdfbb
RW
2027## ------------------- ##
2028## File substitutions. ##
2029## ------------------- ##
c6b750e1
DJ
2030_ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2033 do
81ecdfbb
RW
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2039 done | sort
2040 echo
2041 fi
2042
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045## ----------- ##
2046## confdefs.h. ##
2047## ----------- ##
2048_ASBOX
2049 echo
81ecdfbb 2050 cat confdefs.h
c6b750e1
DJ
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
81ecdfbb
RW
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
c6b750e1 2056 } >&5
81ecdfbb
RW
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2059 exit $exit_status
81ecdfbb 2060' 0
c6b750e1 2061for ac_signal in 1 2 13 15; do
81ecdfbb 2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
c6b750e1
DJ
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
c6b750e1
DJ
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
c6b750e1
DJ
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
c6b750e1
DJ
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
81ecdfbb
RW
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
c6b750e1
DJ
2097
2098# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2110fi
81ecdfbb
RW
2111for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112do
2113 test "x$ac_site_file" = xNONE && continue
a0da8069 2114 if test -r "$ac_site_file"; then
81ecdfbb
RW
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2117 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2118 . "$ac_site_file"
2119 fi
2120done
2121
2122if test -r "$cache_file"; then
c6b750e1
DJ
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
81ecdfbb
RW
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2128 case $cache_file in
81ecdfbb
RW
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
c6b750e1
DJ
2131 esac
2132 fi
a0da8069 2133else
81ecdfbb
RW
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2136 >$cache_file
2137fi
2138
2139# Check that the precious variables saved in the cache have kept the same
2140# value.
2141ac_cache_corrupted=false
81ecdfbb 2142for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2147 case $ac_old_set,$ac_new_set in
2148 set,)
81ecdfbb
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2151 ac_cache_corrupted=: ;;
2152 ,set)
81ecdfbb
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
81ecdfbb 2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2186 esac
2187 fi
2188done
2189if $ac_cache_corrupted; then
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2195fi
81ecdfbb
RW
2196## -------------------- ##
2197## Main body of script. ##
2198## -------------------- ##
a0da8069
NN
2199
2200ac_ext=c
a0da8069 2201ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
c6b750e1
DJ
2209
2210
34a0f3cf 2211
c6b750e1 2212
5b553f7e
RW
2213
2214progname=$0
2215# if PWD already has a value, it is probably wrong.
2216if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217
2218# Export original configure arguments for use by sub-configures.
2219# Quote arguments with shell meta charatcers.
2220TOPLEVEL_CONFIGURE_ARGUMENTS=
2221set -- "$progname" "$@"
2222for ac_arg
2223do
2224 case "$ac_arg" in
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 *) ;;
2230 esac
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2233done
2234if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236fi
2237# Remove the initial space we just introduced and, as these will be
2238# expanded by make, quote '$'.
2239TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2240
c6b750e1
DJ
2241
2242# Find the build, host, and target systems.
a0da8069 2243ac_aux_dir=
81ecdfbb
RW
2244for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2249 break 2
2250 fi
2251 done
a0da8069
NN
2252done
2253if test -z "$ac_aux_dir"; then
81ecdfbb 2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2255fi
81ecdfbb
RW
2256
2257# These three variables are undocumented and unsupported,
2258# and are intended to be withdrawn in a future Autoconf release.
2259# They can cause serious problems if a builder's source tree is in a directory
2260# whose full name contains unusual characters.
2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
a0da8069 2265
c6b750e1 2266# Make sure we can run config.sub.
81ecdfbb
RW
2267$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271$as_echo_n "checking build system type... " >&6; }
2272if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274else
2275 ac_build_alias=$build_alias
2276test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285$as_echo "$ac_cv_build" >&6; }
2286case $ac_cv_build in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2289esac
c6b750e1 2290build=$ac_cv_build
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_build
2293shift
2294build_cpu=$1
2295build_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299build_os=$*
2300IFS=$ac_save_IFS
2301case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2302
a0da8069 2303
c6b750e1
DJ
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2307esac
2308
2309
cac3d6c4 2310
c6b750e1
DJ
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2314esac
2315
cac3d6c4 2316
c6b750e1
DJ
2317
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2321esac
2322
cac3d6c4 2323
c6b750e1
DJ
2324
2325
2326test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2328 NONENONEs,x,x, &&
c6b750e1 2329 program_transform_name=s,y,y,
cac3d6c4 2330
81ecdfbb
RW
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
2333if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
cac3d6c4 2335else
81ecdfbb
RW
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341fi
c6b750e1
DJ
2342
2343fi
81ecdfbb
RW
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
2348*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2349esac
c6b750e1 2350host=$ac_cv_host
81ecdfbb
RW
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2362
2363
81ecdfbb
RW
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365$as_echo_n "checking target system type... " >&6; }
2366if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
c6b750e1 2368else
81ecdfbb
RW
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2371else
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374fi
c6b750e1 2375
cac3d6c4 2376fi
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378$as_echo "$ac_cv_target" >&6; }
2379case $ac_cv_target in
2380*-*-*) ;;
2381*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2382esac
c6b750e1 2383target=$ac_cv_target
81ecdfbb
RW
2384ac_save_IFS=$IFS; IFS='-'
2385set x $ac_cv_target
2386shift
2387target_cpu=$1
2388target_vendor=$2
2389shift; shift
2390# Remember, the first character of IFS is used to create $*,
2391# except with old shells:
2392target_os=$*
2393IFS=$ac_save_IFS
2394case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2395
2396
2397# The aliases save the names the user supplied, while $host etc.
2398# will get canonicalized.
2399test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2401 NONENONEs,x,x, &&
2402 program_prefix=${target_alias}-
81ecdfbb 2403
a0da8069 2404test "$program_prefix" != NONE &&
81ecdfbb 2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2406# Use a double $ so make ignores it.
2407test "$program_suffix" != NONE &&
81ecdfbb
RW
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409# Double any \ or $.
c6b750e1 2410# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2411ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2413
a0da8069
NN
2414
2415
e5c3f801
NN
2416# Get 'install' or 'install-sh' and its variants.
2417# Find a good install program. We prefer a C program (faster),
2418# so one script is as good as another. But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
c6b750e1 2424# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2428# OS/2's system install, which has a completely different semantic
e5c3f801 2429# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2430# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2433if test -z "$INSTALL"; then
81ecdfbb
RW
2434if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2436else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2442 # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
c6b750e1 2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2455 if test $ac_prog = install &&
c6b750e1 2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2457 # AIX install. It has an incompatible calling convention.
2458 :
c6b750e1
DJ
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
e5c3f801 2463 else
58c85be7
RW
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
e5c3f801
NN
2476 fi
2477 fi
2478 done
c6b750e1
DJ
2479 done
2480 ;;
2481esac
81ecdfbb
RW
2482
2483 done
2484IFS=$as_save_IFS
c6b750e1 2485
58c85be7 2486rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2490 INSTALL=$ac_cv_path_install
e5c3f801 2491 else
58c85be7
RW
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
e5c3f801 2494 # break other packages using the cache if that directory is
58c85be7 2495 # removed, or if the value is a relative name.
c6b750e1 2496 INSTALL=$ac_install_sh
e5c3f801
NN
2497 fi
2498fi
81ecdfbb
RW
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
c6b750e1 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
81ecdfbb
RW
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511$as_echo_n "checking whether ln works... " >&6; }
2512if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
656fdd47
PB
2514else
2515 rm -f conftestdata_t
2516echo >conftestdata_f
2517if ln conftestdata_f conftestdata_t 2>/dev/null
2518then
2519 acx_cv_prog_LN=ln
2520else
2521 acx_cv_prog_LN=no
2522fi
2523rm -f conftestdata_f conftestdata_t
2524
2525fi
2526if test $acx_cv_prog_LN = no; then
2527 LN="cp"
81ecdfbb
RW
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529$as_echo "no, using $LN" >&6; }
656fdd47
PB
2530else
2531 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
656fdd47
PB
2534fi
2535
81ecdfbb
RW
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2538LN_S=$as_ln_s
2539if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541$as_echo "yes" >&6; }
cac3d6c4 2542else
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2545fi
2546
8e957354
PB
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2555 done
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570# Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572case `"$ac_path_SED" --version 2>&1` in
2573*GNU*)
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575*)
2576 ac_count=0
2577 $as_echo_n 0123456789 >"conftest.in"
2578 while :
2579 do
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2591 fi
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2594 done
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2596esac
2597
2598 $ac_path_SED_found && break 3
2599 done
2600 done
2601 done
2602IFS=$as_save_IFS
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 fi
2606else
2607 ac_cv_path_SED=$SED
2608fi
2609
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612$as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2614 rm -f conftest.sed
2615
2616for ac_prog in gawk mawk nawk awk
2617do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619set dummy $ac_prog; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645AWK=$ac_cv_prog_AWK
2646if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648$as_echo "$AWK" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655 test -n "$AWK" && break
2656done
2657
e5c3f801 2658
0fdbe983
DJ
2659srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660
2661# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2662# a relative path.
2663if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2665fi
2666
a0da8069
NN
2667# Set srcdir to "." if that's what it is.
2668# This is important for multilib support.
2669pwd=`${PWDCMD-pwd}`
a0da8069
NN
2670if test "${pwd}" = "${srcpwd}" ; then
2671 srcdir=.
252b5132
RH
2672fi
2673
a0da8069 2674topsrcdir=$srcpwd
252b5132 2675
a0da8069 2676extra_host_args=
afefada0 2677
a0da8069
NN
2678### To add a new directory to the tree, first choose whether it is a target
2679### or a host dependent tool. Then put it into the appropriate list
2680### (library or tools, host or target), doing a dependency sort.
252b5132 2681
c6b750e1 2682# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2683# configdirs, or target_configdirs; see the serialization section below.
252b5132 2684
c6b750e1
DJ
2685# Dependency sorting is only needed when *configuration* must be done in
2686# a particular order. In all cases a dependency should be specified in
a0da8069 2687# the Makefile, whether or not it's implicitly specified here.
252b5132 2688
a0da8069
NN
2689# Double entries in build_configdirs, configdirs, or target_configdirs may
2690# cause circular dependencies and break everything horribly.
252b5132 2691
6a9cf61e
PB
2692# these library is used by various programs built for the build
2693# environment
2694#
2695build_libs="build-libiberty"
2696
2697# these tools are built for the build environment
a90ef4bf 2698build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2699
a0da8069
NN
2700# these libraries are used by various programs built for the host environment
2701#
7ec59b9e 2702host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2703
a0da8069
NN
2704# these tools are built for the host environment
2705# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706# know that we are building the simulator.
2707# binutils, gas and ld appear in that order because it makes sense to run
2708# "make check" in that particular order.
e6de499b 2709# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2710host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2711
2712# libgcj represents the runtime libraries only used by gcj.
2713libgcj="target-libffi \
a0da8069 2714 target-zlib \
a0da8069
NN
2715 target-libjava"
2716
2717# these libraries are built for the target environment, and are built after
2718# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2719# Note that libiberty is not a target library.
b1299c4e 2720target_libraries="target-libgcc \
a0da8069
NN
2721 target-libgloss \
2722 target-newlib \
cff87f51 2723 target-libgomp \
7ec59b9e 2724 target-libatomic \
d32e2926 2725 target-libitm \
b9459e83 2726 target-libstdc++-v3 \
4b1cb4fe 2727 target-libmudflap \
bb780410 2728 target-libssp \
e552509b 2729 target-libquadmath \
4b1cb4fe 2730 target-libgfortran \
4f0ef2d8 2731 target-boehm-gc \
83326456 2732 ${libgcj} \
a2592b1b 2733 target-libobjc \
e552509b
ILT
2734 target-libada \
2735 target-libgo"
a0da8069 2736
9c14acb8
NN
2737# these tools are built using the target libraries, and are intended to
2738# run only in the target environment
a0da8069 2739#
9c14acb8 2740# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2741# list belongs in this list.
a0da8069 2742#
a90ef4bf 2743target_tools="target-rda"
252b5132 2744
a0da8069 2745################################################################################
252b5132 2746
a0da8069
NN
2747## All tools belong in one of the four categories, and are assigned above
2748## We assign ${configdirs} this way to remove all embedded newlines. This
2749## is important because configure will choke if they ever get through.
2750## ${configdirs} is directories we build using the host tools.
2751## ${target_configdirs} is directories we build using the target tools.
a0da8069 2752configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2753target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2754build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2755
9cc8ae67
PB
2756
2757
a0da8069 2758################################################################################
252b5132 2759
a0da8069 2760srcname="gnu development package"
252b5132 2761
a0da8069
NN
2762# This gets set non-empty for some net releases of packages.
2763appdirs=""
252b5132 2764
a0da8069
NN
2765# Define is_cross_compiler to save on calls to 'test'.
2766is_cross_compiler=
2767if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
252b5132 2769else
a0da8069 2770 is_cross_compiler=yes
c6b750e1 2771fi
252b5132 2772
9175bfc0 2773# Find the build and target subdir names.
dd12c3a8 2774
66a79c16
DJ
2775# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776# have matching libraries, they should use host libraries: Makefile.tpl
2777# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778# However, they still use the build modules, because the corresponding
2779# host modules (e.g. bison) are only built for the host when bootstrap
2780# finishes. So:
2781# - build_subdir is where we find build modules, and never changes.
2782# - build_libsubdir is where we find build libraries, and can be overridden.
2783
2784# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2785build_subdir="build-${build_noncanonical}"
c6b750e1 2786
81ecdfbb
RW
2787# Check whether --with-build-libsubdir was given.
2788if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2790else
2791 build_libsubdir="$build_subdir"
81ecdfbb
RW
2792fi
2793
b00612cc
PB
2794# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2798else
2799 host_subdir=.
2800fi
dd12c3a8
NN
2801# No prefix.
2802target_subdir=${target_noncanonical}
c6b750e1 2803
2fd0b40b
RW
2804# Be sure to cover against remnants of an in-tree build.
2805if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807Use a pristine source tree when building in a separate tree" "$LINENO" 5
2808fi
252b5132 2809
a0da8069
NN
2810# Skipdirs are removed silently.
2811skipdirs=
2812# Noconfigdirs are removed loudly.
2813noconfigdirs=""
252b5132 2814
a0da8069
NN
2815use_gnu_ld=
2816# Make sure we don't let GNU ld be added if we didn't want it.
2817if test x$with_gnu_ld = xno ; then
2818 use_gnu_ld=no
93f9b408 2819 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2820fi
2821
a0da8069
NN
2822use_gnu_as=
2823# Make sure we don't let GNU as be added if we didn't want it.
2824if test x$with_gnu_as = xno ; then
2825 use_gnu_as=no
2826 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2827fi
2828
700d40ca
ILT
2829use_included_zlib=
2830# Make sure we don't let ZLIB be added if we didn't want it.
2831if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2834fi
2835
c6b750e1 2836# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2837# it's not even worth trying to configure, much less build, that tool.
252b5132 2838
a0da8069
NN
2839case ${with_x} in
2840 yes | "") ;; # the default value for this tree is that X11 is available
2841 no)
675c6968 2842 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2843 # We won't be able to build gdbtk without X.
c6b750e1 2844 enable_gdbtk=no
a0da8069
NN
2845 ;;
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2847esac
252b5132 2848
0377a422 2849# Some are only suitable for cross toolchains.
a0da8069
NN
2850# Remove these if host=target.
2851cross_only="target-libgloss target-newlib target-opcodes"
2852
2853case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2855esac
252b5132 2856
a0da8069
NN
2857# If both --with-headers and --with-libs are specified, default to
2858# --without-newlib.
32be62b5
RS
2859if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2861 if test x"${with_newlib}" = x ; then
2862 with_newlib=no
2863 fi
252b5132
RH
2864fi
2865
a0da8069
NN
2866# Recognize --with-newlib/--without-newlib.
2867case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2870esac
252b5132 2871
c7791212
NC
2872# Handle --enable-gold, --enable-ld.
2873# --disable-gold [--enable-ld]
2874# Build only ld. Default option.
d3b50760
L
2875# --enable-gold [--enable-ld]
2876# Build both gold and ld. Install gold as "ld.gold", install ld
2877# as "ld.bfd" and "ld".
2878# --enable-gold=default [--enable-ld]
c7791212
NC
2879# Build both gold and ld. Install gold as "ld.gold" and "ld",
2880# install ld as "ld.bfd".
2881# --enable-gold[=default] --disable-ld
2882# Build only gold, which is then installed as both "ld.gold" and "ld".
2883# --enable-gold --enable-ld=default
d3b50760
L
2884# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2885# and ld.bfd).
c7791212
NC
2886# In other words, ld is default
2887# --enable-gold=default --enable-ld=default
2888# Error.
2889
2890default_ld=
81ecdfbb
RW
2891# Check whether --enable-gold was given.
2892if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2894else
2895 ENABLE_GOLD=no
81ecdfbb
RW
2896fi
2897
c7791212
NC
2898case "${ENABLE_GOLD}" in
2899 yes|default)
e6de499b
NC
2900 # Check for ELF target.
2901 is_elf=no
2902 case "${target}" in
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
7ec59b9e 2906 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2907 case "${target}" in
2908 *-*-linux*aout* | *-*-linux*oldld*)
2909 ;;
2910 *)
2911 is_elf=yes
2912 ;;
2913 esac
2914 esac
2915
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
93f9b408 2918 case "${target}" in
5c0b3823 2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2922 default_ld=gold
2923 fi
e6de499b 2924 ENABLE_GOLD=yes
93f9b408
ILT
2925 ;;
2926 esac
e6de499b
NC
2927 fi
2928 ;;
2929 no)
2930 ;;
2931 *)
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2933 ;;
c7791212
NC
2934esac
2935
2936# Check whether --enable-ld was given.
2937if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2939else
2940 ENABLE_LD=yes
2941fi
2942
2943
2944case "${ENABLE_LD}" in
2945 default)
d3b50760 2946 if test x${default_ld} != x; then
c7791212
NC
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2948 fi
2949 ;;
2950 yes)
2951 ;;
2952 no)
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2956 fi
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2958 ;;
2959 *)
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2961 ;;
2962esac
93f9b408 2963
a0da8069 2964# Configure extra directories which are host specific
252b5132 2965
a0da8069
NN
2966case "${host}" in
2967 *-cygwin*)
2968 configdirs="$configdirs libtermcap" ;;
2969esac
252b5132 2970
59f7ec45
HPN
2971# A target can indicate whether a language isn't supported for some reason.
2972# Only spaces may be used in this macro; not newlines or tabs.
2973unsupported_languages=
2974
c6b750e1 2975# Remove more programs from consideration, based on the host or
a0da8069
NN
2976# target this usually means that a port of the program doesn't
2977# exist yet.
252b5132 2978
a0da8069 2979case "${host}" in
3516a403 2980 i[3456789]86-*-msdosdjgpp*)
6a608608 2981 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2982 ;;
a0da8069 2983esac
252b5132 2984
4b1cb4fe 2985
89a1e9c3
PB
2986# Check whether --enable-libquadmath was given.
2987if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2989else
2990 ENABLE_LIBQUADMATH=yes
2991fi
2992
2993if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2995fi
2996
2997
2998# Check whether --enable-libquadmath-support was given.
2999if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3001else
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3003fi
3004
3005enable_libquadmath_support=
3006if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3008fi
3009
3010
81ecdfbb
RW
3011# Check whether --enable-libada was given.
3012if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3014else
3015 ENABLE_LIBADA=yes
81ecdfbb
RW
3016fi
3017
a2592b1b 3018if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3019 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3020fi
3021
81ecdfbb
RW
3022# Check whether --enable-libssp was given.
3023if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3025else
3026 ENABLE_LIBSSP=yes
81ecdfbb
RW
3027fi
3028
5f128533 3029
a0da8069
NN
3030# Save it here so that, even in case of --enable-libgcj, if the Java
3031# front-end isn't enabled, we still get libgcj disabled.
3032libgcj_saved=$libgcj
3033case $enable_libgcj in
3034yes)
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3038 libgcj=
3039 ;;
3040no)
3041 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3045 # built.
3046 libgcj_saved=
a0da8069
NN
3047 ;;
3048esac
252b5132 3049
ffdd6afc
ILT
3050# Check whether --enable-static-libjava was given.
3051if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3053else
3054 ENABLE_STATIC_LIBJAVA=no
3055fi
3056
3057enable_static_libjava=
3058if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3060fi
3061
3062if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3064fi
3065
4b1cb4fe 3066
a6df5a19
PB
3067# Disable libmudflap on some systems.
3068if test x$enable_libmudflap = x ; then
3e707e94 3069 case "${target}" in
29383458 3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3071 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3072 ;;
3073 *-*-freebsd*)
3074 # Enable libmudflap by default in FreeBSD.
3075 ;;
3076 *)
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3079 ;;
3080 esac
a6df5a19 3081fi
4b1cb4fe 3082
a6df5a19
PB
3083# Disable libgomp on non POSIX hosted systems.
3084if test x$enable_libgomp = x ; then
b3ded179
PB
3085 # Enable libgomp by default on hosted POSIX systems.
3086 case "${target}" in
29383458 3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3088 ;;
5b806d27 3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3090 ;;
2479f722 3091 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3092 ;;
3093 *-*-darwin* | *-*-aix*)
3094 ;;
3095 *)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3097 ;;
3098 esac
a6df5a19 3099fi
b3ded179 3100
7ec59b9e
L
3101# Disable libatomic on unsupported systems.
3102if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105$as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3109 then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115$as_echo "yes" >&6; }
3116 fi
3117 fi
3118fi
3119
d32e2926
RH
3120# Disable libitm on unsupported systems.
3121if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124$as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134$as_echo "yes" >&6; }
3135 fi
3136 fi
3137fi
3138
1488e230
DE
3139# Disable libquadmath for some systems.
3140case "${target}" in
3141 # libquadmath is unused on AIX and libquadmath build process use of
3142 # LD_LIBRARY_PATH can break AIX bootstrap.
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 noconfigdirs="$noconfigdirs target-libquadmath"
3145 ;;
3146esac
3147
065a5627
JM
3148# Disable libssp for some systems.
3149case "${target}" in
3150 avr-*-*)
c5f5c3c2 3151 # No hosted I/O support.
065a5627
JM
3152 noconfigdirs="$noconfigdirs target-libssp"
3153 ;;
3154 powerpc-*-aix* | rs6000-*-aix*)
3155 noconfigdirs="$noconfigdirs target-libssp"
3156 ;;
99c513f6 3157 rl78-*-*)
202e2356
NC
3158 # libssp uses a misaligned load to trigger a fault, but the RL78
3159 # doesn't fault for those - instead, it gives a build-time error
3160 # for explicit misaligned loads.
99c513f6
DD
3161 noconfigdirs="$noconfigdirs target-libssp"
3162 ;;
065a5627
JM
3163esac
3164
065a5627
JM
3165# Disable libstdc++-v3 for some systems.
3166case "${target}" in
3167 *-*-vxworks*)
3168 # VxWorks uses the Dinkumware C++ library.
3169 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3170 ;;
3171 arm*-wince-pe*)
3172 # the C++ libraries don't build on top of CE's C libraries
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174 ;;
3175 avr-*-*)
3176 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3177 ;;
3178esac
3179
3180# Disable Fortran for some systems.
3181case "${target}" in
3182 mmix-*-*)
3183 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3184 unsupported_languages="$unsupported_languages fortran"
3185 ;;
3186esac
3187
0827f9a6 3188# Disable Java if libffi is not supported.
9863d716 3189case "${target}" in
0827f9a6
JM
3190 alpha*-*-*)
3191 ;;
3192 arm*-*-*)
3193 ;;
3194 cris-*-*)
3195 ;;
3196 frv-*-*)
3197 ;;
3198 hppa*-*-linux*)
3199 ;;
3200 hppa*-*-hpux*)
3201 ;;
3202 i?86-*-*)
3203 ;;
3204 ia64*-*-*)
3205 ;;
3206 m32r*-*-*)
3207 ;;
3208 m68k-*-*)
3209 ;;
2479f722 3210 mips*-*-rtems*)
0827f9a6
JM
3211 ;;
3212 mips*-*-linux*)
3213 ;;
3214 powerpc*-*-linux*)
3215 ;;
3216 powerpc-*-darwin*)
3217 ;;
3218 powerpc-*-aix* | rs6000-*-aix*)
3219 ;;
3220 powerpc-*-freebsd*)
3221 ;;
3222 powerpc64-*-freebsd*)
3223 ;;
3224 powerpc*-*-rtems*)
9863d716 3225 ;;
0827f9a6
JM
3226 s390-*-* | s390x-*-*)
3227 ;;
3228 sh-*-* | sh[34]*-*-*)
3229 ;;
3230 sh64-*-* | sh5*-*-*)
3231 ;;
3232 sparc*-*-*)
3233 ;;
3234 x86_64-*-*)
3235 ;;
3236 *-*-*)
3237 unsupported_languages="$unsupported_languages java"
3238 ;;
3239esac
3240
3241# Disable Java, libgcj or related libraries for some systems.
3242case "${target}" in
9863d716
JM
3243 powerpc-*-darwin*)
3244 ;;
3245 i[3456789]86-*-darwin*)
3246 ;;
3247 x86_64-*-darwin[912]*)
3248 ;;
3249 *-*-darwin*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
9863d716
JM
3252 *-*-netware*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3254 ;;
3255 *-*-rtems*)
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
3258 *-*-tpf*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
3261 *-*-uclinux*)
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3263 ;;
3264 *-*-vxworks*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
9863d716
JM
3267 alpha*-*-*vms*)
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3269 ;;
0827f9a6 3270 arm-wince-pe)
9863d716
JM
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3272 ;;
9863d716
JM
3273 arm*-*-symbianelf*)
3274 noconfigdirs="$noconfigdirs ${libgcj}"
3275 ;;
9863d716 3276 bfin-*-*)
9863d716
JM
3277 noconfigdirs="$noconfigdirs target-boehm-gc"
3278 ;;
9863d716
JM
3279 cris-*-* | crisv32-*-*)
3280 unsupported_languages="$unsupported_languages java"
3281 case "${target}" in
3282 *-*-linux*)
3283 ;;
3284 *) # See PR46792 regarding target-libffi.
3285 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3286 esac
3287 ;;
9863d716
JM
3288 hppa*64*-*-linux*)
3289 # In this case, it's because the hppa64-linux target is for
3290 # the kernel only at this point and has no libc, and thus no
3291 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3292 unsupported_languages="$unsupported_languages java"
9863d716 3293 ;;
82ae827f 3294 hppa*64*-*-hpux*)
9863d716
JM
3295 noconfigdirs="$noconfigdirs ${libgcj}"
3296 ;;
3297 hppa*-hp-hpux11*)
3298 ;;
82ae827f 3299 hppa*-*-hpux*)
9863d716
JM
3300 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3301 # build on HP-UX 10.20.
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
9863d716
JM
3304 ia64*-*-*vms*)
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3306 ;;
9863d716
JM
3307 i[3456789]86-w64-mingw*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3309 ;;
3310 i[3456789]86-*-mingw*)
3311 noconfigdirs="$noconfigdirs ${libgcj}"
3312 ;;
3313 x86_64-*-mingw*)
3314 noconfigdirs="$noconfigdirs ${libgcj}"
3315 ;;
9863d716
JM
3316 mmix-*-*)
3317 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3318 ;;
3319 powerpc-*-aix*)
3320 # copied from rs6000-*-* entry
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3322 ;;
9863d716
JM
3323 rs6000-*-aix*)
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3325 ;;
9863d716
JM
3326 *-*-lynxos*)
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3328 ;;
9863d716
JM
3329esac
3330
691bb5a1
DD
3331# Default libgloss CPU subdirectory.
3332libgloss_dir="$target_cpu"
4b1cb4fe 3333
ff46fb8f
JM
3334case "${target}" in
3335 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3336 libgloss_dir=wince
3337 ;;
3338 arm*-*-*)
3339 libgloss_dir=arm
3340 ;;
3341 cris-*-* | crisv32-*-*)
3342 libgloss_dir=cris
3343 ;;
3344 hppa*-*-*)
3345 libgloss_dir=pa
3346 ;;
3347 i[3456789]86-*-*)
3348 libgloss_dir=i386
3349 ;;
3350 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3351 libgloss_dir=m68hc11
3352 ;;
3353 m68*-*-* | fido-*-*)
3354 libgloss_dir=m68k
3355 ;;
3356 mips*-*-*)
3357 libgloss_dir=mips
3358 ;;
3359 powerpc*-*-*)
3360 libgloss_dir=rs6000
3361 ;;
3362 sparc*-*-*)
3363 libgloss_dir=sparc
3364 ;;
3365esac
3366
c7e4b184 3367# Disable newlib and libgloss for various target OSes.
a0da8069 3368case "${target}" in
c7e4b184
JM
3369 alpha*-dec-osf*)
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3371 ;;
3372 i[3456789]86-*-linux*)
3373 # This section makes it possible to build newlib natively on linux.
3374 # If we are using a cross compiler then don't configure newlib.
3375 if test x${is_cross_compiler} != xno ; then
3376 noconfigdirs="$noconfigdirs target-newlib"
3377 fi
3378 noconfigdirs="$noconfigdirs target-libgloss"
3379 # If we are not using a cross compiler, do configure newlib.
3380 # Note however, that newlib will only be configured in this situation
3381 # if the --with-newlib option has been given, because otherwise
3382 # 'target-newlib' will appear in skipdirs.
3383 ;;
3384 i[3456789]86-*-rdos*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
3390 sparc-*-sunos4*)
3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 ;;
3393 *-*-aix*)
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 ;;
3396 *-*-beos*)
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 ;;
a0da8069 3399 *-*-chorusos)
b2f14e4a 3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3401 ;;
c7e4b184
JM
3402 *-*-dragonfly*)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404 ;;
3405 *-*-freebsd*)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407 ;;
3408 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3410 ;;
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413 ;;
3414 *-*-mingw*)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416 ;;
3417 *-*-netbsd*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419 ;;
3420 *-*-netware*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422 ;;
3423 *-*-tpf*)
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3425 ;;
3426 *-*-uclinux*)
3427 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3428 ;;
3429 *-*-vxworks*)
3430 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3431 ;;
3432esac
3433
3434case "${target}" in
3435 *-*-chorusos)
3436 ;;
24741ab2 3437 powerpc-*-darwin*)
9d39db92 3438 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3439 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3440 ;;
85bd1942
TG
3441 i[3456789]86-*-darwin*)
3442 noconfigdirs="$noconfigdirs ld gprof"
3443 noconfigdirs="$noconfigdirs sim target-rda"
3444 ;;
e8a5fa9c 3445 x86_64-*-darwin[912]*)
652dec25
TG
3446 noconfigdirs="$noconfigdirs ld gas gprof"
3447 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3448 ;;
04d1ab34 3449 *-*-darwin*)
d320aacb 3450 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3451 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3452 ;;
5b806d27 3453 *-*-dragonfly*)
5b806d27 3454 ;;
de0b4a87 3455 *-*-freebsd*)
4b1cb4fe
DD
3456 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3457 && test -f /usr/local/include/gmp.h; then
3458 with_gmp=/usr/local
3459 fi
4b1cb4fe 3460 ;;
f8a495c8
NC
3461 *-*-kaos*)
3462 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3463 noconfigdirs="$noconfigdirs target-libgloss"
3464 ;;
a0da8069 3465 *-*-netbsd*)
a0da8069 3466 ;;
2a3124ca 3467 *-*-netware*)
a0da8069
NN
3468 ;;
3469 *-*-rtems*)
9863d716 3470 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3471 ;;
1587117a
EC
3472 # The tpf target doesn't support gdb yet.
3473 *-*-tpf*)
c7e4b184 3474 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3475 ;;
c1968181 3476 *-*-uclinux*)
c7e4b184 3477 noconfigdirs="$noconfigdirs target-rda"
c1968181 3478 ;;
a0da8069 3479 *-*-vxworks*)
a0da8069
NN
3480 ;;
3481 alpha*-dec-osf*)
3482 # ld works, but does not support shared libraries.
a0da8069 3483 # gas doesn't generate exception information.
c7e4b184 3484 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3485 ;;
3486 alpha*-*-*vms*)
9863d716 3487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3488 ;;
a0da8069
NN
3489 alpha*-*-*)
3490 # newlib is not 64 bit ready
9863d716 3491 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3492 ;;
a0da8069 3493 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3494 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3495 ;;
3496 arc-*-*)
782cb41f 3497 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3498 ;;
a0da8069 3499 arm-*-pe*)
9863d716 3500 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3501 ;;
a0da8069 3502 arm-*-riscix*)
b2f14e4a 3503 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3504 ;;
a0da8069 3505 c4x-*-* | tic4x-*-*)
b2f14e4a 3506 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3507 ;;
b2f14e4a
JM
3508 tic54x-*-*)
3509 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3510 ;;
a0da8069 3511 d10v-*-*)
b2f14e4a 3512 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3513 ;;
3514 d30v-*-*)
b2f14e4a 3515 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3516 ;;
3517 fr30-*-elf*)
9863d716 3518 noconfigdirs="$noconfigdirs gdb"
a0da8069 3519 ;;
20135e4c 3520 moxie-*-*)
20135e4c
NC
3521 noconfigdirs="$noconfigdirs gprof"
3522 ;;
a0da8069 3523 h8300*-*-*)
9863d716 3524 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3525 ;;
3526 h8500-*-*)
b2f14e4a 3527 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3528 ;;
caeba88f 3529 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3530 ;;
93cc359e 3531 hppa*64*-*-linux*)
a0da8069 3532 ;;
f0ff0f90 3533 hppa*-*-linux*)
5dcac624 3534 ;;
a0da8069 3535 hppa*-*-*elf* | \
a0da8069
NN
3536 hppa*-*-lites* | \
3537 hppa*-*-openbsd* | \
3538 hppa*64*-*-*)
4f0ef2d8
CD
3539 ;;
3540 hppa*-hp-hpux11*)
0377a422 3541 noconfigdirs="$noconfigdirs ld"
a0da8069 3542 ;;
691bb5a1 3543 hppa*-*-pro*)
691bb5a1 3544 ;;
a0da8069 3545 hppa*-*-*)
9863d716 3546 noconfigdirs="$noconfigdirs ld"
a0da8069 3547 ;;
b07c2aad 3548 i960-*-*)
b2f14e4a 3549 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3550 ;;
a0da8069
NN
3551 ia64*-*-elf*)
3552 # No gdb support yet.
0377a422 3553 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3554 ;;
3555 ia64*-**-hpux*)
92c9a463 3556 # No ld support yet.
9863d716 3557 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3558 ;;
19e99079 3559 ia64*-*-*vms*)
7ec59b9e
L
3560 # No ld support yet.
3561 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3562 ;;
1f53ca9a 3563 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3564 ;;
3565 i[3456789]86-*-mingw*)
45055374 3566 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3567 ;;
a0da8069
NN
3568 *-*-cygwin*)
3569 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3570 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3571 # always build newlib if winsup directory is present.
45055374 3572 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3573 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3574 elif test -d "$srcdir/newlib"; then
45055374 3575 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3576 fi
c6b750e1 3577 ;;
ec11bdc6 3578 i[3456789]86-*-pe)
782cb41f 3579 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3580 ;;
ec11bdc6 3581 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3582 # The linker does not yet know about weak symbols in COFF,
3583 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3584 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3585 ;;
ec11bdc6 3586 i[3456789]86-*-sco*)
b2f14e4a 3587 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3588 ;;
cff32a7c 3589 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3590 noconfigdirs="$noconfigdirs target-libgloss"
3591 ;;
ec11bdc6 3592 i[3456789]86-*-sysv4*)
b2f14e4a 3593 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3594 ;;
ec11bdc6 3595 i[3456789]86-*-beos*)
c7e4b184 3596 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3597 ;;
b59bea8a 3598 i[3456789]86-*-rdos*)
c7e4b184 3599 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3600 ;;
a0da8069 3601 mmix-*-*)
9863d716 3602 noconfigdirs="$noconfigdirs gdb"
a0da8069 3603 ;;
4970f871 3604 mt-*-*)
cdb9b172
AH
3605 noconfigdirs="$noconfigdirs sim"
3606 ;;
a0da8069
NN
3607 powerpc-*-aix*)
3608 # copied from rs6000-*-* entry
c7e4b184 3609 noconfigdirs="$noconfigdirs gprof"
a0da8069 3610 ;;
93cc359e 3611 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3612 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3613 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3614 # always build newlib.
3615 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3616 ;;
3617 # This is temporary until we can link against shared libraries
3618 powerpcle-*-solaris*)
b2f14e4a 3619 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3620 ;;
3621 powerpc-*-beos*)
c7e4b184 3622 noconfigdirs="$noconfigdirs gdb"
a0da8069 3623 ;;
a0da8069 3624 rs6000-*-lynxos*)
c7e4b184 3625 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3626 ;;
3627 rs6000-*-aix*)
c7e4b184 3628 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3629 ;;
3630 rs6000-*-*)
9863d716 3631 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3632 ;;
3633 m68k-apollo-*)
b2f14e4a 3634 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3635 ;;
25a07265 3636 microblaze*)
9863d716 3637 noconfigdirs="$noconfigdirs gprof"
25a07265 3638 ;;
5bd8be13 3639 mips*-sde-elf*)
5bd8be13
RS
3640 if test x$with_newlib = xyes; then
3641 noconfigdirs="$noconfigdirs gprof"
3642 fi
5bd8be13 3643 ;;
a0da8069 3644 mips*-*-irix5*)
b2f14e4a 3645 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3646 ;;
3647 mips*-*-irix6*)
9863d716 3648 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3649 ;;
a0da8069 3650 mips*-*-bsd*)
b2f14e4a 3651 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3652 ;;
a0da8069 3653 mips*-*-linux*)
a0da8069
NN
3654 ;;
3655 mips*-*-*)
9863d716 3656 noconfigdirs="$noconfigdirs gprof"
a0da8069 3657 ;;
dbf85af7 3658 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3659 case "${target}" in
3660 sh*-*-elf)
9863d716 3661 ;;
e8a5fa9c 3662 *)
9863d716 3663 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3664 esac
a0da8069 3665 ;;
a0da8069 3666 sparc-*-sunos4*)
c7e4b184 3667 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3668 use_gnu_ld=no
3669 fi
3670 ;;
619a3713 3671 tic6x-*-*)
40ae9136 3672 noconfigdirs="$noconfigdirs sim"
619a3713 3673 ;;
eb4b2452
NC
3674 tilepro-*-* | tilegx-*-*)
3675 noconfigdirs="$noconfigdirs sim"
3676 ;;
a0da8069 3677 v810-*-*)
b2f14e4a 3678 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3679 ;;
3680 vax-*-*)
9863d716 3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3682 ;;
a0da8069 3683esac
252b5132 3684
a0da8069
NN
3685# If we aren't building newlib, then don't build libgloss, since libgloss
3686# depends upon some newlib header files.
3687case "${noconfigdirs}" in
3688 *target-libgloss*) ;;
3689 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3690esac
3691
a0da8069 3692# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3693host_makefile_frag=/dev/null
3694if test -d ${srcdir}/config ; then
3695case "${host}" in
ec11bdc6 3696 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3697 host_makefile_frag="config/mh-djgpp"
3698 ;;
3699 *-cygwin*)
e33b51a6 3700
81ecdfbb
RW
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3702$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3703echo a >cygwin-cat-check
1f53ca9a 3704if test `cat cygwin-cat-check` = a ; then
8ade07e9 3705 rm cygwin-cat-check
81ecdfbb
RW
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707$as_echo "yes" >&6; }
e33b51a6 3708else
8ade07e9 3709 rm cygwin-cat-check
81ecdfbb
RW
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3713 Please either mount the build directory in binary mode or run the following
3714 commands before running any configure script:
3715set -o igncr
3716export SHELLOPTS
81ecdfbb 3717 " "$LINENO" 5
e33b51a6 3718fi
e33b51a6 3719
a0da8069
NN
3720 host_makefile_frag="config/mh-cygwin"
3721 ;;
8a1599ab 3722 *-mingw*)
84e7906e 3723 host_makefile_frag="config/mh-mingw"
2d1e8239 3724 ;;
da888c87 3725 hppa*-hp-hpux10*)
da888c87 3726 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3727 ;;
3516a403 3728 hppa*-hp-hpux*)
da888c87
PB
3729 host_makefile_frag="config/mh-pa"
3730 ;;
3731 hppa*-*)
3732 host_makefile_frag="config/mh-pa"
3733 ;;
e552509b
ILT
3734 *-*-darwin*)
3735 host_makefile_frag="config/mh-darwin"
0df3d27f 3736 ;;
f6d183c0
PB
3737 powerpc-*-aix*)
3738 host_makefile_frag="config/mh-ppc-aix"
3739 ;;
3740 rs6000-*-aix*)
3741 host_makefile_frag="config/mh-ppc-aix"
3742 ;;
a0da8069
NN
3743esac
3744fi
3745
9e07f89d 3746if test "${build}" != "${host}" ; then
1576798e
PB
3747 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3748 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3749 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3750 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3751 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3752 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3753 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3754 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3755 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3756 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3757 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3758 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3759 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3760else
3761 AR_FOR_BUILD="\$(AR)"
3762 AS_FOR_BUILD="\$(AS)"
512b7dfb 3763 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3764 CXX_FOR_BUILD="\$(CXX)"
3765 GCJ_FOR_BUILD="\$(GCJ)"
3766 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3767 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3768 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3769 LD_FOR_BUILD="\$(LD)"
3770 NM_FOR_BUILD="\$(NM)"
3771 RANLIB_FOR_BUILD="\$(RANLIB)"
3772 WINDRES_FOR_BUILD="\$(WINDRES)"
3773 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3774fi
3775
3776ac_ext=c
c6b750e1
DJ
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
3786if test "${ac_cv_prog_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3788else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3801 break 2
3802 fi
3803done
81ecdfbb
RW
3804 done
3805IFS=$as_save_IFS
c6b750e1
DJ
3806
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
81ecdfbb
RW
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812$as_echo "$CC" >&6; }
c6b750e1 3813else
81ecdfbb
RW
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
c6b750e1
DJ
3816fi
3817
81ecdfbb 3818
c6b750e1
DJ
3819fi
3820if test -z "$ac_cv_prog_CC"; then
3821 ac_ct_CC=$CC
6a9cf61e 3822 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3823set dummy gcc; ac_word=$2
81ecdfbb
RW
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
3826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3828else
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3839 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3841 break 2
3842 fi
3843done
81ecdfbb
RW
3844 done
3845IFS=$as_save_IFS
c6b750e1
DJ
3846
3847fi
3848fi
3849ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3853else
81ecdfbb
RW
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
c6b750e1
DJ
3856fi
3857
81ecdfbb
RW
3858 if test "x$ac_ct_CC" = x; then
3859 CC=""
3860 else
3861 case $cross_compiling:$ac_tool_warned in
3862yes:)
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865ac_tool_warned=yes ;;
3866esac
3867 CC=$ac_ct_CC
3868 fi
c6b750e1
DJ
3869else
3870 CC="$ac_cv_prog_CC"
3871fi
3872
3873if test -z "$CC"; then
81ecdfbb
RW
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3876set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if test "${ac_cv_prog_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
9e07f89d
NN
3881else
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3884else
c6b750e1
DJ
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3892 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3894 break 2
3895 fi
3896done
81ecdfbb
RW
3897 done
3898IFS=$as_save_IFS
c6b750e1 3899
9e07f89d
NN
3900fi
3901fi
c6b750e1 3902CC=$ac_cv_prog_CC
9e07f89d 3903if test -n "$CC"; then
81ecdfbb
RW
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905$as_echo "$CC" >&6; }
c6b750e1 3906else
81ecdfbb
RW
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
c6b750e1
DJ
3909fi
3910
c6b750e1 3911
81ecdfbb 3912 fi
c6b750e1 3913fi
9e07f89d
NN
3914if test -z "$CC"; then
3915 # Extract the first word of "cc", so it can be a program name with args.
3916set dummy cc; ac_word=$2
81ecdfbb
RW
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
9e07f89d
NN
3921else
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924else
9e07f89d 3925 ac_prog_rejected=no
c6b750e1
DJ
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934 ac_prog_rejected=yes
3935 continue
3936 fi
3937 ac_cv_prog_CC="cc"
81ecdfbb 3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3939 break 2
3940 fi
3941done
81ecdfbb
RW
3942 done
3943IFS=$as_save_IFS
c6b750e1 3944
9e07f89d
NN
3945if test $ac_prog_rejected = yes; then
3946 # We found a bogon in the path, so make sure we never use it.
3947 set dummy $ac_cv_prog_CC
3948 shift
c6b750e1 3949 if test $# != 0; then
9e07f89d
NN
3950 # We chose a different compiler from the bogus one.
3951 # However, it has the same basename, so the bogon will be chosen
3952 # first if we set CC to just the basename; use the full file name.
3953 shift
c6b750e1 3954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3955 fi
3956fi
3957fi
3958fi
c6b750e1 3959CC=$ac_cv_prog_CC
9e07f89d 3960if test -n "$CC"; then
81ecdfbb
RW
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962$as_echo "$CC" >&6; }
9e07f89d 3963else
81ecdfbb
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
9e07f89d
NN
3966fi
3967
81ecdfbb 3968
c6b750e1
DJ
3969fi
3970if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
81ecdfbb 3972 for ac_prog in cl.exe
c6b750e1
DJ
3973 do
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if test "${ac_cv_prog_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
9e07f89d
NN
3980else
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3983else
c6b750e1
DJ
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3993 break 2
376a0e54 3994 fi
c6b750e1 3995done
81ecdfbb
RW
3996 done
3997IFS=$as_save_IFS
cac3d6c4 3998
c6b750e1
DJ
3999fi
4000fi
4001CC=$ac_cv_prog_CC
4002if test -n "$CC"; then
81ecdfbb
RW
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004$as_echo "$CC" >&6; }
cac3d6c4 4005else
81ecdfbb
RW
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
9e07f89d 4008fi
cac3d6c4 4009
81ecdfbb 4010
c6b750e1
DJ
4011 test -n "$CC" && break
4012 done
cac3d6c4 4013fi
c6b750e1
DJ
4014if test -z "$CC"; then
4015 ac_ct_CC=$CC
81ecdfbb 4016 for ac_prog in cl.exe
c6b750e1
DJ
4017do
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021$as_echo_n "checking for $ac_word... " >&6; }
4022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
cac3d6c4 4024else
c6b750e1
DJ
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4027else
c6b750e1
DJ
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4035 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4037 break 2
4038 fi
4039done
81ecdfbb
RW
4040 done
4041IFS=$as_save_IFS
c6b750e1 4042
cac3d6c4
CM
4043fi
4044fi
c6b750e1
DJ
4045ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4049else
81ecdfbb
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051$as_echo "no" >&6; }
cac3d6c4 4052fi
376a0e54 4053
81ecdfbb 4054
c6b750e1
DJ
4055 test -n "$ac_ct_CC" && break
4056done
4057
81ecdfbb
RW
4058 if test "x$ac_ct_CC" = x; then
4059 CC=""
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062yes:)
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065ac_tool_warned=yes ;;
4066esac
4067 CC=$ac_ct_CC
4068 fi
c6b750e1
DJ
4069fi
4070
4071fi
4072
4073
81ecdfbb
RW
4074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076as_fn_error "no acceptable C compiler found in \$PATH
4077See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4078
4079# Provide some information about the compiler.
81ecdfbb
RW
4080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4081set X $ac_compile
4082ac_compiler=$2
4083for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4085case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090$as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4092 ac_status=$?
81ecdfbb
RW
4093 if test -s conftest.err; then
4094 sed '10a\
4095... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 rm -f conftest.er1 conftest.err
4099 fi
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102done
c6b750e1 4103
81ecdfbb 4104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4105/* end confdefs.h. */
4106
4107int
4108main ()
4109{
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115ac_clean_files_save=$ac_clean_files
81ecdfbb 4116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4117# Try to create an executable without -o first, disregard a.out.
4118# It will help us diagnose broken compilers, and finding out an intuition
4119# of exeext.
81ecdfbb
RW
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121$as_echo_n "checking for C compiler default output file name... " >&6; }
4122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4123
4124# The possible output files:
4125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4126
4127ac_rmfiles=
4128for ac_file in $ac_files
4129do
4130 case $ac_file in
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4133 esac
4134done
4135rm -f $ac_rmfiles
4136
4137if { { ac_try="$ac_link_default"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143$as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_link_default") 2>&5
c6b750e1 4145 ac_status=$?
81ecdfbb
RW
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4150# in a Makefile. We should not override ac_cv_exeext if it was cached,
4151# so that the user can short-circuit this test for compilers unknown to
4152# Autoconf.
4153for ac_file in $ac_files ''
c6b750e1
DJ
4154do
4155 test -f "$ac_file" || continue
4156 case $ac_file in
81ecdfbb 4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4158 ;;
4159 [ab].out )
4160 # We found the default executable, but exeext='' is most
4161 # certainly right.
4162 break;;
4163 *.* )
81ecdfbb
RW
4164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4165 then :; else
4166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 fi
4168 # We set ac_cv_exeext here because the later test for it is not
4169 # safe: cross compilers may not add the suffix if given an `-o'
4170 # argument, so we may need to know it at that point already.
4171 # Even if this section looks crufty: it has the advantage of
4172 # actually working.
c6b750e1
DJ
4173 break;;
4174 * )
4175 break;;
4176 esac
4177done
81ecdfbb
RW
4178test "$ac_cv_exeext" = no && ac_cv_exeext=
4179
c6b750e1 4180else
81ecdfbb
RW
4181 ac_file=''
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4184$as_echo "$ac_file" >&6; }
4185if test -z "$ac_file"; then :
4186 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
81ecdfbb
RW
4189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191{ as_fn_set_status 77
4192as_fn_error "C compiler cannot create executables
4193See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4194fi
c6b750e1 4195ac_exeext=$ac_cv_exeext
c6b750e1 4196
81ecdfbb 4197# Check that the compiler produces executables we can run. If not, either
c6b750e1 4198# the compiler is broken, or we cross compile.
81ecdfbb
RW
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4201# If not cross compiling, check that we can run a simple program.
4202if test "$cross_compiling" != yes; then
4203 if { ac_try='./$ac_file'
81ecdfbb
RW
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209$as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
c6b750e1 4211 ac_status=$?
81ecdfbb
RW
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
c6b750e1
DJ
4214 cross_compiling=no
4215 else
4216 if test "$cross_compiling" = maybe; then
4217 cross_compiling=yes
4218 else
81ecdfbb
RW
4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221as_fn_error "cannot run C compiled programs.
c6b750e1 4222If you meant to cross compile, use \`--host'.
81ecdfbb 4223See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4224 fi
4225 fi
4226fi
81ecdfbb
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228$as_echo "yes" >&6; }
c6b750e1 4229
81ecdfbb 4230rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4231ac_clean_files=$ac_clean_files_save
81ecdfbb 4232# Check that the compiler produces executables we can run. If not, either
c6b750e1 4233# the compiler is broken, or we cross compile.
81ecdfbb
RW
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235$as_echo_n "checking whether we are cross compiling... " >&6; }
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4237$as_echo "$cross_compiling" >&6; }
4238
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240$as_echo_n "checking for suffix of executables... " >&6; }
4241if { { ac_try="$ac_link"
4242case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247$as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_link") 2>&5
c6b750e1 4249 ac_status=$?
81ecdfbb
RW
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; then :
c6b750e1
DJ
4252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4254# work properly (i.e., refer to `conftest.exe'), while it won't with
4255# `rm'.
4256for ac_file in conftest.exe conftest conftest.*; do
4257 test -f "$ac_file" || continue
4258 case $ac_file in
81ecdfbb 4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4261 break;;
4262 * ) break;;
4263 esac
4264done
4265else
81ecdfbb
RW
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268as_fn_error "cannot compute suffix of executables: cannot compile and link
4269See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4270fi
c6b750e1 4271rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4274
4275rm -f conftest.$ac_ext
4276EXEEXT=$ac_cv_exeext
4277ac_exeext=$EXEEXT
81ecdfbb
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279$as_echo_n "checking for suffix of object files... " >&6; }
4280if test "${ac_cv_objext+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
c6b750e1 4282else
81ecdfbb 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4284/* end confdefs.h. */
4285
4286int
4287main ()
4288{
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294rm -f conftest.o conftest.obj
81ecdfbb
RW
4295if { { ac_try="$ac_compile"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301$as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
c6b750e1 4303 ac_status=$?
81ecdfbb
RW
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
c6b750e1 4308 case $ac_file in
81ecdfbb 4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311 break;;
4312 esac
4313done
cac3d6c4 4314else
81ecdfbb 4315 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
81ecdfbb
RW
4318{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "cannot compute suffix of object files: cannot compile
4321See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4322fi
c6b750e1
DJ
4323rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324fi
81ecdfbb
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4327OBJEXT=$ac_cv_objext
4328ac_objext=$OBJEXT
81ecdfbb
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
c6b750e1 4333else
81ecdfbb 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4335/* end confdefs.h. */
4336
4337int
4338main ()
4339{
4340#ifndef __GNUC__
4341 choke me
4342#endif
4343
4344 ;
4345 return 0;
4346}
4347_ACEOF
81ecdfbb 4348if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4349 ac_compiler_gnu=yes
4350else
81ecdfbb 4351 ac_compiler_gnu=no
c6b750e1 4352fi
81ecdfbb 4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4354ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356fi
81ecdfbb
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361else
4362 GCC=
4363fi
c6b750e1
DJ
4364ac_test_CFLAGS=${CFLAGS+set}
4365ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367$as_echo_n "checking whether $CC accepts -g... " >&6; }
4368if test "${ac_cv_prog_cc_g+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370else
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4373 ac_cv_prog_cc_g=no
4374 CFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4376/* end confdefs.h. */
4377
4378int
4379main ()
4380{
4381
4382 ;
4383 return 0;
4384}
4385_ACEOF
81ecdfbb 4386if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4387 ac_cv_prog_cc_g=yes
4388else
81ecdfbb
RW
4389 CFLAGS=""
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h. */
4392
4393int
4394main ()
4395{
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"; then :
4402
4403else
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4405 CFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h. */
cac3d6c4 4408
81ecdfbb
RW
4409int
4410main ()
4411{
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_prog_cc_g=yes
4419fi
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4421fi
81ecdfbb 4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4423fi
81ecdfbb
RW
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4429if test "$ac_test_CFLAGS" = set; then
c6b750e1 4430 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4431elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4433 CFLAGS="-g -O2"
4434 else
4435 CFLAGS="-g"
4436 fi
4437else
4438 if test "$GCC" = yes; then
4439 CFLAGS="-O2"
4440 else
4441 CFLAGS=
4442 fi
4443fi
81ecdfbb
RW
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
c6b750e1 4448else
81ecdfbb 4449 ac_cv_prog_cc_c89=no
c6b750e1 4450ac_save_CC=$CC
81ecdfbb 4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4452/* end confdefs.h. */
4453#include <stdarg.h>
4454#include <stdio.h>
4455#include <sys/types.h>
4456#include <sys/stat.h>
4457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458struct buf { int x; };
4459FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460static char *e (p, i)
4461 char **p;
4462 int i;
4463{
4464 return p[i];
4465}
4466static char *f (char * (*g) (char **, int), char **p, ...)
4467{
4468 char *s;
4469 va_list v;
4470 va_start (v,p);
4471 s = g (p, va_arg (v,int));
4472 va_end (v);
4473 return s;
4474}
4475
4476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477 function prototypes and stuff, but not '\xHH' hex character constants.
4478 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4479 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4482 that's true only with -std. */
c6b750e1
DJ
4483int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4484
81ecdfbb
RW
4485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486 inside strings and character constants. */
4487#define FOO(x) 'x'
4488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4489
c6b750e1
DJ
4490int test (int i, double x);
4491struct s1 {int (*f) (int a);};
4492struct s2 {int (*f) (double a);};
4493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4494int argc;
4495char **argv;
4496int
4497main ()
4498{
4499return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4500 ;
4501 return 0;
4502}
4503_ACEOF
81ecdfbb
RW
4504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4506do
4507 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4510fi
81ecdfbb
RW
4511rm -f core conftest.err conftest.$ac_objext
4512 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4513done
81ecdfbb 4514rm -f conftest.$ac_ext
c6b750e1
DJ
4515CC=$ac_save_CC
4516
4517fi
81ecdfbb
RW
4518# AC_CACHE_VAL
4519case "x$ac_cv_prog_cc_c89" in
4520 x)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522$as_echo "none needed" >&6; } ;;
4523 xno)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525$as_echo "unsupported" >&6; } ;;
c6b750e1 4526 *)
81ecdfbb
RW
4527 CC="$CC $ac_cv_prog_cc_c89"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4530esac
81ecdfbb 4531if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4532
c6b750e1
DJ
4533fi
4534
c6b750e1
DJ
4535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4540
81ecdfbb 4541ac_ext=cpp
18f6b6ee
PB
4542ac_cpp='$CXXCPP $CPPFLAGS'
4543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4546if test -z "$CXX"; then
4547 if test -n "$CCC"; then
4548 CXX=$CCC
4549 else
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4552 do
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if test "${ac_cv_prog_CXX+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4559else
4560 if test -n "$CXX"; then
4561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4572 break 2
4573 fi
4574done
81ecdfbb
RW
4575 done
4576IFS=$as_save_IFS
512b7dfb 4577
18f6b6ee
PB
4578fi
4579fi
4580CXX=$ac_cv_prog_CXX
4581if test -n "$CXX"; then
81ecdfbb
RW
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4583$as_echo "$CXX" >&6; }
18f6b6ee 4584else
81ecdfbb
RW
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
18f6b6ee
PB
4587fi
4588
81ecdfbb 4589
18f6b6ee
PB
4590 test -n "$CXX" && break
4591 done
4592fi
4593if test -z "$CXX"; then
4594 ac_ct_CXX=$CXX
81ecdfbb 4595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4596do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4603else
4604 if test -n "$ac_ct_CXX"; then
4605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4614 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4616 break 2
512b7dfb 4617 fi
18f6b6ee 4618done
81ecdfbb
RW
4619 done
4620IFS=$as_save_IFS
512b7dfb 4621
18f6b6ee
PB
4622fi
4623fi
4624ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4625if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4627$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4628else
81ecdfbb
RW
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
18f6b6ee
PB
4631fi
4632
81ecdfbb 4633
18f6b6ee
PB
4634 test -n "$ac_ct_CXX" && break
4635done
18f6b6ee 4636
81ecdfbb
RW
4637 if test "x$ac_ct_CXX" = x; then
4638 CXX="g++"
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646 CXX=$ac_ct_CXX
4647 fi
18f6b6ee
PB
4648fi
4649
81ecdfbb
RW
4650 fi
4651fi
18f6b6ee 4652# Provide some information about the compiler.
81ecdfbb
RW
4653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4654set X $ac_compile
4655ac_compiler=$2
4656for ac_option in --version -v -V -qversion; do
4657 { { ac_try="$ac_compiler $ac_option >&5"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663$as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4665 ac_status=$?
81ecdfbb
RW
4666 if test -s conftest.err; then
4667 sed '10a\
4668... rest of stderr output deleted ...
4669 10q' conftest.err >conftest.er1
4670 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4672 fi
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }
4675done
18f6b6ee 4676
81ecdfbb
RW
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4678$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4679if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
18f6b6ee 4681else
81ecdfbb 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4683/* end confdefs.h. */
4684
4685int
4686main ()
4687{
4688#ifndef __GNUC__
4689 choke me
4690#endif
4691
4692 ;
4693 return 0;
4694}
4695_ACEOF
81ecdfbb 4696if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4697 ac_compiler_gnu=yes
4698else
81ecdfbb 4699 ac_compiler_gnu=no
18f6b6ee 4700fi
81ecdfbb 4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4703
4704fi
81ecdfbb
RW
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4706$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4707if test $ac_compiler_gnu = yes; then
4708 GXX=yes
4709else
4710 GXX=
4711fi
18f6b6ee
PB
4712ac_test_CXXFLAGS=${CXXFLAGS+set}
4713ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4715$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4716if test "${ac_cv_prog_cxx_g+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718else
4719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4720 ac_cxx_werror_flag=yes
4721 ac_cv_prog_cxx_g=no
4722 CXXFLAGS="-g"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4724/* end confdefs.h. */
4725
4726int
4727main ()
4728{
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
81ecdfbb 4734if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4735 ac_cv_prog_cxx_g=yes
4736else
81ecdfbb
RW
4737 CXXFLAGS=""
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4739/* end confdefs.h. */
81ecdfbb 4740
18f6b6ee
PB
4741int
4742main ()
4743{
81ecdfbb 4744
18f6b6ee
PB
4745 ;
4746 return 0;
4747}
4748_ACEOF
81ecdfbb 4749if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4750
81ecdfbb
RW
4751else
4752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4753 CXXFLAGS="-g"
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4755/* end confdefs.h. */
81ecdfbb 4756
18f6b6ee
PB
4757int
4758main ()
4759{
81ecdfbb 4760
18f6b6ee
PB
4761 ;
4762 return 0;
4763}
4764_ACEOF
81ecdfbb
RW
4765if ac_fn_cxx_try_compile "$LINENO"; then :
4766 ac_cv_prog_cxx_g=yes
18f6b6ee 4767fi
81ecdfbb
RW
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4776$as_echo "$ac_cv_prog_cxx_g" >&6; }
4777if test "$ac_test_CXXFLAGS" = set; then
4778 CXXFLAGS=$ac_save_CXXFLAGS
4779elif test $ac_cv_prog_cxx_g = yes; then
4780 if test "$GXX" = yes; then
4781 CXXFLAGS="-g -O2"
4782 else
4783 CXXFLAGS="-g"
4784 fi
4785else
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-O2"
4788 else
4789 CXXFLAGS=
4790 fi
18f6b6ee 4791fi
18f6b6ee
PB
4792ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799# We must set the default linker to the linker used by gcc for the correct
4800# operation of libtool. If LD is not defined and we are using gcc, try to
4801# set the LD default to the ld used by gcc.
4802if test -z "$LD"; then
4803 if test "$GCC" = yes; then
4804 case $build in
4805 *-*-mingw*)
4806 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4807 *)
4808 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4809 esac
4810 case $gcc_prog_ld in
4811 # Accept absolute paths.
4812 [\\/]* | [A-Za-z]:[\\/]*)
4813 LD="$gcc_prog_ld" ;;
4814 esac
4815 fi
512b7dfb
PB
4816fi
4817
4818
4819
4820
c6b750e1 4821if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4822 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4823set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825$as_echo_n "checking for $ac_word... " >&6; }
4826if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
9e07f89d 4828else
512b7dfb
PB
4829 if test -n "$GNATBIND"; then
4830 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4831else
c6b750e1
DJ
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4839 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4841 break 2
4842 fi
4843done
81ecdfbb
RW
4844 done
4845IFS=$as_save_IFS
c6b750e1 4846
9e07f89d
NN
4847fi
4848fi
512b7dfb
PB
4849GNATBIND=$ac_cv_prog_GNATBIND
4850if test -n "$GNATBIND"; then
81ecdfbb
RW
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4852$as_echo "$GNATBIND" >&6; }
9e07f89d 4853else
81ecdfbb
RW
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
9e07f89d
NN
4856fi
4857
81ecdfbb 4858
c6b750e1 4859fi
512b7dfb
PB
4860if test -z "$ac_cv_prog_GNATBIND"; then
4861 ac_ct_GNATBIND=$GNATBIND
4862 # Extract the first word of "gnatbind", so it can be a program name with args.
4863set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
9e07f89d 4868else
512b7dfb
PB
4869 if test -n "$ac_ct_GNATBIND"; then
4870 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4871else
c6b750e1
DJ
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4879 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4881 break 2
4882 fi
4883done
81ecdfbb
RW
4884 done
4885IFS=$as_save_IFS
c6b750e1 4886
9e07f89d
NN
4887fi
4888fi
512b7dfb
PB
4889ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4890if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4892$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4893else
81ecdfbb
RW
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
9e07f89d
NN
4896fi
4897
81ecdfbb
RW
4898 if test "x$ac_ct_GNATBIND" = x; then
4899 GNATBIND="no"
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902yes:)
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905ac_tool_warned=yes ;;
4906esac
4907 GNATBIND=$ac_ct_GNATBIND
4908 fi
24ff9987 4909else
512b7dfb 4910 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4911fi
4912
7df2cd5d 4913if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4914 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4915set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
7df2cd5d 4920else
512b7dfb
PB
4921 if test -n "$GNATMAKE"; then
4922 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4931 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4933 break 2
4934 fi
4935done
81ecdfbb
RW
4936 done
4937IFS=$as_save_IFS
7df2cd5d
PB
4938
4939fi
4940fi
512b7dfb
PB
4941GNATMAKE=$ac_cv_prog_GNATMAKE
4942if test -n "$GNATMAKE"; then
81ecdfbb
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4944$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4945else
81ecdfbb
RW
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
7df2cd5d
PB
4948fi
4949
81ecdfbb 4950
7df2cd5d 4951fi
512b7dfb
PB
4952if test -z "$ac_cv_prog_GNATMAKE"; then
4953 ac_ct_GNATMAKE=$GNATMAKE
4954 # Extract the first word of "gnatmake", so it can be a program name with args.
4955set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
7df2cd5d 4960else
512b7dfb
PB
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4971 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4973 break 2
4974 fi
4975done
81ecdfbb
RW
4976 done
4977IFS=$as_save_IFS
7df2cd5d 4978
7df2cd5d
PB
4979fi
4980fi
512b7dfb
PB
4981ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4982if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4984$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4985else
81ecdfbb
RW
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
7df2cd5d
PB
4988fi
4989
81ecdfbb
RW
4990 if test "x$ac_ct_GNATMAKE" = x; then
4991 GNATMAKE="no"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994yes:)
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997ac_tool_warned=yes ;;
4998esac
4999 GNATMAKE=$ac_ct_GNATMAKE
5000 fi
7df2cd5d 5001else
512b7dfb 5002 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5003fi
5004
81ecdfbb
RW
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5006$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5007if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
9e07f89d
NN
5009else
5010 cat >conftest.adb <<EOF
5011procedure conftest is begin null; end conftest;
5012EOF
5013acx_cv_cc_gcc_supports_ada=no
5014# There is a bug in old released versions of GCC which causes the
5015# driver to exit successfully when the appropriate language module
5016# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5017# Therefore we must check for the error message as well as an
5018# unsuccessful exit.
b8908782
DD
5019# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5020# given a .adb file, but produce no object file. So we must check
5021# if an object file was really produced to guard against this.
9e07f89d 5022errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5023if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5024 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5025fi
5026rm -f conftest.*
5027fi
81ecdfbb
RW
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5029$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5030
64b986c0 5031if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5032 have_gnat=yes
5033else
5034 have_gnat=no
5035fi
5036
81ecdfbb
RW
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5038$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5039if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
b8908782
DD
5041else
5042 echo abfoo >t1
5043 echo cdfoo >t2
5044 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5045 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5046 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5047 :
5048 else
5049 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5050 fi
5051 fi
b8908782
DD
5052 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5053 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5054 :
b8908782
DD
5055 else
5056 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5057 fi
5058 fi
5059 rm t1 t2
5060
5061fi
81ecdfbb
RW
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5063$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5064do_compare="$gcc_cv_prog_cmp_skip"
5065
5066
9e07f89d 5067
ffdd6afc
ILT
5068# Check whether --enable-bootstrap was given.
5069if test "${enable_bootstrap+set}" = set; then :
5070 enableval=$enable_bootstrap;
5071else
5072 enable_bootstrap=default
5073fi
5074
5075
5076# Issue errors and warnings for invalid/strange bootstrap combinations.
5077if test -r $srcdir/gcc/configure; then
5078 have_compiler=yes
5079else
5080 have_compiler=no
5081fi
5082
5083case "$have_compiler:$host:$target:$enable_bootstrap" in
5084 *:*:*:no) ;;
5085
5086 # Default behavior. Enable bootstrap if we have a compiler
5087 # and we are in a native configuration.
5088 yes:$build:$build:default)
5089 enable_bootstrap=yes ;;
5090
5091 *:*:*:default)
5092 enable_bootstrap=no ;;
5093
5094 # We have a compiler and we are in a native configuration, bootstrap is ok
5095 yes:$build:$build:yes)
5096 ;;
5097
5098 # Other configurations, but we have a compiler. Assume the user knows
5099 # what he's doing.
5100 yes:*:*:yes)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5102$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5103 ;;
5104
5105 # No compiler: if they passed --enable-bootstrap explicitly, fail
5106 no:*:*:yes)
5107 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5108
5109 # Fail if wrong command line
5110 *)
5111 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5112 ;;
5113esac
5114
d5f2ee2e
KG
5115# Used for setting $lt_cv_objdir
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5117$as_echo_n "checking for objdir... " >&6; }
5118if test "${lt_cv_objdir+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120else
5121 rm -f .libs 2>/dev/null
5122mkdir .libs 2>/dev/null
5123if test -d .libs; then
5124 lt_cv_objdir=.libs
5125else
5126 # MS-DOS does not allow filenames that begin with a dot.
5127 lt_cv_objdir=_libs
5128fi
5129rmdir .libs 2>/dev/null
5130fi
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5132$as_echo "$lt_cv_objdir" >&6; }
5133objdir=$lt_cv_objdir
5134
5135
5136
5137
5138
5139cat >>confdefs.h <<_ACEOF
5140#define LT_OBJDIR "$lt_cv_objdir/"
5141_ACEOF
5142
5143
5144
e8a5fa9c 5145# Check for GMP, MPFR and MPC
d9b76ff9 5146gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5147gmpinc=
4b900473 5148have_gmp=no
e8a5fa9c
RW
5149
5150# Specify a location for mpc
5151# check for this first so it ends up on the link line before mpfr.
5152
81ecdfbb
RW
5153# Check whether --with-mpc was given.
5154if test "${with_mpc+set}" = set; then :
5155 withval=$with_mpc;
5156fi
e8a5fa9c 5157
e8a5fa9c 5158
e552509b 5159# Check whether --with-mpc-include was given.
81ecdfbb
RW
5160if test "${with_mpc_include+set}" = set; then :
5161 withval=$with_mpc_include;
5162fi
e8a5fa9c 5163
e8a5fa9c 5164
e552509b 5165# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5166if test "${with_mpc_lib+set}" = set; then :
5167 withval=$with_mpc_lib;
5168fi
e8a5fa9c 5169
e8a5fa9c
RW
5170
5171if test "x$with_mpc" != x; then
d9b76ff9
KG
5172 gmplibs="-L$with_mpc/lib $gmplibs"
5173 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5174fi
5175if test "x$with_mpc_include" != x; then
d9b76ff9 5176 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5177fi
5178if test "x$with_mpc_lib" != x; then
d9b76ff9 5179 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5180fi
5181if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5182 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5183 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5184 # Do not test the mpc version. Assume that it is sufficient, since
5185 # it is in the source tree, and the library has not been built yet
5186 # but it would be included on the link line in the version check below
5187 # hence making the test fail.
d9b76ff9 5188 have_gmp=yes
e8a5fa9c 5189fi
4b900473 5190
11b04d1f
DD
5191# Specify a location for mpfr
5192# check for this first so it ends up on the link line before gmp.
c6b750e1 5193
81ecdfbb
RW
5194# Check whether --with-mpfr-dir was given.
5195if test "${with_mpfr_dir+set}" = set; then :
5196 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5197Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5198fi
5199
11b04d1f
DD
5200
5201
81ecdfbb
RW
5202# Check whether --with-mpfr was given.
5203if test "${with_mpfr+set}" = set; then :
5204 withval=$with_mpfr;
5205fi
c6b750e1 5206
11b04d1f 5207
e552509b 5208# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5209if test "${with_mpfr_include+set}" = set; then :
5210 withval=$with_mpfr_include;
5211fi
c6b750e1 5212
8a0d8a5c 5213
e552509b 5214# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5215if test "${with_mpfr_lib+set}" = set; then :
5216 withval=$with_mpfr_lib;
5217fi
8a0d8a5c 5218
11b04d1f
DD
5219
5220if test "x$with_mpfr" != x; then
5221 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5222 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5223fi
8a0d8a5c 5224if test "x$with_mpfr_include" != x; then
d9b76ff9 5225 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5226fi
5227if test "x$with_mpfr_lib" != x; then
5228 gmplibs="-L$with_mpfr_lib $gmplibs"
5229fi
4b900473 5230if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5231 # MPFR v3.1.0 moved the sources into a src sub-directory.
5232 if test -d ${srcdir}/mpfr/src; then
5233 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5234 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5235 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5236 else
5237 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5238 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5239 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5240 fi
4b900473
PB
5241 # Do not test the mpfr version. Assume that it is sufficient, since
5242 # it is in the source tree, and the library has not been built yet
5243 # but it would be included on the link line in the version check below
5244 # hence making the test fail.
5245 have_gmp=yes
5246fi
11b04d1f 5247
4b1cb4fe 5248# Specify a location for gmp
c6b750e1 5249
81ecdfbb
RW
5250# Check whether --with-gmp-dir was given.
5251if test "${with_gmp_dir+set}" = set; then :
5252 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5253Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5254fi
5255
4b1cb4fe
DD
5256
5257
81ecdfbb
RW
5258# Check whether --with-gmp was given.
5259if test "${with_gmp+set}" = set; then :
5260 withval=$with_gmp;
5261fi
c6b750e1 5262
4b1cb4fe 5263
e552509b 5264# Check whether --with-gmp-include was given.
81ecdfbb
RW
5265if test "${with_gmp_include+set}" = set; then :
5266 withval=$with_gmp_include;
5267fi
c6b750e1 5268
8a0d8a5c 5269
e552509b 5270# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5271if test "${with_gmp_lib+set}" = set; then :
5272 withval=$with_gmp_lib;
5273fi
8a0d8a5c
PB
5274
5275
4b1cb4fe 5276
11b04d1f
DD
5277if test "x$with_gmp" != x; then
5278 gmplibs="-L$with_gmp/lib $gmplibs"
5279 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5280fi
8a0d8a5c
PB
5281if test "x$with_gmp_include" != x; then
5282 gmpinc="-I$with_gmp_include $gmpinc"
5283fi
5284if test "x$with_gmp_lib" != x; then
5285 gmplibs="-L$with_gmp_lib $gmplibs"
5286fi
4b900473 5287if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5288 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5289 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5290 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5291 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5292 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5293 # Do not test the gmp version. Assume that it is sufficient, since
5294 # it is in the source tree, and the library has not been built yet
5295 # but it would be included on the link line in the version check below
5296 # hence making the test fail.
5297 have_gmp=yes
5298fi
4b1cb4fe 5299
ceb92e78 5300if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5301 have_gmp=yes
5302 saved_CFLAGS="$CFLAGS"
5303 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5304 # Check for the recommended and required versions of GMP.
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5306$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5307
5308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5309/* end confdefs.h. */
5310#include "gmp.h"
5311int
5312main ()
5313{
5314
5315 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5316 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5317 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5318 choke me
5319 #endif
5320
5321 ;
5322 return 0;
5323}
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5327/* end confdefs.h. */
a6b5846e 5328#include <gmp.h>
c6b750e1
DJ
5329int
5330main ()
5331{
4b1cb4fe 5332
a6b5846e
KG
5333 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5334 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5335 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5336 choke me
5337 #endif
c6b750e1
DJ
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
81ecdfbb
RW
5343if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345$as_echo "yes" >&6; }
a6b5846e
KG
5346else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348$as_echo "buggy but acceptable" >&6; }
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5351else
81ecdfbb
RW
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5354fi
81ecdfbb 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5356
e8a5fa9c 5357 # If we have GMP, check the MPFR version.
4b900473 5358 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5359 # Check for the recommended and required versions of MPFR.
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5361$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5363/* end confdefs.h. */
9b134994 5364#include <gmp.h>
4b900473 5365 #include <mpfr.h>
c6b750e1
DJ
5366int
5367main ()
5368{
9b134994 5369
7ec59b9e 5370 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5371 choke me
5372 #endif
c6b750e1
DJ
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
81ecdfbb
RW
5378if ac_fn_c_try_compile "$LINENO"; then :
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5380/* end confdefs.h. */
4b1cb4fe 5381#include <gmp.h>
4b900473 5382 #include <mpfr.h>
c6b750e1
DJ
5383int
5384main ()
5385{
9dbaa842 5386
a6b5846e 5387 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5388 choke me
5389 #endif
e8a5fa9c
RW
5390
5391 ;
5392 return 0;
5393}
5394_ACEOF
81ecdfbb
RW
5395if ac_fn_c_try_compile "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397$as_echo "yes" >&6; }
e8a5fa9c 5398else
81ecdfbb
RW
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5400$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5401fi
81ecdfbb 5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5403else
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5406fi
81ecdfbb 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5408 fi
5409
5410 # Check for the MPC header version.
d9b76ff9 5411 if test x"$have_gmp" = xyes ; then
a6b5846e 5412 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5414$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5416/* end confdefs.h. */
5417#include <mpc.h>
5418int
5419main ()
5420{
5421
a6b5846e
KG
5422 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5423 choke me
5424 #endif
5425
5426 ;
5427 return 0;
5428}
5429_ACEOF
5430if ac_fn_c_try_compile "$LINENO"; then :
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#include <mpc.h>
5434int
5435main ()
5436{
5437
5438 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5439 choke me
5440 #endif
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
81ecdfbb
RW
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5448$as_echo "yes" >&6; }
a6b5846e
KG
5449else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5451$as_echo "buggy but acceptable" >&6; }
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5454else
81ecdfbb 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5456$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5457fi
81ecdfbb 5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5459 fi
5460
5461 # Now check the MPFR library.
5462 if test x"$have_gmp" = xyes; then
5463 saved_LIBS="$LIBS"
5464 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5466$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5468/* end confdefs.h. */
d9b76ff9 5469#include <mpc.h>
e8a5fa9c
RW
5470int
5471main ()
5472{
5473
5474 mpfr_t n;
5475 mpfr_t x;
d9b76ff9 5476 mpc_t c;
e8a5fa9c
RW
5477 int t;
5478 mpfr_init (n);
5479 mpfr_init (x);
5480 mpfr_atan2 (n, n, x, GMP_RNDN);
5481 mpfr_erfc (n, x, GMP_RNDN);
5482 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5483 mpfr_clear(n);
5484 mpfr_clear(x);
5485 mpc_init2 (c, 53);
5486 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5487 mpc_cosh (c, c, MPC_RNDNN);
5488 mpc_pow (c, c, c, MPC_RNDNN);
5489 mpc_acosh (c, c, MPC_RNDNN);
5490 mpc_clear (c);
c6b750e1
DJ
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
81ecdfbb
RW
5496if ac_fn_c_try_link "$LINENO"; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498$as_echo "yes" >&6; }
c6b750e1 5499else
81ecdfbb
RW
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5502fi
81ecdfbb
RW
5503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5505 LIBS="$saved_LIBS"
5506 fi
5507
4b900473 5508 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5509
a6b5846e
KG
5510# The library versions listed in the error message below should match
5511# the HARD-minimums enforced above.
4b900473 5512 if test x$have_gmp != xyes; then
7ec59b9e 5513 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5514Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5515their locations. Source code for these libraries can be found at
5516their respective hosting sites as well as at
5517ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5518http://gcc.gnu.org/install/prerequisites.html for additional info. If
5519you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5520make sure that you have installed both the libraries and the header
5521files. They may be located in separate packages." "$LINENO" 5
4b900473 5522 fi
9dbaa842
DD
5523fi
5524
e8a5fa9c
RW
5525# Flags needed for both GMP, MPFR and/or MPC.
5526
5527
5528
4b1cb4fe
DD
5529
5530
5531
7ec59b9e 5532
29383458
JM
5533# Allow host libstdc++ to be specified for static linking with PPL.
5534
81ecdfbb
RW
5535# Check whether --with-host-libstdcxx was given.
5536if test "${with_host_libstdcxx+set}" = set; then :
5537 withval=$with_host_libstdcxx;
5538fi
29383458 5539
29383458
JM
5540
5541case $with_host_libstdcxx in
5542 no|yes)
81ecdfbb 5543 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5544 ;;
5545esac
e28c595f 5546
e8a5fa9c
RW
5547# Linker flags to use for stage1 or when not boostrapping.
5548
81ecdfbb
RW
5549# Check whether --with-stage1-ldflags was given.
5550if test "${with_stage1_ldflags+set}" = set; then :
5551 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5552 stage1_ldflags=
5553 else
5554 stage1_ldflags=$withval
5555 fi
5556else
5557 stage1_ldflags=
81ecdfbb
RW
5558fi
5559
e8a5fa9c
RW
5560
5561
5562# Libraries to use for stage1 or when not bootstrapping.
5563
81ecdfbb
RW
5564# Check whether --with-stage1-libs was given.
5565if test "${with_stage1_libs+set}" = set; then :
5566 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5567 stage1_libs=
5568 else
5569 stage1_libs=$withval
5570 fi
5571else
5572 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5573fi
5574
e8a5fa9c
RW
5575
5576
e8a5fa9c
RW
5577# Libraries to use for stage2 and later builds. This defaults to the
5578# argument passed to --with-host-libstdcxx.
5579
81ecdfbb
RW
5580# Check whether --with-boot-libs was given.
5581if test "${with_boot_libs+set}" = set; then :
5582 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5583 poststage1_libs=
5584 else
5585 poststage1_libs=$withval
5586 fi
5587else
5588 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5589fi
5590
e8a5fa9c
RW
5591
5592
143754cd
NC
5593# Linker flags to use for stage2 and later builds.
5594
5595# Check whether --with-boot-ldflags was given.
5596if test "${with_boot_ldflags+set}" = set; then :
5597 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5598 poststage1_ldflags=
5599 else
5600 poststage1_ldflags=$withval
5601 fi
5602else
5603 poststage1_ldflags=
4f11b223
ILT
5604 # In stages 2 and 3, default to linking libstdc++ and libgcc
5605 # statically. But if the user explicitly specified the libraries to
5606 # use, trust that they are doing what they want.
5607 if test "$poststage1_libs" = ""; then
143754cd
NC
5608 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5609 fi
5610fi
5611
5612
5613
7ec59b9e 5614# Check for ISL
e28c595f
JM
5615
5616
7ec59b9e
L
5617# Check whether --with-isl was given.
5618if test "${with_isl+set}" = set; then :
5619 withval=$with_isl;
81ecdfbb 5620fi
e28c595f 5621
e28c595f 5622
7ec59b9e
L
5623# Check whether --with-isl-include was given.
5624if test "${with_isl_include+set}" = set; then :
5625 withval=$with_isl_include;
81ecdfbb
RW
5626fi
5627
e28c595f 5628
7ec59b9e
L
5629# Check whether --with-isl-lib was given.
5630if test "${with_isl_lib+set}" = set; then :
5631 withval=$with_isl_lib;
81ecdfbb 5632fi
e28c595f 5633
e28c595f 5634
7ec59b9e
L
5635 # Check whether --enable-isl-version-check was given.
5636if test "${enable_isl_version_check+set}" = set; then :
5637 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5638else
5639 ENABLE_ISL_CHECK=yes
b123da99
SP
5640fi
5641
5642
7ec59b9e
L
5643 # Initialize isllibs and islinc.
5644 case $with_isl in
5645 no)
5646 isllibs=
5647 islinc=
5648 ;;
5649 "" | yes)
5650 ;;
5651 *)
5652 isllibs="-L$with_isl/lib"
5653 islinc="-I$with_isl/include"
5654 ;;
5655 esac
5656 if test "x${with_isl_include}" != x ; then
5657 islinc="-I$with_isl_include"
5658 fi
5659 if test "x${with_isl_lib}" != x; then
5660 isllibs="-L$with_isl_lib"
5661 fi
5662 if test "x${islinc}" = x && test "x${isllibs}" = x \
5663 && test -d ${srcdir}/isl; then
5664 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5665 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5666 ENABLE_ISL_CHECK=no
5667 fi
b123da99 5668
7ec59b9e 5669 isllibs="${isllibs} -lisl"
b123da99 5670
b123da99 5671
e28c595f 5672
7ec59b9e
L
5673
5674
5675if test "x$with_isl" != "xno"; then
5676
5677 if test "${ENABLE_ISL_CHECK}" = yes ; then
5678 _isl_saved_CFLAGS=$CFLAGS
5679 _isl_saved_LDFLAGS=$LDFLAGS
5680 _isl_saved_LIBS=$LIBS
5681
5682 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5683 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5684 LIBS="${_isl_saved_LIBS} -lisl"
5685 echo $CFLAGS
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5688$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5689if test "${gcc_cv_isl+set}" = set; then :
b123da99
SP
5690 $as_echo_n "(cached) " >&6
5691else
7ec59b9e
L
5692 if test "$cross_compiling" = yes; then :
5693 gcc_cv_isl=yes
5694else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5696/* end confdefs.h. */
7ec59b9e
L
5697#include <isl/version.h>
5698 #include <string.h>
b123da99
SP
5699int
5700main ()
5701{
7ec59b9e
L
5702if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5703 return 1;
5704
b123da99
SP
5705 ;
5706 return 0;
5707}
5708_ACEOF
7ec59b9e
L
5709if ac_fn_c_try_run "$LINENO"; then :
5710 gcc_cv_isl=yes
e28c595f 5711else
7ec59b9e 5712 gcc_cv_isl=no
b123da99 5713fi
7ec59b9e
L
5714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5715 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5716fi
7ec59b9e 5717
81ecdfbb 5718fi
7ec59b9e
L
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5720$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5721
7ec59b9e
L
5722 CFLAGS=$_isl_saved_CFLAGS
5723 LDFLAGS=$_isl_saved_LDFLAGS
5724 LIBS=$_isl_saved_LIBS
b123da99 5725 fi
e28c595f 5726
b123da99 5727
e28c595f 5728
e28c595f 5729
7ec59b9e
L
5730
5731
5732
5733 if test "x${with_isl}" = xno; then
5734 graphite_requested=no
5735 elif test "x${with_isl}" != x \
5736 || test "x${with_isl_include}" != x \
5737 || test "x${with_isl_lib}" != x ; then
5738 graphite_requested=yes
5739 else
5740 graphite_requested=no
b123da99 5741 fi
e28c595f 5742
e28c595f
JM
5743
5744
7ec59b9e
L
5745 if test "${gcc_cv_isl}" = no ; then
5746 isllibs=
5747 islinc=
5748 fi
e28c595f 5749
7ec59b9e
L
5750 if test "${graphite_requested}" = yes \
5751 && test "x${isllibs}" = x \
5752 && test "x${islinc}" = x ; then
e28c595f 5753
7ec59b9e
L
5754 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5755 fi
e552509b 5756
e28c595f 5757
7ec59b9e
L
5758fi
5759
5760# Check for CLOOG
5761
e28c595f 5762
81ecdfbb
RW
5763# Check whether --with-cloog was given.
5764if test "${with_cloog+set}" = set; then :
5765 withval=$with_cloog;
81ecdfbb
RW
5766fi
5767
e28c595f 5768
e552509b 5769# Check whether --with-cloog-include was given.
81ecdfbb
RW
5770if test "${with_cloog_include+set}" = set; then :
5771 withval=$with_cloog_include;
5772fi
e28c595f 5773
e28c595f 5774
e552509b 5775# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5776if test "${with_cloog_lib+set}" = set; then :
5777 withval=$with_cloog_lib;
5778fi
e28c595f 5779
e28c595f 5780
e552509b
ILT
5781 # Check whether --enable-cloog-version-check was given.
5782if test "${enable_cloog_version_check+set}" = set; then :
5783 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5784else
5785 ENABLE_CLOOG_CHECK=yes
5786fi
5787
5788
5789 # Initialize clooglibs and clooginc.
5790 case $with_cloog in
5791 no)
5792 clooglibs=
5793 clooginc=
5794 ;;
5795 "" | yes)
5796 ;;
5797 *)
5798 clooglibs="-L$with_cloog/lib"
5799 clooginc="-I$with_cloog/include"
5800 ;;
5801 esac
5802 if test "x${with_cloog_include}" != x ; then
5803 clooginc="-I$with_cloog_include"
5804 fi
5805 if test "x${with_cloog_lib}" != x; then
5806 clooglibs="-L$with_cloog_lib"
5807 fi
7ec59b9e
L
5808 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5809 && test -d ${srcdir}/cloog; then
5810 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5811 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
8d8eef9a
RW
5812 fi
5813
7ec59b9e
L
5814 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5815 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
8d8eef9a 5816
e552509b 5817
81ecdfbb 5818
e28c595f 5819
e552509b 5820
7ec59b9e
L
5821if test "x$isllibs" = x && test "x$islinc" = x; then
5822 clooglibs=
5823 clooginc=
5824elif test "x$with_cloog" != "xno"; then
e552509b
ILT
5825
5826
5827
5828 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5829 _cloog_saved_CFLAGS=$CFLAGS
5830 _cloog_saved_LDFLAGS=$LDFLAGS
5831
7ec59b9e
L
5832 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5833 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 5834
7ec59b9e
L
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5836$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5837if test "${gcc_cv_cloog+set}" = set; then :
e552509b
ILT
5838 $as_echo_n "(cached) " >&6
5839else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
7ec59b9e 5842#include "cloog/version.h"
e552509b
ILT
5843int
5844main ()
5845{
5846#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
5847 || CLOOG_VERSION_MINOR != 17 \
5848 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
5849 choke me
5850 #endif
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 5856 gcc_cv_cloog=yes
e552509b 5857else
7ec59b9e 5858 gcc_cv_cloog=no
e552509b
ILT
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861fi
7ec59b9e
L
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5863$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
5864
5865 CFLAGS=$_cloog_saved_CFLAGS
5866 LDFLAGS=$_cloog_saved_LDFLAGS
5867 fi
5868
5869
5870
e28c595f 5871
e28c595f
JM
5872
5873
5874
8d8eef9a
RW
5875 if test "x${with_cloog}" = xno; then
5876 graphite_requested=no
5877 elif test "x${with_cloog}" != x \
e552509b
ILT
5878 || test "x${with_cloog_include}" != x \
5879 || test "x${with_cloog_lib}" != x ; then
5880 graphite_requested=yes
5881 else
5882 graphite_requested=no
5883 fi
5884
5885
5886
7ec59b9e 5887 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
5888 clooglibs=
5889 clooginc=
5890 fi
5891
5892 if test "${graphite_requested}" = yes \
5893 && test "x${clooglibs}" = x \
5894 && test "x${clooginc}" = x ; then
5895
8d8eef9a 5896 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
5897 fi
5898
5899
5900fi
5901
7ec59b9e
L
5902# If either the ISL or the CLooG check failed, disable builds of in-tree
5903# variants of both
5904if test "x$clooglibs" = x && test "x$clooginc" = x; then
5905 noconfigdirs="$noconfigdirs cloog isl"
5906fi
5907
700d40ca
ILT
5908# Check for LTO support.
5909# Check whether --enable-lto was given.
5910if test "${enable_lto+set}" = set; then :
5911 enableval=$enable_lto; enable_lto=$enableval
5912else
5913 enable_lto=yes; default_enable_lto=yes
5914fi
5915
5916
143754cd 5917
e49e5c92
DK
5918
5919
5920target_elf=no
5921case $target in
5922 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 5923 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5924 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5925 target_elf=no
5926 ;;
5927 *)
5928 target_elf=yes
5929 ;;
5930esac
5931
5932if test $target_elf = yes; then :
74cea91b
DK
5933 # ELF platforms build the lto-plugin always.
5934 build_lto_plugin=yes
e49e5c92 5935
e49e5c92
DK
5936else
5937 if test x"$default_enable_lto" = x"yes" ; then
29821356 5938 case $target in
899b04ef 5939 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 5940 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5941 *) enable_lto=no ;;
5942 esac
e49e5c92 5943 else
29821356
RW
5944 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5945 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5946 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5947 # warn during gcc/ subconfigure; unless you're bootstrapping with
5948 # -flto it won't be needed until after installation anyway.
5949 case $target in
a8eb3f0a 5950 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5951 *) if test x"$enable_lto" = x"yes"; then
5952 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5953 fi
5954 ;;
5955 esac
5956 fi
a8eb3f0a 5957 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5958 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5959 case $target in
74cea91b 5960 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5961 *) ;;
5962 esac
74cea91b 5963
e49e5c92
DK
5964fi
5965
700d40ca 5966
e28c595f 5967
7ec59b9e 5968# By default, C and C++ are the only stage 1 languages.
9b134994 5969stage1_languages=,c,
1d39f329 5970
e8a5fa9c 5971# Target libraries that we bootstrap.
2aa2364a 5972bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5973
9e07f89d
NN
5974# Figure out what language subdirectories are present.
5975# Look if the user specified --enable-languages="..."; if not, use
5976# the environment variable $LANGUAGES if defined. $LANGUAGES might
5977# go away some day.
5978# NB: embedded tabs in this IF block -- do not untabify
5979if test -d ${srcdir}/gcc; then
5980 if test x"${enable_languages+set}" != xset; then
5981 if test x"${LANGUAGES+set}" = xset; then
5982 enable_languages="${LANGUAGES}"
5983 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5984 else
5985 enable_languages=all
5986 fi
5987 else
5988 if test x"${enable_languages}" = x ||
5989 test x"${enable_languages}" = xyes;
5990 then
5991 echo configure.in: --enable-languages needs at least one language argument 1>&2
5992 exit 1
5993 fi
5994 fi
5995 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5996
096f7d00
DE
5997 # 'f95' is the old name for the 'fortran' language. We issue a warning
5998 # and make the substitution.
5999 case ,${enable_languages}, in
6000 *,f95,*)
6001 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6002 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6003 ;;
6004 esac
6005
7ec59b9e
L
6006 # If bootstrapping, C++ must be enabled.
6007 case ",$enable_languages,:$enable_bootstrap" in
6008 *,c++,*:*) ;;
6009 *:yes)
ffdd6afc
ILT
6010 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6011 enable_languages="${enable_languages},c++"
6012 else
7ec59b9e 6013 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6014 fi
6015 ;;
6016 esac
6017
9e07f89d
NN
6018 # First scan to see if an enabled language requires some other language.
6019 # We assume that a given config-lang.in will list all the language
6020 # front ends it requires, even if some are required indirectly.
6021 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6022 case ${lang_frag} in
6023 ..) ;;
6024 # The odd quoting in the next line works around
6025 # an apparent bug in bash 1.12 on linux.
6026 ${srcdir}/gcc/[*]/config-lang.in) ;;
6027 *)
e552509b
ILT
6028 # From the config-lang.in, get $language, $lang_requires, and
6029 # $lang_requires_boot_languages.
9e07f89d
NN
6030 language=
6031 lang_requires=
e552509b 6032 lang_requires_boot_languages=
9e07f89d 6033 . ${lang_frag}
e552509b 6034 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6035 case ,${enable_languages}, in
6036 *,$other,*) ;;
6037 *,all,*) ;;
6038 *,$language,*)
6039 echo " \`$other' language required by \`$language'; enabling" 1>&2
6040 enable_languages="${enable_languages},${other}"
6041 ;;
6042 esac
6043 done
e552509b
ILT
6044 for other in ${lang_requires_boot_languages} ; do
6045 if test "$other" != "c"; then
6046 case ,${enable_stage1_languages}, in
6047 *,$other,*) ;;
6048 *,all,*) ;;
6049 *)
6050 case ,${enable_languages}, in
6051 *,$language,*)
6052 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6053 enable_stage1_languages="$enable_stage1_languages,${other}"
6054 ;;
6055 esac
6056 ;;
6057 esac
6058 fi
6059 done
9e07f89d
NN
6060 ;;
6061 esac
6062 done
6063
9b134994 6064 new_enable_languages=,c,
700d40ca
ILT
6065
6066 # If LTO is enabled, add the LTO front end.
6067 extra_host_libiberty_configure_flags=
6068 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6069 case ,${enable_languages}, in
6070 *,lto,*) ;;
6071 *) enable_languages="${enable_languages},lto" ;;
6072 esac
a8eb3f0a 6073 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6074 configdirs="$configdirs lto-plugin"
6075 extra_host_libiberty_configure_flags=--enable-shared
6076 fi
6077 fi
6078
6079
9e07f89d 6080 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6081 potential_languages=,c,
9e07f89d 6082
9e1a94f4
ILT
6083 enabled_target_libs=
6084 disabled_target_libs=
6085
9e07f89d
NN
6086 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6087 case ${lang_frag} in
6088 ..) ;;
6089 # The odd quoting in the next line works around
6090 # an apparent bug in bash 1.12 on linux.
6091 ${srcdir}/gcc/[*]/config-lang.in) ;;
6092 *)
c6b750e1 6093 # From the config-lang.in, get $language, $target_libs,
1d39f329 6094 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6095 language=
6096 target_libs=
6097 lang_dirs=
64ce424c 6098 subdir_requires=
9b134994
PB
6099 boot_language=no
6100 build_by_default=yes
9e07f89d 6101 . ${lang_frag}
9b134994
PB
6102 if test x${language} = x; then
6103 echo "${lang_frag} doesn't set \$language." 1>&2
6104 exit 1
6105 fi
6106
ffdd6afc 6107 if test "$language" = "c++"; then
7ec59b9e 6108 boot_language=yes
e8a5fa9c
RW
6109 fi
6110
9b134994
PB
6111 case ,${enable_languages}, in
6112 *,${language},*)
7ec59b9e
L
6113 # Language was explicitly selected; include it
6114 # unless it is C, which is enabled by default.
6115 if test "$language" != "c"; then
6116 add_this_lang=yes
6117 fi
9e07f89d 6118 ;;
9b134994
PB
6119 *,all,*)
6120 # 'all' was selected, select it if it is a default language
6121 add_this_lang=${build_by_default}
9e07f89d
NN
6122 ;;
6123 *)
6124 add_this_lang=no
6125 ;;
6126 esac
4b1cb4fe 6127
64ce424c 6128 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6129 for i in $subdir_requires; do
3d3adb43 6130 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6131 case ,${enable_languages}, in
6132 *,${language},*)
6133 # Specifically requested language; tell them.
81ecdfbb 6134 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6135 ;;
6136 *)
6137 # Silently disable.
9b134994 6138 add_this_lang=unsupported
64ce424c
PB
6139 ;;
6140 esac
6141 done
6142
9b134994
PB
6143 # Disable Ada if no preexisting GNAT is available.
6144 case ,${enable_languages},:${language}:${have_gnat} in
6145 *,${language},*:ada:no)
6146 # Specifically requested language; tell them.
81ecdfbb 6147 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6148 ;;
6149 *:ada:no)
6150 # Silently disable.
6151 add_this_lang=unsupported
6152 ;;
6153 esac
6154
59f7ec45
HPN
6155 # Disable a language that is unsupported by the target.
6156 case " $unsupported_languages " in
6157 *" $language "*)
9b134994 6158 add_this_lang=unsupported
59f7ec45
HPN
6159 ;;
6160 esac
6161
4b1cb4fe 6162 case $add_this_lang in
9b134994 6163 unsupported)
9e07f89d 6164 # Remove language-dependent dirs.
9e1a94f4
ILT
6165 disabled_target_libs="$disabled_target_libs $target_libs"
6166 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6167 ;;
9b134994
PB
6168 no)
6169 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6170 disabled_target_libs="$disabled_target_libs $target_libs"
6171 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6172 potential_languages="${potential_languages}${language},"
6173 ;;
6174 yes)
6175 new_enable_languages="${new_enable_languages}${language},"
6176 potential_languages="${potential_languages}${language},"
1d39f329 6177 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6178 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6179 case "${boot_language}:,$enable_stage1_languages," in
6180 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6181 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6182 case ",$stage1_languages," in
6183 *,$language,* | ,yes, | ,all,) ;;
6184 *) stage1_languages="${stage1_languages}${language}," ;;
6185 esac
e8a5fa9c
RW
6186 # We need to bootstrap any supporting libraries.
6187 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6188 ;;
6189 esac
6190 ;;
9e07f89d
NN
6191 esac
6192 ;;
6193 esac
6194 done
6195
9e1a94f4
ILT
6196 # Add target libraries which are only needed for disabled languages
6197 # to noconfigdirs.
6198 if test -n "$disabled_target_libs"; then
6199 for dir in $disabled_target_libs; do
6200 case " $enabled_target_libs " in
6201 *" ${dir} "*) ;;
6202 *) noconfigdirs="$noconfigdirs $dir" ;;
6203 esac
6204 done
6205 fi
6206
81ecdfbb
RW
6207 # Check whether --enable-stage1-languages was given.
6208if test "${enable_stage1_languages+set}" = set; then :
6209 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6210 ,no,|,,)
6211 # Set it to something that will have no effect in the loop below
6212 enable_stage1_languages=c ;;
6213 ,yes,)
6214 enable_stage1_languages=`echo $new_enable_languages | \
6215 sed -e "s/^,//" -e "s/,$//" ` ;;
6216 *,all,*)
6217 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6218 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6219 esac
6220
6221 # Add "good" languages from enable_stage1_languages to stage1_languages,
6222 # while "bad" languages go in missing_languages. Leave no duplicates.
6223 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6224 case $potential_languages in
6225 *,$i,*)
6226 case $stage1_languages in
6227 *,$i,*) ;;
6228 *) stage1_languages="$stage1_languages$i," ;;
6229 esac ;;
6230 *)
6231 case $missing_languages in
6232 *,$i,*) ;;
6233 *) missing_languages="$missing_languages$i," ;;
6234 esac ;;
6235 esac
6236 done
81ecdfbb
RW
6237fi
6238
9b134994
PB
6239
6240 # Remove leading/trailing commas that were added for simplicity
6241 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6242 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6243 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6244 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6245
9e07f89d 6246 if test "x$missing_languages" != x; then
81ecdfbb 6247 as_fn_error "
27258dd4 6248The following requested languages could not be built: ${missing_languages}
81ecdfbb 6249Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6250 fi
9e07f89d
NN
6251 if test "x$new_enable_languages" != "x$enable_languages"; then
6252 echo The following languages will be built: ${new_enable_languages}
9b134994 6253 enable_languages="$new_enable_languages"
9e07f89d 6254 fi
9b134994 6255
c6b750e1 6256
81ec575a 6257 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6258fi
6259
a6df5a19
PB
6260# Handle --disable-<component> generically.
6261for dir in $configdirs $build_configdirs $target_configdirs ; do
6262 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6263 varname=`echo $dirname | sed -e s/+/_/g`
6264 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6265 noconfigdirs="$noconfigdirs $dir"
6266 fi
6267done
6268
4f0ef2d8 6269# Check for Boehm's garbage collector
81ecdfbb
RW
6270# Check whether --enable-objc-gc was given.
6271if test "${enable_objc_gc+set}" = set; then :
6272 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6273 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6274 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6275 ;;
6276esac
81ecdfbb
RW
6277fi
6278
4f0ef2d8
CD
6279
6280# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6281case ,${enable_languages},:${enable_objc_gc} in
6282 *,objc,*:yes)
4f0ef2d8
CD
6283 # Keep target-boehm-gc if requested for Objective-C.
6284 ;;
4f0ef2d8 6285 *)
d42c4017
DA
6286 # Otherwise remove target-boehm-gc depending on target-libjava.
6287 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6288 noconfigdirs="$noconfigdirs target-boehm-gc"
6289 fi
4f0ef2d8
CD
6290 ;;
6291esac
6292
7ec59b9e
L
6293# Disable libitm if we're not building C++
6294case ,${enable_languages}, in
6295 *,c++,*) ;;
6296 *)
6297 noconfigdirs="$noconfigdirs target-libitm"
6298 ;;
6299esac
6300
caeba88f
AL
6301# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6302# $build_configdirs and $target_configdirs.
9e07f89d
NN
6303# If we have the source for $noconfigdirs entries, add them to $notsupp.
6304
6305notsupp=""
6306for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6307 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6308 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6309 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6310 if test -r $srcdir/$dirname/configure ; then
6311 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6312 true
6313 else
6314 notsupp="$notsupp $dir"
6315 fi
6316 fi
6317 fi
caeba88f
AL
6318 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6319 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6320 if test -r $srcdir/$dirname/configure ; then
6321 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6322 true
6323 else
6324 notsupp="$notsupp $dir"
6325 fi
6326 fi
6327 fi
9e07f89d
NN
6328 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6329 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6330 if test -r $srcdir/$dirname/configure ; then
6331 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6332 true
6333 else
6334 notsupp="$notsupp $dir"
6335 fi
6336 fi
6337 fi
6338done
6339
9e07f89d
NN
6340# Quietly strip out all directories which aren't configurable in this tree.
6341# This relies on all configurable subdirectories being autoconfiscated, which
6342# is now the case.
6a9cf61e
PB
6343build_configdirs_all="$build_configdirs"
6344build_configdirs=
6345for i in ${build_configdirs_all} ; do
c6b750e1 6346 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6347 if test -f ${srcdir}/$j/configure ; then
6348 build_configdirs="${build_configdirs} $i"
6349 fi
6350done
6351
9e07f89d
NN
6352configdirs_all="$configdirs"
6353configdirs=
6354for i in ${configdirs_all} ; do
6355 if test -f ${srcdir}/$i/configure ; then
6356 configdirs="${configdirs} $i"
6357 fi
6358done
6a9cf61e 6359
9e07f89d
NN
6360target_configdirs_all="$target_configdirs"
6361target_configdirs=
6362for i in ${target_configdirs_all} ; do
c6b750e1 6363 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6364 if test -f ${srcdir}/$j/configure ; then
6365 target_configdirs="${target_configdirs} $i"
6366 fi
6367done
6368
6369# Produce a warning message for the subdirs we can't configure.
6370# This isn't especially interesting in the Cygnus tree, but in the individual
6371# FSF releases, it's important to let people know when their machine isn't
6372# supported by the one or two programs in a package.
6373
6374if test -n "${notsupp}" && test -z "${norecursion}" ; then
6375 # If $appdirs is non-empty, at least one of those directories must still
6376 # be configured, or we error out. (E.g., if the gas release supports a
6377 # specified target in some subdirs but not the gas subdir, we shouldn't
6378 # pretend that all is well.)
6379 if test -n "$appdirs" ; then
6380 for dir in $appdirs ; do
6381 if test -r $dir/Makefile.in ; then
6382 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6383 appdirs=""
6384 break
6385 fi
6a9cf61e 6386 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6387 appdirs=""
6388 break
6389 fi
6390 fi
6391 done
6392 if test -n "$appdirs" ; then
6393 echo "*** This configuration is not supported by this package." 1>&2
6394 exit 1
6395 fi
6396 fi
6397 # Okay, some application will build, or we don't care to check. Still
6398 # notify of subdirs not getting built.
6399 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6400 echo " ${notsupp}" 1>&2
6401 echo " (Any other directories should still work fine.)" 1>&2
6402fi
6403
6404case "$host" in
6405 *msdosdjgpp*)
6406 enable_gdbtk=no ;;
6407esac
6408
18f6b6ee
PB
6409# To find our prefix, in gcc_cv_tool_prefix.
6410
6411# The user is always right.
6412if test "${PATH_SEPARATOR+set}" != set; then
6413 echo "#! /bin/sh" >conf$$.sh
6414 echo "exit 0" >>conf$$.sh
6415 chmod +x conf$$.sh
6416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6417 PATH_SEPARATOR=';'
6418 else
6419 PATH_SEPARATOR=:
6420 fi
6421 rm -f conf$$.sh
6422fi
6423
6424
6425
6426if test "x$exec_prefix" = xNONE; then
6427 if test "x$prefix" = xNONE; then
6428 gcc_cv_tool_prefix=$ac_default_prefix
6429 else
6430 gcc_cv_tool_prefix=$prefix
6431 fi
6432else
6433 gcc_cv_tool_prefix=$exec_prefix
6434fi
6435
6436# If there is no compiler in the tree, use the PATH only. In any
6437# case, if there is no compiler in the tree nobody should use
6438# AS_FOR_TARGET and LD_FOR_TARGET.
6439if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6440 gcc_version=`cat $srcdir/gcc/BASE-VER`
6441 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6442 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6444 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6447else
6448 gcc_cv_tool_dirs=
6449fi
6450
6451if test x$build = x$target && test -n "$md_exec_prefix"; then
6452 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6453fi
6454
6455
6456
9e07f89d
NN
6457copy_dirs=
6458
c6b750e1 6459
81ecdfbb
RW
6460# Check whether --with-build-sysroot was given.
6461if test "${with_build_sysroot+set}" = set; then :
6462 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6463 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6464 fi
6465else
6466 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6467fi
a19b6204
MM
6468
6469
8a6ee3ab 6470
81ecdfbb
RW
6471
6472# Check whether --with-debug-prefix-map was given.
6473if test "${with_debug_prefix_map+set}" = set; then :
6474 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6475 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6476 for debug_map in $withval; do
6477 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6478 done
6479 fi
6480else
6481 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6482fi
6483
8a6ee3ab
JM
6484
6485
7f6ef0c0
PB
6486# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6487# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6488# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6489# We want to ensure that TARGET libraries (which we know are built with
6490# gcc) are built with "-O2 -g", so include those options when setting
6491# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6492if test "x$CFLAGS_FOR_TARGET" = x; then
6493 CFLAGS_FOR_TARGET=$CFLAGS
6494 case " $CFLAGS " in
6495 *" -O2 "*) ;;
68f107fa 6496 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6497 esac
6498 case " $CFLAGS " in
6499 *" -g "* | *" -g3 "*) ;;
68f107fa 6500 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6501 esac
6502fi
6503
6504
6505if test "x$CXXFLAGS_FOR_TARGET" = x; then
6506 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6507 case " $CXXFLAGS " in
6508 *" -O2 "*) ;;
68f107fa 6509 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6510 esac
6511 case " $CXXFLAGS " in
6512 *" -g "* | *" -g3 "*) ;;
68f107fa 6513 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6514 esac
6515fi
6516
6517
91c1f14c
DK
6518
6519
9e07f89d
NN
6520# Handle --with-headers=XXX. If the value is not "yes", the contents of
6521# the named directory are copied to $(tooldir)/sys-include.
6522if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6523 if test x${is_cross_compiler} = xno ; then
6524 echo 1>&2 '***' --with-headers is only supported when cross compiling
6525 exit 1
6526 fi
6527 if test x"${with_headers}" != xyes ; then
18f6b6ee 6528 x=${gcc_cv_tool_prefix}
c6b750e1 6529 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6530 fi
6531fi
6532
6533# Handle --with-libs=XXX. If the value is not "yes", the contents of
6534# the name directories are copied to $(tooldir)/lib. Multiple directories
6535# are permitted.
6536if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6537 if test x${is_cross_compiler} = xno ; then
6538 echo 1>&2 '***' --with-libs is only supported when cross compiling
6539 exit 1
6540 fi
6541 if test x"${with_libs}" != xyes ; then
6542 # Copy the libraries in reverse order, so that files in the first named
6543 # library override files in subsequent libraries.
18f6b6ee 6544 x=${gcc_cv_tool_prefix}
9e07f89d 6545 for l in ${with_libs}; do
c6b750e1 6546 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6547 done
6548 fi
6549fi
6550
700d40ca 6551# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6552#
6553# This is done by determining whether or not the appropriate directory
6554# is available, and by checking whether or not specific configurations
6555# have requested that this magic not happen.
c6b750e1
DJ
6556#
6557# The command line options always override the explicit settings in
2429c060
PB
6558# configure.in, and the settings in configure.in override this magic.
6559#
c6b750e1 6560# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6561# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6562# --without-gnu-ld options for the configure script. Similarly, if
6563# the default is to use the included zlib and you don't want to do that,
6564# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6565
6566if test x${use_gnu_as} = x &&
6567 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6568 with_gnu_as=yes
6569 extra_host_args="$extra_host_args --with-gnu-as"
6570fi
6571
6572if test x${use_gnu_ld} = x &&
93f9b408 6573 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6574 with_gnu_ld=yes
6575 extra_host_args="$extra_host_args --with-gnu-ld"
6576fi
6577
700d40ca
ILT
6578if test x${use_included_zlib} = x &&
6579 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6580 :
6581else
6582 with_system_zlib=yes
6583 extra_host_args="$extra_host_args --with-system-zlib"
6584fi
6585
2429c060
PB
6586# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6587# can detect this case.
6588
6589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6590 with_newlib=yes
6591 extra_host_args="$extra_host_args --with-newlib"
6592fi
6593
9e07f89d
NN
6594# Handle ${copy_dirs}
6595set fnord ${copy_dirs}
6596shift
6597while test $# != 0 ; do
6598 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6599 :
6600 else
6601 echo Copying $1 to $2
6602
6603 # Use the install script to create the directory and all required
6604 # parent directories.
6605 if test -d $2 ; then
6606 :
6607 else
6608 echo >config.temp
6609 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6610 fi
6611
6612 # Copy the directory, assuming we have tar.
6613 # FIXME: Should we use B in the second tar? Not all systems support it.
6614 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6615
6616 # It is the responsibility of the user to correctly adjust all
6617 # symlinks. If somebody can figure out how to handle them correctly
6618 # here, feel free to add the code.
6619
6620 echo $1 > $2/COPIED
6621 fi
6622 shift; shift
6623done
6624
2429c060
PB
6625# Determine a target-dependent exec_prefix that the installed
6626# gcc will search in. Keep this list sorted by triplet, with
6627# the *-*-osname triplets last.
6628md_exec_prefix=
6629case "${target}" in
521ec477 6630 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6631 md_exec_prefix=/dev/env/DJDIR/bin
6632 ;;
2429c060 6633 *-*-hpux* | \
2429c060 6634 *-*-nto-qnx* | \
1f111696 6635 *-*-solaris2*)
2429c060
PB
6636 md_exec_prefix=/usr/ccs/bin
6637 ;;
6638esac
6639
a0da8069
NN
6640extra_arflags_for_target=
6641extra_nmflags_for_target=
6642extra_ranlibflags_for_target=
6643target_makefile_frag=/dev/null
6644case "${target}" in
77d7106f
AM
6645 spu-*-*)
6646 target_makefile_frag="config/mt-spu"
6647 ;;
429acdec
RS
6648 mips*-sde-elf*)
6649 target_makefile_frag="config/mt-sde"
6650 ;;
f3b1e08e
RS
6651 mipsisa*-*-elfoabi*)
6652 target_makefile_frag="config/mt-mips-elfoabi"
6653 ;;
e7c8859c
RS
6654 mips*-*-*linux* | mips*-*-gnu*)
6655 target_makefile_frag="config/mt-mips-gnu"
6656 ;;
29383458 6657 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6658 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6659 ;;
6660 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6661 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6662 # commands to handle both 32-bit and 64-bit objects. These flags are
6663 # harmless if we're using GNU nm or ar.
6664 extra_arflags_for_target=" -X32_64"
6665 extra_nmflags_for_target=" -B -X32_64"
6666 ;;
a0da8069
NN
6667esac
6668
6669alphaieee_frag=/dev/null
6670case $target in
6671 alpha*-*-*)
6672 # This just makes sure to use the -mieee option to build target libs.
6673 # This should probably be set individually by each library.
6674 alphaieee_frag="config/mt-alphaieee"
6675 ;;
6676esac
6677
6678# If --enable-target-optspace always use -Os instead of -O2 to build
6679# the target libraries, similarly if it is not specified, use -Os
6680# on selected platforms.
6681ospace_frag=/dev/null
6682case "${enable_target_optspace}:${target}" in
6683 yes:*)
6684 ospace_frag="config/mt-ospace"
6685 ;;
6686 :d30v-*)
6687 ospace_frag="config/mt-d30v"
6688 ;;
6689 :m32r-* | :d10v-* | :fr30-*)
6690 ospace_frag="config/mt-ospace"
6691 ;;
6692 no:* | :*)
6693 ;;
6694 *)
6695 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6696 ;;
6697esac
6698
a0da8069
NN
6699# Some systems (e.g., one of the i386-aix systems the gas testers are
6700# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6701tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6702build_tooldir=${tooldir}
6703
a0da8069
NN
6704# Create a .gdbinit file which runs the one in srcdir
6705# and tells GDB to look there for source files.
6706
6707if test -r ${srcdir}/.gdbinit ; then
6708 case ${srcdir} in
6709 .) ;;
6710 *) cat > ./.gdbinit <<EOF
6711# ${NO_EDIT}
6712dir ${srcdir}
6713dir .
6714source ${srcdir}/.gdbinit
6715EOF
6716 ;;
6717 esac
6718fi
6719
a0da8069
NN
6720# Make sure that the compiler is able to generate an executable. If it
6721# can't, we are probably in trouble. We don't care whether we can run the
6722# executable--we might be using a cross compiler--we only care whether it
6723# can be created. At this point the main configure script has set CC.
6724we_are_ok=no
6725echo "int main () { return 0; }" > conftest.c
6726${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6727if test $? = 0 ; then
6728 if test -s conftest || test -s conftest.exe ; then
6729 we_are_ok=yes
6730 fi
c6b750e1 6731fi
a0da8069
NN
6732case $we_are_ok in
6733 no)
6734 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6735 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6736 rm -f conftest*
6737 exit 1
6738 ;;
6739esac
6740rm -f conftest*
6741
3bbd2f8f 6742# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6743case "${host}" in
6744 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6745 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6746 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6747 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6748esac
6749
3bbd2f8f 6750# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6751# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6752# built executables to PATH.
3bbd2f8f
AL
6753if test "$RPATH_ENVVAR" = PATH; then
6754 GCC_SHLIB_SUBDIR=/shlib
6755else
6756 GCC_SHLIB_SUBDIR=
6757fi
6758
a0da8069
NN
6759# Record target_configdirs and the configure arguments for target and
6760# build configuration in Makefile.
6761target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6762build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6763
2aa2364a
JR
6764# If we are building libgomp, bootstrap it.
6765if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6766 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6767fi
6768
a0da8069
NN
6769# Determine whether gdb needs tk/tcl or not.
6770# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6771# and in that case we want gdb to be built without tk. Ugh!
6772# In fact I believe gdb is the *only* package directly dependent on tk,
6773# so we should be able to put the 'maybe's in unconditionally and
6774# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6775# 100% sure that that's safe though.
c180f501 6776
675c6968 6777gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6778case "$enable_gdbtk" in
6779 no)
6780 GDB_TK="" ;;
c180f501
AC
6781 yes)
6782 GDB_TK="${gdb_tk}" ;;
a0da8069 6783 *)
c180f501
AC
6784 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6785 # distro. Eventually someone will fix this and move Insight, nee
6786 # gdbtk to a separate directory.
6787 if test -d ${srcdir}/gdb/gdbtk ; then
6788 GDB_TK="${gdb_tk}"
6789 else
6790 GDB_TK=""
6791 fi
6792 ;;
a0da8069 6793esac
907be67c
DJ
6794CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6795INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6796
6bd3dfaa 6797# Strip out unwanted targets.
dd12c3a8
NN
6798
6799# While at that, we remove Makefiles if we were started for recursive
6800# configuration, so that the top-level Makefile reconfigures them,
6801# like we used to do when configure itself was recursive.
dd12c3a8 6802
06a51eac
RW
6803# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6804# but now we're fixing up the Makefile ourselves with the additional
6805# commands passed to AC_CONFIG_FILES. Use separate variables
6806# extrasub-{build,host,target} not because there is any reason to split
6807# the substitutions up that way, but only to remain below the limit of
6808# 99 commands in a script, for HP-UX sed.
6809# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6810
16b1ad29
RW
6811case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6812 yes:yes:*\ gold\ *:*,c++,*) ;;
6813 yes:yes:*\ gold\ *:*)
6814 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6815 ;;
6816esac
6817
9cb3fa6f 6818# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6819case $enable_bootstrap in
319cab08 6820 yes)
96655cc4
AO
6821 bootstrap_suffix=bootstrap
6822 BUILD_CONFIG=bootstrap-debug
6823 ;;
319cab08 6824 no)
96655cc4
AO
6825 bootstrap_suffix=no-bootstrap
6826 BUILD_CONFIG=
6827 ;;
319cab08
PB
6828esac
6829
96655cc4
AO
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6831$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6832
6833
6834# Check whether --with-build-config was given.
6835if test "${with_build_config+set}" = set; then :
6836 withval=$with_build_config; case $with_build_config in
6837 yes) with_build_config= ;;
6838 no) with_build_config= BUILD_CONFIG= ;;
6839 esac
6840fi
6841
6842
6843if test "x${with_build_config}" != x; then
6844 BUILD_CONFIG=$with_build_config
6845else
6846 case $BUILD_CONFIG in
6847 bootstrap-debug)
6848 if echo "int f (void) { return 0; }" > conftest.c &&
6849 ${CC} -c conftest.c &&
6850 mv conftest.o conftest.o.g0 &&
6851 ${CC} -c -g conftest.c &&
6852 mv conftest.o conftest.o.g &&
a009f2e7 6853 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6854 :
6855 else
6856 BUILD_CONFIG=
6857 fi
6858 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6859 ;;
6860 esac
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6863$as_echo "$BUILD_CONFIG" >&6; }
6864
6865
06a51eac 6866extrasub_build=
6a9cf61e 6867for module in ${build_configdirs} ; do
498d4a71
CF
6868 if test -z "${no_recursion}" \
6869 && test -f ${build_subdir}/${module}/Makefile; then
6870 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6871 rm -f ${build_subdir}/${module}/Makefile
6872 fi
06a51eac 6873 extrasub_build="$extrasub_build
498d4a71
CF
6874/^@if build-$module\$/d
6875/^@endif build-$module\$/d
6876/^@if build-$module-$bootstrap_suffix\$/d
6877/^@endif build-$module-$bootstrap_suffix\$/d"
6878done
06a51eac 6879extrasub_host=
498d4a71 6880for module in ${configdirs} ; do
80911fe1 6881 if test -z "${no_recursion}"; then
8cf39b1b 6882 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6883 if test -f ${file}; then
6884 echo 1>&2 "*** removing ${file} to force reconfigure"
6885 rm -f ${file}
6886 fi
6887 done
498d4a71 6888 fi
06a51eac 6889 extrasub_host="$extrasub_host
498d4a71
CF
6890/^@if $module\$/d
6891/^@endif $module\$/d
6892/^@if $module-$bootstrap_suffix\$/d
6893/^@endif $module-$bootstrap_suffix\$/d"
6894done
06a51eac 6895extrasub_target=
498d4a71
CF
6896for module in ${target_configdirs} ; do
6897 if test -z "${no_recursion}" \
6898 && test -f ${target_subdir}/${module}/Makefile; then
6899 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6900 rm -f ${target_subdir}/${module}/Makefile
6901 fi
e8a5fa9c
RW
6902
6903 # We only bootstrap target libraries listed in bootstrap_target_libs.
6904 case $bootstrap_target_libs in
6905 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6906 *) target_bootstrap_suffix=no-bootstrap ;;
6907 esac
6908
06a51eac 6909 extrasub_target="$extrasub_target
498d4a71
CF
6910/^@if target-$module\$/d
6911/^@endif target-$module\$/d
e8a5fa9c
RW
6912/^@if target-$module-$target_bootstrap_suffix\$/d
6913/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6914done
6915
06a51eac
RW
6916# Do the final fixup along with target modules.
6917extrasub_target="$extrasub_target
6bd3dfaa 6918/^@if /,/^@endif /d"
a0da8069
NN
6919
6920# Create the serialization dependencies. This uses a temporary file.
6921
81ecdfbb
RW
6922# Check whether --enable-serial-configure was given.
6923if test "${enable_serial_configure+set}" = set; then :
6924 enableval=$enable_serial_configure;
6925fi
e6bfb94a
AO
6926
6927
1047cb91
DD
6928case ${enable_serial_configure} in
6929 yes)
6930 enable_serial_build_configure=yes
6931 enable_serial_host_configure=yes
6932 enable_serial_target_configure=yes
6933 ;;
6934esac
6935
a0da8069
NN
6936# These force 'configure's to be done one at a time, to avoid problems
6937# with contention over a shared config.cache.
6938rm -f serdep.tmp
e6bfb94a 6939echo '# serdep.tmp' > serdep.tmp
a0da8069 6940olditem=
1047cb91 6941test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6942for item in ${build_configdirs} ; do
6943 case ${olditem} in
6944 "") ;;
e6bfb94a 6945 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6946 esac
6947 olditem=${item}
6948done
6949olditem=
1047cb91 6950test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6951for item in ${configdirs} ; do
6952 case ${olditem} in
6953 "") ;;
e6bfb94a 6954 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6955 esac
6956 olditem=${item}
6957done
6958olditem=
1047cb91 6959test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6960for item in ${target_configdirs} ; do
6961 case ${olditem} in
6962 "") ;;
e6bfb94a 6963 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6964 esac
6965 olditem=${item}
6966done
6967serialization_dependencies=serdep.tmp
6968
6969
e6bfb94a 6970# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 6971# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
6972# might not want to pass down to subconfigures. The exception being
6973# --cache-file=/dev/null, which is used to turn off the use of cache
6974# files altogether, and which should be passed on to subconfigures.
6975# Also strip program-prefix, program-suffix, and program-transform-name,
6976# so that we can pass down a consistent program-transform-name.
c6b750e1 6977baseargs=
65b4571a 6978tbaseargs=
c6b750e1
DJ
6979keep_next=no
6980skip_next=no
6981eval "set -- $ac_configure_args"
18f6b6ee
PB
6982for ac_arg
6983do
c6b750e1
DJ
6984 if test X"$skip_next" = X"yes"; then
6985 skip_next=no
6986 continue
6987 fi
6988 if test X"$keep_next" = X"yes"; then
6989 case $ac_arg in
6990 *\'*)
6991 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6992 esac
6993 baseargs="$baseargs '$ac_arg'"
65b4571a 6994 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
6995 keep_next=no
6996 continue
6997 fi
6998
6999 # Handle separated arguments. Based on the logic generated by
7000 # autoconf 2.59.
7001 case $ac_arg in
7002 *=* | --config-cache | -C | -disable-* | --disable-* \
7003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7005 | -with-* | --with-* | -without-* | --without-* | --x)
7006 separate_arg=no
7007 ;;
7008 -*)
7009 separate_arg=yes
7010 ;;
7011 *)
7012 separate_arg=no
7013 ;;
7014 esac
7015
65b4571a
AO
7016 skip_targ=no
7017 case $ac_arg in
7018
7019 --with-* | --without-*)
7020 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7021
7022 case $libopt in
7023 *[-_]include)
7024 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7025 ;;
7026 *[-_]lib)
7027 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7028 ;;
7029 *)
7030 lib=$libopt
7031 ;;
7032 esac
7033
7034
7035 case $lib in
7ec59b9e 7036 mpc | mpfr | gmp | cloog)
65b4571a
AO
7037 # If we're processing --with-$lib, --with-$lib-include or
7038 # --with-$lib-lib, for one of the libs above, and target is
7039 # different from host, don't pass the current argument to any
7040 # target library's configure.
7041 if test x$is_cross_compiler = xyes; then
7042 skip_targ=yes
7043 fi
7044 ;;
7045 esac
7046 ;;
7047 esac
7048
c6b750e1 7049 case "$ac_arg" in
30167e0a
NC
7050 --cache-file=/dev/null | \
7051 -cache-file=/dev/null )
7052 # Handled here to avoid the test to skip args below.
7053 baseargs="$baseargs '$ac_arg'"
65b4571a 7054 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7055 # Assert: $separate_arg should always be no.
7056 keep_next=$separate_arg
7057 ;;
c6b750e1
DJ
7058 --no*)
7059 continue
7060 ;;
7061 --c* | \
7062 --sr* | \
7063 --ho* | \
7064 --bu* | \
7065 --t* | \
7066 --program-* | \
7067 -cache_file* | \
7068 -srcdir* | \
7069 -host* | \
7070 -build* | \
7071 -target* | \
7072 -program-prefix* | \
7073 -program-suffix* | \
7074 -program-transform-name* )
7075 skip_next=$separate_arg
7076 continue
7077 ;;
7078 -*)
7079 # An option. Add it.
7080 case $ac_arg in
7081 *\'*)
7082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7083 esac
7084 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7085 if test X"$skip_targ" = Xno; then
7086 tbaseargs="$tbaseargs '$ac_arg'"
7087 fi
c6b750e1
DJ
7088 keep_next=$separate_arg
7089 ;;
7090 *)
7091 # Either a variable assignment, or a nonopt (triplet). Don't
7092 # pass it down; let the Makefile handle this.
7093 continue
7094 ;;
7095 esac
7096done
7097# Remove the initial space we just introduced and, as these will be
7098# expanded by make, quote '$'.
7099baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7100
f27d4f92
DJ
7101# Add in --program-transform-name, after --program-prefix and
7102# --program-suffix have been applied to it. Autoconf has already
7103# doubled dollar signs and backslashes in program_transform_name; we want
7104# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7105# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7106# Also, because we want to override the logic in subdir configure scripts to
7107# choose program_transform_name, replace any s,x,x, with s,y,y,.
7108sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7109${program_transform_name}
7110EOF_SED
7111gcc_transform_name=`cat conftestsed.out`
7112rm -f conftestsed.out
7113baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7114tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7115if test "$silent" = yes; then
7116 baseargs="$baseargs --silent"
65b4571a 7117 tbaseargs="$tbaseargs --silent"
2444379b 7118fi
34a0f3cf 7119baseargs="$baseargs --disable-option-checking"
65b4571a 7120tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7121
4074d5f2
RW
7122# Record and document user additions to sub configure arguments.
7123
7124
7125
7126
a0da8069
NN
7127# For the build-side libraries, we just need to pretend we're native,
7128# and not use the same cache file. Multilibs are neither needed nor
7129# desired.
4074d5f2 7130build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7131
7132# For host modules, accept cache file option, or specification as blank.
7133case "${cache_file}" in
7134"") # empty
7135 cache_file_option="" ;;
7136/* | [A-Za-z]:[\\/]* ) # absolute path
7137 cache_file_option="--cache-file=${cache_file}" ;;
7138*) # relative path
7139 cache_file_option="--cache-file=../${cache_file}" ;;
7140esac
7141
82252c06
NN
7142# Host dirs don't like to share a cache file either, horribly enough.
7143# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7144host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7145
65b4571a 7146target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7147
7148# Passing a --with-cross-host argument lets the target libraries know
7149# whether they are being built with a cross-compiler or being built
7150# native. However, it would be better to use other mechanisms to make the
7151# sorts of decisions they want to make on this basis. Please consider
7152# this option to be deprecated. FIXME.
7153if test x${is_cross_compiler} = xyes ; then
c6b750e1 7154 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7155fi
7156
938d2b74
RW
7157# Default to --enable-multilib.
7158if test x${enable_multilib} = x ; then
a0da8069 7159 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7160fi
a0da8069
NN
7161
7162# Pass --with-newlib if appropriate. Note that target_configdirs has
7163# changed from the earlier setting of with_newlib.
7164if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7165 target_configargs="--with-newlib ${target_configargs}"
7166fi
7167
95036d20
NN
7168# Different target subdirs use different values of certain variables
7169# (notably CXX). Worse, multilibs use *lots* of different values.
7170# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7171# it doesn't automatically accept command-line overrides of them.
7172# This means it's not safe for target subdirs to share a cache file,
7173# which is disgusting, but there you have it. Hopefully this can be
7174# fixed in future. It's still worthwhile to use a cache file for each
7175# directory. I think.
7176
ae380b45
MS
7177# Pass the appropriate --build, --host, --target and --cache-file arguments.
7178# We need to pass --target, as newer autoconf's requires consistency
7179# for target_alias and gcc doesn't manage it consistently.
4b900473 7180target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7181
a0da8069
NN
7182FLAGS_FOR_TARGET=
7183case " $target_configdirs " in
7184 *" newlib "*)
7185 case " $target_configargs " in
7186 *" --with-newlib "*)
7187 case "$target" in
1f53ca9a
AO
7188 *-cygwin*)
7189 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'
7190 ;;
a0da8069
NN
7191 esac
7192
7193 # If we're not building GCC, don't discard standard headers.
7194 if test -d ${srcdir}/gcc; then
7195 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7196
7197 if test "${build}" != "${host}"; then
7198 # On Canadian crosses, CC_FOR_TARGET will have already been set
7199 # by `configure', so we won't have an opportunity to add -Bgcc/
7200 # to it. This is right: we don't want to search that directory
7201 # for binaries, but we want the header files in there, so add
7202 # them explicitly.
e552509b 7203 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7204
7205 # Someone might think of using the pre-installed headers on
7206 # Canadian crosses, in case the installed compiler is not fully
7207 # compatible with the compiler being built. In this case, it
7208 # would be better to flag an error than risking having
7209 # incompatible object files being constructed. We can't
7210 # guarantee that an error will be flagged, but let's hope the
7211 # compiler will do it, when presented with incompatible header
7212 # files.
7213 fi
7214 fi
7215
7216 case "${target}-${is_cross_compiler}" in
ec11bdc6 7217 i[3456789]86-*-linux*-no)
a0da8069
NN
7218 # Here host == target, so we don't need to build gcc,
7219 # so we don't want to discard standard headers.
7220 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7221 ;;
7222 *)
7223 # If we're building newlib, use its generic headers last, but search
7224 # for any libc-related directories first (so make it the last -B
7225 # switch).
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7227
7228 # If we're building libgloss, find the startup file, simulator library
7229 # and linker script.
7230 case " $target_configdirs " in
7231 *" libgloss "*)
7232 # Look for startup file, simulator library and maybe linker script.
7233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7234 # Look for libnosys.a in case the target needs it.
7235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7236 # Most targets have the linker script in the source directory.
7237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7238 ;;
7239 esac
a0da8069
NN
7240 ;;
7241 esac
7242 ;;
7243 esac
7244 ;;
7245esac
1f53ca9a 7246
45055374 7247case "$target" in
1f53ca9a
AO
7248 x86_64-*mingw* | *-w64-mingw*)
7249 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7250 # however, use a symlink named 'mingw' in ${prefix} .
7251 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7252 ;;
7253 *-mingw*)
7254 # MinGW can't be handled as Cygwin above since it does not use newlib.
7255 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'
7256 ;;
45055374 7257esac
a0da8069 7258
5fbad20a
DD
7259# Allow the user to override the flags for
7260# our build compiler if desired.
c66487f8
NC
7261if test x"${build}" = x"${host}" ; then
7262 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7263 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7264 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7265fi
5fbad20a 7266
a0da8069
NN
7267# On Canadian crosses, we'll be searching the right directories for
7268# the previously-installed cross compiler, so don't bother to add
7269# flags for directories within the install tree of the compiler
7270# being built; programs in there won't even run.
7271if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7272 # Search for pre-installed headers if nothing else fits.
bba45b8b 7273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7274fi
7275
7276if test "x${use_gnu_ld}" = x &&
7277 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7278 # Arrange for us to find uninstalled linker scripts.
b00612cc 7279 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7280fi
7281
a481dbb7
DD
7282# Search for other target-specific linker scripts and such.
7283case "${target}" in
4e206d7e
DB
7284 mep*)
7285 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7286 ;;
7287esac
7288
a0da8069 7289# Makefile fragments.
3e707e94
PB
7290for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7291do
7292 eval fragval=\$$frag
7293 if test $fragval != /dev/null; then
7294 eval $frag=${srcdir}/$fragval
7295 fi
7296done
a0da8069
NN
7297
7298
7299
7300
7301
7302# Miscellanea: directories, flags, etc.
7303
7304
7305
7306
7307
7308
7309
3bbd2f8f 7310
6a9cf61e 7311# Build module lists & subconfigure args.
a0da8069
NN
7312
7313
7314
be01d343
PB
7315# Host module lists & subconfigure args.
7316
7317
7318
911e63d0 7319
be01d343
PB
7320# Target module lists & subconfigure args.
7321
7322
7323
7324# Build tools.
7325
7326
7327
1576798e
PB
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
be01d343
PB
7342# Generate default definitions for YACC, M4, LEX and other programs that run
7343# on the build machine. These are used if the Makefile can't locate these
7344# programs in objdir.
7345MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7346
7347for ac_prog in 'bison -y' byacc yacc
7348do
c6b750e1 7349 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7350set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if test "${ac_cv_prog_YACC+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
be01d343
PB
7355else
7356 if test -n "$YACC"; then
7357 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7358else
c6b750e1
DJ
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7366 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7368 break 2
7369 fi
7370done
81ecdfbb
RW
7371 done
7372IFS=$as_save_IFS
c6b750e1 7373
be01d343
PB
7374fi
7375fi
c6b750e1 7376YACC=$ac_cv_prog_YACC
be01d343 7377if test -n "$YACC"; then
81ecdfbb
RW
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7379$as_echo "$YACC" >&6; }
be01d343 7380else
81ecdfbb
RW
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
be01d343
PB
7383fi
7384
81ecdfbb 7385
c6b750e1 7386 test -n "$YACC" && break
be01d343
PB
7387done
7388test -n "$YACC" || YACC="$MISSING bison -y"
7389
7390case " $build_configdirs " in
7391 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7392esac
7393
7394for ac_prog in bison
7395do
c6b750e1 7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7397set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if test "${ac_cv_prog_BISON+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
be01d343
PB
7402else
7403 if test -n "$BISON"; then
7404 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7405else
c6b750e1
DJ
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7413 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7415 break 2
7416 fi
7417done
81ecdfbb
RW
7418 done
7419IFS=$as_save_IFS
c6b750e1 7420
be01d343
PB
7421fi
7422fi
c6b750e1 7423BISON=$ac_cv_prog_BISON
be01d343 7424if test -n "$BISON"; then
81ecdfbb
RW
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7426$as_echo "$BISON" >&6; }
be01d343 7427else
81ecdfbb
RW
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
be01d343
PB
7430fi
7431
81ecdfbb 7432
c6b750e1 7433 test -n "$BISON" && break
be01d343
PB
7434done
7435test -n "$BISON" || BISON="$MISSING bison"
7436
7437case " $build_configdirs " in
7438 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7439esac
7440
7441for ac_prog in gm4 gnum4 m4
7442do
c6b750e1 7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7444set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if test "${ac_cv_prog_M4+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
be01d343
PB
7449else
7450 if test -n "$M4"; then
7451 ac_cv_prog_M4="$M4" # Let the user override the test.
7452else
c6b750e1
DJ
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7460 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7462 break 2
7463 fi
7464done
81ecdfbb
RW
7465 done
7466IFS=$as_save_IFS
c6b750e1 7467
be01d343
PB
7468fi
7469fi
c6b750e1 7470M4=$ac_cv_prog_M4
be01d343 7471if test -n "$M4"; then
81ecdfbb
RW
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7473$as_echo "$M4" >&6; }
be01d343 7474else
81ecdfbb
RW
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
be01d343
PB
7477fi
7478
81ecdfbb 7479
c6b750e1 7480 test -n "$M4" && break
be01d343
PB
7481done
7482test -n "$M4" || M4="$MISSING m4"
7483
7484case " $build_configdirs " in
7485 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7486esac
7487
7488for ac_prog in flex lex
7489do
c6b750e1 7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7491set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493$as_echo_n "checking for $ac_word... " >&6; }
7494if test "${ac_cv_prog_LEX+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
be01d343
PB
7496else
7497 if test -n "$LEX"; then
7498 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7499else
c6b750e1
DJ
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7507 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7509 break 2
7510 fi
7511done
81ecdfbb
RW
7512 done
7513IFS=$as_save_IFS
c6b750e1 7514
be01d343
PB
7515fi
7516fi
c6b750e1 7517LEX=$ac_cv_prog_LEX
be01d343 7518if test -n "$LEX"; then
81ecdfbb
RW
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7520$as_echo "$LEX" >&6; }
be01d343 7521else
81ecdfbb
RW
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
be01d343
PB
7524fi
7525
81ecdfbb 7526
c6b750e1 7527 test -n "$LEX" && break
be01d343
PB
7528done
7529test -n "$LEX" || LEX="$MISSING flex"
7530
7531case " $build_configdirs " in
7532 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7533 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7534esac
7535
7536for ac_prog in flex
7537do
c6b750e1 7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7539set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541$as_echo_n "checking for $ac_word... " >&6; }
7542if test "${ac_cv_prog_FLEX+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
be01d343
PB
7544else
7545 if test -n "$FLEX"; then
7546 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7547else
c6b750e1
DJ
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7555 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7557 break 2
7558 fi
7559done
81ecdfbb
RW
7560 done
7561IFS=$as_save_IFS
c6b750e1 7562
be01d343
PB
7563fi
7564fi
c6b750e1 7565FLEX=$ac_cv_prog_FLEX
be01d343 7566if test -n "$FLEX"; then
81ecdfbb
RW
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7568$as_echo "$FLEX" >&6; }
be01d343 7569else
81ecdfbb
RW
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
be01d343
PB
7572fi
7573
81ecdfbb 7574
c6b750e1 7575 test -n "$FLEX" && break
be01d343
PB
7576done
7577test -n "$FLEX" || FLEX="$MISSING flex"
7578
7579case " $build_configdirs " in
7580 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7581esac
7582
7583for ac_prog in makeinfo
7584do
c6b750e1 7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7586set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
be01d343
PB
7591else
7592 if test -n "$MAKEINFO"; then
7593 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7594else
c6b750e1
DJ
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7602 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7604 break 2
7605 fi
7606done
81ecdfbb
RW
7607 done
7608IFS=$as_save_IFS
c6b750e1 7609
be01d343
PB
7610fi
7611fi
c6b750e1 7612MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7613if test -n "$MAKEINFO"; then
81ecdfbb
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7615$as_echo "$MAKEINFO" >&6; }
be01d343 7616else
81ecdfbb
RW
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
be01d343
PB
7619fi
7620
81ecdfbb 7621
c6b750e1 7622 test -n "$MAKEINFO" && break
be01d343
PB
7623done
7624test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7625
7626case " $build_configdirs " in
7627 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7628 *)
7629
10ad8ef3 7630 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7631 # higher, else we use the "missing" dummy.
7632 if ${MAKEINFO} --version \
10ad8ef3 7633 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7634 :
7635 else
7636 MAKEINFO="$MISSING makeinfo"
7637 fi
7638 ;;
7639
7640esac
a0da8069 7641
be01d343 7642# FIXME: expect and dejagnu may become build tools?
a0da8069 7643
be01d343
PB
7644for ac_prog in expect
7645do
c6b750e1 7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7647set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649$as_echo_n "checking for $ac_word... " >&6; }
7650if test "${ac_cv_prog_EXPECT+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
be01d343
PB
7652else
7653 if test -n "$EXPECT"; then
7654 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7655else
c6b750e1
DJ
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7663 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7665 break 2
7666 fi
7667done
81ecdfbb
RW
7668 done
7669IFS=$as_save_IFS
c6b750e1 7670
be01d343
PB
7671fi
7672fi
c6b750e1 7673EXPECT=$ac_cv_prog_EXPECT
be01d343 7674if test -n "$EXPECT"; then
81ecdfbb
RW
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7676$as_echo "$EXPECT" >&6; }
be01d343 7677else
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
be01d343 7680fi
a0da8069 7681
81ecdfbb 7682
c6b750e1 7683 test -n "$EXPECT" && break
be01d343
PB
7684done
7685test -n "$EXPECT" || EXPECT="expect"
a0da8069 7686
be01d343
PB
7687case " $configdirs " in
7688 *" expect "*)
7689 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7690 ;;
7691esac
a0da8069 7692
be01d343
PB
7693for ac_prog in runtest
7694do
c6b750e1 7695 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7696set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
be01d343
PB
7701else
7702 if test -n "$RUNTEST"; then
7703 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7704else
c6b750e1
DJ
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7712 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7714 break 2
7715 fi
7716done
81ecdfbb
RW
7717 done
7718IFS=$as_save_IFS
c6b750e1 7719
be01d343
PB
7720fi
7721fi
c6b750e1 7722RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7723if test -n "$RUNTEST"; then
81ecdfbb
RW
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7725$as_echo "$RUNTEST" >&6; }
be01d343 7726else
81ecdfbb
RW
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
be01d343 7729fi
a0da8069 7730
81ecdfbb 7731
c6b750e1 7732 test -n "$RUNTEST" && break
be01d343
PB
7733done
7734test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7735
be01d343
PB
7736case " $configdirs " in
7737 *" dejagnu "*)
6b89cc21 7738 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7739 ;;
7740esac
a0da8069
NN
7741
7742
a0da8069 7743# Host tools.
859789af
AC
7744ncn_tool_prefix=
7745test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7746ncn_target_tool_prefix=
7747test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7748
9a819804
AO
7749
7750
7751if test -n "$AR"; then
7752 ac_cv_prog_AR=$AR
7753elif test -n "$ac_cv_prog_AR"; then
7754 AR=$ac_cv_prog_AR
7755fi
7756
7757if test -n "$ac_cv_prog_AR"; then
7758 for ncn_progname in ar; do
7759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7760set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_prog_AR+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
9a819804
AO
7765else
7766 if test -n "$AR"; then
7767 ac_cv_prog_AR="$AR" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7776 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7778 break 2
7779 fi
7780done
81ecdfbb
RW
7781 done
7782IFS=$as_save_IFS
9a819804
AO
7783
7784fi
7785fi
7786AR=$ac_cv_prog_AR
7787if test -n "$AR"; then
81ecdfbb
RW
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7789$as_echo "$AR" >&6; }
9a819804 7790else
81ecdfbb
RW
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
9a819804
AO
7793fi
7794
81ecdfbb 7795
9a819804
AO
7796 done
7797fi
7798
7799for ncn_progname in ar; do
05cbd757
PB
7800 if test -n "$ncn_tool_prefix"; then
7801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
7805if test "${ac_cv_prog_AR+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
859789af
AC
7807else
7808 if test -n "$AR"; then
7809 ac_cv_prog_AR="$AR" # Let the user override the test.
7810else
c6b750e1
DJ
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7818 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7820 break 2
7821 fi
7822done
81ecdfbb
RW
7823 done
7824IFS=$as_save_IFS
c6b750e1 7825
859789af
AC
7826fi
7827fi
c6b750e1 7828AR=$ac_cv_prog_AR
859789af 7829if test -n "$AR"; then
81ecdfbb
RW
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7831$as_echo "$AR" >&6; }
859789af 7832else
81ecdfbb
RW
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
859789af
AC
7835fi
7836
81ecdfbb 7837
05cbd757
PB
7838 fi
7839 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7841set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843$as_echo_n "checking for $ac_word... " >&6; }
7844if test "${ac_cv_prog_AR+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
859789af 7846else
05cbd757
PB
7847 if test -n "$AR"; then
7848 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7849else
c6b750e1
DJ
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7857 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7859 break 2
7860 fi
7861done
81ecdfbb
RW
7862 done
7863IFS=$as_save_IFS
c6b750e1 7864
859789af
AC
7865fi
7866fi
c6b750e1 7867AR=$ac_cv_prog_AR
05cbd757 7868if test -n "$AR"; then
81ecdfbb
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870$as_echo "$AR" >&6; }
859789af 7871else
81ecdfbb
RW
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
859789af 7874fi
c6b750e1 7875
81ecdfbb 7876
05cbd757
PB
7877 fi
7878 test -n "$ac_cv_prog_AR" && break
7879done
7880
7881if test -z "$ac_cv_prog_AR" ; then
7882 set dummy ar
7883 if test $build = $host ; then
7884 AR="$2"
859789af 7885 else
05cbd757 7886 AR="${ncn_tool_prefix}$2"
859789af 7887 fi
859789af
AC
7888fi
7889
9a819804
AO
7890
7891
7892if test -n "$AS"; then
7893 ac_cv_prog_AS=$AS
7894elif test -n "$ac_cv_prog_AS"; then
7895 AS=$ac_cv_prog_AS
7896fi
7897
7898if test -n "$ac_cv_prog_AS"; then
7899 for ncn_progname in as; do
7900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7901set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903$as_echo_n "checking for $ac_word... " >&6; }
7904if test "${ac_cv_prog_AS+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
9a819804
AO
7906else
7907 if test -n "$AS"; then
7908 ac_cv_prog_AS="$AS" # Let the user override the test.
7909else
7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7917 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7919 break 2
7920 fi
7921done
81ecdfbb
RW
7922 done
7923IFS=$as_save_IFS
9a819804
AO
7924
7925fi
7926fi
7927AS=$ac_cv_prog_AS
7928if test -n "$AS"; then
81ecdfbb
RW
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7930$as_echo "$AS" >&6; }
9a819804 7931else
81ecdfbb
RW
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
9a819804
AO
7934fi
7935
81ecdfbb 7936
9a819804
AO
7937 done
7938fi
7939
7940for ncn_progname in as; do
05cbd757
PB
7941 if test -n "$ncn_tool_prefix"; then
7942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7943set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if test "${ac_cv_prog_AS+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
859789af
AC
7948else
7949 if test -n "$AS"; then
7950 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7959 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7961 break 2
7962 fi
7963done
81ecdfbb
RW
7964 done
7965IFS=$as_save_IFS
c6b750e1 7966
859789af
AC
7967fi
7968fi
c6b750e1 7969AS=$ac_cv_prog_AS
859789af 7970if test -n "$AS"; then
81ecdfbb
RW
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7972$as_echo "$AS" >&6; }
859789af 7973else
81ecdfbb
RW
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
859789af
AC
7976fi
7977
81ecdfbb 7978
05cbd757
PB
7979 fi
7980 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if test "${ac_cv_prog_AS+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
859789af 7987else
05cbd757
PB
7988 if test -n "$AS"; then
7989 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7990else
c6b750e1
DJ
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7998 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8000 break 2
8001 fi
8002done
81ecdfbb
RW
8003 done
8004IFS=$as_save_IFS
c6b750e1 8005
859789af
AC
8006fi
8007fi
c6b750e1 8008AS=$ac_cv_prog_AS
05cbd757 8009if test -n "$AS"; then
81ecdfbb
RW
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8011$as_echo "$AS" >&6; }
859789af 8012else
81ecdfbb
RW
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
859789af 8015fi
c6b750e1 8016
81ecdfbb 8017
05cbd757
PB
8018 fi
8019 test -n "$ac_cv_prog_AS" && break
8020done
8021
8022if test -z "$ac_cv_prog_AS" ; then
8023 set dummy as
8024 if test $build = $host ; then
8025 AS="$2"
859789af 8026 else
05cbd757 8027 AS="${ncn_tool_prefix}$2"
859789af 8028 fi
859789af
AC
8029fi
8030
9a819804
AO
8031
8032
8033if test -n "$DLLTOOL"; then
8034 ac_cv_prog_DLLTOOL=$DLLTOOL
8035elif test -n "$ac_cv_prog_DLLTOOL"; then
8036 DLLTOOL=$ac_cv_prog_DLLTOOL
8037fi
8038
8039if test -n "$ac_cv_prog_DLLTOOL"; then
8040 for ncn_progname in dlltool; do
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
9a819804
AO
8047else
8048 if test -n "$DLLTOOL"; then
8049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8058 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8060 break 2
8061 fi
8062done
81ecdfbb
RW
8063 done
8064IFS=$as_save_IFS
9a819804
AO
8065
8066fi
8067fi
8068DLLTOOL=$ac_cv_prog_DLLTOOL
8069if test -n "$DLLTOOL"; then
81ecdfbb
RW
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8071$as_echo "$DLLTOOL" >&6; }
9a819804 8072else
81ecdfbb
RW
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074$as_echo "no" >&6; }
9a819804
AO
8075fi
8076
81ecdfbb 8077
9a819804
AO
8078 done
8079fi
8080
8081for ncn_progname in dlltool; do
05cbd757
PB
8082 if test -n "$ncn_tool_prefix"; then
8083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8084set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086$as_echo_n "checking for $ac_word... " >&6; }
8087if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
859789af
AC
8089else
8090 if test -n "$DLLTOOL"; then
8091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8092else
c6b750e1
DJ
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8100 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8102 break 2
8103 fi
8104done
81ecdfbb
RW
8105 done
8106IFS=$as_save_IFS
c6b750e1 8107
859789af
AC
8108fi
8109fi
c6b750e1 8110DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8111if test -n "$DLLTOOL"; then
81ecdfbb
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8113$as_echo "$DLLTOOL" >&6; }
859789af 8114else
81ecdfbb
RW
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116$as_echo "no" >&6; }
859789af
AC
8117fi
8118
81ecdfbb 8119
05cbd757
PB
8120 fi
8121 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8123set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125$as_echo_n "checking for $ac_word... " >&6; }
8126if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
859789af 8128else
05cbd757
PB
8129 if test -n "$DLLTOOL"; then
8130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8131else
c6b750e1
DJ
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8139 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8141 break 2
8142 fi
8143done
81ecdfbb
RW
8144 done
8145IFS=$as_save_IFS
c6b750e1 8146
859789af
AC
8147fi
8148fi
c6b750e1 8149DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8150if test -n "$DLLTOOL"; then
81ecdfbb
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8152$as_echo "$DLLTOOL" >&6; }
859789af 8153else
81ecdfbb
RW
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
859789af 8156fi
c6b750e1 8157
81ecdfbb 8158
05cbd757
PB
8159 fi
8160 test -n "$ac_cv_prog_DLLTOOL" && break
8161done
8162
8163if test -z "$ac_cv_prog_DLLTOOL" ; then
8164 set dummy dlltool
8165 if test $build = $host ; then
8166 DLLTOOL="$2"
859789af 8167 else
05cbd757 8168 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8169 fi
859789af
AC
8170fi
8171
9a819804
AO
8172
8173
8174if test -n "$LD"; then
8175 ac_cv_prog_LD=$LD
8176elif test -n "$ac_cv_prog_LD"; then
8177 LD=$ac_cv_prog_LD
8178fi
8179
8180if test -n "$ac_cv_prog_LD"; then
8181 for ncn_progname in ld; do
8182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8183set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185$as_echo_n "checking for $ac_word... " >&6; }
8186if test "${ac_cv_prog_LD+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
9a819804
AO
8188else
8189 if test -n "$LD"; then
8190 ac_cv_prog_LD="$LD" # Let the user override the test.
8191else
8192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8199 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8201 break 2
8202 fi
8203done
81ecdfbb
RW
8204 done
8205IFS=$as_save_IFS
9a819804
AO
8206
8207fi
8208fi
8209LD=$ac_cv_prog_LD
8210if test -n "$LD"; then
81ecdfbb
RW
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8212$as_echo "$LD" >&6; }
9a819804 8213else
81ecdfbb
RW
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
9a819804
AO
8216fi
8217
81ecdfbb 8218
9a819804
AO
8219 done
8220fi
8221
8222for ncn_progname in ld; do
05cbd757
PB
8223 if test -n "$ncn_tool_prefix"; then
8224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8225set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if test "${ac_cv_prog_LD+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
859789af
AC
8230else
8231 if test -n "$LD"; then
8232 ac_cv_prog_LD="$LD" # Let the user override the test.
8233else
c6b750e1
DJ
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8241 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8243 break 2
8244 fi
8245done
81ecdfbb
RW
8246 done
8247IFS=$as_save_IFS
c6b750e1 8248
859789af
AC
8249fi
8250fi
c6b750e1 8251LD=$ac_cv_prog_LD
859789af 8252if test -n "$LD"; then
81ecdfbb
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8254$as_echo "$LD" >&6; }
859789af 8255else
81ecdfbb
RW
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
859789af
AC
8258fi
8259
81ecdfbb 8260
05cbd757
PB
8261 fi
8262 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8264set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if test "${ac_cv_prog_LD+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
859789af 8269else
05cbd757
PB
8270 if test -n "$LD"; then
8271 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8272else
c6b750e1
DJ
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8280 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8282 break 2
8283 fi
8284done
81ecdfbb
RW
8285 done
8286IFS=$as_save_IFS
c6b750e1 8287
859789af
AC
8288fi
8289fi
c6b750e1 8290LD=$ac_cv_prog_LD
05cbd757 8291if test -n "$LD"; then
81ecdfbb
RW
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8293$as_echo "$LD" >&6; }
859789af 8294else
81ecdfbb
RW
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
859789af 8297fi
c6b750e1 8298
81ecdfbb 8299
05cbd757
PB
8300 fi
8301 test -n "$ac_cv_prog_LD" && break
8302done
8303
8304if test -z "$ac_cv_prog_LD" ; then
8305 set dummy ld
8306 if test $build = $host ; then
8307 LD="$2"
859789af 8308 else
05cbd757 8309 LD="${ncn_tool_prefix}$2"
859789af 8310 fi
859789af
AC
8311fi
8312
9a819804
AO
8313
8314
8315if test -n "$LIPO"; then
8316 ac_cv_prog_LIPO=$LIPO
8317elif test -n "$ac_cv_prog_LIPO"; then
8318 LIPO=$ac_cv_prog_LIPO
8319fi
8320
8321if test -n "$ac_cv_prog_LIPO"; then
8322 for ncn_progname in lipo; do
8323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8324set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
8327if test "${ac_cv_prog_LIPO+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
9a819804
AO
8329else
8330 if test -n "$LIPO"; then
8331 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8340 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8342 break 2
8343 fi
8344done
81ecdfbb
RW
8345 done
8346IFS=$as_save_IFS
9a819804
AO
8347
8348fi
8349fi
8350LIPO=$ac_cv_prog_LIPO
8351if test -n "$LIPO"; then
81ecdfbb
RW
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8353$as_echo "$LIPO" >&6; }
9a819804 8354else
81ecdfbb
RW
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
9a819804
AO
8357fi
8358
81ecdfbb 8359
9a819804
AO
8360 done
8361fi
8362
8363for ncn_progname in lipo; do
be01d343
PB
8364 if test -n "$ncn_tool_prefix"; then
8365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8366set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368$as_echo_n "checking for $ac_word... " >&6; }
8369if test "${ac_cv_prog_LIPO+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
be01d343
PB
8371else
8372 if test -n "$LIPO"; then
8373 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8374else
c6b750e1
DJ
8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8382 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8384 break 2
8385 fi
8386done
81ecdfbb
RW
8387 done
8388IFS=$as_save_IFS
c6b750e1 8389
be01d343
PB
8390fi
8391fi
c6b750e1 8392LIPO=$ac_cv_prog_LIPO
be01d343 8393if test -n "$LIPO"; then
81ecdfbb
RW
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8395$as_echo "$LIPO" >&6; }
be01d343 8396else
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
be01d343
PB
8399fi
8400
81ecdfbb 8401
be01d343
PB
8402 fi
8403 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8405set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if test "${ac_cv_prog_LIPO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
be01d343
PB
8410else
8411 if test -n "$LIPO"; then
8412 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8413else
c6b750e1
DJ
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8421 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8423 break 2
8424 fi
8425done
81ecdfbb
RW
8426 done
8427IFS=$as_save_IFS
c6b750e1 8428
be01d343
PB
8429fi
8430fi
c6b750e1 8431LIPO=$ac_cv_prog_LIPO
be01d343 8432if test -n "$LIPO"; then
81ecdfbb
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8434$as_echo "$LIPO" >&6; }
be01d343 8435else
81ecdfbb
RW
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
be01d343 8438fi
c6b750e1 8439
81ecdfbb 8440
be01d343
PB
8441 fi
8442 test -n "$ac_cv_prog_LIPO" && break
8443done
8444
8445if test -z "$ac_cv_prog_LIPO" ; then
8446 set dummy lipo
8447 if test $build = $host ; then
8448 LIPO="$2"
8449 else
8450 LIPO="${ncn_tool_prefix}$2"
8451 fi
8452fi
8453
9a819804
AO
8454
8455
8456if test -n "$NM"; then
8457 ac_cv_prog_NM=$NM
8458elif test -n "$ac_cv_prog_NM"; then
8459 NM=$ac_cv_prog_NM
8460fi
8461
8462if test -n "$ac_cv_prog_NM"; then
8463 for ncn_progname in nm; do
8464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8465set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467$as_echo_n "checking for $ac_word... " >&6; }
8468if test "${ac_cv_prog_NM+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
859789af
AC
8470else
8471 if test -n "$NM"; then
8472 ac_cv_prog_NM="$NM" # Let the user override the test.
8473else
c6b750e1
DJ
8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8481 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8483 break 2
8484 fi
8485done
81ecdfbb
RW
8486 done
8487IFS=$as_save_IFS
c6b750e1 8488
859789af
AC
8489fi
8490fi
c6b750e1 8491NM=$ac_cv_prog_NM
859789af 8492if test -n "$NM"; then
81ecdfbb
RW
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8494$as_echo "$NM" >&6; }
859789af 8495else
81ecdfbb
RW
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
859789af
AC
8498fi
8499
81ecdfbb 8500
9a819804
AO
8501 done
8502fi
8503
8504for ncn_progname in nm; do
8505 if test -n "$ncn_tool_prefix"; then
8506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8507set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509$as_echo_n "checking for $ac_word... " >&6; }
8510if test "${ac_cv_prog_NM+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
859789af 8512else
05cbd757
PB
8513 if test -n "$NM"; then
8514 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8515else
c6b750e1
DJ
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8523 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8525 break 2
8526 fi
8527done
81ecdfbb
RW
8528 done
8529IFS=$as_save_IFS
c6b750e1 8530
859789af
AC
8531fi
8532fi
c6b750e1 8533NM=$ac_cv_prog_NM
05cbd757 8534if test -n "$NM"; then
81ecdfbb
RW
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8536$as_echo "$NM" >&6; }
859789af 8537else
81ecdfbb
RW
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539$as_echo "no" >&6; }
859789af 8540fi
c6b750e1 8541
81ecdfbb 8542
05cbd757 8543 fi
9a819804
AO
8544 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8546set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
8549if test "${ac_cv_prog_NM+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
9a819804
AO
8551else
8552 if test -n "$NM"; then
8553 ac_cv_prog_NM="$NM" # Let the user override the test.
8554else
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8562 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8564 break 2
8565 fi
8566done
81ecdfbb
RW
8567 done
8568IFS=$as_save_IFS
9a819804
AO
8569
8570fi
8571fi
8572NM=$ac_cv_prog_NM
8573if test -n "$NM"; then
81ecdfbb
RW
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8575$as_echo "$NM" >&6; }
9a819804 8576else
81ecdfbb
RW
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
9a819804
AO
8579fi
8580
81ecdfbb 8581
9a819804
AO
8582 fi
8583 test -n "$ac_cv_prog_NM" && break
8584done
8585
8586if test -z "$ac_cv_prog_NM" ; then
8587 set dummy nm
8588 if test $build = $host ; then
8589 NM="$2"
8590 else
8591 NM="${ncn_tool_prefix}$2"
8592 fi
8593fi
8594
8595
8596
8597if test -n "$RANLIB"; then
8598 ac_cv_prog_RANLIB=$RANLIB
8599elif test -n "$ac_cv_prog_RANLIB"; then
8600 RANLIB=$ac_cv_prog_RANLIB
8601fi
8602
8603if test -n "$ac_cv_prog_RANLIB"; then
8604 for ncn_progname in ranlib; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8606set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
8609if test "${ac_cv_prog_RANLIB+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
9a819804
AO
8611else
8612 if test -n "$RANLIB"; then
8613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8614else
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8622 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8624 break 2
8625 fi
8626done
81ecdfbb
RW
8627 done
8628IFS=$as_save_IFS
9a819804
AO
8629
8630fi
8631fi
8632RANLIB=$ac_cv_prog_RANLIB
8633if test -n "$RANLIB"; then
81ecdfbb
RW
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8635$as_echo "$RANLIB" >&6; }
9a819804 8636else
81ecdfbb
RW
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
9a819804
AO
8639fi
8640
81ecdfbb 8641
9a819804
AO
8642 done
8643fi
859789af 8644
9a819804 8645for ncn_progname in ranlib; do
05cbd757
PB
8646 if test -n "$ncn_tool_prefix"; then
8647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8648set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650$as_echo_n "checking for $ac_word... " >&6; }
8651if test "${ac_cv_prog_RANLIB+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
859789af
AC
8653else
8654 if test -n "$RANLIB"; then
8655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8656else
c6b750e1
DJ
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8664 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8666 break 2
8667 fi
8668done
81ecdfbb
RW
8669 done
8670IFS=$as_save_IFS
c6b750e1 8671
859789af
AC
8672fi
8673fi
c6b750e1 8674RANLIB=$ac_cv_prog_RANLIB
859789af 8675if test -n "$RANLIB"; then
81ecdfbb
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8677$as_echo "$RANLIB" >&6; }
859789af 8678else
81ecdfbb
RW
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
859789af
AC
8681fi
8682
81ecdfbb 8683
05cbd757
PB
8684 fi
8685 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8687set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689$as_echo_n "checking for $ac_word... " >&6; }
8690if test "${ac_cv_prog_RANLIB+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
859789af 8692else
05cbd757
PB
8693 if test -n "$RANLIB"; then
8694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8695else
c6b750e1
DJ
8696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8703 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8705 break 2
8706 fi
8707done
81ecdfbb
RW
8708 done
8709IFS=$as_save_IFS
c6b750e1 8710
859789af
AC
8711fi
8712fi
c6b750e1 8713RANLIB=$ac_cv_prog_RANLIB
05cbd757 8714if test -n "$RANLIB"; then
81ecdfbb
RW
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8716$as_echo "$RANLIB" >&6; }
859789af 8717else
81ecdfbb
RW
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719$as_echo "no" >&6; }
859789af 8720fi
c6b750e1 8721
81ecdfbb 8722
859789af 8723 fi
05cbd757
PB
8724 test -n "$ac_cv_prog_RANLIB" && break
8725done
8726
8727if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8728 RANLIB="true"
859789af
AC
8729fi
8730
9a819804
AO
8731
8732
8733if test -n "$STRIP"; then
8734 ac_cv_prog_STRIP=$STRIP
8735elif test -n "$ac_cv_prog_STRIP"; then
8736 STRIP=$ac_cv_prog_STRIP
8737fi
8738
8739if test -n "$ac_cv_prog_STRIP"; then
8740 for ncn_progname in strip; do
8741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8742set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744$as_echo_n "checking for $ac_word... " >&6; }
8745if test "${ac_cv_prog_STRIP+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
9a819804
AO
8747else
8748 if test -n "$STRIP"; then
8749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8750else
8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8758 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8760 break 2
8761 fi
8762done
81ecdfbb
RW
8763 done
8764IFS=$as_save_IFS
9a819804
AO
8765
8766fi
8767fi
8768STRIP=$ac_cv_prog_STRIP
8769if test -n "$STRIP"; then
81ecdfbb
RW
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8771$as_echo "$STRIP" >&6; }
9a819804 8772else
81ecdfbb
RW
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
9a819804
AO
8775fi
8776
81ecdfbb 8777
9a819804
AO
8778 done
8779fi
8780
8781for ncn_progname in strip; do
be01d343
PB
8782 if test -n "$ncn_tool_prefix"; then
8783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8784set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
8787if test "${ac_cv_prog_STRIP+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
be01d343
PB
8789else
8790 if test -n "$STRIP"; then
8791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8792else
c6b750e1
DJ
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8800 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8802 break 2
8803 fi
8804done
81ecdfbb
RW
8805 done
8806IFS=$as_save_IFS
c6b750e1 8807
be01d343
PB
8808fi
8809fi
c6b750e1 8810STRIP=$ac_cv_prog_STRIP
be01d343 8811if test -n "$STRIP"; then
81ecdfbb
RW
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8813$as_echo "$STRIP" >&6; }
be01d343 8814else
81ecdfbb
RW
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816$as_echo "no" >&6; }
be01d343
PB
8817fi
8818
81ecdfbb 8819
be01d343
PB
8820 fi
8821 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8823set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
8826if test "${ac_cv_prog_STRIP+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
be01d343
PB
8828else
8829 if test -n "$STRIP"; then
8830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8831else
c6b750e1
DJ
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8839 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8841 break 2
8842 fi
8843done
81ecdfbb
RW
8844 done
8845IFS=$as_save_IFS
c6b750e1 8846
be01d343
PB
8847fi
8848fi
c6b750e1 8849STRIP=$ac_cv_prog_STRIP
be01d343 8850if test -n "$STRIP"; then
81ecdfbb
RW
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8852$as_echo "$STRIP" >&6; }
be01d343 8853else
81ecdfbb
RW
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855$as_echo "no" >&6; }
be01d343 8856fi
c6b750e1 8857
81ecdfbb 8858
be01d343
PB
8859 fi
8860 test -n "$ac_cv_prog_STRIP" && break
8861done
8862
8863if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8864 STRIP="true"
be01d343
PB
8865fi
8866
9a819804
AO
8867
8868
8869if test -n "$WINDRES"; then
8870 ac_cv_prog_WINDRES=$WINDRES
8871elif test -n "$ac_cv_prog_WINDRES"; then
8872 WINDRES=$ac_cv_prog_WINDRES
8873fi
8874
8875if test -n "$ac_cv_prog_WINDRES"; then
8876 for ncn_progname in windres; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_WINDRES+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
9a819804
AO
8883else
8884 if test -n "$WINDRES"; then
8885 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8894 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8896 break 2
8897 fi
8898done
81ecdfbb
RW
8899 done
8900IFS=$as_save_IFS
9a819804
AO
8901
8902fi
8903fi
8904WINDRES=$ac_cv_prog_WINDRES
8905if test -n "$WINDRES"; then
81ecdfbb
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8907$as_echo "$WINDRES" >&6; }
9a819804 8908else
81ecdfbb
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
9a819804
AO
8911fi
8912
81ecdfbb 8913
9a819804
AO
8914 done
8915fi
8916
8917for ncn_progname in windres; do
05cbd757
PB
8918 if test -n "$ncn_tool_prefix"; then
8919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if test "${ac_cv_prog_WINDRES+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
859789af
AC
8925else
8926 if test -n "$WINDRES"; then
8927 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8928else
c6b750e1
DJ
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8936 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8938 break 2
8939 fi
8940done
81ecdfbb
RW
8941 done
8942IFS=$as_save_IFS
c6b750e1 8943
859789af
AC
8944fi
8945fi
c6b750e1 8946WINDRES=$ac_cv_prog_WINDRES
859789af 8947if test -n "$WINDRES"; then
81ecdfbb
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8949$as_echo "$WINDRES" >&6; }
859789af 8950else
81ecdfbb
RW
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
859789af
AC
8953fi
8954
81ecdfbb 8955
05cbd757
PB
8956 fi
8957 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961$as_echo_n "checking for $ac_word... " >&6; }
8962if test "${ac_cv_prog_WINDRES+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
859789af 8964else
05cbd757
PB
8965 if test -n "$WINDRES"; then
8966 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8967else
c6b750e1
DJ
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8975 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8977 break 2
8978 fi
8979done
81ecdfbb
RW
8980 done
8981IFS=$as_save_IFS
c6b750e1 8982
859789af
AC
8983fi
8984fi
c6b750e1 8985WINDRES=$ac_cv_prog_WINDRES
05cbd757 8986if test -n "$WINDRES"; then
81ecdfbb
RW
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8988$as_echo "$WINDRES" >&6; }
859789af 8989else
81ecdfbb
RW
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991$as_echo "no" >&6; }
859789af 8992fi
c6b750e1 8993
81ecdfbb 8994
05cbd757
PB
8995 fi
8996 test -n "$ac_cv_prog_WINDRES" && break
8997done
8998
8999if test -z "$ac_cv_prog_WINDRES" ; then
9000 set dummy windres
9001 if test $build = $host ; then
9002 WINDRES="$2"
859789af 9003 else
05cbd757 9004 WINDRES="${ncn_tool_prefix}$2"
859789af 9005 fi
859789af
AC
9006fi
9007
9a819804
AO
9008
9009
0c24b341
NC
9010if test -n "$WINDMC"; then
9011 ac_cv_prog_WINDMC=$WINDMC
9012elif test -n "$ac_cv_prog_WINDMC"; then
9013 WINDMC=$ac_cv_prog_WINDMC
9014fi
9015
9016if test -n "$ac_cv_prog_WINDMC"; then
9017 for ncn_progname in windmc; do
9018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9019set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if test "${ac_cv_prog_WINDMC+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
0c24b341
NC
9024else
9025 if test -n "$WINDMC"; then
9026 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9027else
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9035 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9037 break 2
9038 fi
9039done
81ecdfbb
RW
9040 done
9041IFS=$as_save_IFS
0c24b341
NC
9042
9043fi
9044fi
9045WINDMC=$ac_cv_prog_WINDMC
9046if test -n "$WINDMC"; then
81ecdfbb
RW
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9048$as_echo "$WINDMC" >&6; }
0c24b341 9049else
81ecdfbb
RW
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
0c24b341
NC
9052fi
9053
81ecdfbb 9054
0c24b341
NC
9055 done
9056fi
9057
9058for ncn_progname in windmc; do
9059 if test -n "$ncn_tool_prefix"; then
9060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9061set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063$as_echo_n "checking for $ac_word... " >&6; }
9064if test "${ac_cv_prog_WINDMC+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
0c24b341
NC
9066else
9067 if test -n "$WINDMC"; then
9068 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9069else
9070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071for as_dir in $PATH
9072do
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9077 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9079 break 2
9080 fi
9081done
81ecdfbb
RW
9082 done
9083IFS=$as_save_IFS
0c24b341
NC
9084
9085fi
9086fi
9087WINDMC=$ac_cv_prog_WINDMC
9088if test -n "$WINDMC"; then
81ecdfbb
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9090$as_echo "$WINDMC" >&6; }
0c24b341 9091else
81ecdfbb
RW
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093$as_echo "no" >&6; }
0c24b341
NC
9094fi
9095
81ecdfbb 9096
0c24b341
NC
9097 fi
9098 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102$as_echo_n "checking for $ac_word... " >&6; }
9103if test "${ac_cv_prog_WINDMC+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
0c24b341
NC
9105else
9106 if test -n "$WINDMC"; then
9107 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9108else
9109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110for as_dir in $PATH
9111do
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9116 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9118 break 2
9119 fi
9120done
81ecdfbb
RW
9121 done
9122IFS=$as_save_IFS
0c24b341
NC
9123
9124fi
9125fi
9126WINDMC=$ac_cv_prog_WINDMC
9127if test -n "$WINDMC"; then
81ecdfbb
RW
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9129$as_echo "$WINDMC" >&6; }
0c24b341 9130else
81ecdfbb
RW
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132$as_echo "no" >&6; }
0c24b341
NC
9133fi
9134
81ecdfbb 9135
0c24b341
NC
9136 fi
9137 test -n "$ac_cv_prog_WINDMC" && break
9138done
9139
9140if test -z "$ac_cv_prog_WINDMC" ; then
9141 set dummy windmc
9142 if test $build = $host ; then
9143 WINDMC="$2"
9144 else
9145 WINDMC="${ncn_tool_prefix}$2"
9146 fi
9147fi
9148
9149
9150
9a819804
AO
9151if test -n "$OBJCOPY"; then
9152 ac_cv_prog_OBJCOPY=$OBJCOPY
9153elif test -n "$ac_cv_prog_OBJCOPY"; then
9154 OBJCOPY=$ac_cv_prog_OBJCOPY
9155fi
9156
9157if test -n "$ac_cv_prog_OBJCOPY"; then
9158 for ncn_progname in objcopy; do
9159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9160set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162$as_echo_n "checking for $ac_word... " >&6; }
9163if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9a819804
AO
9165else
9166 if test -n "$OBJCOPY"; then
9167 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9168else
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9176 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9178 break 2
9179 fi
9180done
81ecdfbb
RW
9181 done
9182IFS=$as_save_IFS
9a819804
AO
9183
9184fi
9185fi
9186OBJCOPY=$ac_cv_prog_OBJCOPY
9187if test -n "$OBJCOPY"; then
81ecdfbb
RW
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9189$as_echo "$OBJCOPY" >&6; }
9a819804 9190else
81ecdfbb
RW
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
9a819804
AO
9193fi
9194
81ecdfbb 9195
9a819804
AO
9196 done
9197fi
9198
9199for ncn_progname in objcopy; do
05cbd757
PB
9200 if test -n "$ncn_tool_prefix"; then
9201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9202set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204$as_echo_n "checking for $ac_word... " >&6; }
9205if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9206 $as_echo_n "(cached) " >&6
859789af
AC
9207else
9208 if test -n "$OBJCOPY"; then
9209 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9210else
c6b750e1
DJ
9211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212for as_dir in $PATH
9213do
9214 IFS=$as_save_IFS
9215 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9218 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9220 break 2
9221 fi
9222done
81ecdfbb
RW
9223 done
9224IFS=$as_save_IFS
c6b750e1 9225
859789af
AC
9226fi
9227fi
c6b750e1 9228OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9229if test -n "$OBJCOPY"; then
81ecdfbb
RW
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9231$as_echo "$OBJCOPY" >&6; }
859789af 9232else
81ecdfbb
RW
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234$as_echo "no" >&6; }
859789af
AC
9235fi
9236
81ecdfbb 9237
05cbd757
PB
9238 fi
9239 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
859789af 9246else
05cbd757
PB
9247 if test -n "$OBJCOPY"; then
9248 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9249else
c6b750e1
DJ
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9257 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9259 break 2
9260 fi
9261done
81ecdfbb
RW
9262 done
9263IFS=$as_save_IFS
c6b750e1 9264
859789af
AC
9265fi
9266fi
c6b750e1 9267OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9268if test -n "$OBJCOPY"; then
81ecdfbb
RW
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9270$as_echo "$OBJCOPY" >&6; }
859789af 9271else
81ecdfbb
RW
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273$as_echo "no" >&6; }
859789af 9274fi
c6b750e1 9275
81ecdfbb 9276
05cbd757
PB
9277 fi
9278 test -n "$ac_cv_prog_OBJCOPY" && break
9279done
9280
9281if test -z "$ac_cv_prog_OBJCOPY" ; then
9282 set dummy objcopy
9283 if test $build = $host ; then
9284 OBJCOPY="$2"
859789af 9285 else
05cbd757 9286 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9287 fi
859789af
AC
9288fi
9289
9a819804
AO
9290
9291
9292if test -n "$OBJDUMP"; then
9293 ac_cv_prog_OBJDUMP=$OBJDUMP
9294elif test -n "$ac_cv_prog_OBJDUMP"; then
9295 OBJDUMP=$ac_cv_prog_OBJDUMP
9296fi
9297
9298if test -n "$ac_cv_prog_OBJDUMP"; then
9299 for ncn_progname in objdump; do
9300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9301set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303$as_echo_n "checking for $ac_word... " >&6; }
9304if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9a819804
AO
9306else
9307 if test -n "$OBJDUMP"; then
9308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9309else
9310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9317 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9319 break 2
9320 fi
9321done
81ecdfbb
RW
9322 done
9323IFS=$as_save_IFS
9a819804
AO
9324
9325fi
9326fi
9327OBJDUMP=$ac_cv_prog_OBJDUMP
9328if test -n "$OBJDUMP"; then
81ecdfbb
RW
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9330$as_echo "$OBJDUMP" >&6; }
9a819804 9331else
81ecdfbb
RW
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333$as_echo "no" >&6; }
9a819804
AO
9334fi
9335
81ecdfbb 9336
9a819804
AO
9337 done
9338fi
9339
9340for ncn_progname in objdump; do
05cbd757
PB
9341 if test -n "$ncn_tool_prefix"; then
9342 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
9346if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
859789af
AC
9348else
9349 if test -n "$OBJDUMP"; then
9350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9351else
c6b750e1
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9359 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9361 break 2
9362 fi
9363done
81ecdfbb
RW
9364 done
9365IFS=$as_save_IFS
c6b750e1 9366
859789af
AC
9367fi
9368fi
c6b750e1 9369OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9370if test -n "$OBJDUMP"; then
81ecdfbb
RW
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9372$as_echo "$OBJDUMP" >&6; }
859789af 9373else
81ecdfbb
RW
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
859789af
AC
9376fi
9377
81ecdfbb 9378
05cbd757
PB
9379 fi
9380 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384$as_echo_n "checking for $ac_word... " >&6; }
9385if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
859789af 9387else
05cbd757
PB
9388 if test -n "$OBJDUMP"; then
9389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9390else
c6b750e1
DJ
9391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392for as_dir in $PATH
9393do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9398 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9400 break 2
9401 fi
9402done
81ecdfbb
RW
9403 done
9404IFS=$as_save_IFS
c6b750e1 9405
859789af
AC
9406fi
9407fi
c6b750e1 9408OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9409if test -n "$OBJDUMP"; then
81ecdfbb
RW
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9411$as_echo "$OBJDUMP" >&6; }
859789af 9412else
81ecdfbb
RW
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414$as_echo "no" >&6; }
859789af 9415fi
c6b750e1 9416
81ecdfbb 9417
05cbd757
PB
9418 fi
9419 test -n "$ac_cv_prog_OBJDUMP" && break
9420done
9421
9422if test -z "$ac_cv_prog_OBJDUMP" ; then
9423 set dummy objdump
9424 if test $build = $host ; then
9425 OBJDUMP="$2"
859789af 9426 else
05cbd757 9427 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9428 fi
859789af
AC
9429fi
9430
a0da8069
NN
9431
9432
b121d7d4
DD
9433if test -n "$READELF"; then
9434 ac_cv_prog_READELF=$READELF
9435elif test -n "$ac_cv_prog_READELF"; then
9436 READELF=$ac_cv_prog_READELF
9437fi
9438
9439if test -n "$ac_cv_prog_READELF"; then
9440 for ncn_progname in readelf; do
9441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9442set dummy ${ncn_progname}; ac_word=$2
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444$as_echo_n "checking for $ac_word... " >&6; }
9445if test "${ac_cv_prog_READELF+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9447else
9448 if test -n "$READELF"; then
9449 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9450else
9451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452for as_dir in $PATH
9453do
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_prog_READELF="${ncn_progname}"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9461 fi
9462done
9463 done
9464IFS=$as_save_IFS
9465
9466fi
9467fi
9468READELF=$ac_cv_prog_READELF
9469if test -n "$READELF"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9471$as_echo "$READELF" >&6; }
9472else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474$as_echo "no" >&6; }
9475fi
9476
9477
9478 done
9479fi
9480
9481for ncn_progname in readelf; do
9482 if test -n "$ncn_tool_prefix"; then
9483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9484set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486$as_echo_n "checking for $ac_word... " >&6; }
9487if test "${ac_cv_prog_READELF+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9489else
9490 if test -n "$READELF"; then
9491 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9492else
9493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494for as_dir in $PATH
9495do
9496 IFS=$as_save_IFS
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9500 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 break 2
9503 fi
9504done
9505 done
9506IFS=$as_save_IFS
9507
9508fi
9509fi
9510READELF=$ac_cv_prog_READELF
9511if test -n "$READELF"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9513$as_echo "$READELF" >&6; }
9514else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516$as_echo "no" >&6; }
9517fi
9518
9519
9520 fi
9521 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9523set dummy ${ncn_progname}; ac_word=$2
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525$as_echo_n "checking for $ac_word... " >&6; }
9526if test "${ac_cv_prog_READELF+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528else
9529 if test -n "$READELF"; then
9530 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9531else
9532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533for as_dir in $PATH
9534do
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_READELF="${ncn_progname}"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9542 fi
9543done
9544 done
9545IFS=$as_save_IFS
9546
9547fi
9548fi
9549READELF=$ac_cv_prog_READELF
9550if test -n "$READELF"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9552$as_echo "$READELF" >&6; }
9553else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555$as_echo "no" >&6; }
9556fi
9557
9558
9559 fi
9560 test -n "$ac_cv_prog_READELF" && break
9561done
9562
9563if test -z "$ac_cv_prog_READELF" ; then
9564 set dummy readelf
9565 if test $build = $host ; then
9566 READELF="$2"
9567 else
9568 READELF="${ncn_tool_prefix}$2"
9569 fi
9570fi
9571
9572
9573
a0da8069
NN
9574
9575
9576
be01d343 9577# Target tools.
c6b750e1 9578
81ecdfbb
RW
9579# Check whether --with-build-time-tools was given.
9580if test "${with_build_time_tools+set}" = set; then :
9581 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9582 x/*) ;;
9583 *)
9584 with_build_time_tools=
81ecdfbb
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9586$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9587 ;;
9588 esac
859789af 9589else
2429c060 9590 with_build_time_tools=
81ecdfbb
RW
9591fi
9592
859789af 9593
9a819804
AO
9594
9595
9596if test -n "$CC_FOR_TARGET"; then
9597 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9598elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9599 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9600fi
9601
9602if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9603 for ncn_progname in cc gcc; do
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607$as_echo_n "checking for $ac_word... " >&6; }
9608if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9a819804
AO
9610else
9611 if test -n "$CC_FOR_TARGET"; then
9612 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9613else
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9621 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9623 break 2
9624 fi
9625done
81ecdfbb
RW
9626 done
9627IFS=$as_save_IFS
9a819804
AO
9628
9629fi
9630fi
9631CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9632if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9634$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9635else
81ecdfbb
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
9a819804
AO
9638fi
9639
81ecdfbb 9640
9a819804
AO
9641 done
9642fi
9643
9644if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9645 for ncn_progname in cc gcc; do
81ecdfbb
RW
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9647$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9648 if test -x $with_build_time_tools/${ncn_progname}; then
9649 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651$as_echo "yes" >&6; }
cac3d6c4 9652 break
2429c060 9653 else
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655$as_echo "no" >&6; }
cac3d6c4
CM
9656 fi
9657 done
55db4b87
PB
9658fi
9659
2429c060
PB
9660if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9661 for ncn_progname in cc gcc; do
9662 if test -n "$ncn_target_tool_prefix"; then
9663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9664set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666$as_echo_n "checking for $ac_word... " >&6; }
9667if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
55db4b87
PB
9669else
9670 if test -n "$CC_FOR_TARGET"; then
9671 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9672else
c6b750e1
DJ
9673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9680 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9682 break 2
9683 fi
9684done
81ecdfbb
RW
9685 done
9686IFS=$as_save_IFS
c6b750e1 9687
55db4b87
PB
9688fi
9689fi
c6b750e1 9690CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9691if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9693$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9694else
81ecdfbb
RW
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696$as_echo "no" >&6; }
55db4b87
PB
9697fi
9698
81ecdfbb 9699
2429c060
PB
9700 fi
9701 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9703set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
9706if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
55db4b87 9708else
05cbd757
PB
9709 if test -n "$CC_FOR_TARGET"; then
9710 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9711else
c6b750e1
DJ
9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713for as_dir in $PATH
9714do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9719 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9721 break 2
9722 fi
9723done
81ecdfbb
RW
9724 done
9725IFS=$as_save_IFS
c6b750e1 9726
55db4b87
PB
9727fi
9728fi
c6b750e1 9729CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9730if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9732$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9733else
81ecdfbb
RW
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735$as_echo "no" >&6; }
55db4b87 9736fi
c6b750e1 9737
81ecdfbb 9738
2429c060
PB
9739 fi
9740 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9741 done
9742fi
c6b750e1 9743
05cbd757
PB
9744if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9745 set dummy cc gcc
9746 if test $build = $target ; then
9747 CC_FOR_TARGET="$2"
55db4b87 9748 else
05cbd757 9749 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9750 fi
d3f5afc4
MS
9751else
9752 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9753fi
9754
9a819804
AO
9755
9756
9757if test -n "$CXX_FOR_TARGET"; then
9758 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9759elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9760 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9761fi
9762
9763if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9764 for ncn_progname in c++ g++ cxx gxx; do
9765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9766set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768$as_echo_n "checking for $ac_word... " >&6; }
9769if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9a819804
AO
9771else
9772 if test -n "$CXX_FOR_TARGET"; then
9773 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9774else
9775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776for as_dir in $PATH
9777do
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9782 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9784 break 2
9785 fi
9786done
81ecdfbb
RW
9787 done
9788IFS=$as_save_IFS
9a819804
AO
9789
9790fi
9791fi
9792CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9793if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9795$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9796else
81ecdfbb
RW
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9a819804
AO
9799fi
9800
81ecdfbb 9801
9a819804
AO
9802 done
9803fi
9804
9805if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9806 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9808$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9809 if test -x $with_build_time_tools/${ncn_progname}; then
9810 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9812$as_echo "yes" >&6; }
2429c060
PB
9813 break
9814 else
81ecdfbb
RW
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816$as_echo "no" >&6; }
2429c060
PB
9817 fi
9818 done
9819fi
9820
9821if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9822 for ncn_progname in c++ g++ cxx gxx; do
9823 if test -n "$ncn_target_tool_prefix"; then
9824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9825set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
9828if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
55db4b87
PB
9830else
9831 if test -n "$CXX_FOR_TARGET"; then
9832 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9833else
c6b750e1
DJ
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9841 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9843 break 2
9844 fi
9845done
81ecdfbb
RW
9846 done
9847IFS=$as_save_IFS
c6b750e1 9848
55db4b87
PB
9849fi
9850fi
c6b750e1 9851CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9852if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9854$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9855else
81ecdfbb
RW
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
55db4b87
PB
9858fi
9859
81ecdfbb 9860
2429c060
PB
9861 fi
9862 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9864set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866$as_echo_n "checking for $ac_word... " >&6; }
9867if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
55db4b87 9869else
05cbd757
PB
9870 if test -n "$CXX_FOR_TARGET"; then
9871 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9872else
c6b750e1
DJ
9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9880 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9882 break 2
9883 fi
9884done
81ecdfbb
RW
9885 done
9886IFS=$as_save_IFS
c6b750e1 9887
55db4b87
PB
9888fi
9889fi
c6b750e1 9890CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9891if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9893$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9894else
81ecdfbb
RW
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896$as_echo "no" >&6; }
55db4b87 9897fi
c6b750e1 9898
81ecdfbb 9899
2429c060
PB
9900 fi
9901 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9902 done
9903fi
c6b750e1 9904
05cbd757
PB
9905if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9906 set dummy c++ g++ cxx gxx
9907 if test $build = $target ; then
9908 CXX_FOR_TARGET="$2"
55db4b87 9909 else
05cbd757 9910 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9911 fi
d3f5afc4
MS
9912else
9913 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9914fi
9915
9a819804
AO
9916
9917
9918if test -n "$GCC_FOR_TARGET"; then
9919 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9920elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9921 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9922fi
9923
9924if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9925 for ncn_progname in gcc; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929$as_echo_n "checking for $ac_word... " >&6; }
9930if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9a819804
AO
9932else
9933 if test -n "$GCC_FOR_TARGET"; then
9934 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9935else
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9943 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9945 break 2
9946 fi
9947done
81ecdfbb
RW
9948 done
9949IFS=$as_save_IFS
9a819804
AO
9950
9951fi
9952fi
9953GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9954if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9956$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9957else
81ecdfbb
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
9a819804
AO
9960fi
9961
81ecdfbb 9962
9a819804
AO
9963 done
9964fi
9965
9966if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9967 for ncn_progname in gcc; do
81ecdfbb
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9969$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9970 if test -x $with_build_time_tools/${ncn_progname}; then
9971 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973$as_echo "yes" >&6; }
2429c060
PB
9974 break
9975 else
81ecdfbb
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
2429c060
PB
9978 fi
9979 done
9980fi
9981
9982if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9983 for ncn_progname in gcc; do
9984 if test -n "$ncn_target_tool_prefix"; then
9985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9986set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
9989if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
859789af 9991else
2429c060
PB
9992 if test -n "$GCC_FOR_TARGET"; then
9993 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9994else
c6b750e1
DJ
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10002 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10004 break 2
10005 fi
10006done
81ecdfbb
RW
10007 done
10008IFS=$as_save_IFS
c6b750e1 10009
55db4b87
PB
10010fi
10011fi
c6b750e1 10012GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10013if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10015$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10016else
81ecdfbb
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
55db4b87
PB
10019fi
10020
81ecdfbb 10021
2429c060
PB
10022 fi
10023 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10025set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027$as_echo_n "checking for $ac_word... " >&6; }
10028if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
55db4b87 10030else
05cbd757
PB
10031 if test -n "$GCC_FOR_TARGET"; then
10032 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10033else
c6b750e1
DJ
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10041 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10043 break 2
10044 fi
10045done
81ecdfbb
RW
10046 done
10047IFS=$as_save_IFS
c6b750e1 10048
55db4b87
PB
10049fi
10050fi
c6b750e1 10051GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10052if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10054$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10055else
81ecdfbb
RW
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
55db4b87 10058fi
c6b750e1 10059
81ecdfbb 10060
2429c060
PB
10061 fi
10062 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10063 done
10064fi
c6b750e1 10065
05cbd757
PB
10066if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10067 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10068else
10069 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10070fi
10071
9a819804
AO
10072
10073
10074if test -n "$GCJ_FOR_TARGET"; then
10075 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10076elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10077 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10078fi
10079
10080if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10081 for ncn_progname in gcj; do
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085$as_echo_n "checking for $ac_word... " >&6; }
10086if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
9a819804
AO
10088else
10089 if test -n "$GCJ_FOR_TARGET"; then
10090 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10091else
10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093for as_dir in $PATH
10094do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10099 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10101 break 2
10102 fi
10103done
81ecdfbb
RW
10104 done
10105IFS=$as_save_IFS
9a819804
AO
10106
10107fi
10108fi
10109GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10110if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10112$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10113else
81ecdfbb
RW
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115$as_echo "no" >&6; }
9a819804
AO
10116fi
10117
81ecdfbb 10118
9a819804
AO
10119 done
10120fi
10121
10122if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10123 for ncn_progname in gcj; do
81ecdfbb
RW
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10126 if test -x $with_build_time_tools/${ncn_progname}; then
10127 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129$as_echo "yes" >&6; }
2429c060
PB
10130 break
10131 else
81ecdfbb
RW
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
2429c060
PB
10134 fi
10135 done
10136fi
10137
10138if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10139 for ncn_progname in gcj; do
10140 if test -n "$ncn_target_tool_prefix"; then
10141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
10145if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
55db4b87
PB
10147else
10148 if test -n "$GCJ_FOR_TARGET"; then
10149 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10150else
c6b750e1
DJ
10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10158 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10160 break 2
10161 fi
10162done
81ecdfbb
RW
10163 done
10164IFS=$as_save_IFS
c6b750e1 10165
55db4b87
PB
10166fi
10167fi
9a819804
AO
10168GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10169if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10171$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10172else
81ecdfbb
RW
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
9a819804
AO
10175fi
10176
81ecdfbb 10177
9a819804
AO
10178 fi
10179 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183$as_echo_n "checking for $ac_word... " >&6; }
10184if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
9a819804
AO
10186else
10187 if test -n "$GCJ_FOR_TARGET"; then
10188 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10189else
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10197 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10199 break 2
10200 fi
10201done
81ecdfbb
RW
10202 done
10203IFS=$as_save_IFS
9a819804
AO
10204
10205fi
10206fi
10207GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10208if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10210$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10211else
81ecdfbb
RW
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213$as_echo "no" >&6; }
9a819804
AO
10214fi
10215
81ecdfbb 10216
9a819804
AO
10217 fi
10218 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10219 done
10220fi
10221
10222if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10223 set dummy gcj
10224 if test $build = $target ; then
10225 GCJ_FOR_TARGET="$2"
10226 else
10227 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10228 fi
d3f5afc4
MS
10229else
10230 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10231fi
10232
10233
10234
10235if test -n "$GFORTRAN_FOR_TARGET"; then
10236 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10237elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10238 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10239fi
10240
9a819804
AO
10241if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10242 for ncn_progname in gfortran; do
10243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10244set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246$as_echo_n "checking for $ac_word... " >&6; }
10247if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
55db4b87 10249else
9a819804
AO
10250 if test -n "$GFORTRAN_FOR_TARGET"; then
10251 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10252else
c6b750e1
DJ
10253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254for as_dir in $PATH
10255do
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10260 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10262 break 2
10263 fi
10264done
81ecdfbb
RW
10265 done
10266IFS=$as_save_IFS
c6b750e1 10267
55db4b87
PB
10268fi
10269fi
9a819804
AO
10270GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10271if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10273$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10274else
81ecdfbb
RW
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276$as_echo "no" >&6; }
55db4b87 10277fi
c6b750e1 10278
81ecdfbb 10279
2429c060
PB
10280 done
10281fi
c6b750e1 10282
9a819804 10283if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10284 for ncn_progname in gfortran; do
81ecdfbb
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10286$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10287 if test -x $with_build_time_tools/${ncn_progname}; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290$as_echo "yes" >&6; }
2429c060
PB
10291 break
10292 else
81ecdfbb
RW
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294$as_echo "no" >&6; }
2429c060
PB
10295 fi
10296 done
10297fi
10298
10299if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10300 for ncn_progname in gfortran; do
10301 if test -n "$ncn_target_tool_prefix"; then
10302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10303set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
55db4b87
PB
10308else
10309 if test -n "$GFORTRAN_FOR_TARGET"; then
10310 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10311else
c6b750e1
DJ
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10319 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10321 break 2
10322 fi
10323done
81ecdfbb
RW
10324 done
10325IFS=$as_save_IFS
c6b750e1 10326
55db4b87
PB
10327fi
10328fi
c6b750e1 10329GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10330if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10332$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10333else
81ecdfbb
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
55db4b87
PB
10336fi
10337
81ecdfbb 10338
2429c060
PB
10339 fi
10340 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10342set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344$as_echo_n "checking for $ac_word... " >&6; }
10345if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
55db4b87 10347else
05cbd757 10348 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10349 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10358 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10360 break 2
10361 fi
10362done
81ecdfbb
RW
10363 done
10364IFS=$as_save_IFS
c6b750e1 10365
55db4b87
PB
10366fi
10367fi
c6b750e1 10368GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10369if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10371$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10372else
81ecdfbb
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374$as_echo "no" >&6; }
55db4b87 10375fi
c6b750e1 10376
81ecdfbb 10377
2429c060
PB
10378 fi
10379 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10380 done
10381fi
c6b750e1 10382
05cbd757
PB
10383if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10384 set dummy gfortran
10385 if test $build = $target ; then
10386 GFORTRAN_FOR_TARGET="$2"
55db4b87 10387 else
05cbd757 10388 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10389 fi
d3f5afc4
MS
10390else
10391 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10392fi
10393
2429c060
PB
10394
10395
e552509b
ILT
10396if test -n "$GOC_FOR_TARGET"; then
10397 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10398elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10399 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10400fi
10401
10402if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10403 for ncn_progname in gccgo; do
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405set dummy ${ncn_progname}; ac_word=$2
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407$as_echo_n "checking for $ac_word... " >&6; }
10408if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410else
10411 if test -n "$GOC_FOR_TARGET"; then
10412 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426 done
10427IFS=$as_save_IFS
10428
10429fi
10430fi
10431GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10432if test -n "$GOC_FOR_TARGET"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10434$as_echo "$GOC_FOR_TARGET" >&6; }
10435else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
10438fi
10439
10440
10441 done
10442fi
10443
10444if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10445 for ncn_progname in gccgo; do
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451$as_echo "yes" >&6; }
10452 break
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
10456 fi
10457 done
10458fi
10459
10460if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10461 for ncn_progname in gccgo; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466$as_echo_n "checking for $ac_word... " >&6; }
10467if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469else
10470 if test -n "$GOC_FOR_TARGET"; then
10471 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10472else
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484done
10485 done
10486IFS=$as_save_IFS
10487
10488fi
10489fi
10490GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10491if test -n "$GOC_FOR_TARGET"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10493$as_echo "$GOC_FOR_TARGET" >&6; }
10494else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
10497fi
10498
10499
10500 fi
10501 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503set dummy ${ncn_progname}; ac_word=$2
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508else
10509 if test -n "$GOC_FOR_TARGET"; then
10510 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10522 fi
10523done
10524 done
10525IFS=$as_save_IFS
10526
10527fi
10528fi
10529GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10530if test -n "$GOC_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10532$as_echo "$GOC_FOR_TARGET" >&6; }
10533else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
10536fi
10537
10538
10539 fi
10540 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10541 done
10542fi
10543
10544if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10545 set dummy gccgo
10546 if test $build = $target ; then
10547 GOC_FOR_TARGET="$2"
10548 else
10549 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10550 fi
10551else
10552 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10553fi
10554
10555
10556
2429c060
PB
10557cat > conftest.c << \EOF
10558#ifdef __GNUC__
10559 gcc_yay;
10560#endif
10561EOF
10562if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10563 have_gcc_for_target=yes
859789af 10564else
2429c060
PB
10565 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10566 have_gcc_for_target=no
859789af 10567fi
2429c060
PB
10568rm conftest.c
10569
10570
10571
859789af 10572
2429c060
PB
10573if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10574 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10576$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10577 if test -x $with_build_time_tools/ar; then
10578 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10579 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10581$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10582 else
81ecdfbb
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
3a35eeb3 10585 fi
2429c060
PB
10586 elif test $build != $host && test $have_gcc_for_target = yes; then
10587 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10588 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10589 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10590 fi
2429c060 10591fi
c6b750e1 10592if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10593 # Extract the first word of "ar", so it can be a program name with args.
10594set dummy ar; ac_word=$2
81ecdfbb
RW
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596$as_echo_n "checking for $ac_word... " >&6; }
10597if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10598 $as_echo_n "(cached) " >&6
859789af 10599else
c6b750e1
DJ
10600 case $AR_FOR_TARGET in
10601 [\\/]* | ?:[\\/]*)
2429c060
PB
10602 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10603 ;;
2429c060 10604 *)
c6b750e1
DJ
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $gcc_cv_tool_dirs
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10612 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10614 break 2
10615 fi
10616done
81ecdfbb
RW
10617 done
10618IFS=$as_save_IFS
c6b750e1 10619
2429c060
PB
10620 ;;
10621esac
859789af 10622fi
c6b750e1 10623AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10624if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10626$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10627else
81ecdfbb
RW
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629$as_echo "no" >&6; }
859789af 10630fi
05cbd757 10631
81ecdfbb 10632
2429c060
PB
10633fi
10634if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10635
10636
10637if test -n "$AR_FOR_TARGET"; then
10638 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10639elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10640 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10641fi
10642
10643if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10644 for ncn_progname in ar; do
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648$as_echo_n "checking for $ac_word... " >&6; }
10649if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
9a819804
AO
10651else
10652 if test -n "$AR_FOR_TARGET"; then
10653 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10654else
10655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656for as_dir in $PATH
10657do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10662 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10664 break 2
10665 fi
10666done
81ecdfbb
RW
10667 done
10668IFS=$as_save_IFS
9a819804
AO
10669
10670fi
10671fi
10672AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10673if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10675$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10676else
81ecdfbb
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678$as_echo "no" >&6; }
9a819804
AO
10679fi
10680
81ecdfbb 10681
9a819804
AO
10682 done
10683fi
10684
10685if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10686 for ncn_progname in ar; do
81ecdfbb
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10688$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692$as_echo "yes" >&6; }
2429c060
PB
10693 break
10694 else
81ecdfbb
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
2429c060
PB
10697 fi
10698 done
859789af
AC
10699fi
10700
2429c060
PB
10701if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10702 for ncn_progname in ar; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10705set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707$as_echo_n "checking for $ac_word... " >&6; }
10708if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
7e0f7140 10710else
2429c060
PB
10711 if test -n "$AR_FOR_TARGET"; then
10712 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10713else
c6b750e1
DJ
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10721 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10723 break 2
10724 fi
10725done
81ecdfbb
RW
10726 done
10727IFS=$as_save_IFS
c6b750e1 10728
7e0f7140
GK
10729fi
10730fi
c6b750e1 10731AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10732if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10734$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10735else
81ecdfbb
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }
7e0f7140
GK
10738fi
10739
81ecdfbb 10740
2429c060
PB
10741 fi
10742 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10744set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746$as_echo_n "checking for $ac_word... " >&6; }
10747if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
7e0f7140 10749else
2429c060
PB
10750 if test -n "$AR_FOR_TARGET"; then
10751 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10752else
c6b750e1
DJ
10753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754for as_dir in $PATH
10755do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10760 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10762 break 2
10763 fi
10764done
81ecdfbb
RW
10765 done
10766IFS=$as_save_IFS
c6b750e1 10767
7e0f7140
GK
10768fi
10769fi
c6b750e1 10770AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10771if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10773$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10774else
81ecdfbb
RW
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776$as_echo "no" >&6; }
7e0f7140 10777fi
c6b750e1 10778
81ecdfbb 10779
2429c060
PB
10780 fi
10781 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10782 done
10783fi
c6b750e1 10784
2429c060
PB
10785if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10786 set dummy ar
7e0f7140 10787 if test $build = $target ; then
2429c060 10788 AR_FOR_TARGET="$2"
7e0f7140 10789 else
2429c060 10790 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10791 fi
d3f5afc4
MS
10792else
10793 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10794fi
10795
3a35eeb3
PB
10796else
10797 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10798fi
10799
10800
10801
10802
10803if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10804 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10806$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10807 if test -x $with_build_time_tools/as; then
10808 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10809 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10811$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10812 else
81ecdfbb
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
3a35eeb3 10815 fi
2429c060
PB
10816 elif test $build != $host && test $have_gcc_for_target = yes; then
10817 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10818 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10819 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10820 fi
10821fi
c6b750e1 10822if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10823 # Extract the first word of "as", so it can be a program name with args.
10824set dummy as; ac_word=$2
81ecdfbb
RW
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826$as_echo_n "checking for $ac_word... " >&6; }
10827if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
2429c060 10829else
c6b750e1
DJ
10830 case $AS_FOR_TARGET in
10831 [\\/]* | ?:[\\/]*)
2429c060
PB
10832 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10833 ;;
2429c060 10834 *)
c6b750e1
DJ
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $gcc_cv_tool_dirs
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10842 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10844 break 2
10845 fi
10846done
81ecdfbb
RW
10847 done
10848IFS=$as_save_IFS
c6b750e1 10849
2429c060
PB
10850 ;;
10851esac
10852fi
c6b750e1 10853AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10854if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10856$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10857else
81ecdfbb
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
2429c060
PB
10860fi
10861
81ecdfbb 10862
2429c060
PB
10863fi
10864if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10865
10866
10867if test -n "$AS_FOR_TARGET"; then
10868 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10869elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10870 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10871fi
10872
10873if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10874 for ncn_progname in as; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878$as_echo_n "checking for $ac_word... " >&6; }
10879if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
9a819804
AO
10881else
10882 if test -n "$AS_FOR_TARGET"; then
10883 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10884else
10885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $PATH
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10892 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10894 break 2
10895 fi
10896done
81ecdfbb
RW
10897 done
10898IFS=$as_save_IFS
9a819804
AO
10899
10900fi
10901fi
10902AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10903if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10905$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10906else
81ecdfbb
RW
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908$as_echo "no" >&6; }
9a819804
AO
10909fi
10910
81ecdfbb 10911
9a819804
AO
10912 done
10913fi
10914
10915if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10916 for ncn_progname in as; do
81ecdfbb
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10918$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10919 if test -x $with_build_time_tools/${ncn_progname}; then
10920 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922$as_echo "yes" >&6; }
2429c060
PB
10923 break
10924 else
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
2429c060
PB
10927 fi
10928 done
10929fi
10930
10931if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10932 for ncn_progname in as; do
10933 if test -n "$ncn_target_tool_prefix"; then
10934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10935set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937$as_echo_n "checking for $ac_word... " >&6; }
10938if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
2429c060
PB
10940else
10941 if test -n "$AS_FOR_TARGET"; then
10942 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10943else
c6b750e1
DJ
10944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10951 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10953 break 2
10954 fi
10955done
81ecdfbb
RW
10956 done
10957IFS=$as_save_IFS
c6b750e1 10958
2429c060
PB
10959fi
10960fi
c6b750e1 10961AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10962if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10964$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10965else
81ecdfbb
RW
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
2429c060
PB
10968fi
10969
81ecdfbb 10970
2429c060
PB
10971 fi
10972 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10974set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976$as_echo_n "checking for $ac_word... " >&6; }
10977if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
2429c060
PB
10979else
10980 if test -n "$AS_FOR_TARGET"; then
10981 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10982else
c6b750e1
DJ
10983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $PATH
10985do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10990 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10992 break 2
10993 fi
10994done
81ecdfbb
RW
10995 done
10996IFS=$as_save_IFS
c6b750e1 10997
2429c060
PB
10998fi
10999fi
c6b750e1 11000AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11001if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11003$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11004else
81ecdfbb
RW
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006$as_echo "no" >&6; }
2429c060 11007fi
c6b750e1 11008
81ecdfbb 11009
2429c060
PB
11010 fi
11011 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11012 done
11013fi
c6b750e1 11014
2429c060
PB
11015if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11016 set dummy as
11017 if test $build = $target ; then
11018 AS_FOR_TARGET="$2"
11019 else
11020 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11021 fi
d3f5afc4
MS
11022else
11023 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11024fi
11025
3a35eeb3
PB
11026else
11027 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11028fi
11029
11030
11031
11032
11033if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11034 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11036$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11037 if test -x $with_build_time_tools/dlltool; then
11038 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11039 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11041$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11042 else
81ecdfbb
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
3a35eeb3 11045 fi
2429c060
PB
11046 elif test $build != $host && test $have_gcc_for_target = yes; then
11047 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11048 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11049 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11050 fi
11051fi
c6b750e1 11052if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11053 # Extract the first word of "dlltool", so it can be a program name with args.
11054set dummy dlltool; ac_word=$2
81ecdfbb
RW
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056$as_echo_n "checking for $ac_word... " >&6; }
11057if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
2429c060 11059else
c6b750e1
DJ
11060 case $DLLTOOL_FOR_TARGET in
11061 [\\/]* | ?:[\\/]*)
2429c060
PB
11062 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11063 ;;
2429c060 11064 *)
c6b750e1
DJ
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $gcc_cv_tool_dirs
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11072 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11074 break 2
11075 fi
11076done
81ecdfbb
RW
11077 done
11078IFS=$as_save_IFS
c6b750e1 11079
2429c060
PB
11080 ;;
11081esac
11082fi
c6b750e1 11083DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11084if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11086$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11087else
81ecdfbb
RW
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
2429c060
PB
11090fi
11091
81ecdfbb 11092
2429c060
PB
11093fi
11094if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11095
11096
11097if test -n "$DLLTOOL_FOR_TARGET"; then
11098 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11099elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11100 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11101fi
11102
11103if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11104 for ncn_progname in dlltool; do
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
11109if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
9a819804
AO
11111else
11112 if test -n "$DLLTOOL_FOR_TARGET"; then
11113 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11122 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11124 break 2
11125 fi
11126done
81ecdfbb
RW
11127 done
11128IFS=$as_save_IFS
9a819804
AO
11129
11130fi
11131fi
11132DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11133if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11135$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11136else
81ecdfbb
RW
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
9a819804
AO
11139fi
11140
81ecdfbb 11141
9a819804
AO
11142 done
11143fi
11144
11145if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11146 for ncn_progname in dlltool; do
81ecdfbb
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152$as_echo "yes" >&6; }
2429c060
PB
11153 break
11154 else
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
2429c060
PB
11157 fi
11158 done
11159fi
11160
11161if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11162 for ncn_progname in dlltool; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167$as_echo_n "checking for $ac_word... " >&6; }
11168if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
2429c060
PB
11170else
11171 if test -n "$DLLTOOL_FOR_TARGET"; then
11172 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11173else
c6b750e1
DJ
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11181 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11183 break 2
11184 fi
11185done
81ecdfbb
RW
11186 done
11187IFS=$as_save_IFS
c6b750e1 11188
2429c060
PB
11189fi
11190fi
c6b750e1 11191DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11192if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11194$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11195else
81ecdfbb
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
2429c060
PB
11198fi
11199
81ecdfbb 11200
2429c060
PB
11201 fi
11202 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
11207if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
2429c060
PB
11209else
11210 if test -n "$DLLTOOL_FOR_TARGET"; then
11211 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11212else
c6b750e1
DJ
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11220 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11222 break 2
11223 fi
11224done
81ecdfbb
RW
11225 done
11226IFS=$as_save_IFS
c6b750e1 11227
2429c060
PB
11228fi
11229fi
c6b750e1 11230DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11231if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11233$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11234else
81ecdfbb
RW
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
2429c060 11237fi
c6b750e1 11238
81ecdfbb 11239
2429c060
PB
11240 fi
11241 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11242 done
11243fi
c6b750e1 11244
2429c060
PB
11245if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11246 set dummy dlltool
11247 if test $build = $target ; then
11248 DLLTOOL_FOR_TARGET="$2"
11249 else
11250 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11251 fi
d3f5afc4
MS
11252else
11253 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11254fi
11255
3a35eeb3
PB
11256else
11257 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11258fi
11259
11260
11261
11262
11263if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11264 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11266$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11267 if test -x $with_build_time_tools/ld; then
11268 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11269 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11271$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11272 else
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
3a35eeb3 11275 fi
2429c060
PB
11276 elif test $build != $host && test $have_gcc_for_target = yes; then
11277 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11278 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11279 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11280 fi
11281fi
c6b750e1 11282if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11283 # Extract the first word of "ld", so it can be a program name with args.
11284set dummy ld; ac_word=$2
81ecdfbb
RW
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286$as_echo_n "checking for $ac_word... " >&6; }
11287if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
2429c060 11289else
c6b750e1
DJ
11290 case $LD_FOR_TARGET in
11291 [\\/]* | ?:[\\/]*)
2429c060
PB
11292 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11293 ;;
2429c060 11294 *)
c6b750e1
DJ
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $gcc_cv_tool_dirs
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11302 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11304 break 2
11305 fi
11306done
81ecdfbb
RW
11307 done
11308IFS=$as_save_IFS
c6b750e1 11309
2429c060
PB
11310 ;;
11311esac
11312fi
c6b750e1 11313LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11314if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11316$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11317else
81ecdfbb
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
2429c060
PB
11320fi
11321
81ecdfbb 11322
2429c060
PB
11323fi
11324if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11325
11326
11327if test -n "$LD_FOR_TARGET"; then
11328 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11329elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11330 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11331fi
11332
11333if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11334 for ncn_progname in ld; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
11339if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
9a819804
AO
11341else
11342 if test -n "$LD_FOR_TARGET"; then
11343 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11344else
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11352 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11354 break 2
11355 fi
11356done
81ecdfbb
RW
11357 done
11358IFS=$as_save_IFS
9a819804
AO
11359
11360fi
11361fi
11362LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11363if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11365$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11366else
81ecdfbb
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368$as_echo "no" >&6; }
9a819804
AO
11369fi
11370
81ecdfbb 11371
9a819804
AO
11372 done
11373fi
11374
11375if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11376 for ncn_progname in ld; do
81ecdfbb
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11378$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11379 if test -x $with_build_time_tools/${ncn_progname}; then
11380 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382$as_echo "yes" >&6; }
2429c060
PB
11383 break
11384 else
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
2429c060
PB
11387 fi
11388 done
11389fi
11390
11391if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11392 for ncn_progname in ld; do
11393 if test -n "$ncn_target_tool_prefix"; then
11394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11395set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397$as_echo_n "checking for $ac_word... " >&6; }
11398if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
2429c060
PB
11400else
11401 if test -n "$LD_FOR_TARGET"; then
11402 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11403else
c6b750e1
DJ
11404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11411 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11413 break 2
11414 fi
11415done
81ecdfbb
RW
11416 done
11417IFS=$as_save_IFS
c6b750e1 11418
2429c060
PB
11419fi
11420fi
c6b750e1 11421LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11422if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11424$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11425else
81ecdfbb
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
2429c060
PB
11428fi
11429
81ecdfbb 11430
2429c060
PB
11431 fi
11432 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11434set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436$as_echo_n "checking for $ac_word... " >&6; }
11437if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
2429c060
PB
11439else
11440 if test -n "$LD_FOR_TARGET"; then
11441 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11442else
c6b750e1
DJ
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11450 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11452 break 2
11453 fi
11454done
81ecdfbb
RW
11455 done
11456IFS=$as_save_IFS
c6b750e1 11457
2429c060
PB
11458fi
11459fi
c6b750e1 11460LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11461if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11463$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11464else
81ecdfbb
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
2429c060 11467fi
c6b750e1 11468
81ecdfbb 11469
2429c060
PB
11470 fi
11471 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11472 done
11473fi
c6b750e1 11474
2429c060
PB
11475if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11476 set dummy ld
11477 if test $build = $target ; then
11478 LD_FOR_TARGET="$2"
11479 else
11480 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11481 fi
d3f5afc4
MS
11482else
11483 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11484fi
11485
3a35eeb3
PB
11486else
11487 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11488fi
11489
11490
11491
11492
11493if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11494 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11496$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11497 if test -x $with_build_time_tools/lipo; then
11498 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11499 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11501$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11502 else
81ecdfbb
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
3a35eeb3 11505 fi
2429c060
PB
11506 elif test $build != $host && test $have_gcc_for_target = yes; then
11507 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11508 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11509 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11510 fi
11511fi
9a819804
AO
11512if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11513 # Extract the first word of "lipo", so it can be a program name with args.
11514set dummy lipo; ac_word=$2
81ecdfbb
RW
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516$as_echo_n "checking for $ac_word... " >&6; }
11517if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
9a819804
AO
11519else
11520 case $LIPO_FOR_TARGET in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11523 ;;
11524 *)
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $gcc_cv_tool_dirs
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11532 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11534 break 2
11535 fi
11536done
81ecdfbb
RW
11537 done
11538IFS=$as_save_IFS
9a819804
AO
11539
11540 ;;
11541esac
11542fi
11543LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11544if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11546$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11547else
81ecdfbb
RW
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
9a819804
AO
11550fi
11551
81ecdfbb 11552
9a819804
AO
11553fi
11554if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11555
11556
11557if test -n "$LIPO_FOR_TARGET"; then
11558 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11559elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11560 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11561fi
11562
11563if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11564 for ncn_progname in lipo; do
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
2429c060 11571else
9a819804
AO
11572 if test -n "$LIPO_FOR_TARGET"; then
11573 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
c6b750e1
DJ
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11582 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11584 break 2
11585 fi
11586done
81ecdfbb
RW
11587 done
11588IFS=$as_save_IFS
c6b750e1 11589
2429c060 11590fi
9a819804
AO
11591fi
11592LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11593if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11595$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11596else
81ecdfbb
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
2429c060
PB
11599fi
11600
81ecdfbb 11601
9a819804 11602 done
2429c060 11603fi
9a819804
AO
11604
11605if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11606 for ncn_progname in lipo; do
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11608$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11609 if test -x $with_build_time_tools/${ncn_progname}; then
11610 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612$as_echo "yes" >&6; }
2429c060
PB
11613 break
11614 else
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
2429c060
PB
11617 fi
11618 done
11619fi
11620
11621if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11622 for ncn_progname in lipo; do
11623 if test -n "$ncn_target_tool_prefix"; then
11624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627$as_echo_n "checking for $ac_word... " >&6; }
11628if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
2429c060
PB
11630else
11631 if test -n "$LIPO_FOR_TARGET"; then
11632 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11633else
c6b750e1
DJ
11634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635for as_dir in $PATH
11636do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11641 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11643 break 2
11644 fi
11645done
81ecdfbb
RW
11646 done
11647IFS=$as_save_IFS
c6b750e1 11648
2429c060
PB
11649fi
11650fi
c6b750e1 11651LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11652if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11654$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11655else
81ecdfbb
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
2429c060
PB
11658fi
11659
81ecdfbb 11660
2429c060
PB
11661 fi
11662 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666$as_echo_n "checking for $ac_word... " >&6; }
11667if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
2429c060
PB
11669else
11670 if test -n "$LIPO_FOR_TARGET"; then
11671 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11672else
c6b750e1
DJ
11673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11680 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11682 break 2
11683 fi
11684done
81ecdfbb
RW
11685 done
11686IFS=$as_save_IFS
c6b750e1 11687
2429c060
PB
11688fi
11689fi
c6b750e1 11690LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11691if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11693$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11694else
81ecdfbb
RW
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696$as_echo "no" >&6; }
2429c060 11697fi
c6b750e1 11698
81ecdfbb 11699
2429c060
PB
11700 fi
11701 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11702 done
11703fi
c6b750e1 11704
2429c060
PB
11705if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11706 set dummy lipo
11707 if test $build = $target ; then
11708 LIPO_FOR_TARGET="$2"
11709 else
11710 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11711 fi
d3f5afc4
MS
11712else
11713 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11714fi
11715
3a35eeb3
PB
11716else
11717 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11718fi
11719
11720
11721
11722
11723if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11724 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11726$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11727 if test -x $with_build_time_tools/nm; then
11728 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11729 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11731$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11732 else
81ecdfbb
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
3a35eeb3 11735 fi
2429c060
PB
11736 elif test $build != $host && test $have_gcc_for_target = yes; then
11737 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11738 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11739 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11740 fi
11741fi
c6b750e1 11742if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11743 # Extract the first word of "nm", so it can be a program name with args.
11744set dummy nm; ac_word=$2
81ecdfbb
RW
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746$as_echo_n "checking for $ac_word... " >&6; }
11747if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
2429c060 11749else
c6b750e1
DJ
11750 case $NM_FOR_TARGET in
11751 [\\/]* | ?:[\\/]*)
2429c060
PB
11752 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11753 ;;
2429c060 11754 *)
c6b750e1
DJ
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $gcc_cv_tool_dirs
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11762 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11764 break 2
11765 fi
11766done
81ecdfbb
RW
11767 done
11768IFS=$as_save_IFS
c6b750e1 11769
2429c060
PB
11770 ;;
11771esac
11772fi
c6b750e1 11773NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11774if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11776$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11777else
81ecdfbb
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779$as_echo "no" >&6; }
2429c060
PB
11780fi
11781
81ecdfbb 11782
2429c060
PB
11783fi
11784if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11785
11786
11787if test -n "$NM_FOR_TARGET"; then
11788 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11789elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11790 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11791fi
11792
11793if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11794 for ncn_progname in nm; do
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798$as_echo_n "checking for $ac_word... " >&6; }
11799if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
9a819804
AO
11801else
11802 if test -n "$NM_FOR_TARGET"; then
11803 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11804else
11805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $PATH
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11812 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11814 break 2
11815 fi
11816done
81ecdfbb
RW
11817 done
11818IFS=$as_save_IFS
9a819804
AO
11819
11820fi
11821fi
11822NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11823if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11825$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11826else
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828$as_echo "no" >&6; }
9a819804
AO
11829fi
11830
81ecdfbb 11831
9a819804
AO
11832 done
11833fi
11834
11835if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11836 for ncn_progname in nm; do
81ecdfbb
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11838$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11839 if test -x $with_build_time_tools/${ncn_progname}; then
11840 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842$as_echo "yes" >&6; }
2429c060
PB
11843 break
11844 else
81ecdfbb
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
2429c060
PB
11847 fi
11848 done
11849fi
11850
11851if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11852 for ncn_progname in nm; do
11853 if test -n "$ncn_target_tool_prefix"; then
11854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11855set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857$as_echo_n "checking for $ac_word... " >&6; }
11858if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
859789af 11860else
55db4b87
PB
11861 if test -n "$NM_FOR_TARGET"; then
11862 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11863else
c6b750e1
DJ
11864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865for as_dir in $PATH
11866do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11871 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11873 break 2
11874 fi
11875done
81ecdfbb
RW
11876 done
11877IFS=$as_save_IFS
c6b750e1 11878
859789af
AC
11879fi
11880fi
c6b750e1 11881NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11882if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11884$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11885else
81ecdfbb
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
859789af
AC
11888fi
11889
81ecdfbb 11890
2429c060
PB
11891 fi
11892 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11894set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896$as_echo_n "checking for $ac_word... " >&6; }
11897if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
859789af 11899else
05cbd757
PB
11900 if test -n "$NM_FOR_TARGET"; then
11901 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11902else
c6b750e1
DJ
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11910 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11912 break 2
11913 fi
11914done
81ecdfbb
RW
11915 done
11916IFS=$as_save_IFS
c6b750e1 11917
859789af
AC
11918fi
11919fi
c6b750e1 11920NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11921if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11923$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11924else
81ecdfbb
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
859789af 11927fi
c6b750e1 11928
81ecdfbb 11929
2429c060
PB
11930 fi
11931 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11932 done
11933fi
c6b750e1 11934
05cbd757
PB
11935if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11936 set dummy nm
11937 if test $build = $target ; then
11938 NM_FOR_TARGET="$2"
859789af 11939 else
05cbd757 11940 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11941 fi
d3f5afc4
MS
11942else
11943 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11944fi
11945
3a35eeb3
PB
11946else
11947 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11948fi
11949
11950
11951
11952
11953if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11954 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11956$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11957 if test -x $with_build_time_tools/objdump; then
11958 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11959 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11961$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11962 else
81ecdfbb
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
3a35eeb3 11965 fi
2429c060
PB
11966 elif test $build != $host && test $have_gcc_for_target = yes; then
11967 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11968 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11969 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11970 fi
11971fi
c6b750e1 11972if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11973 # Extract the first word of "objdump", so it can be a program name with args.
11974set dummy objdump; ac_word=$2
81ecdfbb
RW
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976$as_echo_n "checking for $ac_word... " >&6; }
11977if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
2429c060 11979else
c6b750e1
DJ
11980 case $OBJDUMP_FOR_TARGET in
11981 [\\/]* | ?:[\\/]*)
2429c060
PB
11982 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11983 ;;
2429c060 11984 *)
c6b750e1
DJ
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $gcc_cv_tool_dirs
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11992 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11994 break 2
11995 fi
11996done
81ecdfbb
RW
11997 done
11998IFS=$as_save_IFS
c6b750e1 11999
2429c060
PB
12000 ;;
12001esac
12002fi
c6b750e1 12003OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12004if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12006$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12007else
81ecdfbb
RW
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009$as_echo "no" >&6; }
2429c060
PB
12010fi
12011
81ecdfbb 12012
2429c060
PB
12013fi
12014if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12015
12016
12017if test -n "$OBJDUMP_FOR_TARGET"; then
12018 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12019elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12020 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12021fi
12022
12023if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12024 for ncn_progname in objdump; do
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028$as_echo_n "checking for $ac_word... " >&6; }
12029if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
9a819804
AO
12031else
12032 if test -n "$OBJDUMP_FOR_TARGET"; then
12033 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12034else
12035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12042 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12044 break 2
12045 fi
12046done
81ecdfbb
RW
12047 done
12048IFS=$as_save_IFS
9a819804
AO
12049
12050fi
12051fi
12052OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12053if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12055$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12056else
81ecdfbb
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058$as_echo "no" >&6; }
9a819804
AO
12059fi
12060
81ecdfbb 12061
9a819804
AO
12062 done
12063fi
12064
12065if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12066 for ncn_progname in objdump; do
81ecdfbb
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12068$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12069 if test -x $with_build_time_tools/${ncn_progname}; then
12070 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072$as_echo "yes" >&6; }
2429c060
PB
12073 break
12074 else
81ecdfbb
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
2429c060
PB
12077 fi
12078 done
12079fi
12080
12081if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12082 for ncn_progname in objdump; do
12083 if test -n "$ncn_target_tool_prefix"; then
12084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12085set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087$as_echo_n "checking for $ac_word... " >&6; }
12088if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
5ae72758
DJ
12090else
12091 if test -n "$OBJDUMP_FOR_TARGET"; then
12092 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12093else
c6b750e1
DJ
12094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12101 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12103 break 2
12104 fi
12105done
81ecdfbb
RW
12106 done
12107IFS=$as_save_IFS
c6b750e1 12108
5ae72758
DJ
12109fi
12110fi
c6b750e1 12111OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12112if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12114$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12115else
81ecdfbb
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
5ae72758
DJ
12118fi
12119
81ecdfbb 12120
2429c060
PB
12121 fi
12122 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12124set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
12127if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
5ae72758
DJ
12129else
12130 if test -n "$OBJDUMP_FOR_TARGET"; then
12131 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12132else
c6b750e1
DJ
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12140 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12142 break 2
12143 fi
12144done
81ecdfbb
RW
12145 done
12146IFS=$as_save_IFS
c6b750e1 12147
5ae72758
DJ
12148fi
12149fi
c6b750e1 12150OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12151if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12153$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12154else
81ecdfbb
RW
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
5ae72758 12157fi
c6b750e1 12158
81ecdfbb 12159
2429c060
PB
12160 fi
12161 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12162 done
12163fi
c6b750e1 12164
5ae72758
DJ
12165if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12166 set dummy objdump
12167 if test $build = $target ; then
12168 OBJDUMP_FOR_TARGET="$2"
12169 else
12170 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12171 fi
d3f5afc4
MS
12172else
12173 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12174fi
12175
3a35eeb3
PB
12176else
12177 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12178fi
12179
12180
12181
12182
12183if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12184 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12186$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12187 if test -x $with_build_time_tools/ranlib; then
12188 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12189 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12191$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12192 else
81ecdfbb
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
3a35eeb3 12195 fi
2429c060
PB
12196 elif test $build != $host && test $have_gcc_for_target = yes; then
12197 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12198 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12199 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12200 fi
12201fi
c6b750e1 12202if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12203 # Extract the first word of "ranlib", so it can be a program name with args.
12204set dummy ranlib; ac_word=$2
81ecdfbb
RW
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206$as_echo_n "checking for $ac_word... " >&6; }
12207if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
2429c060 12209else
c6b750e1
DJ
12210 case $RANLIB_FOR_TARGET in
12211 [\\/]* | ?:[\\/]*)
2429c060
PB
12212 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12213 ;;
2429c060 12214 *)
c6b750e1
DJ
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $gcc_cv_tool_dirs
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12222 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12224 break 2
12225 fi
12226done
81ecdfbb
RW
12227 done
12228IFS=$as_save_IFS
c6b750e1 12229
2429c060
PB
12230 ;;
12231esac
12232fi
c6b750e1 12233RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12234if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12236$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12237else
81ecdfbb
RW
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239$as_echo "no" >&6; }
2429c060
PB
12240fi
12241
81ecdfbb 12242
2429c060
PB
12243fi
12244if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12245
12246
12247if test -n "$RANLIB_FOR_TARGET"; then
12248 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12249elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12250 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12251fi
12252
12253if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12254 for ncn_progname in ranlib; do
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
9a819804
AO
12261else
12262 if test -n "$RANLIB_FOR_TARGET"; then
12263 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12272 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12274 break 2
12275 fi
12276done
81ecdfbb
RW
12277 done
12278IFS=$as_save_IFS
9a819804
AO
12279
12280fi
12281fi
12282RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12283if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12285$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12286else
81ecdfbb
RW
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
9a819804
AO
12289fi
12290
81ecdfbb 12291
9a819804
AO
12292 done
12293fi
12294
12295if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12296 for ncn_progname in ranlib; do
81ecdfbb
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12298$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12299 if test -x $with_build_time_tools/${ncn_progname}; then
12300 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302$as_echo "yes" >&6; }
2429c060
PB
12303 break
12304 else
81ecdfbb
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
2429c060
PB
12307 fi
12308 done
12309fi
12310
12311if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12312 for ncn_progname in ranlib; do
12313 if test -n "$ncn_target_tool_prefix"; then
12314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12315set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
12318if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
859789af 12320else
55db4b87
PB
12321 if test -n "$RANLIB_FOR_TARGET"; then
12322 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12323else
c6b750e1
DJ
12324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325for as_dir in $PATH
12326do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12331 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12333 break 2
12334 fi
12335done
81ecdfbb
RW
12336 done
12337IFS=$as_save_IFS
c6b750e1 12338
859789af
AC
12339fi
12340fi
c6b750e1 12341RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12342if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12344$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12345else
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
859789af
AC
12348fi
12349
81ecdfbb 12350
2429c060
PB
12351 fi
12352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356$as_echo_n "checking for $ac_word... " >&6; }
12357if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
859789af 12359else
05cbd757
PB
12360 if test -n "$RANLIB_FOR_TARGET"; then
12361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12362else
c6b750e1
DJ
12363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364for as_dir in $PATH
12365do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12372 break 2
12373 fi
12374done
81ecdfbb
RW
12375 done
12376IFS=$as_save_IFS
c6b750e1 12377
859789af
AC
12378fi
12379fi
c6b750e1 12380RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12381if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12383$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12384else
81ecdfbb
RW
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386$as_echo "no" >&6; }
859789af 12387fi
c6b750e1 12388
81ecdfbb 12389
2429c060
PB
12390 fi
12391 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12392 done
12393fi
c6b750e1 12394
2429c060
PB
12395if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12396 set dummy ranlib
12397 if test $build = $target ; then
12398 RANLIB_FOR_TARGET="$2"
12399 else
12400 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12401 fi
d3f5afc4
MS
12402else
12403 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12404fi
05cbd757 12405
3a35eeb3
PB
12406else
12407 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12408fi
12409
2429c060
PB
12410
12411
12412
b121d7d4
DD
12413if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12414 if test -n "$with_build_time_tools"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12416$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12417 if test -x $with_build_time_tools/readelf; then
12418 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12419 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12421$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
12425 fi
12426 elif test $build != $host && test $have_gcc_for_target = yes; then
12427 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12428 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12429 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12430 fi
12431fi
12432if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12433 # Extract the first word of "readelf", so it can be a program name with args.
12434set dummy readelf; ac_word=$2
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436$as_echo_n "checking for $ac_word... " >&6; }
12437if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439else
12440 case $READELF_FOR_TARGET in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12443 ;;
12444 *)
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $gcc_cv_tool_dirs
12447do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12455 fi
12456done
12457 done
12458IFS=$as_save_IFS
12459
12460 ;;
12461esac
12462fi
12463READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12464if test -n "$READELF_FOR_TARGET"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12466$as_echo "$READELF_FOR_TARGET" >&6; }
12467else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
12470fi
12471
12472
12473fi
12474if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12475
12476
12477if test -n "$READELF_FOR_TARGET"; then
12478 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12479elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12480 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12481fi
12482
12483if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12484 for ncn_progname in readelf; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486set dummy ${ncn_progname}; ac_word=$2
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488$as_echo_n "checking for $ac_word... " >&6; }
12489if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491else
12492 if test -n "$READELF_FOR_TARGET"; then
12493 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12494else
12495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $PATH
12497do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506done
12507 done
12508IFS=$as_save_IFS
12509
12510fi
12511fi
12512READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12513if test -n "$READELF_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12515$as_echo "$READELF_FOR_TARGET" >&6; }
12516else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518$as_echo "no" >&6; }
12519fi
12520
12521
12522 done
12523fi
12524
12525if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in readelf; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532$as_echo "yes" >&6; }
12533 break
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
12537 fi
12538 done
12539fi
12540
12541if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12542 for ncn_progname in readelf; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547$as_echo_n "checking for $ac_word... " >&6; }
12548if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550else
12551 if test -n "$READELF_FOR_TARGET"; then
12552 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12553else
12554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555for as_dir in $PATH
12556do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12564 fi
12565done
12566 done
12567IFS=$as_save_IFS
12568
12569fi
12570fi
12571READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12572if test -n "$READELF_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12574$as_echo "$READELF_FOR_TARGET" >&6; }
12575else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577$as_echo "no" >&6; }
12578fi
12579
12580
12581 fi
12582 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584set dummy ${ncn_progname}; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
12587if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589else
12590 if test -n "$READELF_FOR_TARGET"; then
12591 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12592else
12593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608fi
12609fi
12610READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12611if test -n "$READELF_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12613$as_echo "$READELF_FOR_TARGET" >&6; }
12614else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619
12620 fi
12621 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12622 done
12623fi
12624
12625if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12626 set dummy readelf
12627 if test $build = $target ; then
12628 READELF_FOR_TARGET="$2"
12629 else
12630 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12631 fi
12632else
12633 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12634fi
12635
12636else
12637 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12638fi
12639
12640
12641
12642
2429c060
PB
12643if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12644 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12646$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12647 if test -x $with_build_time_tools/strip; then
12648 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12649 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12651$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12652 else
81ecdfbb
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
3a35eeb3 12655 fi
2429c060
PB
12656 elif test $build != $host && test $have_gcc_for_target = yes; then
12657 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12658 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12659 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12660 fi
12661fi
c6b750e1 12662if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12663 # Extract the first word of "strip", so it can be a program name with args.
12664set dummy strip; ac_word=$2
81ecdfbb
RW
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666$as_echo_n "checking for $ac_word... " >&6; }
12667if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
2429c060 12669else
c6b750e1
DJ
12670 case $STRIP_FOR_TARGET in
12671 [\\/]* | ?:[\\/]*)
2429c060
PB
12672 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12673 ;;
2429c060 12674 *)
c6b750e1
DJ
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $gcc_cv_tool_dirs
12677do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12682 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12684 break 2
12685 fi
12686done
81ecdfbb
RW
12687 done
12688IFS=$as_save_IFS
c6b750e1 12689
2429c060
PB
12690 ;;
12691esac
12692fi
c6b750e1 12693STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12694if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12696$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12697else
81ecdfbb
RW
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699$as_echo "no" >&6; }
2429c060
PB
12700fi
12701
81ecdfbb 12702
2429c060
PB
12703fi
12704if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12705
12706
12707if test -n "$STRIP_FOR_TARGET"; then
12708 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12709elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12710 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12711fi
12712
12713if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12714 for ncn_progname in strip; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718$as_echo_n "checking for $ac_word... " >&6; }
12719if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
9a819804
AO
12721else
12722 if test -n "$STRIP_FOR_TARGET"; then
12723 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12724else
12725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $PATH
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12732 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12734 break 2
12735 fi
12736done
81ecdfbb
RW
12737 done
12738IFS=$as_save_IFS
9a819804
AO
12739
12740fi
12741fi
12742STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12743if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12745$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12746else
81ecdfbb
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748$as_echo "no" >&6; }
9a819804
AO
12749fi
12750
81ecdfbb 12751
9a819804
AO
12752 done
12753fi
12754
12755if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12756 for ncn_progname in strip; do
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12758$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12759 if test -x $with_build_time_tools/${ncn_progname}; then
12760 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762$as_echo "yes" >&6; }
2429c060
PB
12763 break
12764 else
81ecdfbb
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
2429c060
PB
12767 fi
12768 done
12769fi
12770
12771if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12772 for ncn_progname in strip; do
12773 if test -n "$ncn_target_tool_prefix"; then
12774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12775set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
12778if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
7e0f7140
GK
12780else
12781 if test -n "$STRIP_FOR_TARGET"; then
12782 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12791 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12793 break 2
12794 fi
12795done
81ecdfbb
RW
12796 done
12797IFS=$as_save_IFS
c6b750e1 12798
7e0f7140
GK
12799fi
12800fi
c6b750e1 12801STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12802if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12804$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12805else
81ecdfbb
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
7e0f7140
GK
12808fi
12809
81ecdfbb 12810
2429c060
PB
12811 fi
12812 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12814set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816$as_echo_n "checking for $ac_word... " >&6; }
12817if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
7e0f7140
GK
12819else
12820 if test -n "$STRIP_FOR_TARGET"; then
12821 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12822else
c6b750e1
DJ
12823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12830 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12832 break 2
12833 fi
12834done
81ecdfbb
RW
12835 done
12836IFS=$as_save_IFS
c6b750e1 12837
7e0f7140
GK
12838fi
12839fi
c6b750e1 12840STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12841if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12843$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12844else
81ecdfbb
RW
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
7e0f7140 12847fi
c6b750e1 12848
81ecdfbb 12849
2429c060
PB
12850 fi
12851 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12852 done
12853fi
c6b750e1 12854
7e0f7140
GK
12855if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12856 set dummy strip
12857 if test $build = $target ; then
12858 STRIP_FOR_TARGET="$2"
12859 else
12860 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12861 fi
d3f5afc4
MS
12862else
12863 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12864fi
12865
3a35eeb3
PB
12866else
12867 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12868fi
12869
12870
12871
12872
12873if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12874 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12876$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12877 if test -x $with_build_time_tools/windres; then
12878 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12879 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12881$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12882 else
81ecdfbb
RW
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884$as_echo "no" >&6; }
3a35eeb3 12885 fi
2429c060
PB
12886 elif test $build != $host && test $have_gcc_for_target = yes; then
12887 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12888 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12889 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12890 fi
12891fi
c6b750e1 12892if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12893 # Extract the first word of "windres", so it can be a program name with args.
12894set dummy windres; ac_word=$2
81ecdfbb
RW
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896$as_echo_n "checking for $ac_word... " >&6; }
12897if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
2429c060 12899else
c6b750e1
DJ
12900 case $WINDRES_FOR_TARGET in
12901 [\\/]* | ?:[\\/]*)
2429c060
PB
12902 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12903 ;;
2429c060 12904 *)
c6b750e1
DJ
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $gcc_cv_tool_dirs
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12912 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12914 break 2
12915 fi
12916done
81ecdfbb
RW
12917 done
12918IFS=$as_save_IFS
c6b750e1 12919
2429c060
PB
12920 ;;
12921esac
12922fi
c6b750e1 12923WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12924if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12926$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12927else
81ecdfbb
RW
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929$as_echo "no" >&6; }
2429c060
PB
12930fi
12931
81ecdfbb 12932
2429c060
PB
12933fi
12934if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12935
12936
12937if test -n "$WINDRES_FOR_TARGET"; then
12938 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12939elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12940 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12941fi
12942
12943if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12944 for ncn_progname in windres; do
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948$as_echo_n "checking for $ac_word... " >&6; }
12949if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
9a819804
AO
12951else
12952 if test -n "$WINDRES_FOR_TARGET"; then
12953 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12954else
12955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $PATH
12957do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12962 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12964 break 2
12965 fi
12966done
81ecdfbb
RW
12967 done
12968IFS=$as_save_IFS
9a819804
AO
12969
12970fi
12971fi
12972WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12973if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12975$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12976else
81ecdfbb
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978$as_echo "no" >&6; }
9a819804
AO
12979fi
12980
81ecdfbb 12981
9a819804
AO
12982 done
12983fi
12984
12985if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12986 for ncn_progname in windres; do
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12988$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12989 if test -x $with_build_time_tools/${ncn_progname}; then
12990 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992$as_echo "yes" >&6; }
2429c060
PB
12993 break
12994 else
81ecdfbb
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
2429c060
PB
12997 fi
12998 done
12999fi
13000
13001if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13002 for ncn_progname in windres; do
13003 if test -n "$ncn_target_tool_prefix"; then
13004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13005set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
859789af 13010else
55db4b87
PB
13011 if test -n "$WINDRES_FOR_TARGET"; then
13012 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13013else
c6b750e1
DJ
13014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015for as_dir in $PATH
13016do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13021 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13023 break 2
13024 fi
13025done
81ecdfbb
RW
13026 done
13027IFS=$as_save_IFS
c6b750e1 13028
859789af
AC
13029fi
13030fi
c6b750e1 13031WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13032if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13034$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13035else
81ecdfbb
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
859789af
AC
13038fi
13039
81ecdfbb 13040
2429c060
PB
13041 fi
13042 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13044set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046$as_echo_n "checking for $ac_word... " >&6; }
13047if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
859789af 13049else
05cbd757
PB
13050 if test -n "$WINDRES_FOR_TARGET"; then
13051 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13052else
c6b750e1
DJ
13053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054for as_dir in $PATH
13055do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13060 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13062 break 2
13063 fi
13064done
81ecdfbb
RW
13065 done
13066IFS=$as_save_IFS
c6b750e1 13067
859789af
AC
13068fi
13069fi
c6b750e1 13070WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13071if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13073$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13074else
81ecdfbb
RW
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076$as_echo "no" >&6; }
859789af 13077fi
c6b750e1 13078
81ecdfbb 13079
2429c060
PB
13080 fi
13081 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13082 done
13083fi
c6b750e1 13084
05cbd757
PB
13085if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13086 set dummy windres
13087 if test $build = $target ; then
13088 WINDRES_FOR_TARGET="$2"
859789af 13089 else
05cbd757 13090 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13091 fi
d3f5afc4
MS
13092else
13093 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13094fi
13095
3a35eeb3
PB
13096else
13097 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13098fi
13099
852e5f18 13100
0c24b341
NC
13101
13102
13103if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13104 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13106$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13107 if test -x $with_build_time_tools/windmc; then
13108 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13109 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13111$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13112 else
81ecdfbb
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
0c24b341
NC
13115 fi
13116 elif test $build != $host && test $have_gcc_for_target = yes; then
13117 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13118 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13119 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13120 fi
13121fi
13122if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13123 # Extract the first word of "windmc", so it can be a program name with args.
13124set dummy windmc; ac_word=$2
81ecdfbb
RW
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126$as_echo_n "checking for $ac_word... " >&6; }
13127if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
0c24b341
NC
13129else
13130 case $WINDMC_FOR_TARGET in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136for as_dir in $gcc_cv_tool_dirs
13137do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13142 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13144 break 2
13145 fi
13146done
81ecdfbb
RW
13147 done
13148IFS=$as_save_IFS
0c24b341
NC
13149
13150 ;;
13151esac
13152fi
13153WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13154if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13156$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13157else
81ecdfbb
RW
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
0c24b341
NC
13160fi
13161
81ecdfbb 13162
0c24b341
NC
13163fi
13164if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13165
13166
13167if test -n "$WINDMC_FOR_TARGET"; then
13168 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13169elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13170 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13171fi
13172
13173if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13174 for ncn_progname in windmc; do
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178$as_echo_n "checking for $ac_word... " >&6; }
13179if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
0c24b341
NC
13181else
13182 if test -n "$WINDMC_FOR_TARGET"; then
13183 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13184else
13185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186for as_dir in $PATH
13187do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13192 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13194 break 2
13195 fi
13196done
81ecdfbb
RW
13197 done
13198IFS=$as_save_IFS
0c24b341
NC
13199
13200fi
13201fi
13202WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13203if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13205$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13206else
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208$as_echo "no" >&6; }
0c24b341
NC
13209fi
13210
81ecdfbb 13211
0c24b341
NC
13212 done
13213fi
13214
13215if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13216 for ncn_progname in windmc; do
81ecdfbb
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13218$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13219 if test -x $with_build_time_tools/${ncn_progname}; then
13220 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222$as_echo "yes" >&6; }
0c24b341
NC
13223 break
13224 else
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
0c24b341
NC
13227 fi
13228 done
13229fi
13230
13231if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13232 for ncn_progname in windmc; do
13233 if test -n "$ncn_target_tool_prefix"; then
13234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237$as_echo_n "checking for $ac_word... " >&6; }
13238if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
0c24b341
NC
13240else
13241 if test -n "$WINDMC_FOR_TARGET"; then
13242 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13243else
13244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245for as_dir in $PATH
13246do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13251 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13253 break 2
13254 fi
13255done
81ecdfbb
RW
13256 done
13257IFS=$as_save_IFS
0c24b341
NC
13258
13259fi
13260fi
13261WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13262if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13264$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13265else
81ecdfbb
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267$as_echo "no" >&6; }
0c24b341
NC
13268fi
13269
81ecdfbb 13270
0c24b341
NC
13271 fi
13272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13274set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
0c24b341
NC
13279else
13280 if test -n "$WINDMC_FOR_TARGET"; then
13281 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13290 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13292 break 2
13293 fi
13294done
81ecdfbb
RW
13295 done
13296IFS=$as_save_IFS
0c24b341
NC
13297
13298fi
13299fi
13300WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13301if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13303$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13304else
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
0c24b341
NC
13307fi
13308
81ecdfbb 13309
0c24b341
NC
13310 fi
13311 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13312 done
13313fi
13314
13315if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13316 set dummy windmc
13317 if test $build = $target ; then
13318 WINDMC_FOR_TARGET="$2"
13319 else
13320 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13321 fi
13322else
13323 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13324fi
13325
13326else
13327 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13328fi
13329
13330
be01d343
PB
13331RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13332
81ecdfbb
RW
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13334$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13335if test "x${build}" != "x${host}" ; then
2429c060
PB
13336 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13337 # We already found the complete path
b8025f34 13338 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13340$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13341 else
13342 # Canadian cross, just use what we found
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344$as_echo "pre-installed" >&6; }
2429c060 13345 fi
be01d343
PB
13346else
13347 ok=yes
13348 case " ${configdirs} " in
13349 *" binutils "*) ;;
13350 *) ok=no ;;
13351 esac
c6b750e1 13352
be01d343
PB
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357$as_echo "just compiled" >&6; }
2429c060
PB
13358 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
b8025f34 13360 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367$as_echo "host tool" >&6; }
be01d343
PB
13368 else
13369 # We need a cross tool
81ecdfbb
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371$as_echo "pre-installed" >&6; }
be01d343
PB
13372 fi
13373fi
4b900473 13374
81ecdfbb
RW
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13376$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13377if test "x${build}" != "x${host}" ; then
2429c060
PB
13378 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
b8025f34 13380 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13383 else
13384 # Canadian cross, just use what we found
81ecdfbb
RW
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386$as_echo "pre-installed" >&6; }
2429c060 13387 fi
be01d343
PB
13388else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" gas "*) ;;
13392 *) ok=no ;;
13393 esac
c6b750e1 13394
be01d343
PB
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399$as_echo "just compiled" >&6; }
2429c060
PB
13400 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
b8025f34 13402 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409$as_echo "host tool" >&6; }
be01d343
PB
13410 else
13411 # We need a cross tool
81ecdfbb
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413$as_echo "pre-installed" >&6; }
be01d343
PB
13414 fi
13415fi
4b900473 13416
81ecdfbb
RW
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13418$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13419if test "x${build}" != "x${host}" ; then
2429c060
PB
13420 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
b8025f34 13422 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13425 else
13426 # Canadian cross, just use what we found
81ecdfbb
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428$as_echo "pre-installed" >&6; }
2429c060 13429 fi
be01d343
PB
13430else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" gcc "*) ;;
13434 *) ok=no ;;
13435 esac
c6b750e1 13436
be01d343
PB
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441$as_echo "just compiled" >&6; }
2429c060
PB
13442 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
b8025f34 13444 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451$as_echo "host tool" >&6; }
be01d343
PB
13452 else
13453 # We need a cross tool
81ecdfbb
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455$as_echo "pre-installed" >&6; }
be01d343
PB
13456 fi
13457fi
4b900473 13458
81ecdfbb
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13460$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13461if test "x${build}" != "x${host}" ; then
2429c060
PB
13462 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
b8025f34 13464 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13467 else
13468 # Canadian cross, just use what we found
81ecdfbb
RW
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470$as_echo "pre-installed" >&6; }
2429c060 13471 fi
be01d343
PB
13472else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gcc "*) ;;
13476 *) ok=no ;;
13477 esac
13478 case ,${enable_languages}, in
13479 *,c++,*) ;;
13480 *) ok=no ;;
13481 esac
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
87cda2cf 13484 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486$as_echo "just compiled" >&6; }
2429c060
PB
13487 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
b8025f34 13489 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496$as_echo "host tool" >&6; }
be01d343
PB
13497 else
13498 # We need a cross tool
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500$as_echo "pre-installed" >&6; }
be01d343
PB
13501 fi
13502fi
4b900473 13503
81ecdfbb
RW
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13505$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13506if test "x${build}" != "x${host}" ; then
2429c060
PB
13507 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
b8025f34 13509 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13512 else
13513 # Canadian cross, just use what we found
81ecdfbb
RW
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515$as_echo "pre-installed" >&6; }
2429c060 13516 fi
be01d343
PB
13517else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,c++,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 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'
81ecdfbb
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531$as_echo "just compiled" >&6; }
2429c060
PB
13532 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
b8025f34 13534 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541$as_echo "host tool" >&6; }
be01d343
PB
13542 else
13543 # We need a cross tool
81ecdfbb
RW
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545$as_echo "pre-installed" >&6; }
be01d343
PB
13546 fi
13547fi
4b900473 13548
81ecdfbb
RW
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13550$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13551if test "x${build}" != "x${host}" ; then
2429c060
PB
13552 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
b8025f34 13554 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13557 else
13558 # Canadian cross, just use what we found
81ecdfbb
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560$as_echo "pre-installed" >&6; }
2429c060 13561 fi
be01d343
PB
13562else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" binutils "*) ;;
13566 *) ok=no ;;
13567 esac
c6b750e1 13568
be01d343
PB
13569 if test $ok = yes; then
13570 # An in-tree tool is available and we can use it
13571 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13573$as_echo "just compiled" >&6; }
2429c060
PB
13574 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13575 # We already found the complete path
b8025f34 13576 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13578$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13579 elif test "x$target" = "x$host"; then
13580 # We can use an host tool
13581 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13583$as_echo "host tool" >&6; }
be01d343
PB
13584 else
13585 # We need a cross tool
81ecdfbb
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13587$as_echo "pre-installed" >&6; }
be01d343
PB
13588 fi
13589fi
4b900473 13590
81ecdfbb
RW
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13592$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13593if test "x${build}" != "x${host}" ; then
2429c060
PB
13594 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13595 # We already found the complete path
b8025f34 13596 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13598$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13599 else
13600 # Canadian cross, just use what we found
81ecdfbb
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13602$as_echo "pre-installed" >&6; }
2429c060 13603 fi
be01d343
PB
13604else
13605 ok=yes
13606 case " ${configdirs} " in
13607 *" gcc "*) ;;
13608 *) ok=no ;;
13609 esac
c6b750e1 13610
be01d343
PB
13611 if test $ok = yes; then
13612 # An in-tree tool is available and we can use it
13613 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13615$as_echo "just compiled" >&6; }
2429c060
PB
13616 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13617 # We already found the complete path
b8025f34 13618 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13620$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13621 elif test "x$target" = "x$host"; then
13622 # We can use an host tool
13623 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13625$as_echo "host tool" >&6; }
be01d343
PB
13626 else
13627 # We need a cross tool
81ecdfbb
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629$as_echo "pre-installed" >&6; }
be01d343
PB
13630 fi
13631fi
4b900473 13632
81ecdfbb
RW
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13634$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13635if test "x${build}" != "x${host}" ; then
2429c060
PB
13636 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13637 # We already found the complete path
b8025f34 13638 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13640$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13641 else
13642 # Canadian cross, just use what we found
81ecdfbb
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644$as_echo "pre-installed" >&6; }
2429c060 13645 fi
be01d343
PB
13646else
13647 ok=yes
13648 case " ${configdirs} " in
13649 *" gcc "*) ;;
13650 *) ok=no ;;
13651 esac
13652 case ,${enable_languages}, in
13653 *,java,*) ;;
13654 *) ok=no ;;
13655 esac
13656 if test $ok = yes; then
13657 # An in-tree tool is available and we can use it
13658 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13660$as_echo "just compiled" >&6; }
2429c060
PB
13661 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13662 # We already found the complete path
b8025f34 13663 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13665$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13666 elif test "x$target" = "x$host"; then
13667 # We can use an host tool
13668 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13670$as_echo "host tool" >&6; }
be01d343
PB
13671 else
13672 # We need a cross tool
81ecdfbb
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674$as_echo "pre-installed" >&6; }
be01d343
PB
13675 fi
13676fi
4b900473 13677
81ecdfbb
RW
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13679$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13680if test "x${build}" != "x${host}" ; then
2429c060
PB
13681 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13682 # We already found the complete path
b8025f34 13683 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13685$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13686 else
13687 # Canadian cross, just use what we found
81ecdfbb
RW
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13689$as_echo "pre-installed" >&6; }
2429c060 13690 fi
be01d343
PB
13691else
13692 ok=yes
13693 case " ${configdirs} " in
13694 *" gcc "*) ;;
13695 *) ok=no ;;
13696 esac
13697 case ,${enable_languages}, in
13698 *,fortran,*) ;;
13699 *) ok=no ;;
13700 esac
13701 if test $ok = yes; then
13702 # An in-tree tool is available and we can use it
13703 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13705$as_echo "just compiled" >&6; }
2429c060
PB
13706 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
b8025f34 13708 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13711 elif test "x$target" = "x$host"; then
13712 # We can use an host tool
13713 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715$as_echo "host tool" >&6; }
be01d343
PB
13716 else
13717 # We need a cross tool
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719$as_echo "pre-installed" >&6; }
be01d343
PB
13720 fi
13721fi
4b900473 13722
e552509b
ILT
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13724$as_echo_n "checking where to find the target gccgo... " >&6; }
13725if test "x${build}" != "x${host}" ; then
13726 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $GOC_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
13731 else
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734$as_echo "pre-installed" >&6; }
13735 fi
13736else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" gcc "*) ;;
13740 *) ok=no ;;
13741 esac
13742 case ,${enable_languages}, in
13743 *,go,*) ;;
13744 *) ok=no ;;
13745 esac
13746 if test $ok = yes; then
13747 # An in-tree tool is available and we can use it
13748 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13750$as_echo "just compiled" >&6; }
13751 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
13753 ac_dir=`dirname $GOC_FOR_TARGET`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755$as_echo "pre-installed in $ac_dir" >&6; }
13756 elif test "x$target" = "x$host"; then
13757 # We can use an host tool
13758 GOC_FOR_TARGET='$(GOC)'
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13760$as_echo "host tool" >&6; }
13761 else
13762 # We need a cross tool
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764$as_echo "pre-installed" >&6; }
13765 fi
13766fi
13767
81ecdfbb
RW
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13769$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13770if test "x${build}" != "x${host}" ; then
2429c060
PB
13771 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13772 # We already found the complete path
b8025f34 13773 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13775$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13776 else
13777 # Canadian cross, just use what we found
81ecdfbb
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779$as_echo "pre-installed" >&6; }
2429c060 13780 fi
be01d343
PB
13781else
13782 ok=yes
13783 case " ${configdirs} " in
13784 *" ld "*) ;;
13785 *) ok=no ;;
13786 esac
c6b750e1 13787
be01d343
PB
13788 if test $ok = yes; then
13789 # An in-tree tool is available and we can use it
13790 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13792$as_echo "just compiled" >&6; }
2429c060
PB
13793 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13794 # We already found the complete path
b8025f34 13795 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13797$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13798 elif test "x$target" = "x$host"; then
13799 # We can use an host tool
13800 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13802$as_echo "host tool" >&6; }
be01d343
PB
13803 else
13804 # We need a cross tool
81ecdfbb
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806$as_echo "pre-installed" >&6; }
be01d343
PB
13807 fi
13808fi
4b900473 13809
81ecdfbb
RW
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13811$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13812if test "x${build}" != "x${host}" ; then
2429c060
PB
13813 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
b8025f34 13815 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13818 else
13819 # Canadian cross, just use what we found
81ecdfbb
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821$as_echo "pre-installed" >&6; }
2429c060 13822 fi
be01d343 13823else
2429c060
PB
13824 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
b8025f34 13826 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13829 elif test "x$target" = "x$host"; then
be01d343
PB
13830 # We can use an host tool
13831 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13833$as_echo "host tool" >&6; }
be01d343
PB
13834 else
13835 # We need a cross tool
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837$as_echo "pre-installed" >&6; }
be01d343
PB
13838 fi
13839fi
4b900473 13840
81ecdfbb
RW
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13842$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13843if test "x${build}" != "x${host}" ; then
2429c060
PB
13844 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13845 # We already found the complete path
b8025f34 13846 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13848$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13849 else
13850 # Canadian cross, just use what we found
81ecdfbb
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13852$as_echo "pre-installed" >&6; }
2429c060 13853 fi
be01d343
PB
13854else
13855 ok=yes
13856 case " ${configdirs} " in
13857 *" binutils "*) ;;
13858 *) ok=no ;;
13859 esac
c6b750e1 13860
be01d343
PB
13861 if test $ok = yes; then
13862 # An in-tree tool is available and we can use it
13863 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13865$as_echo "just compiled" >&6; }
2429c060
PB
13866 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
b8025f34 13868 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13871 elif test "x$target" = "x$host"; then
13872 # We can use an host tool
13873 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13875$as_echo "host tool" >&6; }
be01d343
PB
13876 else
13877 # We need a cross tool
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879$as_echo "pre-installed" >&6; }
be01d343
PB
13880 fi
13881fi
4b900473 13882
81ecdfbb
RW
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13884$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13885if test "x${build}" != "x${host}" ; then
2429c060
PB
13886 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13887 # We already found the complete path
b8025f34 13888 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13890$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13891 else
13892 # Canadian cross, just use what we found
81ecdfbb
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894$as_echo "pre-installed" >&6; }
2429c060 13895 fi
be01d343
PB
13896else
13897 ok=yes
13898 case " ${configdirs} " in
13899 *" binutils "*) ;;
13900 *) ok=no ;;
13901 esac
c6b750e1 13902
be01d343
PB
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907$as_echo "just compiled" >&6; }
2429c060
PB
13908 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
b8025f34 13910 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917$as_echo "host tool" >&6; }
be01d343
PB
13918 else
13919 # We need a cross tool
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921$as_echo "pre-installed" >&6; }
be01d343
PB
13922 fi
13923fi
4b900473 13924
81ecdfbb
RW
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13926$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13927if test "x${build}" != "x${host}" ; then
2429c060
PB
13928 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
b8025f34 13930 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13933 else
13934 # Canadian cross, just use what we found
81ecdfbb
RW
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936$as_echo "pre-installed" >&6; }
2429c060 13937 fi
be01d343
PB
13938else
13939 ok=yes
13940 case " ${configdirs} " in
13941 *" binutils "*) ;;
13942 *) ok=no ;;
13943 esac
c6b750e1 13944
be01d343
PB
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949$as_echo "just compiled" >&6; }
2429c060
PB
13950 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
b8025f34 13952 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959$as_echo "host tool" >&6; }
be01d343
PB
13960 else
13961 # We need a cross tool
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963$as_echo "pre-installed" >&6; }
be01d343
PB
13964 fi
13965fi
4b900473 13966
b121d7d4
DD
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13968$as_echo_n "checking where to find the target readelf... " >&6; }
13969if test "x${build}" != "x${host}" ; then
13970 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $READELF_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974$as_echo "pre-installed in $ac_dir" >&6; }
13975 else
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978$as_echo "pre-installed" >&6; }
13979 fi
13980else
13981 ok=yes
13982 case " ${configdirs} " in
13983 *" binutils "*) ;;
13984 *) ok=no ;;
13985 esac
13986
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991$as_echo "just compiled" >&6; }
13992 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $READELF_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996$as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 READELF_FOR_TARGET='$(READELF)'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001$as_echo "host tool" >&6; }
14002 else
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005$as_echo "pre-installed" >&6; }
14006 fi
14007fi
14008
81ecdfbb
RW
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14010$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14011if test "x${build}" != "x${host}" ; then
2429c060
PB
14012 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
b8025f34 14014 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14017 else
14018 # Canadian cross, just use what we found
81ecdfbb
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020$as_echo "pre-installed" >&6; }
2429c060 14021 fi
be01d343
PB
14022else
14023 ok=yes
14024 case " ${configdirs} " in
14025 *" binutils "*) ;;
14026 *) ok=no ;;
14027 esac
c6b750e1 14028
be01d343
PB
14029 if test $ok = yes; then
14030 # An in-tree tool is available and we can use it
9b980aa1 14031 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14033$as_echo "just compiled" >&6; }
2429c060
PB
14034 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
b8025f34 14036 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14039 elif test "x$target" = "x$host"; then
14040 # We can use an host tool
14041 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14043$as_echo "host tool" >&6; }
be01d343
PB
14044 else
14045 # We need a cross tool
81ecdfbb
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047$as_echo "pre-installed" >&6; }
be01d343
PB
14048 fi
14049fi
4b900473 14050
81ecdfbb
RW
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14052$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14053if test "x${build}" != "x${host}" ; then
2429c060
PB
14054 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
b8025f34 14056 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14059 else
14060 # Canadian cross, just use what we found
81ecdfbb
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062$as_echo "pre-installed" >&6; }
2429c060 14063 fi
be01d343
PB
14064else
14065 ok=yes
14066 case " ${configdirs} " in
14067 *" binutils "*) ;;
14068 *) ok=no ;;
14069 esac
c6b750e1 14070
be01d343
PB
14071 if test $ok = yes; then
14072 # An in-tree tool is available and we can use it
14073 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075$as_echo "just compiled" >&6; }
2429c060
PB
14076 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
b8025f34 14078 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14081 elif test "x$target" = "x$host"; then
14082 # We can use an host tool
14083 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085$as_echo "host tool" >&6; }
be01d343
PB
14086 else
14087 # We need a cross tool
81ecdfbb
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089$as_echo "pre-installed" >&6; }
be01d343 14090 fi
a0da8069 14091fi
54752a6b 14092
81ecdfbb
RW
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14094$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14095if test "x${build}" != "x${host}" ; then
14096 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14101 else
14102 # Canadian cross, just use what we found
81ecdfbb
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104$as_echo "pre-installed" >&6; }
0c24b341
NC
14105 fi
14106else
14107 ok=yes
14108 case " ${configdirs} " in
14109 *" binutils "*) ;;
14110 *) ok=no ;;
14111 esac
14112
14113 if test $ok = yes; then
14114 # An in-tree tool is available and we can use it
14115 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14117$as_echo "just compiled" >&6; }
0c24b341
NC
14118 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14123 elif test "x$target" = "x$host"; then
14124 # We can use an host tool
14125 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14127$as_echo "host tool" >&6; }
0c24b341
NC
14128 else
14129 # We need a cross tool
81ecdfbb
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131$as_echo "pre-installed" >&6; }
0c24b341
NC
14132 fi
14133fi
14134
54752a6b
NN
14135
14136
be01d343 14137
4b900473 14138
a0da8069
NN
14139# Certain tools may need extra flags.
14140AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14141RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14142NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14143
be01d343
PB
14144# When building target libraries, except in a Canadian cross, we use
14145# the same toolchain as the compiler we just built.
14146COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14147COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14148COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14149if test $host = $build; then
14150 case " $configdirs " in
14151 *" gcc "*)
14152 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14153 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14154 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14155 ;;
14156 esac
14157fi
14158
14159
14160
14161
14162
81ecdfbb
RW
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14164$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14165# Check whether --enable-maintainer-mode was given.
14166if test "${enable_maintainer_mode+set}" = set; then :
14167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14168else
14169 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14170fi
14171
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14173$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14174
14175
14176if test "$USE_MAINTAINER_MODE" = yes; then
14177 MAINTAINER_MODE_TRUE=
14178 MAINTAINER_MODE_FALSE='#'
14179else
14180 MAINTAINER_MODE_TRUE='#'
14181 MAINTAINER_MODE_FALSE=
c6b750e1 14182fi
3d5e36ae
AO
14183MAINT=$MAINTAINER_MODE_TRUE
14184
1d39f329
NN
14185# ---------------------
14186# GCC bootstrap support
14187# ---------------------
14188
14189# Stage specific cflags for build.
14190stage1_cflags="-g"
14191case $build in
14192 vax-*-*)
14193 case ${GCC} in
14194 yes) stage1_cflags="-g -Wa,-J" ;;
14195 *) stage1_cflags="-g -J" ;;
14196 esac ;;
1d39f329
NN
14197esac
14198
1d89b610 14199
1d39f329 14200
8a0d8a5c 14201# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14202# Check whether --enable-stage1-checking was given.
14203if test "${enable_stage1_checking+set}" = set; then :
14204 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14205else
5566c1fa 14206 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14207 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14208else
5566c1fa 14209 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14210fi
81ecdfbb 14211fi
8a0d8a5c
PB
14212
14213
c6b750e1 14214
81ecdfbb
RW
14215# Enable -Werror in bootstrap stage2 and later.
14216# Check whether --enable-werror was given.
14217if test "${enable_werror+set}" = set; then :
14218 enableval=$enable_werror;
1d39f329 14219else
a0323144 14220 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14221 enable_werror=yes
79fcd0ec
PB
14222else
14223 enable_werror=no
14224fi
81ecdfbb
RW
14225fi
14226
1a6f2dc7
NN
14227case ${enable_werror} in
14228 yes) stage2_werror_flag="--enable-werror-always" ;;
14229 *) stage2_werror_flag="" ;;
1d39f329
NN
14230esac
14231
14232
e8a5fa9c
RW
14233# Specify what files to not compare during bootstrap.
14234
14235compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14236case "$target" in
14237 hppa*64*-*-hpux*) ;;
14238 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14239 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14240esac
14241
14242
81ecdfbb
RW
14243ac_config_files="$ac_config_files Makefile"
14244
c6b750e1 14245cat >confcache <<\_ACEOF
a0da8069
NN
14246# This file is a shell script that caches the results of configure
14247# tests run on this system so they can be shared between configure
c6b750e1
DJ
14248# scripts and configure runs, see configure's option --config-cache.
14249# It is not useful on other systems. If it contains results you don't
14250# want to keep, you may remove or edit it.
a0da8069 14251#
c6b750e1
DJ
14252# config.status only pays attention to the cache file if you give it
14253# the --recheck option to rerun configure.
a0da8069 14254#
c6b750e1
DJ
14255# `ac_cv_env_foo' variables (set or unset) will be overridden when
14256# loading this file, other *unset* `ac_cv_foo' will be assigned the
14257# following values.
14258
14259_ACEOF
14260
a0da8069
NN
14261# The following way of writing the cache mishandles newlines in values,
14262# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14263# So, we kill variables containing newlines.
a0da8069
NN
14264# Ultrix sh set writes to stderr and can't be redirected directly,
14265# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14266(
14267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14268 eval ac_val=\$$ac_var
14269 case $ac_val in #(
14270 *${as_nl}*)
14271 case $ac_var in #(
14272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14273$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14274 esac
14275 case $ac_var in #(
14276 _ | IFS | as_nl) ;; #(
14277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14278 *) { eval $ac_var=; unset $ac_var;} ;;
14279 esac ;;
14280 esac
14281 done
14282
c6b750e1 14283 (set) 2>&1 |
81ecdfbb
RW
14284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14285 *${as_nl}ac_space=\ *)
14286 # `set' does not quote correctly, so add quotes: double-quote
14287 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14288 sed -n \
14289 "s/'/'\\\\''/g;
14290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14291 ;; #(
c6b750e1
DJ
14292 *)
14293 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14295 ;;
81ecdfbb
RW
14296 esac |
14297 sort
14298) |
c6b750e1 14299 sed '
81ecdfbb 14300 /^ac_cv_env_/b end
c6b750e1 14301 t clear
81ecdfbb 14302 :clear
c6b750e1
DJ
14303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14304 t end
81ecdfbb
RW
14305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14306 :end' >>confcache
14307if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14308 if test -w "$cache_file"; then
14309 test "x$cache_file" != "x/dev/null" &&
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14311$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14312 cat confcache >$cache_file
a0da8069 14313 else
81ecdfbb
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14315$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14316 fi
852e5f18 14317fi
a0da8069 14318rm -f confcache
852e5f18 14319
a0da8069
NN
14320test "x$prefix" = xNONE && prefix=$ac_default_prefix
14321# Let make expand exec_prefix.
14322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14323
a0da8069
NN
14324# Transform confdefs.h into DEFS.
14325# Protect against shell expansion while executing Makefile rules.
14326# Protect against Makefile macro expansion.
c6b750e1
DJ
14327#
14328# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14329# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14330# look for a macro that doesn't take arguments.
81ecdfbb
RW
14331ac_script='
14332:mline
14333/\\$/{
14334 N
14335 s,\\\n,,
14336 b mline
14337}
c6b750e1 14338t clear
81ecdfbb
RW
14339:clear
14340s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14341t quote
81ecdfbb 14342s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14343t quote
81ecdfbb
RW
14344b any
14345:quote
14346s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14347s/\[/\\&/g
14348s/\]/\\&/g
14349s/\$/$$/g
14350H
14351:any
14352${
14353 g
14354 s/^\n//
14355 s/\n/ /g
14356 p
14357}
14358'
14359DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14360
14361
14362ac_libobjs=
14363ac_ltlibobjs=
14364for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14365 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14366 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14367 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14368 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14369 # will be set to the directory where LIBOBJS objects are built.
14370 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14371 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14372done
14373LIBOBJS=$ac_libobjs
852e5f18 14374
c6b750e1 14375LTLIBOBJS=$ac_ltlibobjs
376a0e54 14376
cac3d6c4 14377
c6b750e1
DJ
14378
14379: ${CONFIG_STATUS=./config.status}
81ecdfbb 14380ac_write_fail=0
c6b750e1
DJ
14381ac_clean_files_save=$ac_clean_files
14382ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14384$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14385as_write_fail=0
14386cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14387#! $SHELL
14388# Generated by $as_me.
a0da8069 14389# Run this file to recreate the current configuration.
a0da8069 14390# Compiler output produced by configure, useful for debugging
c6b750e1 14391# configure, is in config.log if it exists.
376a0e54 14392
c6b750e1
DJ
14393debug=false
14394ac_cs_recheck=false
14395ac_cs_silent=false
c6b750e1 14396
81ecdfbb
RW
14397SHELL=\${CONFIG_SHELL-$SHELL}
14398export SHELL
14399_ASEOF
14400cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14401## -------------------- ##
14402## M4sh Initialization. ##
14403## -------------------- ##
14404
14405# Be more Bourne compatible
14406DUALCASE=1; export DUALCASE # for MKS sh
14407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14408 emulate sh
14409 NULLCMD=:
81ecdfbb 14410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14411 # is contrary to our usage. Disable this feature.
14412 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14413 setopt NO_GLOB_SUBST
14414else
14415 case `(set -o) 2>/dev/null` in #(
14416 *posix*) :
14417 set -o posix ;; #(
14418 *) :
14419 ;;
14420esac
c6b750e1 14421fi
c6b750e1 14422
81ecdfbb
RW
14423
14424as_nl='
14425'
14426export as_nl
14427# Printing a long string crashes Solaris 7 /usr/bin/printf.
14428as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14429as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14431# Prefer a ksh shell builtin over an external printf program on Solaris,
14432# but without wasting forks for bash or zsh.
14433if test -z "$BASH_VERSION$ZSH_VERSION" \
14434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14435 as_echo='print -r --'
14436 as_echo_n='print -rn --'
14437elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14438 as_echo='printf %s\n'
14439 as_echo_n='printf %s'
14440else
14441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14443 as_echo_n='/usr/ucb/echo -n'
14444 else
14445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14446 as_echo_n_body='eval
14447 arg=$1;
14448 case $arg in #(
14449 *"$as_nl"*)
14450 expr "X$arg" : "X\\(.*\\)$as_nl";
14451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14452 esac;
14453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14454 '
14455 export as_echo_n_body
14456 as_echo_n='sh -c $as_echo_n_body as_echo'
14457 fi
14458 export as_echo_body
14459 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14460fi
14461
81ecdfbb
RW
14462# The user is always right.
14463if test "${PATH_SEPARATOR+set}" != set; then
14464 PATH_SEPARATOR=:
14465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14467 PATH_SEPARATOR=';'
14468 }
14469fi
14470
14471
14472# IFS
14473# We need space, tab and new line, in precisely that order. Quoting is
14474# there to prevent editors from complaining about space-tab.
14475# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14476# splitting by setting IFS to empty value.)
14477IFS=" "" $as_nl"
14478
14479# Find who we are. Look in the path if we contain no directory separator.
14480case $0 in #((
14481 *[\\/]* ) as_myself=$0 ;;
14482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483for as_dir in $PATH
14484do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14488 done
14489IFS=$as_save_IFS
14490
14491 ;;
14492esac
14493# We did not find ourselves, most probably we were run as `sh COMMAND'
14494# in which case we are not to be found in the path.
14495if test "x$as_myself" = x; then
14496 as_myself=$0
14497fi
14498if test ! -f "$as_myself"; then
14499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14500 exit 1
14501fi
c6b750e1 14502
81ecdfbb
RW
14503# Unset variables that we do not need and which cause bugs (e.g. in
14504# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14505# suppresses any "Segmentation fault" message there. '((' could
14506# trigger a bug in pdksh 5.2.14.
14507for as_var in BASH_ENV ENV MAIL MAILPATH
14508do eval test x\${$as_var+set} = xset \
14509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14510done
c6b750e1
DJ
14511PS1='$ '
14512PS2='> '
14513PS4='+ '
14514
14515# NLS nuisances.
81ecdfbb
RW
14516LC_ALL=C
14517export LC_ALL
14518LANGUAGE=C
14519export LANGUAGE
14520
14521# CDPATH.
14522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14523
14524
14525# as_fn_error ERROR [LINENO LOG_FD]
14526# ---------------------------------
14527# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14528# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14529# script with status $?, using 1 if that was 0.
14530as_fn_error ()
14531{
14532 as_status=$?; test $as_status -eq 0 && as_status=1
14533 if test "$3"; then
14534 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14536 fi
81ecdfbb
RW
14537 $as_echo "$as_me: error: $1" >&2
14538 as_fn_exit $as_status
14539} # as_fn_error
14540
14541
14542# as_fn_set_status STATUS
14543# -----------------------
14544# Set $? to STATUS, without forking.
14545as_fn_set_status ()
14546{
14547 return $1
14548} # as_fn_set_status
14549
14550# as_fn_exit STATUS
14551# -----------------
14552# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14553as_fn_exit ()
14554{
14555 set +e
14556 as_fn_set_status $1
14557 exit $1
14558} # as_fn_exit
14559
14560# as_fn_unset VAR
14561# ---------------
14562# Portably unset VAR.
14563as_fn_unset ()
14564{
14565 { eval $1=; unset $1;}
14566}
14567as_unset=as_fn_unset
14568# as_fn_append VAR VALUE
14569# ----------------------
14570# Append the text in VALUE to the end of the definition contained in VAR. Take
14571# advantage of any shell optimizations that allow amortized linear growth over
14572# repeated appends, instead of the typical quadratic growth present in naive
14573# implementations.
14574if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14575 eval 'as_fn_append ()
14576 {
14577 eval $1+=\$2
14578 }'
14579else
14580 as_fn_append ()
14581 {
14582 eval $1=\$$1\$2
14583 }
14584fi # as_fn_append
14585
14586# as_fn_arith ARG...
14587# ------------------
14588# Perform arithmetic evaluation on the ARGs, and store the result in the
14589# global $as_val. Take advantage of shells that can avoid forks. The arguments
14590# must be portable across $(()) and expr.
14591if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14592 eval 'as_fn_arith ()
14593 {
14594 as_val=$(( $* ))
14595 }'
14596else
14597 as_fn_arith ()
14598 {
14599 as_val=`expr "$@" || test $? -eq 1`
14600 }
14601fi # as_fn_arith
14602
c6b750e1 14603
81ecdfbb
RW
14604if expr a : '\(a\)' >/dev/null 2>&1 &&
14605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14606 as_expr=expr
14607else
14608 as_expr=false
14609fi
14610
81ecdfbb 14611if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14612 as_basename=basename
14613else
14614 as_basename=false
14615fi
14616
81ecdfbb
RW
14617if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14618 as_dirname=dirname
14619else
14620 as_dirname=false
14621fi
c6b750e1 14622
81ecdfbb 14623as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14624$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14625 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14627$as_echo X/"$0" |
14628 sed '/^.*\/\([^/][^/]*\)\/*$/{
14629 s//\1/
14630 q
14631 }
14632 /^X\/\(\/\/\)$/{
14633 s//\1/
14634 q
14635 }
14636 /^X\/\(\/\).*/{
14637 s//\1/
14638 q
14639 }
14640 s/.*/./; q'`
c6b750e1 14641
c6b750e1
DJ
14642# Avoid depending upon Character Ranges.
14643as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14644as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14645as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14646as_cr_digits='0123456789'
14647as_cr_alnum=$as_cr_Letters$as_cr_digits
14648
81ecdfbb
RW
14649ECHO_C= ECHO_N= ECHO_T=
14650case `echo -n x` in #(((((
14651-n*)
14652 case `echo 'xy\c'` in
14653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14654 xy) ECHO_C='\c';;
14655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14656 ECHO_T=' ';;
14657 esac;;
14658*)
14659 ECHO_N='-n';;
c6b750e1
DJ
14660esac
14661
81ecdfbb
RW
14662rm -f conf$$ conf$$.exe conf$$.file
14663if test -d conf$$.dir; then
14664 rm -f conf$$.dir/conf$$.file
c6b750e1 14665else
81ecdfbb
RW
14666 rm -f conf$$.dir
14667 mkdir conf$$.dir 2>/dev/null
c6b750e1 14668fi
81ecdfbb
RW
14669if (echo >conf$$.file) 2>/dev/null; then
14670 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14671 as_ln_s='ln -s'
81ecdfbb
RW
14672 # ... but there are two gotchas:
14673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14675 # In both cases, we have to default to `cp -p'.
14676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14677 as_ln_s='cp -p'
14678 elif ln conf$$.file conf$$ 2>/dev/null; then
14679 as_ln_s=ln
14680 else
14681 as_ln_s='cp -p'
c6b750e1 14682 fi
c6b750e1
DJ
14683else
14684 as_ln_s='cp -p'
14685fi
81ecdfbb
RW
14686rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14687rmdir conf$$.dir 2>/dev/null
14688
14689
14690# as_fn_mkdir_p
14691# -------------
14692# Create "$as_dir" as a directory, including parents if necessary.
14693as_fn_mkdir_p ()
14694{
14695
14696 case $as_dir in #(
14697 -*) as_dir=./$as_dir;;
14698 esac
14699 test -d "$as_dir" || eval $as_mkdir_p || {
14700 as_dirs=
14701 while :; do
14702 case $as_dir in #(
14703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14704 *) as_qdir=$as_dir;;
14705 esac
14706 as_dirs="'$as_qdir' $as_dirs"
14707 as_dir=`$as_dirname -- "$as_dir" ||
14708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$as_dir" : 'X\(//\)[^/]' \| \
14710 X"$as_dir" : 'X\(//\)$' \| \
14711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14712$as_echo X"$as_dir" |
14713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14714 s//\1/
14715 q
14716 }
14717 /^X\(\/\/\)[^/].*/{
14718 s//\1/
14719 q
14720 }
14721 /^X\(\/\/\)$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\(\/\).*/{
14726 s//\1/
14727 q
14728 }
14729 s/.*/./; q'`
14730 test -d "$as_dir" && break
14731 done
14732 test -z "$as_dirs" || eval "mkdir $as_dirs"
14733 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14734
c6b750e1 14735
81ecdfbb 14736} # as_fn_mkdir_p
c6b750e1 14737if mkdir -p . 2>/dev/null; then
81ecdfbb 14738 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14739else
14740 test -d ./-p && rmdir ./-p
14741 as_mkdir_p=false
14742fi
14743
81ecdfbb
RW
14744if test -x / >/dev/null 2>&1; then
14745 as_test_x='test -x'
14746else
14747 if ls -dL / >/dev/null 2>&1; then
14748 as_ls_L_option=L
14749 else
14750 as_ls_L_option=
14751 fi
14752 as_test_x='
14753 eval sh -c '\''
14754 if test -d "$1"; then
14755 test -d "$1/.";
14756 else
14757 case $1 in #(
14758 -*)set "./$1";;
14759 esac;
14760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14761 ???[sx]*):;;*)false;;esac;fi
14762 '\'' sh
14763 '
14764fi
14765as_executable_p=$as_test_x
c6b750e1
DJ
14766
14767# Sed expression to map a string onto a valid CPP name.
14768as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14769
14770# Sed expression to map a string onto a valid variable name.
14771as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14772
14773
c6b750e1 14774exec 6>&1
81ecdfbb
RW
14775## ----------------------------------- ##
14776## Main body of $CONFIG_STATUS script. ##
14777## ----------------------------------- ##
14778_ASEOF
14779test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14780
14781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14782# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14783# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14784# values after options handling.
14785ac_log="
c6b750e1 14786This file was extended by $as_me, which was
81ecdfbb 14787generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14788
14789 CONFIG_FILES = $CONFIG_FILES
14790 CONFIG_HEADERS = $CONFIG_HEADERS
14791 CONFIG_LINKS = $CONFIG_LINKS
14792 CONFIG_COMMANDS = $CONFIG_COMMANDS
14793 $ $0 $@
14794
81ecdfbb
RW
14795on `(hostname || uname -n) 2>/dev/null | sed 1q`
14796"
14797
c6b750e1
DJ
14798_ACEOF
14799
81ecdfbb
RW
14800case $ac_config_files in *"
14801"*) set x $ac_config_files; shift; ac_config_files=$*;;
14802esac
c6b750e1 14803
c6b750e1 14804
c6b750e1 14805
81ecdfbb
RW
14806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807# Files that config.status was made for.
14808config_files="$ac_config_files"
c6b750e1 14809
81ecdfbb 14810_ACEOF
c6b750e1 14811
81ecdfbb 14812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14813ac_cs_usage="\
81ecdfbb
RW
14814\`$as_me' instantiates files and other configuration actions
14815from templates according to the current configuration. Unless the files
14816and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14817
81ecdfbb 14818Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14819
14820 -h, --help print this help, then exit
81ecdfbb
RW
14821 -V, --version print version number and configuration settings, then exit
14822 -q, --quiet, --silent
14823 do not print progress messages
c6b750e1
DJ
14824 -d, --debug don't remove temporary files
14825 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14826 --file=FILE[:TEMPLATE]
14827 instantiate the configuration file FILE
c6b750e1
DJ
14828
14829Configuration files:
14830$config_files
14831
81ecdfbb 14832Report bugs to the package provider."
c6b750e1 14833
81ecdfbb
RW
14834_ACEOF
14835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14836ac_cs_version="\\
14837config.status
81ecdfbb
RW
14838configured by $0, generated by GNU Autoconf 2.64,
14839 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14840
81ecdfbb 14841Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14842This config.status script is free software; the Free Software Foundation
14843gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14844
14845ac_pwd='$ac_pwd'
14846srcdir='$srcdir'
14847INSTALL='$INSTALL'
8e957354 14848AWK='$AWK'
81ecdfbb 14849test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14850_ACEOF
14851
81ecdfbb
RW
14852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14854ac_need_defaults=:
14855while test $# != 0
a0da8069 14856do
c6b750e1
DJ
14857 case $1 in
14858 --*=*)
81ecdfbb
RW
14859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14861 ac_shift=:
14862 ;;
81ecdfbb 14863 *)
c6b750e1
DJ
14864 ac_option=$1
14865 ac_optarg=$2
14866 ac_shift=shift
14867 ;;
c6b750e1
DJ
14868 esac
14869
14870 case $ac_option in
14871 # Handling of the options.
a0da8069 14872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14873 ac_cs_recheck=: ;;
81ecdfbb
RW
14874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14875 $as_echo "$ac_cs_version"; exit ;;
14876 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14877 debug=: ;;
14878 --file | --fil | --fi | --f )
14879 $ac_shift
81ecdfbb
RW
14880 case $ac_optarg in
14881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14882 esac
14883 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14884 ac_need_defaults=false;;
81ecdfbb
RW
14885 --he | --h | --help | --hel | -h )
14886 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14889 ac_cs_silent=: ;;
14890
14891 # This is an error.
81ecdfbb
RW
14892 -*) as_fn_error "unrecognized option: \`$1'
14893Try \`$0 --help' for more information." ;;
c6b750e1 14894
81ecdfbb
RW
14895 *) as_fn_append ac_config_targets " $1"
14896 ac_need_defaults=false ;;
c6b750e1 14897
376a0e54 14898 esac
c6b750e1 14899 shift
376a0e54
CM
14900done
14901
c6b750e1 14902ac_configure_extra_args=
376a0e54 14903
c6b750e1
DJ
14904if $ac_cs_silent; then
14905 exec 6>/dev/null
14906 ac_configure_extra_args="$ac_configure_extra_args --silent"
14907fi
376a0e54 14908
c6b750e1 14909_ACEOF
81ecdfbb 14910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14911if \$ac_cs_recheck; then
81ecdfbb
RW
14912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14913 shift
14914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14915 CONFIG_SHELL='$SHELL'
14916 export CONFIG_SHELL
14917 exec "\$@"
c6b750e1
DJ
14918fi
14919
14920_ACEOF
81ecdfbb
RW
14921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922exec 5>>config.log
14923{
14924 echo
14925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14926## Running $as_me. ##
14927_ASBOX
14928 $as_echo "$ac_log"
14929} >&5
c6b750e1 14930
81ecdfbb
RW
14931_ACEOF
14932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14933#
14934# INIT-COMMANDS
14935#
14936extrasub_build="$extrasub_build"
14937 extrasub_host="$extrasub_host"
14938 extrasub_target="$extrasub_target"
14939
81ecdfbb 14940_ACEOF
c6b750e1 14941
81ecdfbb 14942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14943
81ecdfbb 14944# Handling of arguments.
c6b750e1
DJ
14945for ac_config_target in $ac_config_targets
14946do
81ecdfbb
RW
14947 case $ac_config_target in
14948 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14949
14950 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14951 esac
14952done
14953
81ecdfbb 14954
c6b750e1
DJ
14955# If the user did not use the arguments to specify the items to instantiate,
14956# then the envvar interface is used. Set only those that are not.
14957# We use the long form for the default assignment because of an extremely
14958# bizarre bug on SunOS 4.1.3.
14959if $ac_need_defaults; then
14960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14961fi
14962
14963# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14964# simply because there is no reason against having it here, and in addition,
c6b750e1 14965# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14966# Hook for its removal unless debugging.
14967# Note that there is a small window in which the directory will not be cleaned:
14968# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14969$debug ||
14970{
81ecdfbb
RW
14971 tmp=
14972 trap 'exit_status=$?
14973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14974' 0
14975 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14976}
c6b750e1
DJ
14977# Create a (secure) tmp directory for tmp files.
14978
14979{
81ecdfbb 14980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14981 test -n "$tmp" && test -d "$tmp"
14982} ||
14983{
81ecdfbb
RW
14984 tmp=./conf$$-$RANDOM
14985 (umask 077 && mkdir "$tmp")
14986} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14987
14988# Set up the scripts for CONFIG_FILES section.
14989# No need to generate them if there are no CONFIG_FILES.
14990# This happens for instance with `./config.status config.h'.
14991if test -n "$CONFIG_FILES"; then
14992
14993if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14994 ac_cs_awk_getline=:
14995 ac_cs_awk_pipe_init=
14996 ac_cs_awk_read_file='
14997 while ((getline aline < (F[key])) > 0)
14998 print(aline)
14999 close(F[key])'
15000 ac_cs_awk_pipe_fini=
15001else
15002 ac_cs_awk_getline=false
15003 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15004 ac_cs_awk_read_file='
15005 print "|#_!!_#|"
15006 print "cat " F[key] " &&"
15007 '$ac_cs_awk_pipe_init
15008 # The final `:' finishes the AND list.
15009 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15010fi
15011ac_cr=`echo X | tr X '\015'`
15012# On cygwin, bash can eat \r inside `` if the user requested igncr.
15013# But we know of no other shell where ac_cr would be empty at this
15014# point, so we can use a bashism as a fallback.
15015if test "x$ac_cr" = x; then
15016 eval ac_cr=\$\'\\r\'
15017fi
15018ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15019if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15020 ac_cs_awk_cr='\r'
15021else
15022 ac_cs_awk_cr=$ac_cr
15023fi
15024
15025echo 'BEGIN {' >"$tmp/subs1.awk" &&
15026_ACEOF
15027
15028# Create commands to substitute file output variables.
c6b750e1 15029{
81ecdfbb
RW
15030 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15031 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15032 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15033 echo "_ACAWK" &&
15034 echo "_ACEOF"
15035} >conf$$files.sh &&
15036. ./conf$$files.sh ||
15037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15038rm -f conf$$files.sh
c6b750e1 15039
81ecdfbb
RW
15040{
15041 echo "cat >conf$$subs.awk <<_ACEOF" &&
15042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15043 echo "_ACEOF"
15044} >conf$$subs.sh ||
15045 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15046ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15047ac_delim='%!_!# '
15048for ac_last_try in false false false false false :; do
15049 . ./conf$$subs.sh ||
15050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15051
15052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15053 if test $ac_delim_n = $ac_delim_num; then
15054 break
15055 elif $ac_last_try; then
15056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15057 else
15058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15059 fi
15060done
15061rm -f conf$$subs.sh
15062
15063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15065_ACEOF
81ecdfbb
RW
15066sed -n '
15067h
15068s/^/S["/; s/!.*/"]=/
15069p
15070g
15071s/^[^!]*!//
15072:repl
15073t repl
15074s/'"$ac_delim"'$//
15075t delim
15076:nl
15077h
15078s/\(.\{148\}\).*/\1/
15079t more1
15080s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15081p
15082n
15083b repl
15084:more1
15085s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15086p
15087g
15088s/.\{148\}//
15089t nl
15090:delim
15091h
15092s/\(.\{148\}\).*/\1/
15093t more2
15094s/["\\]/\\&/g; s/^/"/; s/$/"/
15095p
15096b
15097:more2
15098s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15099p
15100g
15101s/.\{148\}//
15102t delim
15103' <conf$$subs.awk | sed '
15104/^[^""]/{
15105 N
15106 s/\n//
15107}
15108' >>$CONFIG_STATUS || ac_write_fail=1
15109rm -f conf$$subs.awk
15110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15111_ACAWK
15112cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15113 for (key in S) S_is_set[key] = 1
15114 FS = "\a"
15115 \$ac_cs_awk_pipe_init
15116}
15117{
15118 line = $ 0
15119 nfields = split(line, field, "@")
15120 substed = 0
15121 len = length(field[1])
15122 for (i = 2; i < nfields; i++) {
15123 key = field[i]
15124 keylen = length(key)
15125 if (S_is_set[key]) {
15126 value = S[key]
15127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15128 len += length(value) + length(field[++i])
15129 substed = 1
15130 } else
15131 len += 1 + keylen
15132 }
15133 if (nfields == 3 && !substed) {
15134 key = field[2]
15135 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15136 \$ac_cs_awk_read_file
15137 next
15138 }
15139 }
15140 print line
15141}
15142\$ac_cs_awk_pipe_fini
15143_ACAWK
15144_ACEOF
15145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15146if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15147 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15148else
15149 cat
15150fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15151 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15152_ACEOF
15153
15154# VPATH may cause trouble with some makes, so we remove $(srcdir),
15155# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15156# trailing colons and then remove the whole line if VPATH becomes empty
15157# (actually we leave an empty line to preserve line numbers).
15158if test "x$srcdir" = x.; then
15159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15160s/:*\$(srcdir):*/:/
15161s/:*\${srcdir}:*/:/
15162s/:*@srcdir@:*/:/
15163s/^\([^=]*=[ ]*\):*/\1/
15164s/:*$//
15165s/^[^=]*=[ ]*$//
15166}'
15167fi
c6b750e1 15168
81ecdfbb
RW
15169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170fi # test -n "$CONFIG_FILES"
c6b750e1 15171
c6b750e1 15172
81ecdfbb
RW
15173eval set X " :F $CONFIG_FILES "
15174shift
15175for ac_tag
15176do
15177 case $ac_tag in
15178 :[FHLC]) ac_mode=$ac_tag; continue;;
15179 esac
15180 case $ac_mode$ac_tag in
15181 :[FHL]*:*);;
15182 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15183 :[FH]-) ac_tag=-:-;;
15184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15185 esac
15186 ac_save_IFS=$IFS
15187 IFS=:
15188 set x $ac_tag
15189 IFS=$ac_save_IFS
15190 shift
15191 ac_file=$1
15192 shift
252b5132 15193
81ecdfbb
RW
15194 case $ac_mode in
15195 :L) ac_source=$1;;
15196 :[FH])
15197 ac_file_inputs=
15198 for ac_f
15199 do
15200 case $ac_f in
15201 -) ac_f="$tmp/stdin";;
15202 *) # Look for the file first in the build tree, then in the source tree
15203 # (if the path is not absolute). The absolute path cannot be DOS-style,
15204 # because $ac_f cannot contain `:'.
15205 test -f "$ac_f" ||
15206 case $ac_f in
15207 [\\/$]*) false;;
15208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15209 esac ||
15210 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15211 esac
15212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15213 as_fn_append ac_file_inputs " '$ac_f'"
15214 done
c6b750e1 15215
81ecdfbb
RW
15216 # Let's still pretend it is `configure' which instantiates (i.e., don't
15217 # use $as_me), people would be surprised to read:
15218 # /* config.h. Generated by config.status. */
15219 configure_input='Generated from '`
15220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15221 `' by configure.'
15222 if test x"$ac_file" != x-; then
15223 configure_input="$ac_file. $configure_input"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15225$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15226 fi
81ecdfbb
RW
15227 # Neutralize special characters interpreted by sed in replacement strings.
15228 case $configure_input in #(
15229 *\&* | *\|* | *\\* )
15230 ac_sed_conf_input=`$as_echo "$configure_input" |
15231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15232 *) ac_sed_conf_input=$configure_input;;
15233 esac
cac3d6c4 15234
81ecdfbb
RW
15235 case $ac_tag in
15236 *:-:* | *:-) cat >"$tmp/stdin" \
15237 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15238 esac
15239 ;;
a0da8069 15240 esac
252b5132 15241
81ecdfbb 15242 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15244 X"$ac_file" : 'X\(//\)[^/]' \| \
15245 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15247$as_echo X"$ac_file" |
15248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15249 s//\1/
15250 q
15251 }
15252 /^X\(\/\/\)[^/].*/{
15253 s//\1/
15254 q
15255 }
15256 /^X\(\/\/\)$/{
15257 s//\1/
15258 q
15259 }
15260 /^X\(\/\).*/{
15261 s//\1/
15262 q
15263 }
15264 s/.*/./; q'`
15265 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15266 ac_builddir=.
252b5132 15267
81ecdfbb
RW
15268case "$ac_dir" in
15269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15270*)
15271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15272 # A ".." for each directory in $ac_dir_suffix.
15273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15274 case $ac_top_builddir_sub in
15275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15277 esac ;;
15278esac
15279ac_abs_top_builddir=$ac_pwd
15280ac_abs_builddir=$ac_pwd$ac_dir_suffix
15281# for backward compatibility:
15282ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15283
15284case $srcdir in
81ecdfbb 15285 .) # We are building in place.
c6b750e1 15286 ac_srcdir=.
81ecdfbb
RW
15287 ac_top_srcdir=$ac_top_builddir_sub
15288 ac_abs_top_srcdir=$ac_pwd ;;
15289 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15290 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15291 ac_top_srcdir=$srcdir
15292 ac_abs_top_srcdir=$srcdir ;;
15293 *) # Relative name.
15294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15295 ac_top_srcdir=$ac_top_build_prefix$srcdir
15296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15297esac
81ecdfbb 15298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15299
252b5132 15300
81ecdfbb
RW
15301 case $ac_mode in
15302 :F)
15303 #
15304 # CONFIG_FILE
15305 #
c6b750e1
DJ
15306
15307 case $INSTALL in
15308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15310 esac
81ecdfbb 15311_ACEOF
252b5132 15312
81ecdfbb
RW
15313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314# If the template does not know about datarootdir, expand it.
15315# FIXME: This hack should be removed a few years after 2.60.
15316ac_datarootdir_hack=; ac_datarootdir_seen=
15317ac_sed_dataroot='
15318/datarootdir/ {
15319 p
15320 q
15321}
15322/@datadir@/p
15323/@docdir@/p
15324/@infodir@/p
15325/@localedir@/p
15326/@mandir@/p'
15327case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15328*datarootdir*) ac_datarootdir_seen=yes;;
15329*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15331$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15332_ACEOF
81ecdfbb
RW
15333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 ac_datarootdir_hack='
15335 s&@datadir@&$datadir&g
15336 s&@docdir@&$docdir&g
15337 s&@infodir@&$infodir&g
15338 s&@localedir@&$localedir&g
15339 s&@mandir@&$mandir&g
15340 s&\\\${datarootdir}&$datarootdir&g' ;;
15341esac
15342_ACEOF
15343
15344# Neutralize VPATH when `$srcdir' = `.'.
15345# Shell code in configure.ac might set extrasub.
15346# FIXME: do we really want to maintain this feature?
15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15349$extrasub
15350_ACEOF
81ecdfbb 15351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15352:t
15353/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15354s|@configure_input@|$ac_sed_conf_input|;t t
15355s&@top_builddir@&$ac_top_builddir_sub&;t t
15356s&@top_build_prefix@&$ac_top_build_prefix&;t t
15357s&@srcdir@&$ac_srcdir&;t t
15358s&@abs_srcdir@&$ac_abs_srcdir&;t t
15359s&@top_srcdir@&$ac_top_srcdir&;t t
15360s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15361s&@builddir@&$ac_builddir&;t t
15362s&@abs_builddir@&$ac_abs_builddir&;t t
15363s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15364s&@INSTALL@&$ac_INSTALL&;t t
15365$ac_datarootdir_hack
15366"
15367eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15368if $ac_cs_awk_getline; then
15369 $AWK -f "$tmp/subs.awk"
15370else
15371 $AWK -f "$tmp/subs.awk" | $SHELL
15372fi >$tmp/out \
15373 || as_fn_error "could not create $ac_file" "$LINENO" 5
15374
15375test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15379which seems to be undefined. Please make sure it is defined." >&5
15380$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15381which seems to be undefined. Please make sure it is defined." >&2;}
15382
15383 rm -f "$tmp/stdin"
15384 case $ac_file in
15385 -) cat "$tmp/out" && rm -f "$tmp/out";;
15386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15387 esac \
15388 || as_fn_error "could not create $ac_file" "$LINENO" 5
15389 ;;
c148b4cb 15390
c148b4cb 15391
c148b4cb 15392
81ecdfbb
RW
15393 esac
15394
06a51eac
RW
15395
15396 case $ac_file$ac_mode in
15397 "Makefile":F) sed "$extrasub_build" Makefile |
15398 sed "$extrasub_host" |
15399 sed "$extrasub_target" > mf$$
15400 mv -f mf$$ Makefile ;;
15401
15402 esac
81ecdfbb
RW
15403done # for ac_tag
15404
15405
15406as_fn_exit 0
c6b750e1 15407_ACEOF
c6b750e1
DJ
15408ac_clean_files=$ac_clean_files_save
15409
81ecdfbb
RW
15410test $ac_write_fail = 0 ||
15411 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15412
c6b750e1
DJ
15413
15414# configure is writing to config.log, and then calls config.status.
15415# config.status does its own redirection, appending to config.log.
15416# Unfortunately, on DOS this fails, as config.log is still kept open
15417# by configure, so config.status won't be able to write to it; its
15418# output is simply discarded. So we exec the FD to /dev/null,
15419# effectively closing config.log, so it can be properly (re)opened and
15420# appended to by config.status. When coming back to configure, we
15421# need to make the FD available again.
15422if test "$no_create" != yes; then
15423 ac_cs_success=:
15424 ac_config_status_args=
15425 test "$silent" = yes &&
15426 ac_config_status_args="$ac_config_status_args --quiet"
15427 exec 5>/dev/null
15428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15429 exec 5>>config.log
15430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15431 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15432 $ac_cs_success || as_fn_exit $?
15433fi
15434if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15436$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15437fi
c148b4cb 15438
This page took 1.590515 seconds and 4 git commands to generate.