Also mark ELF solib trampoline minimal symbols special
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
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.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
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
184do
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."
228 else
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."
233 fi
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
263
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
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
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'`
410
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
418
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 |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
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; }
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
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
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';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
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'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
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
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
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559host_shared
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574READELF_FOR_TARGET
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
583GOC_FOR_TARGET
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
589READELF
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
616GOC_FOR_BUILD
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
626target_configdirs
627configdirs
628build_configdirs
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
636target_configargs
637host_configargs
638build_configargs
639BUILD_CONFIG
640LDFLAGS_FOR_TARGET
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
646extra_host_libiberty_configure_flags
647clooginc
648clooglibs
649islinc
650poststage1_ldflags
651poststage1_libs
652stage1_ldflags
653stage1_libs
654extra_isl_gmp_configure_flags
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
673EXTRA_CONFIGARGS_LIBJAVA
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
678AWK
679SED
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
748enable_ld
749enable_libquadmath
750enable_libquadmath_support
751enable_libada
752enable_libssp
753enable_libstdcxx
754enable_static_libjava
755enable_bootstrap
756with_mpc
757with_mpc_include
758with_mpc_lib
759with_mpfr_dir
760with_mpfr
761with_mpfr_include
762with_mpfr_lib
763with_gmp_dir
764with_gmp
765with_gmp_include
766with_gmp_lib
767with_host_libstdcxx
768with_stage1_libs
769with_stage1_ldflags
770with_boot_libs
771with_boot_ldflags
772with_cloog
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
777with_cloog_include
778with_cloog_lib
779enable_cloog_version_check
780enable_lto
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
785with_build_config
786enable_vtable_verify
787enable_serial_configure
788with_build_time_tools
789enable_maintainer_mode
790enable_stage1_checking
791enable_werror
792enable_host_shared
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
805build_configargs
806host_configargs
807target_configargs
808AR
809AS
810DLLTOOL
811LD
812LIPO
813NM
814RANLIB
815STRIP
816WINDRES
817WINDMC
818OBJCOPY
819OBJDUMP
820READELF
821CC_FOR_TARGET
822CXX_FOR_TARGET
823GCC_FOR_TARGET
824GCJ_FOR_TARGET
825GFORTRAN_FOR_TARGET
826GOC_FOR_TARGET
827AR_FOR_TARGET
828AS_FOR_TARGET
829DLLTOOL_FOR_TARGET
830LD_FOR_TARGET
831LIPO_FOR_TARGET
832NM_FOR_TARGET
833OBJDUMP_FOR_TARGET
834RANLIB_FOR_TARGET
835READELF_FOR_TARGET
836STRIP_FOR_TARGET
837WINDRES_FOR_TARGET
838WINDMC_FOR_TARGET'
839
840
841# Initialize some variables set by options.
842ac_init_help=
843ac_init_version=false
844ac_unrecognized_opts=
845ac_unrecognized_sep=
846# The variables have the same names as the options, with
847# dashes changed to underlines.
848cache_file=/dev/null
849exec_prefix=NONE
850no_create=
851no_recursion=
852prefix=NONE
853program_prefix=NONE
854program_suffix=NONE
855program_transform_name=s,x,x,
856silent=
857site=
858srcdir=
859verbose=
860x_includes=NONE
861x_libraries=NONE
862
863# Installation directory options.
864# These are left unexpanded so users can "make install exec_prefix=/foo"
865# and all the variables that are supposed to be based on exec_prefix
866# by default will actually change.
867# Use braces instead of parens because sh, perl, etc. also accept them.
868# (The list follows the same order as the GNU Coding Standards.)
869bindir='${exec_prefix}/bin'
870sbindir='${exec_prefix}/sbin'
871libexecdir='${exec_prefix}/libexec'
872datarootdir='${prefix}/share'
873datadir='${datarootdir}'
874sysconfdir='${prefix}/etc'
875sharedstatedir='${prefix}/com'
876localstatedir='${prefix}/var'
877includedir='${prefix}/include'
878oldincludedir='/usr/include'
879docdir='${datarootdir}/doc/${PACKAGE}'
880infodir='${datarootdir}/info'
881htmldir='${docdir}'
882dvidir='${docdir}'
883pdfdir='${docdir}'
884psdir='${docdir}'
885libdir='${exec_prefix}/lib'
886localedir='${datarootdir}/locale'
887mandir='${datarootdir}/man'
888
889ac_prev=
890ac_dashdash=
891for ac_option
892do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182"with_$ac_useropt"
1183"*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198"with_$ac_useropt"
1199"*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224Try \`$0 --help' for more information."
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 ;;
1244
1245 esac
1246done
1247
1248if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1251fi
1252
1253if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259fi
1260
1261# Check all directory arguments for consistency.
1262for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280done
1281
1282# There might be people who depend on the old broken behavior: `$host'
1283# used to hold the argument of --host etc.
1284# FIXME: To remove some day.
1285build=$build_alias
1286host=$host_alias
1287target=$target_alias
1288
1289# FIXME: To remove some day.
1290if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1312
1313
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1344 fi
1345else
1346 ac_srcdir_defaulted=no
1347fi
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1369 ;;
1370esac
1371ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372
1373for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387\`configure' configures this package to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457
1458 cat <<\_ACEOF
1459
1460Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --disable-libstdcxx do not build libstdc++-v3 directory
1472 --enable-static-libjava[=ARG]
1473 build static libjava [default=no]
1474 --enable-bootstrap enable bootstrapping [yes if native build]
1475 --disable-isl-version-check
1476 disable check for ISL version
1477 --disable-cloog-version-check
1478 disable check for CLooG version
1479 --enable-lto enable link time optimization support
1480 --enable-stage1-languages[=all]
1481 choose additional languages to build during stage1.
1482 Mostly useful for compiler development
1483 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1484 Objective-C runtime
1485 --enable-vtable-verify Enable vtable verification feature
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497 --enable-host-shared build host code as shared libraries
1498
1499Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-build-libsubdir=DIR Directory where to find libraries for build system
1503 --with-mpc=PATH specify prefix directory for installed MPC package.
1504 Equivalent to --with-mpc-include=PATH/include plus
1505 --with-mpc-lib=PATH/lib
1506 --with-mpc-include=PATH specify directory for installed MPC include files
1507 --with-mpc-lib=PATH specify directory for the installed MPC library
1508 --with-mpfr-dir=PATH this option has been REMOVED
1509 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1510 Equivalent to --with-mpfr-include=PATH/include plus
1511 --with-mpfr-lib=PATH/lib
1512 --with-mpfr-include=PATH
1513 specify directory for installed MPFR include files
1514 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1515 --with-gmp-dir=PATH this option has been REMOVED
1516 --with-gmp=PATH specify prefix directory for the installed GMP
1517 package. Equivalent to
1518 --with-gmp-include=PATH/include plus
1519 --with-gmp-lib=PATH/lib
1520 --with-gmp-include=PATH specify directory for installed GMP include files
1521 --with-gmp-lib=PATH specify directory for the installed GMP library
1522 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1523 linking with PPL
1524 --with-stage1-libs=LIBS libraries for stage1
1525 --with-stage1-ldflags=FLAGS
1526 linker flags for stage1
1527 --with-boot-libs=LIBS libraries for stage2 and later
1528 --with-boot-ldflags=FLAGS
1529 linker flags for stage2 and later
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-isl=PATH Specify prefix directory for the installed ISL
1535 package. Equivalent to
1536 --with-isl-include=PATH/include plus
1537 --with-isl-lib=PATH/lib
1538 --with-isl-include=PATH Specify directory for installed ISL include files
1539 --with-isl-lib=PATH Specify the directory for the installed ISL library
1540 --with-cloog-include=PATH
1541 Specify directory for installed CLooG include files
1542 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1543 library
1544 --with-build-sysroot=SYSROOT
1545 use sysroot as the system root during the build
1546 --with-debug-prefix-map='A=B C=D ...'
1547 map A to B, C to D ... in debug information
1548 --with-build-config='NAME NAME2...'
1549 use config/NAME.mk build configuration
1550 --with-build-time-tools=PATH
1551 use given path to find target tools during the build
1552
1553Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 build_configargs
1564 additional configure arguments for build directories
1565 host_configargs
1566 additional configure arguments for host directories
1567 target_configargs
1568 additional configure arguments for target directories
1569 AR AR for the host
1570 AS AS for the host
1571 DLLTOOL DLLTOOL for the host
1572 LD LD for the host
1573 LIPO LIPO for the host
1574 NM NM for the host
1575 RANLIB RANLIB for the host
1576 STRIP STRIP for the host
1577 WINDRES WINDRES for the host
1578 WINDMC WINDMC for the host
1579 OBJCOPY OBJCOPY for the host
1580 OBJDUMP OBJDUMP for the host
1581 READELF READELF for the host
1582 CC_FOR_TARGET
1583 CC for the target
1584 CXX_FOR_TARGET
1585 CXX for the target
1586 GCC_FOR_TARGET
1587 GCC for the target
1588 GCJ_FOR_TARGET
1589 GCJ for the target
1590 GFORTRAN_FOR_TARGET
1591 GFORTRAN for the target
1592 GOC_FOR_TARGET
1593 GOC for the target
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
1610 READELF_FOR_TARGET
1611 READELF for the target
1612 STRIP_FOR_TARGET
1613 STRIP for the target
1614 WINDRES_FOR_TARGET
1615 WINDRES for the target
1616 WINDMC_FOR_TARGET
1617 WINDMC for the target
1618
1619Use these variables to override the choices made by `configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
1622Report bugs to the package provider.
1623_ACEOF
1624ac_status=$?
1625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1634
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
1650
1651case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664esac
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1680fi
1681
1682test -n "$ac_init_help" && exit $ac_status
1683if $ac_init_version; then
1684 cat <<\_ACEOF
1685configure
1686generated by GNU Autoconf 2.64
1687
1688Copyright (C) 2009 Free Software Foundation, Inc.
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691_ACEOF
1692 exit
1693fi
1694
1695## ------------------------ ##
1696## Autoconf initialization. ##
1697## ------------------------ ##
1698
1699# ac_fn_c_try_compile LINENO
1700# --------------------------
1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_compile ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731fi
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1734
1735} # ac_fn_c_try_compile
1736
1737# ac_fn_cxx_try_compile LINENO
1738# ----------------------------
1739# Try to compile conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_cxx_try_compile ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_cxx_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769fi
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1772
1773} # ac_fn_cxx_try_compile
1774
1775# ac_fn_cxx_try_link LINENO
1776# -------------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_cxx_try_link ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_cxx_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 $as_test_x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1818
1819} # ac_fn_cxx_try_link
1820
1821# ac_fn_c_try_link LINENO
1822# -----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_c_try_link ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856fi
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1864
1865} # ac_fn_c_try_link
1866
1867# ac_fn_c_try_run LINENO
1868# ----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870# that executables *can* be run.
1871ac_fn_c_try_run ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885 { { case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_try") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; }; }; then :
1895 ac_retval=0
1896else
1897 $as_echo "$as_me: program exited with status $ac_status" >&5
1898 $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=$ac_status
1902fi
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
1906
1907} # ac_fn_c_try_run
1908cat >config.log <<_ACEOF
1909This file contains any messages produced by compilers while
1910running configure, to aid debugging if configure makes a mistake.
1911
1912It was created by $as_me, which was
1913generated by GNU Autoconf 2.64. Invocation command line was
1914
1915 $ $0 $@
1916
1917_ACEOF
1918exec 5>>config.log
1919{
1920cat <<_ASUNAME
1921## --------- ##
1922## Platform. ##
1923## --------- ##
1924
1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933
1934/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1941
1942_ASUNAME
1943
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1950 done
1951IFS=$as_save_IFS
1952
1953} >&5
1954
1955cat >&5 <<_ACEOF
1956
1957
1958## ----------- ##
1959## Core tests. ##
1960## ----------- ##
1961
1962_ACEOF
1963
1964
1965# Keep a trace of the command line.
1966# Strip out --no-create and --no-recursion so they do not pile up.
1967# Strip out --silent because we don't want to record it for future runs.
1968# Also quote any args containing shell meta-characters.
1969# Make two passes to allow for proper duplicate-argument suppression.
1970ac_configure_args=
1971ac_configure_args0=
1972ac_configure_args1=
1973ac_must_keep_next=false
1974for ac_pass in 1 2
1975do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 2)
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
2005 as_fn_append ac_configure_args " '$ac_arg'"
2006 ;;
2007 esac
2008 done
2009done
2010{ ac_configure_args0=; unset ac_configure_args0;}
2011{ ac_configure_args1=; unset ac_configure_args1;}
2012
2013# When interrupted or exit'd, cleanup temporary files, and complete
2014# config.log. We remove comments because anyway the quotes in there
2015# would cause problems or look ugly.
2016# WARNING: Use '\'' to represent an apostrophe within the trap.
2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2020 {
2021 echo
2022
2023 cat <<\_ASBOX
2024## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##
2027_ASBOX
2028 echo
2029 # The following way of writing the cache mishandles newlines in values,
2030(
2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in #(
2034 *${as_nl}*)
2035 case $ac_var in #(
2036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 esac
2039 case $ac_var in #(
2040 _ | IFS | as_nl) ;; #(
2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042 *) { eval $ac_var=; unset $ac_var;} ;;
2043 esac ;;
2044 esac
2045 done
2046 (set) 2>&1 |
2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048 *${as_nl}ac_space=\ *)
2049 sed -n \
2050 "s/'\''/'\''\\\\'\'''\''/g;
2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 ;; #(
2053 *)
2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2055 ;;
2056 esac |
2057 sort
2058)
2059 echo
2060
2061 cat <<\_ASBOX
2062## ----------------- ##
2063## Output variables. ##
2064## ----------------- ##
2065_ASBOX
2066 echo
2067 for ac_var in $ac_subst_vars
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
2078 cat <<\_ASBOX
2079## ------------------- ##
2080## File substitutions. ##
2081## ------------------- ##
2082_ASBOX
2083 echo
2084 for ac_var in $ac_subst_files
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
2096 cat <<\_ASBOX
2097## ----------- ##
2098## confdefs.h. ##
2099## ----------- ##
2100_ASBOX
2101 echo
2102 cat confdefs.h
2103 echo
2104 fi
2105 test "$ac_signal" != 0 &&
2106 $as_echo "$as_me: caught signal $ac_signal"
2107 $as_echo "$as_me: exit $exit_status"
2108 } >&5
2109 rm -f core *.core core.conftest.* &&
2110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111 exit $exit_status
2112' 0
2113for ac_signal in 1 2 13 15; do
2114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2115done
2116ac_signal=0
2117
2118# confdefs.h avoids OS command line length limits that DEFS can exceed.
2119rm -f -r conftest* confdefs.h
2120
2121$as_echo "/* confdefs.h */" > confdefs.h
2122
2123# Predefined preprocessor variables.
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_NAME "$PACKAGE_NAME"
2127_ACEOF
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_VERSION "$PACKAGE_VERSION"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_STRING "$PACKAGE_STRING"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_URL "$PACKAGE_URL"
2147_ACEOF
2148
2149
2150# Let the site file select an alternate cache file if it wants to.
2151# Prefer an explicitly selected file to automatically selected ones.
2152ac_site_file1=NONE
2153ac_site_file2=NONE
2154if test -n "$CONFIG_SITE"; then
2155 ac_site_file1=$CONFIG_SITE
2156elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2159else
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
2162fi
2163for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164do
2165 test "x$ac_site_file" = xNONE && continue
2166 if test -r "$ac_site_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169 sed 's/^/| /' "$ac_site_file" >&5
2170 . "$ac_site_file"
2171 fi
2172done
2173
2174if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special
2176 # files actually), so we avoid doing that.
2177 if test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179$as_echo "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2184 fi
2185else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187$as_echo "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2189fi
2190
2191# Check that the precious variables saved in the cache have kept the same
2192# value.
2193ac_cache_corrupted=false
2194for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2200 set,)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,set)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,);;
2209 *)
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 esac
2239 fi
2240done
2241if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247fi
2248## -------------------- ##
2249## Main body of script. ##
2250## -------------------- ##
2251
2252ac_ext=c
2253ac_cpp='$CPP $CPPFLAGS'
2254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266progname=$0
2267# if PWD already has a value, it is probably wrong.
2268if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2269
2270# Export original configure arguments for use by sub-configures.
2271# Quote arguments with shell meta charatcers.
2272TOPLEVEL_CONFIGURE_ARGUMENTS=
2273set -- "$progname" "$@"
2274for ac_arg
2275do
2276 case "$ac_arg" in
2277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2279 # if the argument is of the form -foo=baz, quote the baz part only
2280 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2281 *) ;;
2282 esac
2283 # Add the quoted argument to the list.
2284 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2285done
2286if test "$silent" = yes; then
2287 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2288fi
2289# Remove the initial space we just introduced and, as these will be
2290# expanded by make, quote '$'.
2291TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2292
2293
2294# Find the build, host, and target systems.
2295ac_aux_dir=
2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297 for ac_t in install-sh install.sh shtool; do
2298 if test -f "$ac_dir/$ac_t"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/$ac_t -c"
2301 break 2
2302 fi
2303 done
2304done
2305if test -z "$ac_aux_dir"; then
2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2307fi
2308
2309# These three variables are undocumented and unsupported,
2310# and are intended to be withdrawn in a future Autoconf release.
2311# They can cause serious problems if a builder's source tree is in a directory
2312# whose full name contains unusual characters.
2313ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2314ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2315ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316
2317
2318# Make sure we can run config.sub.
2319$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2320 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2321
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2323$as_echo_n "checking build system type... " >&6; }
2324if test "${ac_cv_build+set}" = set; then :
2325 $as_echo_n "(cached) " >&6
2326else
2327 ac_build_alias=$build_alias
2328test "x$ac_build_alias" = x &&
2329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2330test "x$ac_build_alias" = x &&
2331 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2332ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2334
2335fi
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2337$as_echo "$ac_cv_build" >&6; }
2338case $ac_cv_build in
2339*-*-*) ;;
2340*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2341esac
2342build=$ac_cv_build
2343ac_save_IFS=$IFS; IFS='-'
2344set x $ac_cv_build
2345shift
2346build_cpu=$1
2347build_vendor=$2
2348shift; shift
2349# Remember, the first character of IFS is used to create $*,
2350# except with old shells:
2351build_os=$*
2352IFS=$ac_save_IFS
2353case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2354
2355
2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
2359esac
2360
2361
2362
2363 case ${host_alias} in
2364 "") host_noncanonical=${build_noncanonical} ;;
2365 *) host_noncanonical=${host_alias} ;;
2366esac
2367
2368
2369
2370 case ${target_alias} in
2371 "") target_noncanonical=${host_noncanonical} ;;
2372 *) target_noncanonical=${target_alias} ;;
2373esac
2374
2375
2376
2377
2378test "$host_noncanonical" = "$target_noncanonical" &&
2379 test "$program_prefix$program_suffix$program_transform_name" = \
2380 NONENONEs,x,x, &&
2381 program_transform_name=s,y,y,
2382
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384$as_echo_n "checking host system type... " >&6; }
2385if test "${ac_cv_host+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387else
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2393fi
2394
2395fi
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397$as_echo "$ac_cv_host" >&6; }
2398case $ac_cv_host in
2399*-*-*) ;;
2400*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401esac
2402host=$ac_cv_host
2403ac_save_IFS=$IFS; IFS='-'
2404set x $ac_cv_host
2405shift
2406host_cpu=$1
2407host_vendor=$2
2408shift; shift
2409# Remember, the first character of IFS is used to create $*,
2410# except with old shells:
2411host_os=$*
2412IFS=$ac_save_IFS
2413case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417$as_echo_n "checking target system type... " >&6; }
2418if test "${ac_cv_target+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2420else
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2426fi
2427
2428fi
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430$as_echo "$ac_cv_target" >&6; }
2431case $ac_cv_target in
2432*-*-*) ;;
2433*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2434esac
2435target=$ac_cv_target
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_target
2438shift
2439target_cpu=$1
2440target_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444target_os=$*
2445IFS=$ac_save_IFS
2446case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447
2448
2449# The aliases save the names the user supplied, while $host etc.
2450# will get canonicalized.
2451test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
2455
2456test "$program_prefix" != NONE &&
2457 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2458# Use a double $ so make ignores it.
2459test "$program_suffix" != NONE &&
2460 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461# Double any \ or $.
2462# By default was `s,x,x', remove it if useless.
2463ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2465
2466
2467
2468# Get 'install' or 'install-sh' and its variants.
2469# Find a good install program. We prefer a C program (faster),
2470# so one script is as good as another. But avoid the broken or
2471# incompatible versions:
2472# SysV /etc/install, /usr/sbin/install
2473# SunOS /usr/etc/install
2474# IRIX /sbin/install
2475# AIX /bin/install
2476# AmigaOS /C/install, which installs bootblocks on floppy discs
2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480# OS/2's system install, which has a completely different semantic
2481# ./install, which can be erroneously created by make from ./install.sh.
2482# Reject install programs that cannot install multiple files.
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2484$as_echo_n "checking for a BSD-compatible install... " >&6; }
2485if test -z "$INSTALL"; then
2486if test "${ac_cv_path_install+set}" = set; then :
2487 $as_echo_n "(cached) " >&6
2488else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 # Account for people who put trailing slashes in PATH elements.
2495case $as_dir/ in #((
2496 ./ | .// | /[cC]/* | \
2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 /usr/ucb/* ) ;;
2500 *)
2501 # OSF1 and SCO ODT 3.0 have their own names for install.
2502 # Don't use installbsd from OSF since it installs stuff as root
2503 # by default.
2504 for ac_prog in ginstall scoinst install; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2507 if test $ac_prog = install &&
2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509 # AIX install. It has an incompatible calling convention.
2510 :
2511 elif test $ac_prog = install &&
2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # program-specific install script used by HP pwplus--don't use.
2514 :
2515 else
2516 rm -rf conftest.one conftest.two conftest.dir
2517 echo one > conftest.one
2518 echo two > conftest.two
2519 mkdir conftest.dir
2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2521 test -s conftest.one && test -s conftest.two &&
2522 test -s conftest.dir/conftest.one &&
2523 test -s conftest.dir/conftest.two
2524 then
2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2526 break 3
2527 fi
2528 fi
2529 fi
2530 done
2531 done
2532 ;;
2533esac
2534
2535 done
2536IFS=$as_save_IFS
2537
2538rm -rf conftest.one conftest.two conftest.dir
2539
2540fi
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2543 else
2544 # As a last resort, use the slow shell script. Don't cache a
2545 # value for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the value is a relative name.
2548 INSTALL=$ac_install_sh
2549 fi
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2552$as_echo "$INSTALL" >&6; }
2553
2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555# It thinks the first close brace ends the variable substitution.
2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2559
2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2563$as_echo_n "checking whether ln works... " >&6; }
2564if test "${acx_cv_prog_LN+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566else
2567 rm -f conftestdata_t
2568echo >conftestdata_f
2569if ln conftestdata_f conftestdata_t 2>/dev/null
2570then
2571 acx_cv_prog_LN=ln
2572else
2573 acx_cv_prog_LN=no
2574fi
2575rm -f conftestdata_f conftestdata_t
2576
2577fi
2578if test $acx_cv_prog_LN = no; then
2579 LN="cp"
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2581$as_echo "no, using $LN" >&6; }
2582else
2583 LN="$acx_cv_prog_LN"
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585$as_echo "yes" >&6; }
2586fi
2587
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2589$as_echo_n "checking whether ln -s works... " >&6; }
2590LN_S=$as_ln_s
2591if test "$LN_S" = "ln -s"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593$as_echo "yes" >&6; }
2594else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2596$as_echo "no, using $LN_S" >&6; }
2597fi
2598
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2600$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2601if test "${ac_cv_path_SED+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603else
2604 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2605 for ac_i in 1 2 3 4 5 6 7; do
2606 ac_script="$ac_script$as_nl$ac_script"
2607 done
2608 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2609 { ac_script=; unset ac_script;}
2610 if test -z "$SED"; then
2611 ac_path_SED_found=false
2612 # Loop through the user's path and test for each of PROGNAME-LIST
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_prog in sed gsed; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2621 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2622# Check for GNU ac_path_SED and select it if it is found.
2623 # Check for GNU $ac_path_SED
2624case `"$ac_path_SED" --version 2>&1` in
2625*GNU*)
2626 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2627*)
2628 ac_count=0
2629 $as_echo_n 0123456789 >"conftest.in"
2630 while :
2631 do
2632 cat "conftest.in" "conftest.in" >"conftest.tmp"
2633 mv "conftest.tmp" "conftest.in"
2634 cp "conftest.in" "conftest.nl"
2635 $as_echo '' >> "conftest.nl"
2636 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2638 as_fn_arith $ac_count + 1 && ac_count=$as_val
2639 if test $ac_count -gt ${ac_path_SED_max-0}; then
2640 # Best one so far, save it but keep looking for a better one
2641 ac_cv_path_SED="$ac_path_SED"
2642 ac_path_SED_max=$ac_count
2643 fi
2644 # 10*(2^10) chars as input seems more than enough
2645 test $ac_count -gt 10 && break
2646 done
2647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2648esac
2649
2650 $ac_path_SED_found && break 3
2651 done
2652 done
2653 done
2654IFS=$as_save_IFS
2655 if test -z "$ac_cv_path_SED"; then
2656 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2657 fi
2658else
2659 ac_cv_path_SED=$SED
2660fi
2661
2662fi
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2664$as_echo "$ac_cv_path_SED" >&6; }
2665 SED="$ac_cv_path_SED"
2666 rm -f conftest.sed
2667
2668for ac_prog in gawk mawk nawk awk
2669do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671set dummy $ac_prog; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if test "${ac_cv_prog_AWK+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692 done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697AWK=$ac_cv_prog_AWK
2698if test -n "$AWK"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700$as_echo "$AWK" >&6; }
2701else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706
2707 test -n "$AWK" && break
2708done
2709
2710
2711srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2712
2713# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2714# a relative path.
2715if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2716 INSTALL="${srcpwd}/install-sh -c"
2717fi
2718
2719# Set srcdir to "." if that's what it is.
2720# This is important for multilib support.
2721pwd=`${PWDCMD-pwd}`
2722if test "${pwd}" = "${srcpwd}" ; then
2723 srcdir=.
2724fi
2725
2726topsrcdir=$srcpwd
2727
2728extra_host_args=
2729
2730### To add a new directory to the tree, first choose whether it is a target
2731### or a host dependent tool. Then put it into the appropriate list
2732### (library or tools, host or target), doing a dependency sort.
2733
2734# Subdirs will be configured in the order listed in build_configdirs,
2735# configdirs, or target_configdirs; see the serialization section below.
2736
2737# Dependency sorting is only needed when *configuration* must be done in
2738# a particular order. In all cases a dependency should be specified in
2739# the Makefile, whether or not it's implicitly specified here.
2740
2741# Double entries in build_configdirs, configdirs, or target_configdirs may
2742# cause circular dependencies and break everything horribly.
2743
2744# these library is used by various programs built for the build
2745# environment
2746#
2747build_libs="build-libiberty"
2748
2749# these tools are built for the build environment
2750build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2751
2752# these libraries are used by various programs built for the host environment
2753#
2754host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2755
2756# these tools are built for the host environment
2757# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2758# know that we are building the simulator.
2759# binutils, gas and ld appear in that order because it makes sense to run
2760# "make check" in that particular order.
2761# If --enable-gold is used, "gold" may replace "ld".
2762host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2763
2764# libgcj represents the runtime libraries only used by gcj.
2765libgcj="target-libffi \
2766 target-zlib \
2767 target-libjava"
2768
2769# these libraries are built for the target environment, and are built after
2770# the host libraries and the host tools (which may be a cross compiler)
2771# Note that libiberty is not a target library.
2772target_libraries="target-libgcc \
2773 target-libbacktrace \
2774 target-libgloss \
2775 target-newlib \
2776 target-libgomp \
2777 target-libcilkrts \
2778 target-libatomic \
2779 target-libitm \
2780 target-libstdc++-v3 \
2781 target-libsanitizer \
2782 target-libvtv \
2783 target-libssp \
2784 target-libquadmath \
2785 target-libgfortran \
2786 target-boehm-gc \
2787 ${libgcj} \
2788 target-libobjc \
2789 target-libada \
2790 target-libgo"
2791
2792# these tools are built using the target libraries, and are intended to
2793# run only in the target environment
2794#
2795# note: any program that *uses* libraries that are in the "target_libraries"
2796# list belongs in this list.
2797#
2798target_tools="target-rda"
2799
2800################################################################################
2801
2802## All tools belong in one of the four categories, and are assigned above
2803## We assign ${configdirs} this way to remove all embedded newlines. This
2804## is important because configure will choke if they ever get through.
2805## ${configdirs} is directories we build using the host tools.
2806## ${target_configdirs} is directories we build using the target tools.
2807configdirs=`echo ${host_libs} ${host_tools}`
2808target_configdirs=`echo ${target_libraries} ${target_tools}`
2809build_configdirs=`echo ${build_libs} ${build_tools}`
2810
2811
2812
2813################################################################################
2814
2815srcname="gnu development package"
2816
2817# This gets set non-empty for some net releases of packages.
2818appdirs=""
2819
2820# Define is_cross_compiler to save on calls to 'test'.
2821is_cross_compiler=
2822if test x"${host}" = x"${target}" ; then
2823 is_cross_compiler=no
2824else
2825 is_cross_compiler=yes
2826fi
2827
2828# Find the build and target subdir names.
2829
2830# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2831# have matching libraries, they should use host libraries: Makefile.tpl
2832# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2833# However, they still use the build modules, because the corresponding
2834# host modules (e.g. bison) are only built for the host when bootstrap
2835# finishes. So:
2836# - build_subdir is where we find build modules, and never changes.
2837# - build_libsubdir is where we find build libraries, and can be overridden.
2838
2839# Prefix 'build-' so this never conflicts with target_subdir.
2840build_subdir="build-${build_noncanonical}"
2841
2842# Check whether --with-build-libsubdir was given.
2843if test "${with_build_libsubdir+set}" = set; then :
2844 withval=$with_build_libsubdir; build_libsubdir="$withval"
2845else
2846 build_libsubdir="$build_subdir"
2847fi
2848
2849# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2850if ( test $srcdir = . && test -d gcc ) \
2851 || test -d $srcdir/../host-${host_noncanonical}; then
2852 host_subdir="host-${host_noncanonical}"
2853else
2854 host_subdir=.
2855fi
2856# No prefix.
2857target_subdir=${target_noncanonical}
2858
2859# Be sure to cover against remnants of an in-tree build.
2860if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2861 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2862Use a pristine source tree when building in a separate tree" "$LINENO" 5
2863fi
2864
2865# Skipdirs are removed silently.
2866skipdirs=
2867# Noconfigdirs are removed loudly.
2868noconfigdirs=""
2869
2870use_gnu_ld=
2871# Make sure we don't let GNU ld be added if we didn't want it.
2872if test x$with_gnu_ld = xno ; then
2873 use_gnu_ld=no
2874 noconfigdirs="$noconfigdirs ld gold"
2875fi
2876
2877use_gnu_as=
2878# Make sure we don't let GNU as be added if we didn't want it.
2879if test x$with_gnu_as = xno ; then
2880 use_gnu_as=no
2881 noconfigdirs="$noconfigdirs gas"
2882fi
2883
2884use_included_zlib=
2885# Make sure we don't let ZLIB be added if we didn't want it.
2886if test x$with_system_zlib = xyes ; then
2887 use_included_zlib=no
2888 noconfigdirs="$noconfigdirs zlib"
2889fi
2890
2891# some tools are so dependent upon X11 that if we're not building with X,
2892# it's not even worth trying to configure, much less build, that tool.
2893
2894case ${with_x} in
2895 yes | "") ;; # the default value for this tree is that X11 is available
2896 no)
2897 skipdirs="${skipdirs} tk itcl libgui"
2898 # We won't be able to build gdbtk without X.
2899 enable_gdbtk=no
2900 ;;
2901 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2902esac
2903
2904# Some are only suitable for cross toolchains.
2905# Remove these if host=target.
2906cross_only="target-libgloss target-newlib target-opcodes"
2907
2908case $is_cross_compiler in
2909 no) skipdirs="${skipdirs} ${cross_only}" ;;
2910esac
2911
2912# If both --with-headers and --with-libs are specified, default to
2913# --without-newlib.
2914if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2915 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2916 if test x"${with_newlib}" = x ; then
2917 with_newlib=no
2918 fi
2919fi
2920
2921# Recognize --with-newlib/--without-newlib.
2922case ${with_newlib} in
2923 no) skipdirs="${skipdirs} target-newlib" ;;
2924 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2925esac
2926
2927# Handle --enable-gold, --enable-ld.
2928# --disable-gold [--enable-ld]
2929# Build only ld. Default option.
2930# --enable-gold [--enable-ld]
2931# Build both gold and ld. Install gold as "ld.gold", install ld
2932# as "ld.bfd" and "ld".
2933# --enable-gold=default [--enable-ld]
2934# Build both gold and ld. Install gold as "ld.gold" and "ld",
2935# install ld as "ld.bfd".
2936# --enable-gold[=default] --disable-ld
2937# Build only gold, which is then installed as both "ld.gold" and "ld".
2938# --enable-gold --enable-ld=default
2939# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940# and ld.bfd).
2941# In other words, ld is default
2942# --enable-gold=default --enable-ld=default
2943# Error.
2944
2945default_ld=
2946# Check whether --enable-gold was given.
2947if test "${enable_gold+set}" = set; then :
2948 enableval=$enable_gold; ENABLE_GOLD=$enableval
2949else
2950 ENABLE_GOLD=no
2951fi
2952
2953case "${ENABLE_GOLD}" in
2954 yes|default)
2955 # Check for ELF target.
2956 is_elf=no
2957 case "${target}" in
2958 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2959 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2960 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2961 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2962 case "${target}" in
2963 *-*-linux*aout* | *-*-linux*oldld*)
2964 ;;
2965 *)
2966 is_elf=yes
2967 ;;
2968 esac
2969 esac
2970
2971 if test "$is_elf" = "yes"; then
2972 # Check for target supported by gold.
2973 case "${target}" in
2974 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
2979 ENABLE_GOLD=yes
2980 ;;
2981 esac
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
3018
3019# Configure extra directories which are host specific
3020
3021case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024esac
3025
3026# A target can indicate whether a language isn't supported for some reason.
3027# Only spaces may be used in this macro; not newlines or tabs.
3028unsupported_languages=
3029
3030# Remove more programs from consideration, based on the host or
3031# target this usually means that a port of the program doesn't
3032# exist yet.
3033
3034case "${host}" in
3035 i[3456789]86-*-msdosdjgpp*)
3036 noconfigdirs="$noconfigdirs tcl tk itcl"
3037 ;;
3038esac
3039
3040
3041# Check whether --enable-libquadmath was given.
3042if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044else
3045 ENABLE_LIBQUADMATH=yes
3046fi
3047
3048if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3050fi
3051
3052
3053# Check whether --enable-libquadmath-support was given.
3054if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3058fi
3059
3060enable_libquadmath_support=
3061if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3063fi
3064
3065
3066# Check whether --enable-libada was given.
3067if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069else
3070 ENABLE_LIBADA=yes
3071fi
3072
3073if test "${ENABLE_LIBADA}" != "yes" ; then
3074 noconfigdirs="$noconfigdirs gnattools"
3075fi
3076
3077# Check whether --enable-libssp was given.
3078if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080else
3081 ENABLE_LIBSSP=yes
3082fi
3083
3084
3085# Check whether --enable-libstdcxx was given.
3086if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088else
3089 ENABLE_LIBSTDCXX=default
3090fi
3091
3092if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093 noconfigdirs="$noconfigdirs libstdc++-v3"
3094fi
3095
3096# Save it here so that, even in case of --enable-libgcj, if the Java
3097# front-end isn't enabled, we still get libgcj disabled.
3098libgcj_saved=$libgcj
3099case $enable_libgcj in
3100yes)
3101 # If we reset it here, it won't get added to noconfigdirs in the
3102 # target-specific build rules, so it will be forcibly enabled
3103 # (unless the Java language itself isn't enabled).
3104 libgcj=
3105 ;;
3106no)
3107 # Make sure we get it printed in the list of not supported target libs.
3108 # Don't disable libffi, though, other languages use it.
3109 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3110 # Clear libgcj_saved so that even if java is enabled libffi won't be
3111 # built.
3112 libgcj_saved=
3113 ;;
3114esac
3115
3116# Check whether --enable-static-libjava was given.
3117if test "${enable_static_libjava+set}" = set; then :
3118 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3119else
3120 ENABLE_STATIC_LIBJAVA=no
3121fi
3122
3123enable_static_libjava=
3124if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3125 enable_static_libjava=yes
3126fi
3127
3128if test x$enable_static_libjava != xyes ; then
3129 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3130fi
3131
3132
3133# Disable libgomp on non POSIX hosted systems.
3134if test x$enable_libgomp = x ; then
3135 # Enable libgomp by default on hosted POSIX systems.
3136 case "${target}" in
3137 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3138 ;;
3139 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3140 ;;
3141 *-*-solaris2* | *-*-hpux11*)
3142 ;;
3143 *-*-darwin* | *-*-aix*)
3144 ;;
3145 *)
3146 noconfigdirs="$noconfigdirs target-libgomp"
3147 ;;
3148 esac
3149fi
3150
3151# Disable libatomic on unsupported systems.
3152if test -d ${srcdir}/libatomic; then
3153 if test x$enable_libatomic = x; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3155$as_echo_n "checking for libatomic support... " >&6; }
3156 if (srcdir=${srcdir}/libatomic; \
3157 . ${srcdir}/configure.tgt; \
3158 test -n "$UNSUPPORTED")
3159 then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162 noconfigdirs="$noconfigdirs target-libatomic"
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
3166 fi
3167 fi
3168fi
3169
3170# Disable libcilkrts on unsupported systems.
3171if test -d ${srcdir}/libcilkrts; then
3172 if test x$enable_libcilkrts = x; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3174$as_echo_n "checking for libcilkrts support... " >&6; }
3175 if (srcdir=${srcdir}/libcilkrts; \
3176 . ${srcdir}/configure.tgt; \
3177 test -n "$UNSUPPORTED")
3178 then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181 noconfigdirs="$noconfigdirs target-libcilkrts"
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184$as_echo "yes" >&6; }
3185 fi
3186 fi
3187fi
3188
3189# Disable libitm on unsupported systems.
3190if test -d ${srcdir}/libitm; then
3191 if test x$enable_libitm = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3193$as_echo_n "checking for libitm support... " >&6; }
3194 if (srcdir=${srcdir}/libitm; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libitm"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204 fi
3205 fi
3206fi
3207
3208# Disable libsanitizer on unsupported systems.
3209if test -d ${srcdir}/libsanitizer; then
3210 if test x$enable_libsanitizer = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3212$as_echo_n "checking for libsanitizer support... " >&6; }
3213 if (srcdir=${srcdir}/libsanitizer; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libsanitizer"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 fi
3224 fi
3225fi
3226
3227# Disable libvtv on unsupported systems.
3228if test -d ${srcdir}/libvtv; then
3229 if test x$enable_libvtv = x; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3231$as_echo_n "checking for libvtv support... " >&6; }
3232 if (srcdir=${srcdir}/libvtv; \
3233 . ${srcdir}/configure.tgt; \
3234 test "$VTV_SUPPORTED" != "yes")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-libvtv"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 fi
3243 fi
3244fi
3245
3246# Disable libquadmath for some systems.
3247case "${target}" in
3248 avr-*-*)
3249 noconfigdirs="$noconfigdirs target-libquadmath"
3250 ;;
3251 # libquadmath is unused on AIX and libquadmath build process use of
3252 # LD_LIBRARY_PATH can break AIX bootstrap.
3253 powerpc-*-aix* | rs6000-*-aix*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3255 ;;
3256esac
3257
3258# Disable libssp for some systems.
3259case "${target}" in
3260 avr-*-*)
3261 # No hosted I/O support.
3262 noconfigdirs="$noconfigdirs target-libssp"
3263 ;;
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libssp"
3266 ;;
3267 rl78-*-*)
3268 # libssp uses a misaligned load to trigger a fault, but the RL78
3269 # doesn't fault for those - instead, it gives a build-time error
3270 # for explicit misaligned loads.
3271 noconfigdirs="$noconfigdirs target-libssp"
3272 ;;
3273esac
3274
3275# Disable libstdc++-v3 for some systems.
3276# Allow user to override this if they pass --enable-libstdc++-v3
3277if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3278 case "${target}" in
3279 *-*-vxworks*)
3280 # VxWorks uses the Dinkumware C++ library.
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3282 ;;
3283 arm*-wince-pe*)
3284 # the C++ libraries don't build on top of CE's C libraries
3285 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3286 ;;
3287 avr-*-*)
3288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 ;;
3290 esac
3291fi
3292
3293# Disable Fortran for some systems.
3294case "${target}" in
3295 mmix-*-*)
3296 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3297 unsupported_languages="$unsupported_languages fortran"
3298 ;;
3299esac
3300
3301# Disable Java if libffi is not supported.
3302case "${target}" in
3303 aarch64-*-*)
3304 ;;
3305 alpha*-*-*)
3306 ;;
3307 arm*-*-*)
3308 ;;
3309 cris-*-*)
3310 ;;
3311 frv-*-*)
3312 ;;
3313 hppa*-*-linux*)
3314 ;;
3315 hppa*-*-hpux*)
3316 ;;
3317 i?86-*-*)
3318 ;;
3319 ia64*-*-*)
3320 ;;
3321 m32r*-*-*)
3322 ;;
3323 m68k-*-*)
3324 ;;
3325 mips*-*-rtems*)
3326 ;;
3327 mips*-*-linux*)
3328 ;;
3329 powerpc*-*-linux*)
3330 ;;
3331 powerpc-*-darwin*)
3332 ;;
3333 powerpc-*-aix* | rs6000-*-aix*)
3334 ;;
3335 powerpc-*-freebsd*)
3336 ;;
3337 powerpc64-*-freebsd*)
3338 ;;
3339 powerpc*-*-rtems*)
3340 ;;
3341 s390-*-* | s390x-*-*)
3342 ;;
3343 sh-*-* | sh[34]*-*-*)
3344 ;;
3345 sh64-*-* | sh5*-*-*)
3346 ;;
3347 sparc*-*-*)
3348 ;;
3349 x86_64-*-*)
3350 ;;
3351 *-*-*)
3352 unsupported_languages="$unsupported_languages java"
3353 ;;
3354esac
3355
3356# Disable Java, libgcj or related libraries for some systems.
3357case "${target}" in
3358 powerpc-*-darwin*)
3359 ;;
3360 i[3456789]86-*-darwin*)
3361 ;;
3362 x86_64-*-darwin[912]*)
3363 ;;
3364 *-*-darwin*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 ;;
3367 *-*-netware*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3369 ;;
3370 *-*-rtems*)
3371 noconfigdirs="$noconfigdirs ${libgcj}"
3372 ;;
3373 *-*-tpf*)
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3375 ;;
3376 *-*-uclinux*)
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3378 ;;
3379 *-*-vxworks*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 alpha*-*-*vms*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3384 ;;
3385 arm-wince-pe)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3387 ;;
3388 arm*-*-symbianelf*)
3389 noconfigdirs="$noconfigdirs ${libgcj}"
3390 ;;
3391 bfin-*-*)
3392 noconfigdirs="$noconfigdirs target-boehm-gc"
3393 ;;
3394 cris-*-* | crisv32-*-*)
3395 unsupported_languages="$unsupported_languages java"
3396 case "${target}" in
3397 *-*-linux*)
3398 ;;
3399 *) # See PR46792 regarding target-libffi.
3400 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3401 esac
3402 ;;
3403 hppa*64*-*-linux*)
3404 # In this case, it's because the hppa64-linux target is for
3405 # the kernel only at this point and has no libc, and thus no
3406 # headers, crt*.o, etc., all of which are needed by these.
3407 unsupported_languages="$unsupported_languages java"
3408 ;;
3409 hppa*64*-*-hpux*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 ;;
3412 hppa*-hp-hpux11*)
3413 ;;
3414 hppa*-*-hpux*)
3415 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3416 # build on HP-UX 10.20.
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
3419 ia64*-*-*vms*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
3422 i[3456789]86-w64-mingw*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 ;;
3425 i[3456789]86-*-mingw*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3427 ;;
3428 x86_64-*-mingw*)
3429 noconfigdirs="$noconfigdirs ${libgcj}"
3430 ;;
3431 mmix-*-*)
3432 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3433 ;;
3434 powerpc-*-aix*)
3435 # copied from rs6000-*-* entry
3436 noconfigdirs="$noconfigdirs ${libgcj}"
3437 ;;
3438 rs6000-*-aix*)
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 ;;
3441 *-*-lynxos*)
3442 noconfigdirs="$noconfigdirs ${libgcj}"
3443 ;;
3444esac
3445
3446# Disable libgo for some systems where it is known to not work.
3447# For testing, you can easily override this with --enable-libgo.
3448if test x$enable_libgo = x; then
3449 case "${target}" in
3450 *-*-darwin*)
3451 # PR 46986
3452 noconfigdirs="$noconfigdirs target-libgo"
3453 ;;
3454 *-*-cygwin* | *-*-mingw*)
3455 noconfigdirs="$noconfigdirs target-libgo"
3456 ;;
3457 *-*-aix*)
3458 noconfigdirs="$noconfigdirs target-libgo"
3459 ;;
3460 esac
3461fi
3462
3463# Default libgloss CPU subdirectory.
3464libgloss_dir="$target_cpu"
3465
3466case "${target}" in
3467 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3468 libgloss_dir=wince
3469 ;;
3470 aarch64*-*-* )
3471 libgloss_dir=aarch64
3472 ;;
3473 arm*-*-*)
3474 libgloss_dir=arm
3475 ;;
3476 cris-*-* | crisv32-*-*)
3477 libgloss_dir=cris
3478 ;;
3479 hppa*-*-*)
3480 libgloss_dir=pa
3481 ;;
3482 i[3456789]86-*-*)
3483 libgloss_dir=i386
3484 ;;
3485 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3486 libgloss_dir=m68hc11
3487 ;;
3488 m68*-*-* | fido-*-*)
3489 libgloss_dir=m68k
3490 ;;
3491 mips*-*-*)
3492 libgloss_dir=mips
3493 ;;
3494 powerpc*-*-*)
3495 libgloss_dir=rs6000
3496 ;;
3497 sparc*-*-*)
3498 libgloss_dir=sparc
3499 ;;
3500esac
3501
3502# Disable newlib and libgloss for various target OSes.
3503case "${target}" in
3504 alpha*-dec-osf*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 ;;
3507 i[3456789]86-*-linux*)
3508 # This section makes it possible to build newlib natively on linux.
3509 # If we are using a cross compiler then don't configure newlib.
3510 if test x${is_cross_compiler} != xno ; then
3511 noconfigdirs="$noconfigdirs target-newlib"
3512 fi
3513 noconfigdirs="$noconfigdirs target-libgloss"
3514 # If we are not using a cross compiler, do configure newlib.
3515 # Note however, that newlib will only be configured in this situation
3516 # if the --with-newlib option has been given, because otherwise
3517 # 'target-newlib' will appear in skipdirs.
3518 ;;
3519 i[3456789]86-*-rdos*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 sparc-*-sunos4*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-aix*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-beos*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534 *-*-chorusos)
3535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 ;;
3537 *-*-dragonfly*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 *-*-freebsd*)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-lynxos*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-mingw*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-netbsd*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-netware*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-tpf*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-uclinux*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-vxworks*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567esac
3568
3569case "${target}" in
3570 *-*-chorusos)
3571 ;;
3572 powerpc-*-darwin*)
3573 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3574 noconfigdirs="$noconfigdirs sim target-rda"
3575 ;;
3576 i[3456789]86-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3579 ;;
3580 x86_64-*-darwin[912]*)
3581 noconfigdirs="$noconfigdirs ld gas gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3583 ;;
3584 *-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3587 ;;
3588 *-*-dragonfly*)
3589 ;;
3590 *-*-freebsd*)
3591 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3592 && test -f /usr/local/include/gmp.h; then
3593 with_gmp=/usr/local
3594 fi
3595 ;;
3596 *-*-kaos*)
3597 # Remove unsupported stuff on all kaOS configurations.
3598 noconfigdirs="$noconfigdirs target-libgloss"
3599 ;;
3600 *-*-netbsd*)
3601 ;;
3602 *-*-netware*)
3603 ;;
3604 *-*-rtems*)
3605 noconfigdirs="$noconfigdirs target-libgloss"
3606 # this is not caught below because this stanza matches earlier
3607 case $target in
3608 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3609 esac
3610 ;;
3611 # The tpf target doesn't support gdb yet.
3612 *-*-tpf*)
3613 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3614 ;;
3615 *-*-uclinux*)
3616 noconfigdirs="$noconfigdirs target-rda"
3617 ;;
3618 *-*-vxworks*)
3619 ;;
3620 alpha*-dec-osf*)
3621 # ld works, but does not support shared libraries.
3622 # gas doesn't generate exception information.
3623 noconfigdirs="$noconfigdirs gas ld"
3624 ;;
3625 alpha*-*-*vms*)
3626 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3627 ;;
3628 alpha*-*-*)
3629 # newlib is not 64 bit ready
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 ;;
3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3633 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3634 ;;
3635 arc-*-*|arceb-*-*)
3636 noconfigdirs="$noconfigdirs target-libgloss"
3637 ;;
3638 arm-*-pe*)
3639 noconfigdirs="$noconfigdirs target-libgloss"
3640 ;;
3641 arm-*-riscix*)
3642 noconfigdirs="$noconfigdirs ld target-libgloss"
3643 ;;
3644 avr-*-rtems*)
3645 ;;
3646 avr-*-*)
3647 if test x${with_avrlibc} != xno; then
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 fi
3650 ;;
3651 c4x-*-* | tic4x-*-*)
3652 noconfigdirs="$noconfigdirs target-libgloss"
3653 ;;
3654 tic54x-*-*)
3655 noconfigdirs="$noconfigdirs target-libgloss gdb"
3656 ;;
3657 d10v-*-*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3659 ;;
3660 d30v-*-*)
3661 noconfigdirs="$noconfigdirs gdb"
3662 ;;
3663 fr30-*-elf*)
3664 noconfigdirs="$noconfigdirs gdb"
3665 ;;
3666 moxie-*-*)
3667 noconfigdirs="$noconfigdirs gprof"
3668 ;;
3669 h8300*-*-*)
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 ;;
3672 h8500-*-*)
3673 noconfigdirs="$noconfigdirs target-libgloss"
3674 ;;
3675 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3676 ;;
3677 hppa*64*-*-linux*)
3678 ;;
3679 hppa*-*-linux*)
3680 ;;
3681 hppa*-*-*elf* | \
3682 hppa*-*-lites* | \
3683 hppa*-*-openbsd* | \
3684 hppa*64*-*-*)
3685 ;;
3686 hppa*-hp-hpux11*)
3687 noconfigdirs="$noconfigdirs ld"
3688 ;;
3689 hppa*-*-pro*)
3690 ;;
3691 hppa*-*-*)
3692 noconfigdirs="$noconfigdirs ld"
3693 ;;
3694 i960-*-*)
3695 noconfigdirs="$noconfigdirs gdb"
3696 ;;
3697 ia64*-*-elf*)
3698 # No gdb support yet.
3699 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3700 ;;
3701 ia64*-**-hpux*)
3702 # No ld support yet.
3703 noconfigdirs="$noconfigdirs libgui itcl ld"
3704 ;;
3705 ia64*-*-*vms*)
3706 # No ld support yet.
3707 noconfigdirs="$noconfigdirs libgui itcl ld"
3708 ;;
3709 i[3456789]86-w64-mingw*)
3710 ;;
3711 i[3456789]86-*-mingw*)
3712 target_configdirs="$target_configdirs target-winsup"
3713 ;;
3714 *-*-cygwin*)
3715 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 # always build newlib if winsup directory is present.
3718 if test -d "$srcdir/winsup/cygwin"; then
3719 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3720 elif test -d "$srcdir/newlib"; then
3721 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3722 fi
3723 ;;
3724 i[3456789]86-*-pe)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 ;;
3727 i[3456789]86-*-sco3.2v5*)
3728 # The linker does not yet know about weak symbols in COFF,
3729 # and is not configured to handle mixed ELF and COFF.
3730 noconfigdirs="$noconfigdirs ld target-libgloss"
3731 ;;
3732 i[3456789]86-*-sco*)
3733 noconfigdirs="$noconfigdirs gprof target-libgloss"
3734 ;;
3735 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3736 noconfigdirs="$noconfigdirs target-libgloss"
3737 ;;
3738 i[3456789]86-*-sysv4*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 ;;
3741 i[3456789]86-*-beos*)
3742 noconfigdirs="$noconfigdirs gdb"
3743 ;;
3744 i[3456789]86-*-rdos*)
3745 noconfigdirs="$noconfigdirs gdb"
3746 ;;
3747 mmix-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3749 ;;
3750 mt-*-*)
3751 noconfigdirs="$noconfigdirs sim"
3752 ;;
3753 powerpc-*-aix*)
3754 # copied from rs6000-*-* entry
3755 noconfigdirs="$noconfigdirs gprof"
3756 ;;
3757 powerpc*-*-winnt* | powerpc*-*-pe*)
3758 target_configdirs="$target_configdirs target-winsup"
3759 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3760 # always build newlib.
3761 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3762 ;;
3763 # This is temporary until we can link against shared libraries
3764 powerpcle-*-solaris*)
3765 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3766 ;;
3767 powerpc-*-beos*)
3768 noconfigdirs="$noconfigdirs gdb"
3769 ;;
3770 rs6000-*-lynxos*)
3771 noconfigdirs="$noconfigdirs gprof"
3772 ;;
3773 rs6000-*-aix*)
3774 noconfigdirs="$noconfigdirs gprof"
3775 ;;
3776 rs6000-*-*)
3777 noconfigdirs="$noconfigdirs gprof"
3778 ;;
3779 m68k-apollo-*)
3780 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3781 ;;
3782 microblaze*)
3783 noconfigdirs="$noconfigdirs gprof"
3784 ;;
3785 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3786 if test x$with_newlib = xyes; then
3787 noconfigdirs="$noconfigdirs gprof"
3788 fi
3789 ;;
3790 mips*-*-irix5*)
3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
3792 ;;
3793 mips*-*-irix6*)
3794 noconfigdirs="$noconfigdirs gprof target-libgloss"
3795 ;;
3796 mips*-*-bsd*)
3797 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3798 ;;
3799 mips*-*-linux*)
3800 ;;
3801 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3802 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3803 noconfigdirs="$noconfigdirs ld gas gprof"
3804 ;;
3805 mips*-*-*)
3806 noconfigdirs="$noconfigdirs gprof"
3807 ;;
3808 nds32*-*-*)
3809 noconfigdirs="$noconfigdirs gdb"
3810 ;;
3811 or1k*-*-*)
3812 noconfigdirs="$noconfigdirs gdb"
3813 ;;
3814 sh-*-* | sh64-*-*)
3815 case "${target}" in
3816 sh*-*-elf)
3817 ;;
3818 *)
3819 noconfigdirs="$noconfigdirs target-libgloss" ;;
3820 esac
3821 ;;
3822 sparc-*-sunos4*)
3823 if test x${is_cross_compiler} = xno ; then
3824 use_gnu_ld=no
3825 fi
3826 ;;
3827 tic6x-*-*)
3828 noconfigdirs="$noconfigdirs sim"
3829 ;;
3830 tilepro*-*-* | tilegx*-*-*)
3831 noconfigdirs="$noconfigdirs sim"
3832 ;;
3833 v810-*-*)
3834 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3835 ;;
3836 vax-*-*)
3837 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3838 ;;
3839esac
3840
3841# If we aren't building newlib, then don't build libgloss, since libgloss
3842# depends upon some newlib header files.
3843case "${noconfigdirs}" in
3844 *target-libgloss*) ;;
3845 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3846esac
3847
3848# Work in distributions that contain no compiler tools, like Autoconf.
3849host_makefile_frag=/dev/null
3850if test -d ${srcdir}/config ; then
3851case "${host}" in
3852 i[3456789]86-*-msdosdjgpp*)
3853 host_makefile_frag="config/mh-djgpp"
3854 ;;
3855 *-cygwin*)
3856
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3858$as_echo_n "checking to see if cat works as expected... " >&6; }
3859echo a >cygwin-cat-check
3860if test `cat cygwin-cat-check` = a ; then
3861 rm cygwin-cat-check
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3863$as_echo "yes" >&6; }
3864else
3865 rm cygwin-cat-check
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868 as_fn_error "The cat command does not ignore carriage return characters.
3869 Please either mount the build directory in binary mode or run the following
3870 commands before running any configure script:
3871set -o igncr
3872export SHELLOPTS
3873 " "$LINENO" 5
3874fi
3875
3876 host_makefile_frag="config/mh-cygwin"
3877 ;;
3878 *-mingw*)
3879 host_makefile_frag="config/mh-mingw"
3880 ;;
3881 hppa*-hp-hpux10*)
3882 host_makefile_frag="config/mh-pa-hpux10"
3883 ;;
3884 hppa*-hp-hpux*)
3885 host_makefile_frag="config/mh-pa"
3886 ;;
3887 hppa*-*)
3888 host_makefile_frag="config/mh-pa"
3889 ;;
3890 *-*-darwin*)
3891 host_makefile_frag="config/mh-darwin"
3892 ;;
3893 powerpc-*-aix*)
3894 host_makefile_frag="config/mh-ppc-aix"
3895 ;;
3896 rs6000-*-aix*)
3897 host_makefile_frag="config/mh-ppc-aix"
3898 ;;
3899esac
3900fi
3901
3902if test "${build}" != "${host}" ; then
3903 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3904 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3905 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3906 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3907 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3908 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3909 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3910 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3911 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3912 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3913 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3914 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3915 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3916else
3917 AR_FOR_BUILD="\$(AR)"
3918 AS_FOR_BUILD="\$(AS)"
3919 CC_FOR_BUILD="\$(CC)"
3920 CXX_FOR_BUILD="\$(CXX)"
3921 GCJ_FOR_BUILD="\$(GCJ)"
3922 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3923 GOC_FOR_BUILD="\$(GOC)"
3924 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3925 LD_FOR_BUILD="\$(LD)"
3926 NM_FOR_BUILD="\$(NM)"
3927 RANLIB_FOR_BUILD="\$(RANLIB)"
3928 WINDRES_FOR_BUILD="\$(WINDRES)"
3929 WINDMC_FOR_BUILD="\$(WINDMC)"
3930fi
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3939set dummy ${ac_tool_prefix}gcc; ac_word=$2
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
3942if test "${ac_cv_prog_CC+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3944else
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959done
3960 done
3961IFS=$as_save_IFS
3962
3963fi
3964fi
3965CC=$ac_cv_prog_CC
3966if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968$as_echo "$CC" >&6; }
3969else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
3972fi
3973
3974
3975fi
3976if test -z "$ac_cv_prog_CC"; then
3977 ac_ct_CC=$CC
3978 # Extract the first word of "gcc", so it can be a program name with args.
3979set dummy gcc; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
3982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_ac_ct_CC="gcc"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999done
4000 done
4001IFS=$as_save_IFS
4002
4003fi
4004fi
4005ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008$as_echo "$ac_ct_CC" >&6; }
4009else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
4012fi
4013
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018yes:)
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021ac_tool_warned=yes ;;
4022esac
4023 CC=$ac_ct_CC
4024 fi
4025else
4026 CC="$ac_cv_prog_CC"
4027fi
4028
4029if test -z "$CC"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4032set dummy ${ac_tool_prefix}cc; ac_word=$2
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_CC="${ac_tool_prefix}cc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052done
4053 done
4054IFS=$as_save_IFS
4055
4056fi
4057fi
4058CC=$ac_cv_prog_CC
4059if test -n "$CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061$as_echo "$CC" >&6; }
4062else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
4065fi
4066
4067
4068 fi
4069fi
4070if test -z "$CC"; then
4071 # Extract the first word of "cc", so it can be a program name with args.
4072set dummy cc; ac_word=$2
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
4075if test "${ac_cv_prog_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081 ac_prog_rejected=no
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4091 continue
4092 fi
4093 ac_cv_prog_CC="cc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097done
4098 done
4099IFS=$as_save_IFS
4100
4101if test $ac_prog_rejected = yes; then
4102 # We found a bogon in the path, so make sure we never use it.
4103 set dummy $ac_cv_prog_CC
4104 shift
4105 if test $# != 0; then
4106 # We chose a different compiler from the bogus one.
4107 # However, it has the same basename, so the bogon will be chosen
4108 # first if we set CC to just the basename; use the full file name.
4109 shift
4110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4111 fi
4112fi
4113fi
4114fi
4115CC=$ac_cv_prog_CC
4116if test -n "$CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4118$as_echo "$CC" >&6; }
4119else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121$as_echo "no" >&6; }
4122fi
4123
4124
4125fi
4126if test -z "$CC"; then
4127 if test -n "$ac_tool_prefix"; then
4128 for ac_prog in cl.exe
4129 do
4130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151done
4152 done
4153IFS=$as_save_IFS
4154
4155fi
4156fi
4157CC=$ac_cv_prog_CC
4158if test -n "$CC"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160$as_echo "$CC" >&6; }
4161else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
4164fi
4165
4166
4167 test -n "$CC" && break
4168 done
4169fi
4170if test -z "$CC"; then
4171 ac_ct_CC=$CC
4172 for ac_prog in cl.exe
4173do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175set dummy $ac_prog; ac_word=$2
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177$as_echo_n "checking for $ac_word... " >&6; }
4178if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 if test -n "$ac_ct_CC"; then
4182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_ac_ct_CC="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195done
4196 done
4197IFS=$as_save_IFS
4198
4199fi
4200fi
4201ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202if test -n "$ac_ct_CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4204$as_echo "$ac_ct_CC" >&6; }
4205else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207$as_echo "no" >&6; }
4208fi
4209
4210
4211 test -n "$ac_ct_CC" && break
4212done
4213
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223 CC=$ac_ct_CC
4224 fi
4225fi
4226
4227fi
4228
4229
4230test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232as_fn_error "no acceptable C compiler found in \$PATH
4233See \`config.log' for more details." "$LINENO" 5; }
4234
4235# Provide some information about the compiler.
4236$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4237set X $ac_compile
4238ac_compiler=$2
4239for ac_option in --version -v -V -qversion; do
4240 { { ac_try="$ac_compiler $ac_option >&5"
4241case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246$as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248 ac_status=$?
4249 if test -s conftest.err; then
4250 sed '10a\
4251... rest of stderr output deleted ...
4252 10q' conftest.err >conftest.er1
4253 cat conftest.er1 >&5
4254 rm -f conftest.er1 conftest.err
4255 fi
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258done
4259
4260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h. */
4262
4263int
4264main ()
4265{
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271ac_clean_files_save=$ac_clean_files
4272ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4273# Try to create an executable without -o first, disregard a.out.
4274# It will help us diagnose broken compilers, and finding out an intuition
4275# of exeext.
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4277$as_echo_n "checking for C compiler default output file name... " >&6; }
4278ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4279
4280# The possible output files:
4281ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4282
4283ac_rmfiles=
4284for ac_file in $ac_files
4285do
4286 case $ac_file in
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4289 esac
4290done
4291rm -f $ac_rmfiles
4292
4293if { { ac_try="$ac_link_default"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link_default") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4305# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4306# in a Makefile. We should not override ac_cv_exeext if it was cached,
4307# so that the user can short-circuit this test for compilers unknown to
4308# Autoconf.
4309for ac_file in $ac_files ''
4310do
4311 test -f "$ac_file" || continue
4312 case $ac_file in
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4314 ;;
4315 [ab].out )
4316 # We found the default executable, but exeext='' is most
4317 # certainly right.
4318 break;;
4319 *.* )
4320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4321 then :; else
4322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323 fi
4324 # We set ac_cv_exeext here because the later test for it is not
4325 # safe: cross compilers may not add the suffix if given an `-o'
4326 # argument, so we may need to know it at that point already.
4327 # Even if this section looks crufty: it has the advantage of
4328 # actually working.
4329 break;;
4330 * )
4331 break;;
4332 esac
4333done
4334test "$ac_cv_exeext" = no && ac_cv_exeext=
4335
4336else
4337 ac_file=''
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4340$as_echo "$ac_file" >&6; }
4341if test -z "$ac_file"; then :
4342 $as_echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347{ as_fn_set_status 77
4348as_fn_error "C compiler cannot create executables
4349See \`config.log' for more details." "$LINENO" 5; }; }
4350fi
4351ac_exeext=$ac_cv_exeext
4352
4353# Check that the compiler produces executables we can run. If not, either
4354# the compiler is broken, or we cross compile.
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356$as_echo_n "checking whether the C compiler works... " >&6; }
4357# If not cross compiling, check that we can run a simple program.
4358if test "$cross_compiling" != yes; then
4359 if { ac_try='./$ac_file'
4360 { { case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363esac
4364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365$as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_try") 2>&5
4367 ac_status=$?
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; }; then
4370 cross_compiling=no
4371 else
4372 if test "$cross_compiling" = maybe; then
4373 cross_compiling=yes
4374 else
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377as_fn_error "cannot run C compiled programs.
4378If you meant to cross compile, use \`--host'.
4379See \`config.log' for more details." "$LINENO" 5; }
4380 fi
4381 fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384$as_echo "yes" >&6; }
4385
4386rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4387ac_clean_files=$ac_clean_files_save
4388# Check that the compiler produces executables we can run. If not, either
4389# the compiler is broken, or we cross compile.
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391$as_echo_n "checking whether we are cross compiling... " >&6; }
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4393$as_echo "$cross_compiling" >&6; }
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4396$as_echo_n "checking for suffix of executables... " >&6; }
4397if { { ac_try="$ac_link"
4398case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_link") 2>&5
4405 ac_status=$?
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
4408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4409# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4410# work properly (i.e., refer to `conftest.exe'), while it won't with
4411# `rm'.
4412for ac_file in conftest.exe conftest conftest.*; do
4413 test -f "$ac_file" || continue
4414 case $ac_file in
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417 break;;
4418 * ) break;;
4419 esac
4420done
4421else
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424as_fn_error "cannot compute suffix of executables: cannot compile and link
4425See \`config.log' for more details." "$LINENO" 5; }
4426fi
4427rm -f conftest$ac_cv_exeext
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4429$as_echo "$ac_cv_exeext" >&6; }
4430
4431rm -f conftest.$ac_ext
4432EXEEXT=$ac_cv_exeext
4433ac_exeext=$EXEEXT
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4435$as_echo_n "checking for suffix of object files... " >&6; }
4436if test "${ac_cv_objext+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440/* end confdefs.h. */
4441
4442int
4443main ()
4444{
4445
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450rm -f conftest.o conftest.obj
4451if { { ac_try="$ac_compile"
4452case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457$as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_compile") 2>&5
4459 ac_status=$?
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 for ac_file in conftest.o conftest.obj conftest.*; do
4463 test -f "$ac_file" || continue;
4464 case $ac_file in
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4467 break;;
4468 esac
4469done
4470else
4471 $as_echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476as_fn_error "cannot compute suffix of object files: cannot compile
4477See \`config.log' for more details." "$LINENO" 5; }
4478fi
4479rm -f conftest.$ac_cv_objext conftest.$ac_ext
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4482$as_echo "$ac_cv_objext" >&6; }
4483OBJEXT=$ac_cv_objext
4484ac_objext=$OBJEXT
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4486$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4487if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489else
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h. */
4492
4493int
4494main ()
4495{
4496#ifndef __GNUC__
4497 choke me
4498#endif
4499
4500 ;
4501 return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_compiler_gnu=yes
4506else
4507 ac_compiler_gnu=no
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515if test $ac_compiler_gnu = yes; then
4516 GCC=yes
4517else
4518 GCC=
4519fi
4520ac_test_CFLAGS=${CFLAGS+set}
4521ac_save_CFLAGS=$CFLAGS
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523$as_echo_n "checking whether $CC accepts -g... " >&6; }
4524if test "${ac_cv_prog_cc_g+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526else
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 ac_cv_prog_cc_g=no
4530 CFLAGS="-g"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h. */
4533
4534int
4535main ()
4536{
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
4542if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_prog_cc_g=yes
4544else
4545 CFLAGS=""
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h. */
4548
4549int
4550main ()
4551{
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557if ac_fn_c_try_compile "$LINENO"; then :
4558
4559else
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h. */
4564
4565int
4566main ()
4567{
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_g=yes
4575fi
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584$as_echo "$ac_cv_prog_cc_g" >&6; }
4585if test "$ac_test_CFLAGS" = set; then
4586 CFLAGS=$ac_save_CFLAGS
4587elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4589 CFLAGS="-g -O2"
4590 else
4591 CFLAGS="-g"
4592 fi
4593else
4594 if test "$GCC" = yes; then
4595 CFLAGS="-O2"
4596 else
4597 CFLAGS=
4598 fi
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602if test "${ac_cv_prog_cc_c89+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604else
4605 ac_cv_prog_cc_c89=no
4606ac_save_CC=$CC
4607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdarg.h>
4610#include <stdio.h>
4611#include <sys/types.h>
4612#include <sys/stat.h>
4613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4614struct buf { int x; };
4615FILE * (*rcsopen) (struct buf *, struct stat *, int);
4616static char *e (p, i)
4617 char **p;
4618 int i;
4619{
4620 return p[i];
4621}
4622static char *f (char * (*g) (char **, int), char **p, ...)
4623{
4624 char *s;
4625 va_list v;
4626 va_start (v,p);
4627 s = g (p, va_arg (v,int));
4628 va_end (v);
4629 return s;
4630}
4631
4632/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4633 function prototypes and stuff, but not '\xHH' hex character constants.
4634 These don't provoke an error unfortunately, instead are silently treated
4635 as 'x'. The following induces an error, until -std is added to get
4636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4637 array size at least. It's necessary to write '\x00'==0 to get something
4638 that's true only with -std. */
4639int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640
4641/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4642 inside strings and character constants. */
4643#define FOO(x) 'x'
4644int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4645
4646int test (int i, double x);
4647struct s1 {int (*f) (int a);};
4648struct s2 {int (*f) (double a);};
4649int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4650int argc;
4651char **argv;
4652int
4653main ()
4654{
4655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4662do
4663 CC="$ac_save_CC $ac_arg"
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c89=$ac_arg
4666fi
4667rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c89" != "xno" && break
4669done
4670rm -f conftest.$ac_ext
4671CC=$ac_save_CC
4672
4673fi
4674# AC_CACHE_VAL
4675case "x$ac_cv_prog_cc_c89" in
4676 x)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678$as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681$as_echo "unsupported" >&6; } ;;
4682 *)
4683 CC="$CC $ac_cv_prog_cc_c89"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4685$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4686esac
4687if test "x$ac_cv_prog_cc_c89" != xno; then :
4688
4689fi
4690
4691ac_ext=c
4692ac_cpp='$CPP $CPPFLAGS'
4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696
4697ac_ext=cpp
4698ac_cpp='$CXXCPP $CPPFLAGS'
4699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4702if test -z "$CXX"; then
4703 if test -n "$CCC"; then
4704 CXX=$CCC
4705 else
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4708 do
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712$as_echo_n "checking for $ac_word... " >&6; }
4713if test "${ac_cv_prog_CXX+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715else
4716 if test -n "$CXX"; then
4717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4729 fi
4730done
4731 done
4732IFS=$as_save_IFS
4733
4734fi
4735fi
4736CXX=$ac_cv_prog_CXX
4737if test -n "$CXX"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4739$as_echo "$CXX" >&6; }
4740else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742$as_echo "no" >&6; }
4743fi
4744
4745
4746 test -n "$CXX" && break
4747 done
4748fi
4749if test -z "$CXX"; then
4750 ac_ct_CXX=$CXX
4751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4752do
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754set dummy $ac_prog; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759else
4760 if test -n "$ac_ct_CXX"; then
4761 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_CXX="$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775 done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4781if test -n "$ac_ct_CXX"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4783$as_echo "$ac_ct_CXX" >&6; }
4784else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790 test -n "$ac_ct_CXX" && break
4791done
4792
4793 if test "x$ac_ct_CXX" = x; then
4794 CXX="g++"
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797yes:)
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800ac_tool_warned=yes ;;
4801esac
4802 CXX=$ac_ct_CXX
4803 fi
4804fi
4805
4806 fi
4807fi
4808# Provide some information about the compiler.
4809$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4810set X $ac_compile
4811ac_compiler=$2
4812for ac_option in --version -v -V -qversion; do
4813 { { ac_try="$ac_compiler $ac_option >&5"
4814case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817esac
4818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4819$as_echo "$ac_try_echo"; } >&5
4820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4821 ac_status=$?
4822 if test -s conftest.err; then
4823 sed '10a\
4824... rest of stderr output deleted ...
4825 10q' conftest.err >conftest.er1
4826 cat conftest.er1 >&5
4827 rm -f conftest.er1 conftest.err
4828 fi
4829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }
4831done
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4834$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4835if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h. */
4840
4841int
4842main ()
4843{
4844#ifndef __GNUC__
4845 choke me
4846#endif
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852if ac_fn_cxx_try_compile "$LINENO"; then :
4853 ac_compiler_gnu=yes
4854else
4855 ac_compiler_gnu=no
4856fi
4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4859
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4862$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4863if test $ac_compiler_gnu = yes; then
4864 GXX=yes
4865else
4866 GXX=
4867fi
4868ac_test_CXXFLAGS=${CXXFLAGS+set}
4869ac_save_CXXFLAGS=$CXXFLAGS
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4871$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4872if test "${ac_cv_prog_cxx_g+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874else
4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876 ac_cxx_werror_flag=yes
4877 ac_cv_prog_cxx_g=no
4878 CXXFLAGS="-g"
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890if ac_fn_cxx_try_compile "$LINENO"; then :
4891 ac_cv_prog_cxx_g=yes
4892else
4893 CXXFLAGS=""
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895/* end confdefs.h. */
4896
4897int
4898main ()
4899{
4900
4901 ;
4902 return 0;
4903}
4904_ACEOF
4905if ac_fn_cxx_try_compile "$LINENO"; then :
4906
4907else
4908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 CXXFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916
4917 ;
4918 return 0;
4919}
4920_ACEOF
4921if ac_fn_cxx_try_compile "$LINENO"; then :
4922 ac_cv_prog_cxx_g=yes
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4932$as_echo "$ac_cv_prog_cxx_g" >&6; }
4933if test "$ac_test_CXXFLAGS" = set; then
4934 CXXFLAGS=$ac_save_CXXFLAGS
4935elif test $ac_cv_prog_cxx_g = yes; then
4936 if test "$GXX" = yes; then
4937 CXXFLAGS="-g -O2"
4938 else
4939 CXXFLAGS="-g"
4940 fi
4941else
4942 if test "$GXX" = yes; then
4943 CXXFLAGS="-O2"
4944 else
4945 CXXFLAGS=
4946 fi
4947fi
4948ac_ext=c
4949ac_cpp='$CPP $CPPFLAGS'
4950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953
4954
4955# We must set the default linker to the linker used by gcc for the correct
4956# operation of libtool. If LD is not defined and we are using gcc, try to
4957# set the LD default to the ld used by gcc.
4958if test -z "$LD"; then
4959 if test "$GCC" = yes; then
4960 case $build in
4961 *-*-mingw*)
4962 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4963 *)
4964 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4965 esac
4966 case $gcc_prog_ld in
4967 # Accept absolute paths.
4968 [\\/]* | [A-Za-z]:[\\/]*)
4969 LD="$gcc_prog_ld" ;;
4970 esac
4971 fi
4972fi
4973
4974# Check whether -static-libstdc++ -static-libgcc is supported.
4975have_static_libs=no
4976if test "$GCC" = yes; then
4977 saved_LDFLAGS="$LDFLAGS"
4978
4979 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4981$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4982 ac_ext=cpp
4983ac_cpp='$CXXCPP $CPPFLAGS'
4984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987
4988
4989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h. */
4991
4992#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4993#error -static-libstdc++ not implemented
4994#endif
4995int main() {}
4996_ACEOF
4997if ac_fn_cxx_try_link "$LINENO"; then :
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }; have_static_libs=yes
5000else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
5004rm -f core conftest.err conftest.$ac_objext \
5005 conftest$ac_exeext conftest.$ac_ext
5006 ac_ext=c
5007ac_cpp='$CPP $CPPFLAGS'
5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012
5013 LDFLAGS="$saved_LDFLAGS"
5014fi
5015
5016
5017
5018
5019if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5021set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 if test -n "$GNATBIND"; then
5028 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047GNATBIND=$ac_cv_prog_GNATBIND
5048if test -n "$GNATBIND"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5050$as_echo "$GNATBIND" >&6; }
5051else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057fi
5058if test -z "$ac_cv_prog_GNATBIND"; then
5059 ac_ct_GNATBIND=$GNATBIND
5060 # Extract the first word of "gnatbind", so it can be a program name with args.
5061set dummy gnatbind; ac_word=$2
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063$as_echo_n "checking for $ac_word... " >&6; }
5064if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 if test -n "$ac_ct_GNATBIND"; then
5068 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082 done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5088if test -n "$ac_ct_GNATBIND"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5090$as_echo "$ac_ct_GNATBIND" >&6; }
5091else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094fi
5095
5096 if test "x$ac_ct_GNATBIND" = x; then
5097 GNATBIND="no"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100yes:)
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105 GNATBIND=$ac_ct_GNATBIND
5106 fi
5107else
5108 GNATBIND="$ac_cv_prog_GNATBIND"
5109fi
5110
5111if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 if test -n "$GNATMAKE"; then
5120 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
5134 done
5135IFS=$as_save_IFS
5136
5137fi
5138fi
5139GNATMAKE=$ac_cv_prog_GNATMAKE
5140if test -n "$GNATMAKE"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5142$as_echo "$GNATMAKE" >&6; }
5143else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149fi
5150if test -z "$ac_cv_prog_GNATMAKE"; then
5151 ac_ct_GNATMAKE=$GNATMAKE
5152 # Extract the first word of "gnatmake", so it can be a program name with args.
5153set dummy gnatmake; ac_word=$2
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 if test -n "$ac_ct_GNATMAKE"; then
5160 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173done
5174 done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5180if test -n "$ac_ct_GNATMAKE"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5182$as_echo "$ac_ct_GNATMAKE" >&6; }
5183else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188 if test "x$ac_ct_GNATMAKE" = x; then
5189 GNATMAKE="no"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192yes:)
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195ac_tool_warned=yes ;;
5196esac
5197 GNATMAKE=$ac_ct_GNATMAKE
5198 fi
5199else
5200 GNATMAKE="$ac_cv_prog_GNATMAKE"
5201fi
5202
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5204$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5205if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207else
5208 cat >conftest.adb <<EOF
5209procedure conftest is begin null; end conftest;
5210EOF
5211acx_cv_cc_gcc_supports_ada=no
5212# There is a bug in old released versions of GCC which causes the
5213# driver to exit successfully when the appropriate language module
5214# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5215# Therefore we must check for the error message as well as an
5216# unsuccessful exit.
5217# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5218# given a .adb file, but produce no object file. So we must check
5219# if an object file was really produced to guard against this.
5220errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5221if test x"$errors" = x && test -f conftest.$ac_objext; then
5222 acx_cv_cc_gcc_supports_ada=yes
5223fi
5224rm -f conftest.*
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5227$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5228
5229if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5230 have_gnat=yes
5231else
5232 have_gnat=no
5233fi
5234
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5236$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5237if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239else
5240 echo abfoo >t1
5241 echo cdfoo >t2
5242 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5243 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5244 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5245 :
5246 else
5247 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5248 fi
5249 fi
5250 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5251 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5252 :
5253 else
5254 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5255 fi
5256 fi
5257 rm t1 t2
5258
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5261$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5262do_compare="$gcc_cv_prog_cmp_skip"
5263
5264
5265
5266# Check whether --enable-bootstrap was given.
5267if test "${enable_bootstrap+set}" = set; then :
5268 enableval=$enable_bootstrap;
5269else
5270 enable_bootstrap=default
5271fi
5272
5273
5274# Issue errors and warnings for invalid/strange bootstrap combinations.
5275if test -r $srcdir/gcc/configure; then
5276 have_compiler=yes
5277else
5278 have_compiler=no
5279fi
5280
5281case "$have_compiler:$host:$target:$enable_bootstrap" in
5282 *:*:*:no) ;;
5283
5284 # Default behavior. Enable bootstrap if we have a compiler
5285 # and we are in a native configuration.
5286 yes:$build:$build:default)
5287 enable_bootstrap=yes ;;
5288
5289 *:*:*:default)
5290 enable_bootstrap=no ;;
5291
5292 # We have a compiler and we are in a native configuration, bootstrap is ok
5293 yes:$build:$build:yes)
5294 ;;
5295
5296 # Other configurations, but we have a compiler. Assume the user knows
5297 # what he's doing.
5298 yes:*:*:yes)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5300$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5301 ;;
5302
5303 # No compiler: if they passed --enable-bootstrap explicitly, fail
5304 no:*:*:yes)
5305 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5306
5307 # Fail if wrong command line
5308 *)
5309 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5310 ;;
5311esac
5312
5313# Used for setting $lt_cv_objdir
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5315$as_echo_n "checking for objdir... " >&6; }
5316if test "${lt_cv_objdir+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318else
5319 rm -f .libs 2>/dev/null
5320mkdir .libs 2>/dev/null
5321if test -d .libs; then
5322 lt_cv_objdir=.libs
5323else
5324 # MS-DOS does not allow filenames that begin with a dot.
5325 lt_cv_objdir=_libs
5326fi
5327rmdir .libs 2>/dev/null
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5330$as_echo "$lt_cv_objdir" >&6; }
5331objdir=$lt_cv_objdir
5332
5333
5334
5335
5336
5337cat >>confdefs.h <<_ACEOF
5338#define LT_OBJDIR "$lt_cv_objdir/"
5339_ACEOF
5340
5341
5342
5343# Check for GMP, MPFR and MPC
5344gmplibs="-lmpc -lmpfr -lgmp"
5345gmpinc=
5346have_gmp=no
5347
5348# Specify a location for mpc
5349# check for this first so it ends up on the link line before mpfr.
5350
5351# Check whether --with-mpc was given.
5352if test "${with_mpc+set}" = set; then :
5353 withval=$with_mpc;
5354fi
5355
5356
5357# Check whether --with-mpc-include was given.
5358if test "${with_mpc_include+set}" = set; then :
5359 withval=$with_mpc_include;
5360fi
5361
5362
5363# Check whether --with-mpc-lib was given.
5364if test "${with_mpc_lib+set}" = set; then :
5365 withval=$with_mpc_lib;
5366fi
5367
5368
5369if test "x$with_mpc" != x; then
5370 gmplibs="-L$with_mpc/lib $gmplibs"
5371 gmpinc="-I$with_mpc/include $gmpinc"
5372fi
5373if test "x$with_mpc_include" != x; then
5374 gmpinc="-I$with_mpc_include $gmpinc"
5375fi
5376if test "x$with_mpc_lib" != x; then
5377 gmplibs="-L$with_mpc_lib $gmplibs"
5378fi
5379if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5380 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5381 gmpinc='-I$$s/mpc/src '"$gmpinc"
5382 # Do not test the mpc version. Assume that it is sufficient, since
5383 # it is in the source tree, and the library has not been built yet
5384 # but it would be included on the link line in the version check below
5385 # hence making the test fail.
5386 have_gmp=yes
5387fi
5388
5389# Specify a location for mpfr
5390# check for this first so it ends up on the link line before gmp.
5391
5392# Check whether --with-mpfr-dir was given.
5393if test "${with_mpfr_dir+set}" = set; then :
5394 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5395Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5396fi
5397
5398
5399
5400# Check whether --with-mpfr was given.
5401if test "${with_mpfr+set}" = set; then :
5402 withval=$with_mpfr;
5403fi
5404
5405
5406# Check whether --with-mpfr-include was given.
5407if test "${with_mpfr_include+set}" = set; then :
5408 withval=$with_mpfr_include;
5409fi
5410
5411
5412# Check whether --with-mpfr-lib was given.
5413if test "${with_mpfr_lib+set}" = set; then :
5414 withval=$with_mpfr_lib;
5415fi
5416
5417
5418if test "x$with_mpfr" != x; then
5419 gmplibs="-L$with_mpfr/lib $gmplibs"
5420 gmpinc="-I$with_mpfr/include $gmpinc"
5421fi
5422if test "x$with_mpfr_include" != x; then
5423 gmpinc="-I$with_mpfr_include $gmpinc"
5424fi
5425if test "x$with_mpfr_lib" != x; then
5426 gmplibs="-L$with_mpfr_lib $gmplibs"
5427fi
5428if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5429 # MPFR v3.1.0 moved the sources into a src sub-directory.
5430 if test -d ${srcdir}/mpfr/src; then
5431 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5432 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5433 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5434 else
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5438 fi
5439 # Do not test the mpfr version. Assume that it is sufficient, since
5440 # it is in the source tree, and the library has not been built yet
5441 # but it would be included on the link line in the version check below
5442 # hence making the test fail.
5443 have_gmp=yes
5444fi
5445
5446# Specify a location for gmp
5447
5448# Check whether --with-gmp-dir was given.
5449if test "${with_gmp_dir+set}" = set; then :
5450 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5451Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5452fi
5453
5454
5455
5456# Check whether --with-gmp was given.
5457if test "${with_gmp+set}" = set; then :
5458 withval=$with_gmp;
5459fi
5460
5461
5462# Check whether --with-gmp-include was given.
5463if test "${with_gmp_include+set}" = set; then :
5464 withval=$with_gmp_include;
5465fi
5466
5467
5468# Check whether --with-gmp-lib was given.
5469if test "${with_gmp_lib+set}" = set; then :
5470 withval=$with_gmp_lib;
5471fi
5472
5473
5474
5475if test "x$with_gmp" != x; then
5476 gmplibs="-L$with_gmp/lib $gmplibs"
5477 gmpinc="-I$with_gmp/include $gmpinc"
5478fi
5479if test "x$with_gmp_include" != x; then
5480 gmpinc="-I$with_gmp_include $gmpinc"
5481fi
5482if test "x$with_gmp_lib" != x; then
5483 gmplibs="-L$with_gmp_lib $gmplibs"
5484fi
5485if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5486 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5487 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5488 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5489 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5490 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5496fi
5497
5498if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5499 have_gmp=yes
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5505
5506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h. */
5508#include "gmp.h"
5509int
5510main ()
5511{
5512
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5516 choke me
5517 #endif
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523if ac_fn_c_try_compile "$LINENO"; then :
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526#include <gmp.h>
5527int
5528main ()
5529{
5530
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5534 choke me
5535 #endif
5536
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543$as_echo "yes" >&6; }
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546$as_echo "buggy but acceptable" >&6; }
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }; have_gmp=no
5552fi
5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554
5555 # If we have GMP, check the MPFR version.
5556 if test x"$have_gmp" = xyes; then
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h. */
5562#include <gmp.h>
5563 #include <mpfr.h>
5564int
5565main ()
5566{
5567
5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5569 choke me
5570 #endif
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h. */
5579#include <gmp.h>
5580 #include <mpfr.h>
5581int
5582main ()
5583{
5584
5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5586 choke me
5587 #endif
5588
5589 ;
5590 return 0;
5591}
5592_ACEOF
5593if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595$as_echo "yes" >&6; }
5596else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598$as_echo "buggy but acceptable" >&6; }
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }; have_gmp=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607
5608 # Check for the MPC header version.
5609 if test x"$have_gmp" = xyes ; then
5610 # Check for the recommended and required versions of MPC.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615#include <mpc.h>
5616int
5617main ()
5618{
5619
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5621 choke me
5622 #endif
5623
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <mpc.h>
5632int
5633main ()
5634{
5635
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5637 choke me
5638 #endif
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646$as_echo "yes" >&6; }
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649$as_echo "buggy but acceptable" >&6; }
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }; have_gmp=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 fi
5658
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5661 saved_LIBS="$LIBS"
5662 LIBS="$LIBS $gmplibs"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h. */
5667#include <mpc.h>
5668int
5669main ()
5670{
5671
5672 mpfr_t n;
5673 mpfr_t x;
5674 mpc_t c;
5675 int t;
5676 mpfr_init (n);
5677 mpfr_init (x);
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
5681 mpfr_clear(n);
5682 mpfr_clear(x);
5683 mpc_init2 (c, 53);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5688 mpc_clear (c);
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }; have_gmp=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS="$saved_LIBS"
5704 fi
5705
5706 CFLAGS="$saved_CFLAGS"
5707
5708# The library versions listed in the error message below should match
5709# the HARD-minimums enforced above.
5710 if test x$have_gmp != xyes; then
5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5712Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713their locations. Source code for these libraries can be found at
5714their respective hosting sites as well as at
5715ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718make sure that you have installed both the libraries and the header
5719files. They may be located in separate packages." "$LINENO" 5
5720 fi
5721fi
5722
5723# Flags needed for both GMP, MPFR and/or MPC.
5724
5725
5726
5727
5728
5729
5730
5731# Allow host libstdc++ to be specified for static linking with PPL.
5732
5733# Check whether --with-host-libstdcxx was given.
5734if test "${with_host_libstdcxx+set}" = set; then :
5735 withval=$with_host_libstdcxx;
5736fi
5737
5738
5739case $with_host_libstdcxx in
5740 no|yes)
5741 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5742 ;;
5743esac
5744
5745# Libraries to use for stage1 or when not bootstrapping.
5746
5747# Check whether --with-stage1-libs was given.
5748if test "${with_stage1_libs+set}" = set; then :
5749 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5750 stage1_libs=
5751 else
5752 stage1_libs=$withval
5753 fi
5754else
5755 stage1_libs=$with_host_libstdcxx
5756fi
5757
5758
5759
5760# Linker flags to use for stage1 or when not bootstrapping.
5761
5762# Check whether --with-stage1-ldflags was given.
5763if test "${with_stage1_ldflags+set}" = set; then :
5764 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_ldflags=
5766 else
5767 stage1_ldflags=$withval
5768 fi
5769else
5770 stage1_ldflags=
5771 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5772 # if supported. But if the user explicitly specified the libraries to use,
5773 # trust that they are doing what they want.
5774 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5775 stage1_ldflags="-static-libstdc++ -static-libgcc"
5776 fi
5777fi
5778
5779
5780
5781# Libraries to use for stage2 and later builds. This defaults to the
5782# argument passed to --with-host-libstdcxx.
5783
5784# Check whether --with-boot-libs was given.
5785if test "${with_boot_libs+set}" = set; then :
5786 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5787 poststage1_libs=
5788 else
5789 poststage1_libs=$withval
5790 fi
5791else
5792 poststage1_libs=$with_host_libstdcxx
5793fi
5794
5795
5796
5797# Linker flags to use for stage2 and later builds.
5798
5799# Check whether --with-boot-ldflags was given.
5800if test "${with_boot_ldflags+set}" = set; then :
5801 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_ldflags=
5803 else
5804 poststage1_ldflags=$withval
5805 fi
5806else
5807 poststage1_ldflags=
5808 # In stages 2 and 3, default to linking libstdc++ and libgcc
5809 # statically. But if the user explicitly specified the libraries to
5810 # use, trust that they are doing what they want.
5811 if test "$poststage1_libs" = ""; then
5812 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5813 fi
5814fi
5815
5816
5817
5818# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5819# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5820# config/isl.m4
5821
5822
5823# Check whether --with-cloog was given.
5824if test "${with_cloog+set}" = set; then :
5825 withval=$with_cloog;
5826fi
5827
5828
5829# Check whether --with-isl was given.
5830if test "${with_isl+set}" = set; then :
5831 withval=$with_isl;
5832fi
5833
5834
5835# Treat either --without-cloog or --without-isl as a request to disable
5836# GRAPHITE support and skip all following checks.
5837if test "x$with_isl" != "xno" &&
5838 test "x$with_cloog" != "xno"; then
5839 # Check for ISL
5840
5841
5842# Check whether --with-isl-include was given.
5843if test "${with_isl_include+set}" = set; then :
5844 withval=$with_isl_include;
5845fi
5846
5847
5848# Check whether --with-isl-lib was given.
5849if test "${with_isl_lib+set}" = set; then :
5850 withval=$with_isl_lib;
5851fi
5852
5853
5854 # Check whether --enable-isl-version-check was given.
5855if test "${enable_isl_version_check+set}" = set; then :
5856 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5857else
5858 ENABLE_ISL_CHECK=yes
5859fi
5860
5861
5862 # Initialize isllibs and islinc.
5863 case $with_isl in
5864 no)
5865 isllibs=
5866 islinc=
5867 ;;
5868 "" | yes)
5869 ;;
5870 *)
5871 isllibs="-L$with_isl/lib"
5872 islinc="-I$with_isl/include"
5873 ;;
5874 esac
5875 if test "x${with_isl_include}" != x ; then
5876 islinc="-I$with_isl_include"
5877 fi
5878 if test "x${with_isl_lib}" != x; then
5879 isllibs="-L$with_isl_lib"
5880 fi
5881 if test "x${islinc}" = x && test "x${isllibs}" = x \
5882 && test -d ${srcdir}/isl; then
5883 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5884 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5885 ENABLE_ISL_CHECK=no
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5887$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5888 fi
5889
5890
5891
5892 if test "${ENABLE_ISL_CHECK}" = yes ; then
5893 _isl_saved_CFLAGS=$CFLAGS
5894 _isl_saved_LDFLAGS=$LDFLAGS
5895 _isl_saved_LIBS=$LIBS
5896
5897 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5898 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5899 LIBS="${_isl_saved_LIBS} -lisl"
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5902$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5903 if test "$cross_compiling" = yes; then :
5904 gcc_cv_isl=yes
5905else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h. */
5908#include <isl/version.h>
5909 #include <string.h>
5910int
5911main ()
5912{
5913if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5914 return 1;
5915
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_run "$LINENO"; then :
5921 gcc_cv_isl=yes
5922else
5923 gcc_cv_isl=no
5924fi
5925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5926 conftest.$ac_objext conftest.beam conftest.$ac_ext
5927fi
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5930$as_echo "$gcc_cv_isl" >&6; }
5931
5932 CFLAGS=$_isl_saved_CFLAGS
5933 LDFLAGS=$_isl_saved_LDFLAGS
5934 LIBS=$_isl_saved_LIBS
5935 fi
5936
5937
5938 if test "${gcc_cv_isl}" = no ; then
5939
5940 if test "${ENABLE_ISL_CHECK}" = yes ; then
5941 _isl_saved_CFLAGS=$CFLAGS
5942 _isl_saved_LDFLAGS=$LDFLAGS
5943 _isl_saved_LIBS=$LIBS
5944
5945 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5946 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5947 LIBS="${_isl_saved_LIBS} -lisl"
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5950$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5951 if test "$cross_compiling" = yes; then :
5952 gcc_cv_isl=yes
5953else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956#include <isl/version.h>
5957 #include <string.h>
5958int
5959main ()
5960{
5961if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5962 return 1;
5963
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_run "$LINENO"; then :
5969 gcc_cv_isl=yes
5970else
5971 gcc_cv_isl=no
5972fi
5973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
5975fi
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5978$as_echo "$gcc_cv_isl" >&6; }
5979
5980 CFLAGS=$_isl_saved_CFLAGS
5981 LDFLAGS=$_isl_saved_LDFLAGS
5982 LIBS=$_isl_saved_LIBS
5983 fi
5984
5985
5986 if test "${gcc_cv_isl}" = no ; then
5987
5988 if test "${ENABLE_ISL_CHECK}" = yes ; then
5989 _isl_saved_CFLAGS=$CFLAGS
5990 _isl_saved_LDFLAGS=$LDFLAGS
5991 _isl_saved_LIBS=$LIBS
5992
5993 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5994 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5995 LIBS="${_isl_saved_LIBS} -lisl"
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5998$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5999 if test "$cross_compiling" = yes; then :
6000 gcc_cv_isl=yes
6001else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#include <isl/version.h>
6005 #include <string.h>
6006int
6007main ()
6008{
6009if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6010 return 1;
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_run "$LINENO"; then :
6017 gcc_cv_isl=yes
6018else
6019 gcc_cv_isl=no
6020fi
6021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6022 conftest.$ac_objext conftest.beam conftest.$ac_ext
6023fi
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6026$as_echo "$gcc_cv_isl" >&6; }
6027
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6031 fi
6032
6033
6034 fi
6035 fi
6036
6037
6038
6039
6040 if test "x${with_isl}" = xno; then
6041 graphite_requested=no
6042 elif test "x${with_isl}" != x \
6043 || test "x${with_isl_include}" != x \
6044 || test "x${with_isl_lib}" != x ; then
6045 graphite_requested=yes
6046 else
6047 graphite_requested=no
6048 fi
6049
6050
6051
6052 if test "${gcc_cv_isl}" = no ; then
6053 isllibs=
6054 islinc=
6055 fi
6056
6057 if test "${graphite_requested}" = yes \
6058 && test "x${isllibs}" = x \
6059 && test "x${islinc}" = x ; then
6060
6061 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6062 fi
6063
6064
6065
6066 if test "x$gcc_cv_isl" != "xno"; then
6067 # Check for CLOOG
6068
6069
6070# Check whether --with-cloog-include was given.
6071if test "${with_cloog_include+set}" = set; then :
6072 withval=$with_cloog_include;
6073fi
6074
6075
6076# Check whether --with-cloog-lib was given.
6077if test "${with_cloog_lib+set}" = set; then :
6078 withval=$with_cloog_lib;
6079fi
6080
6081
6082 # Check whether --enable-cloog-version-check was given.
6083if test "${enable_cloog_version_check+set}" = set; then :
6084 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6085else
6086 ENABLE_CLOOG_CHECK=yes
6087fi
6088
6089
6090 # Initialize clooglibs and clooginc.
6091 case $with_cloog in
6092 no)
6093 clooglibs=
6094 clooginc=
6095 ;;
6096 "" | yes)
6097 ;;
6098 *)
6099 clooglibs="-L$with_cloog/lib"
6100 clooginc="-I$with_cloog/include"
6101 ;;
6102 esac
6103 if test "x${with_cloog_include}" != x ; then
6104 clooginc="-I$with_cloog_include"
6105 fi
6106 if test "x${with_cloog_lib}" != x; then
6107 clooglibs="-L$with_cloog_lib"
6108 fi
6109 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6110 && test -d ${srcdir}/cloog; then
6111 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6112 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6113 ENABLE_CLOOG_CHECK=no
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6115$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6116 fi
6117
6118 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6119 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6120
6121
6122
6123
6124
6125 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6126 _cloog_saved_CFLAGS=$CFLAGS
6127 _cloog_saved_LDFLAGS=$LDFLAGS
6128
6129 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6130 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6133$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h. */
6136#include "cloog/version.h"
6137int
6138main ()
6139{
6140#if CLOOG_VERSION_MAJOR != 0 \
6141 || CLOOG_VERSION_MINOR != 17 \
6142 || CLOOG_VERSION_REVISION < 0
6143 choke me
6144 #endif
6145 ;
6146 return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then :
6150 gcc_cv_cloog=yes
6151else
6152 gcc_cv_cloog=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6156$as_echo "$gcc_cv_cloog" >&6; }
6157
6158 CFLAGS=$_cloog_saved_CFLAGS
6159 LDFLAGS=$_cloog_saved_LDFLAGS
6160 fi
6161
6162
6163 if test "${gcc_cv_cloog}" = no ; then
6164
6165
6166
6167 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6168 _cloog_saved_CFLAGS=$CFLAGS
6169 _cloog_saved_LDFLAGS=$LDFLAGS
6170
6171 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6172 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6175$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178#include "cloog/version.h"
6179int
6180main ()
6181{
6182#if CLOOG_VERSION_MAJOR != 0 \
6183 || CLOOG_VERSION_MINOR != 18 \
6184 || CLOOG_VERSION_REVISION < 0
6185 choke me
6186 #endif
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192 gcc_cv_cloog=yes
6193else
6194 gcc_cv_cloog=no
6195fi
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6198$as_echo "$gcc_cv_cloog" >&6; }
6199
6200 CFLAGS=$_cloog_saved_CFLAGS
6201 LDFLAGS=$_cloog_saved_LDFLAGS
6202 fi
6203
6204
6205 fi
6206
6207
6208
6209
6210
6211 if test "x${with_cloog}" = xno; then
6212 graphite_requested=no
6213 elif test "x${with_cloog}" != x \
6214 || test "x${with_cloog_include}" != x \
6215 || test "x${with_cloog_lib}" != x ; then
6216 graphite_requested=yes
6217 else
6218 graphite_requested=no
6219 fi
6220
6221
6222
6223 if test "${gcc_cv_cloog}" = no ; then
6224 clooglibs=
6225 clooginc=
6226 fi
6227
6228 if test "${graphite_requested}" = yes \
6229 && test "x${clooglibs}" = x \
6230 && test "x${clooginc}" = x ; then
6231
6232 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6233 fi
6234
6235
6236 fi
6237fi
6238
6239# If either the ISL or the CLooG check failed, disable builds of in-tree
6240# variants of both
6241if test "x$with_isl" = xno ||
6242 test "x$with_cloog" = xno ||
6243 test "x$gcc_cv_cloog" = xno ||
6244 test "x$gcc_cv_isl" = xno; then
6245 noconfigdirs="$noconfigdirs cloog isl"
6246 islinc=
6247 clooginc=
6248 clooglibs=
6249fi
6250
6251
6252
6253
6254
6255
6256# Check for LTO support.
6257# Check whether --enable-lto was given.
6258if test "${enable_lto+set}" = set; then :
6259 enableval=$enable_lto; enable_lto=$enableval
6260else
6261 enable_lto=yes; default_enable_lto=yes
6262fi
6263
6264
6265
6266
6267
6268target_elf=no
6269case $target in
6270 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6271 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6272 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6273 target_elf=no
6274 ;;
6275 *)
6276 target_elf=yes
6277 ;;
6278esac
6279
6280if test $target_elf = yes; then :
6281 # ELF platforms build the lto-plugin always.
6282 build_lto_plugin=yes
6283
6284else
6285 if test x"$default_enable_lto" = x"yes" ; then
6286 case $target in
6287 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6288 # On other non-ELF platforms, LTO has yet to be validated.
6289 *) enable_lto=no ;;
6290 esac
6291 else
6292 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6293 # It would also be nice to check the binutils support, but we don't
6294 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6295 # warn during gcc/ subconfigure; unless you're bootstrapping with
6296 # -flto it won't be needed until after installation anyway.
6297 case $target in
6298 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6299 *) if test x"$enable_lto" = x"yes"; then
6300 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6301 fi
6302 ;;
6303 esac
6304 fi
6305 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6306 # Build it unless LTO was explicitly disabled.
6307 case $target in
6308 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6309 *) ;;
6310 esac
6311
6312fi
6313
6314
6315
6316# By default, C and C++ are the only stage 1 languages.
6317stage1_languages=,c,
6318
6319# Target libraries that we bootstrap.
6320bootstrap_target_libs=,target-libgcc,
6321
6322# Figure out what language subdirectories are present.
6323# Look if the user specified --enable-languages="..."; if not, use
6324# the environment variable $LANGUAGES if defined. $LANGUAGES might
6325# go away some day.
6326# NB: embedded tabs in this IF block -- do not untabify
6327if test -d ${srcdir}/gcc; then
6328 if test x"${enable_languages+set}" != xset; then
6329 if test x"${LANGUAGES+set}" = xset; then
6330 enable_languages="${LANGUAGES}"
6331 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6332 else
6333 enable_languages=all
6334 fi
6335 else
6336 if test x"${enable_languages}" = x ||
6337 test x"${enable_languages}" = xyes;
6338 then
6339 echo configure.in: --enable-languages needs at least one language argument 1>&2
6340 exit 1
6341 fi
6342 fi
6343 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6344
6345 # 'f95' is the old name for the 'fortran' language. We issue a warning
6346 # and make the substitution.
6347 case ,${enable_languages}, in
6348 *,f95,*)
6349 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6350 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6351 ;;
6352 esac
6353
6354 # If bootstrapping, C++ must be enabled.
6355 case ",$enable_languages,:$enable_bootstrap" in
6356 *,c++,*:*) ;;
6357 *:yes)
6358 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6359 enable_languages="${enable_languages},c++"
6360 else
6361 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6362 fi
6363 ;;
6364 esac
6365
6366 # First scan to see if an enabled language requires some other language.
6367 # We assume that a given config-lang.in will list all the language
6368 # front ends it requires, even if some are required indirectly.
6369 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6370 case ${lang_frag} in
6371 ..) ;;
6372 # The odd quoting in the next line works around
6373 # an apparent bug in bash 1.12 on linux.
6374 ${srcdir}/gcc/[*]/config-lang.in) ;;
6375 *)
6376 # From the config-lang.in, get $language, $lang_requires, and
6377 # $lang_requires_boot_languages.
6378 language=
6379 lang_requires=
6380 lang_requires_boot_languages=
6381 . ${lang_frag}
6382 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6383 case ,${enable_languages}, in
6384 *,$other,*) ;;
6385 *,all,*) ;;
6386 *,$language,*)
6387 echo " \`$other' language required by \`$language'; enabling" 1>&2
6388 enable_languages="${enable_languages},${other}"
6389 ;;
6390 esac
6391 done
6392 for other in ${lang_requires_boot_languages} ; do
6393 if test "$other" != "c"; then
6394 case ,${enable_stage1_languages}, in
6395 *,$other,*) ;;
6396 *,all,*) ;;
6397 *)
6398 case ,${enable_languages}, in
6399 *,$language,*)
6400 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6401 enable_stage1_languages="$enable_stage1_languages,${other}"
6402 ;;
6403 esac
6404 ;;
6405 esac
6406 fi
6407 done
6408 ;;
6409 esac
6410 done
6411
6412 new_enable_languages=,c,
6413
6414 # If LTO is enabled, add the LTO front end.
6415 extra_host_libiberty_configure_flags=
6416 if test "$enable_lto" = "yes" ; then
6417 case ,${enable_languages}, in
6418 *,lto,*) ;;
6419 *) enable_languages="${enable_languages},lto" ;;
6420 esac
6421 if test "${build_lto_plugin}" = "yes" ; then
6422 configdirs="$configdirs lto-plugin"
6423 extra_host_libiberty_configure_flags=--enable-shared
6424 fi
6425 fi
6426
6427
6428 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6429 potential_languages=,c,
6430
6431 enabled_target_libs=
6432 disabled_target_libs=
6433
6434 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6435 case ${lang_frag} in
6436 ..) ;;
6437 # The odd quoting in the next line works around
6438 # an apparent bug in bash 1.12 on linux.
6439 ${srcdir}/gcc/[*]/config-lang.in) ;;
6440 *)
6441 # From the config-lang.in, get $language, $target_libs,
6442 # $lang_dirs, $boot_language, and $build_by_default
6443 language=
6444 target_libs=
6445 lang_dirs=
6446 subdir_requires=
6447 boot_language=no
6448 build_by_default=yes
6449 . ${lang_frag}
6450 if test x${language} = x; then
6451 echo "${lang_frag} doesn't set \$language." 1>&2
6452 exit 1
6453 fi
6454
6455 if test "$language" = "c++"; then
6456 boot_language=yes
6457 fi
6458
6459 add_this_lang=no
6460 case ,${enable_languages}, in
6461 *,${language},*)
6462 # Language was explicitly selected; include it
6463 # unless it is C, which is enabled by default.
6464 if test "$language" != "c"; then
6465 add_this_lang=yes
6466 fi
6467 ;;
6468 *,all,*)
6469 # 'all' was selected, select it if it is a default language
6470 if test "$language" != "c"; then
6471 add_this_lang=${build_by_default}
6472 fi
6473 ;;
6474 esac
6475
6476 # Disable languages that need other directories if these aren't available.
6477 for i in $subdir_requires; do
6478 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6479 case ,${enable_languages}, in
6480 *,${language},*)
6481 # Specifically requested language; tell them.
6482 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6483 ;;
6484 *)
6485 # Silently disable.
6486 add_this_lang=unsupported
6487 ;;
6488 esac
6489 done
6490
6491 # Disable Ada if no preexisting GNAT is available.
6492 case ,${enable_languages},:${language}:${have_gnat} in
6493 *,${language},*:ada:no)
6494 # Specifically requested language; tell them.
6495 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6496 ;;
6497 *:ada:no)
6498 # Silently disable.
6499 add_this_lang=unsupported
6500 ;;
6501 esac
6502
6503 # Disable a language that is unsupported by the target.
6504 case " $unsupported_languages " in
6505 *" $language "*)
6506 add_this_lang=unsupported
6507 ;;
6508 esac
6509
6510 case $add_this_lang in
6511 unsupported)
6512 # Remove language-dependent dirs.
6513 disabled_target_libs="$disabled_target_libs $target_libs"
6514 noconfigdirs="$noconfigdirs $lang_dirs"
6515 ;;
6516 no)
6517 # Remove language-dependent dirs; still show language as supported.
6518 disabled_target_libs="$disabled_target_libs $target_libs"
6519 noconfigdirs="$noconfigdirs $lang_dirs"
6520 potential_languages="${potential_languages}${language},"
6521 ;;
6522 yes)
6523 new_enable_languages="${new_enable_languages}${language},"
6524 potential_languages="${potential_languages}${language},"
6525 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6526 enabled_target_libs="$enabled_target_libs $target_libs"
6527 case "${boot_language}:,$enable_stage1_languages," in
6528 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6529 # Add to (comma-separated) list of stage 1 languages.
6530 case ",$stage1_languages," in
6531 *,$language,* | ,yes, | ,all,) ;;
6532 *) stage1_languages="${stage1_languages}${language}," ;;
6533 esac
6534 # We need to bootstrap any supporting libraries.
6535 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6536 ;;
6537 esac
6538 ;;
6539 esac
6540 ;;
6541 esac
6542 done
6543
6544 # Add target libraries which are only needed for disabled languages
6545 # to noconfigdirs.
6546 if test -n "$disabled_target_libs"; then
6547 for dir in $disabled_target_libs; do
6548 case " $enabled_target_libs " in
6549 *" ${dir} "*) ;;
6550 *) noconfigdirs="$noconfigdirs $dir" ;;
6551 esac
6552 done
6553 fi
6554
6555 # Check whether --enable-stage1-languages was given.
6556if test "${enable_stage1_languages+set}" = set; then :
6557 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6558 ,no,|,,)
6559 # Set it to something that will have no effect in the loop below
6560 enable_stage1_languages=c ;;
6561 ,yes,)
6562 enable_stage1_languages=`echo $new_enable_languages | \
6563 sed -e "s/^,//" -e "s/,$//" ` ;;
6564 *,all,*)
6565 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6566 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6567 esac
6568
6569 # Add "good" languages from enable_stage1_languages to stage1_languages,
6570 # while "bad" languages go in missing_languages. Leave no duplicates.
6571 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6572 case $potential_languages in
6573 *,$i,*)
6574 case $stage1_languages in
6575 *,$i,*) ;;
6576 *) stage1_languages="$stage1_languages$i," ;;
6577 esac ;;
6578 *)
6579 case $missing_languages in
6580 *,$i,*) ;;
6581 *) missing_languages="$missing_languages$i," ;;
6582 esac ;;
6583 esac
6584 done
6585fi
6586
6587
6588 # Remove leading/trailing commas that were added for simplicity
6589 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6590 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6591 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6592 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6593
6594 if test "x$missing_languages" != x; then
6595 as_fn_error "
6596The following requested languages could not be built: ${missing_languages}
6597Supported languages are: ${potential_languages}" "$LINENO" 5
6598 fi
6599 if test "x$new_enable_languages" != "x$enable_languages"; then
6600 echo The following languages will be built: ${new_enable_languages}
6601 enable_languages="$new_enable_languages"
6602 fi
6603
6604
6605 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6606fi
6607
6608# Handle --disable-<component> generically.
6609for dir in $configdirs $build_configdirs $target_configdirs ; do
6610 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6611 varname=`echo $dirname | sed -e s/+/_/g`
6612 if eval test x\${enable_${varname}} "=" xno ; then
6613 noconfigdirs="$noconfigdirs $dir"
6614 fi
6615done
6616
6617# Check for Boehm's garbage collector
6618# Check whether --enable-objc-gc was given.
6619if test "${enable_objc_gc+set}" = set; then :
6620 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6621 *,objc,*:*:yes:*target-boehm-gc*)
6622 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6623 ;;
6624esac
6625fi
6626
6627
6628# Make sure we only build Boehm's garbage collector if required.
6629case ,${enable_languages},:${enable_objc_gc} in
6630 *,objc,*:yes)
6631 # Keep target-boehm-gc if requested for Objective-C.
6632 ;;
6633 *)
6634 # Otherwise remove target-boehm-gc depending on target-libjava.
6635 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6636 noconfigdirs="$noconfigdirs target-boehm-gc"
6637 fi
6638 ;;
6639esac
6640
6641# Disable libitm, libsanitizer, libvtv if we're not building C++
6642case ,${enable_languages}, in
6643 *,c++,*) ;;
6644 *)
6645 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6646 ;;
6647esac
6648
6649# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6650# $build_configdirs and $target_configdirs.
6651# If we have the source for $noconfigdirs entries, add them to $notsupp.
6652
6653notsupp=""
6654for dir in . $skipdirs $noconfigdirs ; do
6655 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6656 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6657 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6658 if test -r $srcdir/$dirname/configure ; then
6659 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6660 true
6661 else
6662 notsupp="$notsupp $dir"
6663 fi
6664 fi
6665 fi
6666 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6667 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6668 if test -r $srcdir/$dirname/configure ; then
6669 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6670 true
6671 else
6672 notsupp="$notsupp $dir"
6673 fi
6674 fi
6675 fi
6676 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6678 if test -r $srcdir/$dirname/configure ; then
6679 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6680 true
6681 else
6682 notsupp="$notsupp $dir"
6683 fi
6684 fi
6685 fi
6686done
6687
6688# Quietly strip out all directories which aren't configurable in this tree.
6689# This relies on all configurable subdirectories being autoconfiscated, which
6690# is now the case.
6691build_configdirs_all="$build_configdirs"
6692build_configdirs=
6693for i in ${build_configdirs_all} ; do
6694 j=`echo $i | sed -e s/build-//g`
6695 if test -f ${srcdir}/$j/configure ; then
6696 build_configdirs="${build_configdirs} $i"
6697 fi
6698done
6699
6700configdirs_all="$configdirs"
6701configdirs=
6702for i in ${configdirs_all} ; do
6703 if test -f ${srcdir}/$i/configure ; then
6704 configdirs="${configdirs} $i"
6705 fi
6706done
6707
6708target_configdirs_all="$target_configdirs"
6709target_configdirs=
6710for i in ${target_configdirs_all} ; do
6711 j=`echo $i | sed -e s/target-//g`
6712 if test -f ${srcdir}/$j/configure ; then
6713 target_configdirs="${target_configdirs} $i"
6714 fi
6715done
6716
6717# Produce a warning message for the subdirs we can't configure.
6718# This isn't especially interesting in the Cygnus tree, but in the individual
6719# FSF releases, it's important to let people know when their machine isn't
6720# supported by the one or two programs in a package.
6721
6722if test -n "${notsupp}" && test -z "${norecursion}" ; then
6723 # If $appdirs is non-empty, at least one of those directories must still
6724 # be configured, or we error out. (E.g., if the gas release supports a
6725 # specified target in some subdirs but not the gas subdir, we shouldn't
6726 # pretend that all is well.)
6727 if test -n "$appdirs" ; then
6728 for dir in $appdirs ; do
6729 if test -r $dir/Makefile.in ; then
6730 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 appdirs=""
6732 break
6733 fi
6734 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6735 appdirs=""
6736 break
6737 fi
6738 fi
6739 done
6740 if test -n "$appdirs" ; then
6741 echo "*** This configuration is not supported by this package." 1>&2
6742 exit 1
6743 fi
6744 fi
6745 # Okay, some application will build, or we don't care to check. Still
6746 # notify of subdirs not getting built.
6747 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6748 echo " ${notsupp}" 1>&2
6749 echo " (Any other directories should still work fine.)" 1>&2
6750fi
6751
6752case "$host" in
6753 *msdosdjgpp*)
6754 enable_gdbtk=no ;;
6755esac
6756
6757# To find our prefix, in gcc_cv_tool_prefix.
6758
6759# The user is always right.
6760if test "${PATH_SEPARATOR+set}" != set; then
6761 echo "#! /bin/sh" >conf$$.sh
6762 echo "exit 0" >>conf$$.sh
6763 chmod +x conf$$.sh
6764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6765 PATH_SEPARATOR=';'
6766 else
6767 PATH_SEPARATOR=:
6768 fi
6769 rm -f conf$$.sh
6770fi
6771
6772
6773
6774if test "x$exec_prefix" = xNONE; then
6775 if test "x$prefix" = xNONE; then
6776 gcc_cv_tool_prefix=$ac_default_prefix
6777 else
6778 gcc_cv_tool_prefix=$prefix
6779 fi
6780else
6781 gcc_cv_tool_prefix=$exec_prefix
6782fi
6783
6784# If there is no compiler in the tree, use the PATH only. In any
6785# case, if there is no compiler in the tree nobody should use
6786# AS_FOR_TARGET and LD_FOR_TARGET.
6787if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6788 gcc_version=`cat $srcdir/gcc/BASE-VER`
6789 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6793 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6794 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6795else
6796 gcc_cv_tool_dirs=
6797fi
6798
6799if test x$build = x$target && test -n "$md_exec_prefix"; then
6800 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6801fi
6802
6803
6804
6805copy_dirs=
6806
6807
6808# Check whether --with-build-sysroot was given.
6809if test "${with_build_sysroot+set}" = set; then :
6810 withval=$with_build_sysroot; if test x"$withval" != x ; then
6811 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6812 fi
6813else
6814 SYSROOT_CFLAGS_FOR_TARGET=
6815fi
6816
6817
6818
6819
6820# Check whether --with-debug-prefix-map was given.
6821if test "${with_debug_prefix_map+set}" = set; then :
6822 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6824 for debug_map in $withval; do
6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6826 done
6827 fi
6828else
6829 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6830fi
6831
6832
6833
6834# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6835# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6836# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6837# We want to ensure that TARGET libraries (which we know are built with
6838# gcc) are built with "-O2 -g", so include those options when setting
6839# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6840if test "x$CFLAGS_FOR_TARGET" = x; then
6841 CFLAGS_FOR_TARGET=$CFLAGS
6842 case " $CFLAGS " in
6843 *" -O2 "*) ;;
6844 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6845 esac
6846 case " $CFLAGS " in
6847 *" -g "* | *" -g3 "*) ;;
6848 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6849 esac
6850fi
6851
6852
6853if test "x$CXXFLAGS_FOR_TARGET" = x; then
6854 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6855 case " $CXXFLAGS " in
6856 *" -O2 "*) ;;
6857 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6858 esac
6859 case " $CXXFLAGS " in
6860 *" -g "* | *" -g3 "*) ;;
6861 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6862 esac
6863fi
6864
6865
6866
6867
6868# Handle --with-headers=XXX. If the value is not "yes", the contents of
6869# the named directory are copied to $(tooldir)/sys-include.
6870if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6871 if test x${is_cross_compiler} = xno ; then
6872 echo 1>&2 '***' --with-headers is only supported when cross compiling
6873 exit 1
6874 fi
6875 if test x"${with_headers}" != xyes ; then
6876 x=${gcc_cv_tool_prefix}
6877 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6878 fi
6879fi
6880
6881# Handle --with-libs=XXX. If the value is not "yes", the contents of
6882# the name directories are copied to $(tooldir)/lib. Multiple directories
6883# are permitted.
6884if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-libs is only supported when cross compiling
6887 exit 1
6888 fi
6889 if test x"${with_libs}" != xyes ; then
6890 # Copy the libraries in reverse order, so that files in the first named
6891 # library override files in subsequent libraries.
6892 x=${gcc_cv_tool_prefix}
6893 for l in ${with_libs}; do
6894 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6895 done
6896 fi
6897fi
6898
6899# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6900#
6901# This is done by determining whether or not the appropriate directory
6902# is available, and by checking whether or not specific configurations
6903# have requested that this magic not happen.
6904#
6905# The command line options always override the explicit settings in
6906# configure.in, and the settings in configure.in override this magic.
6907#
6908# If the default for a toolchain is to use GNU as and ld, and you don't
6909# want to do that, then you should use the --without-gnu-as and
6910# --without-gnu-ld options for the configure script. Similarly, if
6911# the default is to use the included zlib and you don't want to do that,
6912# you should use the --with-system-zlib option for the configure script.
6913
6914if test x${use_gnu_as} = x &&
6915 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6916 with_gnu_as=yes
6917 extra_host_args="$extra_host_args --with-gnu-as"
6918fi
6919
6920if test x${use_gnu_ld} = x &&
6921 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6922 with_gnu_ld=yes
6923 extra_host_args="$extra_host_args --with-gnu-ld"
6924fi
6925
6926if test x${use_included_zlib} = x &&
6927 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6928 :
6929else
6930 with_system_zlib=yes
6931 extra_host_args="$extra_host_args --with-system-zlib"
6932fi
6933
6934# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6935# can detect this case.
6936
6937if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6938 with_newlib=yes
6939 extra_host_args="$extra_host_args --with-newlib"
6940fi
6941
6942# Handle ${copy_dirs}
6943set fnord ${copy_dirs}
6944shift
6945while test $# != 0 ; do
6946 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6947 :
6948 else
6949 echo Copying $1 to $2
6950
6951 # Use the install script to create the directory and all required
6952 # parent directories.
6953 if test -d $2 ; then
6954 :
6955 else
6956 echo >config.temp
6957 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6958 fi
6959
6960 # Copy the directory, assuming we have tar.
6961 # FIXME: Should we use B in the second tar? Not all systems support it.
6962 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6963
6964 # It is the responsibility of the user to correctly adjust all
6965 # symlinks. If somebody can figure out how to handle them correctly
6966 # here, feel free to add the code.
6967
6968 echo $1 > $2/COPIED
6969 fi
6970 shift; shift
6971done
6972
6973# Determine a target-dependent exec_prefix that the installed
6974# gcc will search in. Keep this list sorted by triplet, with
6975# the *-*-osname triplets last.
6976md_exec_prefix=
6977case "${target}" in
6978 i[34567]86-pc-msdosdjgpp*)
6979 md_exec_prefix=/dev/env/DJDIR/bin
6980 ;;
6981 *-*-hpux* | \
6982 *-*-nto-qnx* | \
6983 *-*-solaris2*)
6984 md_exec_prefix=/usr/ccs/bin
6985 ;;
6986esac
6987
6988extra_arflags_for_target=
6989extra_nmflags_for_target=
6990extra_ranlibflags_for_target=
6991target_makefile_frag=/dev/null
6992case "${target}" in
6993 spu-*-*)
6994 target_makefile_frag="config/mt-spu"
6995 ;;
6996 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6997 target_makefile_frag="config/mt-sde"
6998 ;;
6999 mipsisa*-*-elfoabi*)
7000 target_makefile_frag="config/mt-mips-elfoabi"
7001 ;;
7002 mips*-*-*linux* | mips*-*-gnu*)
7003 target_makefile_frag="config/mt-mips-gnu"
7004 ;;
7005 nios2-*-elf*)
7006 target_makefile_frag="config/mt-nios2-elf"
7007 ;;
7008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7009 target_makefile_frag="config/mt-gnu"
7010 ;;
7011 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7012 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7013 # commands to handle both 32-bit and 64-bit objects. These flags are
7014 # harmless if we're using GNU nm or ar.
7015 extra_arflags_for_target=" -X32_64"
7016 extra_nmflags_for_target=" -B -X32_64"
7017 ;;
7018esac
7019
7020alphaieee_frag=/dev/null
7021case $target in
7022 alpha*-*-*)
7023 # This just makes sure to use the -mieee option to build target libs.
7024 # This should probably be set individually by each library.
7025 alphaieee_frag="config/mt-alphaieee"
7026 ;;
7027esac
7028
7029# If --enable-target-optspace always use -Os instead of -O2 to build
7030# the target libraries, similarly if it is not specified, use -Os
7031# on selected platforms.
7032ospace_frag=/dev/null
7033case "${enable_target_optspace}:${target}" in
7034 yes:*)
7035 ospace_frag="config/mt-ospace"
7036 ;;
7037 :d30v-*)
7038 ospace_frag="config/mt-d30v"
7039 ;;
7040 :m32r-* | :d10v-* | :fr30-*)
7041 ospace_frag="config/mt-ospace"
7042 ;;
7043 no:* | :*)
7044 ;;
7045 *)
7046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7047 ;;
7048esac
7049
7050# Some systems (e.g., one of the i386-aix systems the gas testers are
7051# using) don't handle "\$" correctly, so don't use it here.
7052tooldir='${exec_prefix}'/${target_noncanonical}
7053build_tooldir=${tooldir}
7054
7055# Create a .gdbinit file which runs the one in srcdir
7056# and tells GDB to look there for source files.
7057
7058if test -r ${srcdir}/.gdbinit ; then
7059 case ${srcdir} in
7060 .) ;;
7061 *) cat > ./.gdbinit <<EOF
7062# ${NO_EDIT}
7063dir ${srcdir}
7064dir .
7065source ${srcdir}/.gdbinit
7066EOF
7067 ;;
7068 esac
7069fi
7070
7071# Make sure that the compiler is able to generate an executable. If it
7072# can't, we are probably in trouble. We don't care whether we can run the
7073# executable--we might be using a cross compiler--we only care whether it
7074# can be created. At this point the main configure script has set CC.
7075we_are_ok=no
7076echo "int main () { return 0; }" > conftest.c
7077${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7078if test $? = 0 ; then
7079 if test -s conftest || test -s conftest.exe ; then
7080 we_are_ok=yes
7081 fi
7082fi
7083case $we_are_ok in
7084 no)
7085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7087 rm -f conftest*
7088 exit 1
7089 ;;
7090esac
7091rm -f conftest*
7092
7093# Decide which environment variable is used to find dynamic libraries.
7094case "${host}" in
7095 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7096 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7097 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7098 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7099esac
7100
7101# On systems where the dynamic library environment variable is PATH,
7102# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7103# built executables to PATH.
7104if test "$RPATH_ENVVAR" = PATH; then
7105 GCC_SHLIB_SUBDIR=/shlib
7106else
7107 GCC_SHLIB_SUBDIR=
7108fi
7109
7110# Adjust the toplevel makefile according to whether bootstrap was selected.
7111case $enable_bootstrap in
7112 yes)
7113 bootstrap_suffix=bootstrap
7114 BUILD_CONFIG=bootstrap-debug
7115 ;;
7116 no)
7117 bootstrap_suffix=no-bootstrap
7118 BUILD_CONFIG=
7119 ;;
7120esac
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7123$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7124
7125
7126# Check whether --with-build-config was given.
7127if test "${with_build_config+set}" = set; then :
7128 withval=$with_build_config; case $with_build_config in
7129 yes) with_build_config= ;;
7130 no) with_build_config= BUILD_CONFIG= ;;
7131 esac
7132fi
7133
7134
7135if test "x${with_build_config}" != x; then
7136 BUILD_CONFIG=$with_build_config
7137else
7138 case $BUILD_CONFIG in
7139 bootstrap-debug)
7140 if echo "int f (void) { return 0; }" > conftest.c &&
7141 ${CC} -c conftest.c &&
7142 mv conftest.o conftest.o.g0 &&
7143 ${CC} -c -g conftest.c &&
7144 mv conftest.o conftest.o.g &&
7145 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7146 :
7147 else
7148 BUILD_CONFIG=
7149 fi
7150 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7151 ;;
7152 esac
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7155$as_echo "$BUILD_CONFIG" >&6; }
7156
7157
7158# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7160$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7161# Check whether --enable-vtable-verify was given.
7162if test "${enable_vtable_verify+set}" = set; then :
7163 enableval=$enable_vtable_verify; case "$enableval" in
7164 yes) enable_vtable_verify=yes ;;
7165 no) enable_vtable_verify=no ;;
7166 *) enable_vtable_verify=no;;
7167 esac
7168else
7169 enable_vtable_verify=no
7170fi
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7173$as_echo "$enable_vtable_verify" >&6; }
7174
7175# Record target_configdirs and the configure arguments for target and
7176# build configuration in Makefile.
7177target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7178build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7179bootstrap_fixincludes=no
7180
7181# If we are building libgomp, bootstrap it.
7182if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7184fi
7185
7186# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7187# or bootstrap-ubsan, bootstrap it.
7188if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7189 case "$BUILD_CONFIG" in
7190 *bootstrap-asan* | *bootstrap-ubsan* )
7191 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7192 bootstrap_fixincludes=yes
7193 ;;
7194 esac
7195fi
7196
7197# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7198if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7199 test "$enable_vtable_verify" != no; then
7200 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7201fi
7202
7203# Determine whether gdb needs tk/tcl or not.
7204# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7205# and in that case we want gdb to be built without tk. Ugh!
7206# In fact I believe gdb is the *only* package directly dependent on tk,
7207# so we should be able to put the 'maybe's in unconditionally and
7208# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7209# 100% sure that that's safe though.
7210
7211gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7212case "$enable_gdbtk" in
7213 no)
7214 GDB_TK="" ;;
7215 yes)
7216 GDB_TK="${gdb_tk}" ;;
7217 *)
7218 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7219 # distro. Eventually someone will fix this and move Insight, nee
7220 # gdbtk to a separate directory.
7221 if test -d ${srcdir}/gdb/gdbtk ; then
7222 GDB_TK="${gdb_tk}"
7223 else
7224 GDB_TK=""
7225 fi
7226 ;;
7227esac
7228CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7229INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7230
7231# Strip out unwanted targets.
7232
7233# While at that, we remove Makefiles if we were started for recursive
7234# configuration, so that the top-level Makefile reconfigures them,
7235# like we used to do when configure itself was recursive.
7236
7237# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7238# but now we're fixing up the Makefile ourselves with the additional
7239# commands passed to AC_CONFIG_FILES. Use separate variables
7240# extrasub-{build,host,target} not because there is any reason to split
7241# the substitutions up that way, but only to remain below the limit of
7242# 99 commands in a script, for HP-UX sed.
7243# Do not nest @if/@endif pairs, because configure will not warn you at all.
7244
7245case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7246 yes:yes:*\ gold\ *:*,c++,*) ;;
7247 yes:yes:*\ gold\ *:*)
7248 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7249 ;;
7250esac
7251
7252extrasub_build=
7253for module in ${build_configdirs} ; do
7254 if test -z "${no_recursion}" \
7255 && test -f ${build_subdir}/${module}/Makefile; then
7256 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7257 rm -f ${build_subdir}/${module}/Makefile
7258 fi
7259 extrasub_build="$extrasub_build
7260/^@if build-$module\$/d
7261/^@endif build-$module\$/d
7262/^@if build-$module-$bootstrap_suffix\$/d
7263/^@endif build-$module-$bootstrap_suffix\$/d"
7264done
7265extrasub_host=
7266for module in ${configdirs} ; do
7267 if test -z "${no_recursion}"; then
7268 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7269 if test -f ${file}; then
7270 echo 1>&2 "*** removing ${file} to force reconfigure"
7271 rm -f ${file}
7272 fi
7273 done
7274 fi
7275 case ${module},${bootstrap_fixincludes} in
7276 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7277 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7278 esac
7279 extrasub_host="$extrasub_host
7280/^@if $module\$/d
7281/^@endif $module\$/d
7282/^@if $module-$host_bootstrap_suffix\$/d
7283/^@endif $module-$host_bootstrap_suffix\$/d"
7284done
7285extrasub_target=
7286for module in ${target_configdirs} ; do
7287 if test -z "${no_recursion}" \
7288 && test -f ${target_subdir}/${module}/Makefile; then
7289 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7290 rm -f ${target_subdir}/${module}/Makefile
7291 fi
7292
7293 # We only bootstrap target libraries listed in bootstrap_target_libs.
7294 case $bootstrap_target_libs in
7295 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7296 *) target_bootstrap_suffix=no-bootstrap ;;
7297 esac
7298
7299 extrasub_target="$extrasub_target
7300/^@if target-$module\$/d
7301/^@endif target-$module\$/d
7302/^@if target-$module-$target_bootstrap_suffix\$/d
7303/^@endif target-$module-$target_bootstrap_suffix\$/d"
7304done
7305
7306# Do the final fixup along with target modules.
7307extrasub_target="$extrasub_target
7308/^@if /,/^@endif /d"
7309
7310# Create the serialization dependencies. This uses a temporary file.
7311
7312# Check whether --enable-serial-configure was given.
7313if test "${enable_serial_configure+set}" = set; then :
7314 enableval=$enable_serial_configure;
7315fi
7316
7317
7318case ${enable_serial_configure} in
7319 yes)
7320 enable_serial_build_configure=yes
7321 enable_serial_host_configure=yes
7322 enable_serial_target_configure=yes
7323 ;;
7324esac
7325
7326# These force 'configure's to be done one at a time, to avoid problems
7327# with contention over a shared config.cache.
7328rm -f serdep.tmp
7329echo '# serdep.tmp' > serdep.tmp
7330olditem=
7331test "x${enable_serial_build_configure}" = xyes &&
7332for item in ${build_configdirs} ; do
7333 case ${olditem} in
7334 "") ;;
7335 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7336 esac
7337 olditem=${item}
7338done
7339olditem=
7340test "x${enable_serial_host_configure}" = xyes &&
7341for item in ${configdirs} ; do
7342 case ${olditem} in
7343 "") ;;
7344 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7345 esac
7346 olditem=${item}
7347done
7348olditem=
7349test "x${enable_serial_target_configure}" = xyes &&
7350for item in ${target_configdirs} ; do
7351 case ${olditem} in
7352 "") ;;
7353 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7354 esac
7355 olditem=${item}
7356done
7357serialization_dependencies=serdep.tmp
7358
7359
7360# Base args. Strip norecursion, cache-file, srcdir, host, build,
7361# target, nonopt, and variable assignments. These are the ones we
7362# might not want to pass down to subconfigures. The exception being
7363# --cache-file=/dev/null, which is used to turn off the use of cache
7364# files altogether, and which should be passed on to subconfigures.
7365# Also strip program-prefix, program-suffix, and program-transform-name,
7366# so that we can pass down a consistent program-transform-name.
7367baseargs=
7368tbaseargs=
7369keep_next=no
7370skip_next=no
7371eval "set -- $ac_configure_args"
7372for ac_arg
7373do
7374 if test X"$skip_next" = X"yes"; then
7375 skip_next=no
7376 continue
7377 fi
7378 if test X"$keep_next" = X"yes"; then
7379 case $ac_arg in
7380 *\'*)
7381 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7382 esac
7383 baseargs="$baseargs '$ac_arg'"
7384 tbaseargs="$tbaseargs '$ac_arg'"
7385 keep_next=no
7386 continue
7387 fi
7388
7389 # Handle separated arguments. Based on the logic generated by
7390 # autoconf 2.59.
7391 case $ac_arg in
7392 *=* | --config-cache | -C | -disable-* | --disable-* \
7393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7395 | -with-* | --with-* | -without-* | --without-* | --x)
7396 separate_arg=no
7397 ;;
7398 -*)
7399 separate_arg=yes
7400 ;;
7401 *)
7402 separate_arg=no
7403 ;;
7404 esac
7405
7406 skip_targ=no
7407 case $ac_arg in
7408
7409 --with-* | --without-*)
7410 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7411
7412 case $libopt in
7413 *[-_]include)
7414 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7415 ;;
7416 *[-_]lib)
7417 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7418 ;;
7419 *)
7420 lib=$libopt
7421 ;;
7422 esac
7423
7424
7425 case $lib in
7426 mpc | mpfr | gmp | cloog)
7427 # If we're processing --with-$lib, --with-$lib-include or
7428 # --with-$lib-lib, for one of the libs above, and target is
7429 # different from host, don't pass the current argument to any
7430 # target library's configure.
7431 if test x$is_cross_compiler = xyes; then
7432 skip_targ=yes
7433 fi
7434 ;;
7435 esac
7436 ;;
7437 esac
7438
7439 case "$ac_arg" in
7440 --cache-file=/dev/null | \
7441 -cache-file=/dev/null )
7442 # Handled here to avoid the test to skip args below.
7443 baseargs="$baseargs '$ac_arg'"
7444 tbaseargs="$tbaseargs '$ac_arg'"
7445 # Assert: $separate_arg should always be no.
7446 keep_next=$separate_arg
7447 ;;
7448 --no*)
7449 continue
7450 ;;
7451 --c* | \
7452 --sr* | \
7453 --ho* | \
7454 --bu* | \
7455 --t* | \
7456 --program-* | \
7457 -cache_file* | \
7458 -srcdir* | \
7459 -host* | \
7460 -build* | \
7461 -target* | \
7462 -program-prefix* | \
7463 -program-suffix* | \
7464 -program-transform-name* )
7465 skip_next=$separate_arg
7466 continue
7467 ;;
7468 -*)
7469 # An option. Add it.
7470 case $ac_arg in
7471 *\'*)
7472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 esac
7474 baseargs="$baseargs '$ac_arg'"
7475 if test X"$skip_targ" = Xno; then
7476 tbaseargs="$tbaseargs '$ac_arg'"
7477 fi
7478 keep_next=$separate_arg
7479 ;;
7480 *)
7481 # Either a variable assignment, or a nonopt (triplet). Don't
7482 # pass it down; let the Makefile handle this.
7483 continue
7484 ;;
7485 esac
7486done
7487# Remove the initial space we just introduced and, as these will be
7488# expanded by make, quote '$'.
7489baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7490
7491# Add in --program-transform-name, after --program-prefix and
7492# --program-suffix have been applied to it. Autoconf has already
7493# doubled dollar signs and backslashes in program_transform_name; we want
7494# the backslashes un-doubled, and then the entire thing wrapped in single
7495# quotes, because this will be expanded first by make and then by the shell.
7496# Also, because we want to override the logic in subdir configure scripts to
7497# choose program_transform_name, replace any s,x,x, with s,y,y,.
7498sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7499${program_transform_name}
7500EOF_SED
7501gcc_transform_name=`cat conftestsed.out`
7502rm -f conftestsed.out
7503baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7504tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7505if test "$silent" = yes; then
7506 baseargs="$baseargs --silent"
7507 tbaseargs="$tbaseargs --silent"
7508fi
7509baseargs="$baseargs --disable-option-checking"
7510tbaseargs="$tbaseargs --disable-option-checking"
7511
7512# Record and document user additions to sub configure arguments.
7513
7514
7515
7516
7517# For the build-side libraries, we just need to pretend we're native,
7518# and not use the same cache file. Multilibs are neither needed nor
7519# desired.
7520build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7521
7522# For host modules, accept cache file option, or specification as blank.
7523case "${cache_file}" in
7524"") # empty
7525 cache_file_option="" ;;
7526/* | [A-Za-z]:[\\/]* ) # absolute path
7527 cache_file_option="--cache-file=${cache_file}" ;;
7528*) # relative path
7529 cache_file_option="--cache-file=../${cache_file}" ;;
7530esac
7531
7532# Host dirs don't like to share a cache file either, horribly enough.
7533# This seems to be due to autoconf 2.5x stupidity.
7534host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7535
7536target_configargs="$target_configargs ${tbaseargs}"
7537
7538# Passing a --with-cross-host argument lets the target libraries know
7539# whether they are being built with a cross-compiler or being built
7540# native. However, it would be better to use other mechanisms to make the
7541# sorts of decisions they want to make on this basis. Please consider
7542# this option to be deprecated. FIXME.
7543if test x${is_cross_compiler} = xyes ; then
7544 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7545fi
7546
7547# Special user-friendly check for native x86_64-linux build, if
7548# multilib is not explicitly enabled.
7549case "$target:$have_compiler:$host:$target:$enable_multilib" in
7550 x86_64-*linux*:yes:$build:$build:)
7551 # Make sure we have a developement environment that handles 32-bit
7552 dev64=no
7553 echo "int main () { return 0; }" > conftest.c
7554 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7555 if test $? = 0 ; then
7556 if test -s conftest || test -s conftest.exe ; then
7557 dev64=yes
7558 fi
7559 fi
7560 rm -f conftest*
7561 if test x${dev64} != xyes ; then
7562 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7563 fi
7564 ;;
7565esac
7566
7567# Default to --enable-multilib.
7568if test x${enable_multilib} = x ; then
7569 target_configargs="--enable-multilib ${target_configargs}"
7570fi
7571
7572# Pass --with-newlib if appropriate. Note that target_configdirs has
7573# changed from the earlier setting of with_newlib.
7574if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7575 target_configargs="--with-newlib ${target_configargs}"
7576fi
7577
7578# Different target subdirs use different values of certain variables
7579# (notably CXX). Worse, multilibs use *lots* of different values.
7580# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7581# it doesn't automatically accept command-line overrides of them.
7582# This means it's not safe for target subdirs to share a cache file,
7583# which is disgusting, but there you have it. Hopefully this can be
7584# fixed in future. It's still worthwhile to use a cache file for each
7585# directory. I think.
7586
7587# Pass the appropriate --build, --host, --target and --cache-file arguments.
7588# We need to pass --target, as newer autoconf's requires consistency
7589# for target_alias and gcc doesn't manage it consistently.
7590target_configargs="--cache-file=./config.cache ${target_configargs}"
7591
7592FLAGS_FOR_TARGET=
7593case " $target_configdirs " in
7594 *" newlib "*)
7595 case " $target_configargs " in
7596 *" --with-newlib "*)
7597 case "$target" in
7598 *-cygwin*)
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7600 ;;
7601 esac
7602
7603 # If we're not building GCC, don't discard standard headers.
7604 if test -d ${srcdir}/gcc; then
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7606
7607 if test "${build}" != "${host}"; then
7608 # On Canadian crosses, CC_FOR_TARGET will have already been set
7609 # by `configure', so we won't have an opportunity to add -Bgcc/
7610 # to it. This is right: we don't want to search that directory
7611 # for binaries, but we want the header files in there, so add
7612 # them explicitly.
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7614
7615 # Someone might think of using the pre-installed headers on
7616 # Canadian crosses, in case the installed compiler is not fully
7617 # compatible with the compiler being built. In this case, it
7618 # would be better to flag an error than risking having
7619 # incompatible object files being constructed. We can't
7620 # guarantee that an error will be flagged, but let's hope the
7621 # compiler will do it, when presented with incompatible header
7622 # files.
7623 fi
7624 fi
7625
7626 case "${target}-${is_cross_compiler}" in
7627 i[3456789]86-*-linux*-no)
7628 # Here host == target, so we don't need to build gcc,
7629 # so we don't want to discard standard headers.
7630 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7631 ;;
7632 *)
7633 # If we're building newlib, use its generic headers last, but search
7634 # for any libc-related directories first (so make it the last -B
7635 # switch).
7636 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7637
7638 # If we're building libgloss, find the startup file, simulator library
7639 # and linker script.
7640 case " $target_configdirs " in
7641 *" libgloss "*)
7642 # Look for startup file, simulator library and maybe linker script.
7643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7644 # Look for libnosys.a in case the target needs it.
7645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7646 # Most targets have the linker script in the source directory.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7648 ;;
7649 esac
7650 ;;
7651 esac
7652 ;;
7653 esac
7654 ;;
7655esac
7656
7657case "$target" in
7658 x86_64-*mingw* | *-w64-mingw*)
7659 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7660 # however, use a symlink named 'mingw' in ${prefix} .
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7662 ;;
7663 *-mingw*)
7664 # MinGW can't be handled as Cygwin above since it does not use newlib.
7665 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'
7666 ;;
7667esac
7668
7669# Allow the user to override the flags for
7670# our build compiler if desired.
7671if test x"${build}" = x"${host}" ; then
7672 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7673 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7674 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7675fi
7676
7677# On Canadian crosses, we'll be searching the right directories for
7678# the previously-installed cross compiler, so don't bother to add
7679# flags for directories within the install tree of the compiler
7680# being built; programs in there won't even run.
7681if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7682 # Search for pre-installed headers if nothing else fits.
7683 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7684fi
7685
7686if test "x${use_gnu_ld}" = x &&
7687 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7688 # Arrange for us to find uninstalled linker scripts.
7689 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7690fi
7691
7692# Search for other target-specific linker scripts and such.
7693case "${target}" in
7694 mep*)
7695 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7696 ;;
7697esac
7698
7699# Makefile fragments.
7700for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7701do
7702 eval fragval=\$$frag
7703 if test $fragval != /dev/null; then
7704 eval $frag=${srcdir}/$fragval
7705 fi
7706done
7707
7708
7709
7710
7711
7712# Miscellanea: directories, flags, etc.
7713
7714
7715
7716
7717
7718
7719
7720
7721# Build module lists & subconfigure args.
7722
7723
7724
7725# Host module lists & subconfigure args.
7726
7727
7728
7729
7730# Target module lists & subconfigure args.
7731
7732
7733
7734# Build tools.
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752# Generate default definitions for YACC, M4, LEX and other programs that run
7753# on the build machine. These are used if the Makefile can't locate these
7754# programs in objdir.
7755MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7756
7757for ac_prog in 'bison -y' byacc yacc
7758do
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760set dummy $ac_prog; ac_word=$2
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_YACC+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765else
7766 if test -n "$YACC"; then
7767 ac_cv_prog_YACC="$YACC" # 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=.
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
7776 ac_cv_prog_YACC="$ac_prog"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780done
7781 done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
7786YACC=$ac_cv_prog_YACC
7787if test -n "$YACC"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7789$as_echo "$YACC" >&6; }
7790else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
7796 test -n "$YACC" && break
7797done
7798test -n "$YACC" || YACC="$MISSING bison -y"
7799
7800case " $build_configdirs " in
7801 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7802esac
7803
7804for ac_prog in bison
7805do
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807set dummy $ac_prog; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if test "${ac_cv_prog_BISON+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7812else
7813 if test -n "$BISON"; then
7814 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_BISON="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827done
7828 done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833BISON=$ac_cv_prog_BISON
7834if test -n "$BISON"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7836$as_echo "$BISON" >&6; }
7837else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842
7843 test -n "$BISON" && break
7844done
7845test -n "$BISON" || BISON="$MISSING bison"
7846
7847case " $build_configdirs " in
7848 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7849esac
7850
7851for ac_prog in gm4 gnum4 m4
7852do
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854set dummy $ac_prog; ac_word=$2
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856$as_echo_n "checking for $ac_word... " >&6; }
7857if test "${ac_cv_prog_M4+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859else
7860 if test -n "$M4"; then
7861 ac_cv_prog_M4="$M4" # Let the user override the test.
7862else
7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_M4="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874done
7875 done
7876IFS=$as_save_IFS
7877
7878fi
7879fi
7880M4=$ac_cv_prog_M4
7881if test -n "$M4"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7883$as_echo "$M4" >&6; }
7884else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887fi
7888
7889
7890 test -n "$M4" && break
7891done
7892test -n "$M4" || M4="$MISSING m4"
7893
7894case " $build_configdirs " in
7895 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7896esac
7897
7898for ac_prog in flex lex
7899do
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901set dummy $ac_prog; ac_word=$2
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_LEX+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906else
7907 if test -n "$LEX"; then
7908 ac_cv_prog_LEX="$LEX" # 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=.
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
7917 ac_cv_prog_LEX="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
7922 done
7923IFS=$as_save_IFS
7924
7925fi
7926fi
7927LEX=$ac_cv_prog_LEX
7928if test -n "$LEX"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7930$as_echo "$LEX" >&6; }
7931else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933$as_echo "no" >&6; }
7934fi
7935
7936
7937 test -n "$LEX" && break
7938done
7939test -n "$LEX" || LEX="$MISSING flex"
7940
7941case " $build_configdirs " in
7942 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7944esac
7945
7946for ac_prog in flex
7947do
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949set dummy $ac_prog; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_FLEX+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 if test -n "$FLEX"; then
7956 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_FLEX="$ac_prog"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970 done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975FLEX=$ac_cv_prog_FLEX
7976if test -n "$FLEX"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7978$as_echo "$FLEX" >&6; }
7979else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985 test -n "$FLEX" && break
7986done
7987test -n "$FLEX" || FLEX="$MISSING flex"
7988
7989case " $build_configdirs " in
7990 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7991esac
7992
7993for ac_prog in makeinfo
7994do
7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
7996set dummy $ac_prog; ac_word=$2
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001else
8002 if test -n "$MAKEINFO"; then
8003 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8004else
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_MAKEINFO="$ac_prog"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016done
8017 done
8018IFS=$as_save_IFS
8019
8020fi
8021fi
8022MAKEINFO=$ac_cv_prog_MAKEINFO
8023if test -n "$MAKEINFO"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8025$as_echo "$MAKEINFO" >&6; }
8026else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
8029fi
8030
8031
8032 test -n "$MAKEINFO" && break
8033done
8034test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8035
8036case " $build_configdirs " in
8037 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8038 *)
8039
8040 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8041 # higher, else we use the "missing" dummy.
8042 if ${MAKEINFO} --version \
8043 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8044 :
8045 else
8046 MAKEINFO="$MISSING makeinfo"
8047 fi
8048 ;;
8049
8050esac
8051
8052# FIXME: expect and dejagnu may become build tools?
8053
8054for ac_prog in expect
8055do
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057set dummy $ac_prog; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if test "${ac_cv_prog_EXPECT+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062else
8063 if test -n "$EXPECT"; then
8064 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_EXPECT="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078 done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083EXPECT=$ac_cv_prog_EXPECT
8084if test -n "$EXPECT"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8086$as_echo "$EXPECT" >&6; }
8087else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092
8093 test -n "$EXPECT" && break
8094done
8095test -n "$EXPECT" || EXPECT="expect"
8096
8097case " $configdirs " in
8098 *" expect "*)
8099 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8100 ;;
8101esac
8102
8103for ac_prog in runtest
8104do
8105 # Extract the first word of "$ac_prog", so it can be a program name with args.
8106set dummy $ac_prog; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 if test -n "$RUNTEST"; then
8113 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_RUNTEST="$ac_prog"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127 done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132RUNTEST=$ac_cv_prog_RUNTEST
8133if test -n "$RUNTEST"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8135$as_echo "$RUNTEST" >&6; }
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141
8142 test -n "$RUNTEST" && break
8143done
8144test -n "$RUNTEST" || RUNTEST="runtest"
8145
8146case " $configdirs " in
8147 *" dejagnu "*)
8148 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8149 ;;
8150esac
8151
8152
8153# Host tools.
8154ncn_tool_prefix=
8155test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8156ncn_target_tool_prefix=
8157test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8158
8159
8160
8161if test -n "$AR"; then
8162 ac_cv_prog_AR=$AR
8163elif test -n "$ac_cv_prog_AR"; then
8164 AR=$ac_cv_prog_AR
8165fi
8166
8167if test -n "$ac_cv_prog_AR"; then
8168 for ncn_progname in ar; do
8169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8170set dummy ${ncn_progname}; ac_word=$2
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if test "${ac_cv_prog_AR+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175else
8176 if test -n "$AR"; then
8177 ac_cv_prog_AR="$AR" # Let the user override the test.
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_AR="${ncn_progname}"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190done
8191 done
8192IFS=$as_save_IFS
8193
8194fi
8195fi
8196AR=$ac_cv_prog_AR
8197if test -n "$AR"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8199$as_echo "$AR" >&6; }
8200else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203fi
8204
8205
8206 done
8207fi
8208
8209for ncn_progname in ar; do
8210 if test -n "$ncn_tool_prefix"; then
8211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8212set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218 if test -n "$AR"; then
8219 ac_cv_prog_AR="$AR" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232done
8233 done
8234IFS=$as_save_IFS
8235
8236fi
8237fi
8238AR=$ac_cv_prog_AR
8239if test -n "$AR"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241$as_echo "$AR" >&6; }
8242else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
8245fi
8246
8247
8248 fi
8249 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251set dummy ${ncn_progname}; ac_word=$2
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if test "${ac_cv_prog_AR+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256else
8257 if test -n "$AR"; then
8258 ac_cv_prog_AR="$AR" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_AR="${ncn_progname}"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271done
8272 done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277AR=$ac_cv_prog_AR
8278if test -n "$AR"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8280$as_echo "$AR" >&6; }
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287 fi
8288 test -n "$ac_cv_prog_AR" && break
8289done
8290
8291if test -z "$ac_cv_prog_AR" ; then
8292 set dummy ar
8293 if test $build = $host ; then
8294 AR="$2"
8295 else
8296 AR="${ncn_tool_prefix}$2"
8297 fi
8298fi
8299
8300
8301
8302if test -n "$AS"; then
8303 ac_cv_prog_AS=$AS
8304elif test -n "$ac_cv_prog_AS"; then
8305 AS=$ac_cv_prog_AS
8306fi
8307
8308if test -n "$ac_cv_prog_AS"; then
8309 for ncn_progname in as; do
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311set dummy ${ncn_progname}; ac_word=$2
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if test "${ac_cv_prog_AS+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316else
8317 if test -n "$AS"; then
8318 ac_cv_prog_AS="$AS" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_AS="${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331done
8332 done
8333IFS=$as_save_IFS
8334
8335fi
8336fi
8337AS=$ac_cv_prog_AS
8338if test -n "$AS"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340$as_echo "$AS" >&6; }
8341else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
8344fi
8345
8346
8347 done
8348fi
8349
8350for ncn_progname in as; do
8351 if test -n "$ncn_tool_prefix"; then
8352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358else
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373done
8374 done
8375IFS=$as_save_IFS
8376
8377fi
8378fi
8379AS=$ac_cv_prog_AS
8380if test -n "$AS"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382$as_echo "$AS" >&6; }
8383else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392set dummy ${ncn_progname}; ac_word=$2
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
8395if test "${ac_cv_prog_AS+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397else
8398 if test -n "$AS"; then
8399 ac_cv_prog_AS="$AS" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_AS="${ncn_progname}"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413 done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
8418AS=$ac_cv_prog_AS
8419if test -n "$AS"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8421$as_echo "$AS" >&6; }
8422else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
8425fi
8426
8427
8428 fi
8429 test -n "$ac_cv_prog_AS" && break
8430done
8431
8432if test -z "$ac_cv_prog_AS" ; then
8433 set dummy as
8434 if test $build = $host ; then
8435 AS="$2"
8436 else
8437 AS="${ncn_tool_prefix}$2"
8438 fi
8439fi
8440
8441
8442
8443if test -n "$DLLTOOL"; then
8444 ac_cv_prog_DLLTOOL=$DLLTOOL
8445elif test -n "$ac_cv_prog_DLLTOOL"; then
8446 DLLTOOL=$ac_cv_prog_DLLTOOL
8447fi
8448
8449if test -n "$ac_cv_prog_DLLTOOL"; then
8450 for ncn_progname in dlltool; do
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452set dummy ${ncn_progname}; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8460else
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_DLLTOOL="${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8471 fi
8472done
8473 done
8474IFS=$as_save_IFS
8475
8476fi
8477fi
8478DLLTOOL=$ac_cv_prog_DLLTOOL
8479if test -n "$DLLTOOL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8481$as_echo "$DLLTOOL" >&6; }
8482else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488 done
8489fi
8490
8491for ncn_progname in dlltool; do
8492 if test -n "$ncn_tool_prefix"; then
8493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499else
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8502else
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514done
8515 done
8516IFS=$as_save_IFS
8517
8518fi
8519fi
8520DLLTOOL=$ac_cv_prog_DLLTOOL
8521if test -n "$DLLTOOL"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523$as_echo "$DLLTOOL" >&6; }
8524else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
8527fi
8528
8529
8530 fi
8531 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8533set dummy ${ncn_progname}; ac_word=$2
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535$as_echo_n "checking for $ac_word... " >&6; }
8536if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538else
8539 if test -n "$DLLTOOL"; then
8540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8541else
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_DLLTOOL="${ncn_progname}"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553done
8554 done
8555IFS=$as_save_IFS
8556
8557fi
8558fi
8559DLLTOOL=$ac_cv_prog_DLLTOOL
8560if test -n "$DLLTOOL"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8562$as_echo "$DLLTOOL" >&6; }
8563else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565$as_echo "no" >&6; }
8566fi
8567
8568
8569 fi
8570 test -n "$ac_cv_prog_DLLTOOL" && break
8571done
8572
8573if test -z "$ac_cv_prog_DLLTOOL" ; then
8574 set dummy dlltool
8575 if test $build = $host ; then
8576 DLLTOOL="$2"
8577 else
8578 DLLTOOL="${ncn_tool_prefix}$2"
8579 fi
8580fi
8581
8582
8583
8584if test -n "$LD"; then
8585 ac_cv_prog_LD=$LD
8586elif test -n "$ac_cv_prog_LD"; then
8587 LD=$ac_cv_prog_LD
8588fi
8589
8590if test -n "$ac_cv_prog_LD"; then
8591 for ncn_progname in ld; do
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593set dummy ${ncn_progname}; ac_word=$2
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_LD+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598else
8599 if test -n "$LD"; then
8600 ac_cv_prog_LD="$LD" # Let the user override the test.
8601else
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_LD="${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613done
8614 done
8615IFS=$as_save_IFS
8616
8617fi
8618fi
8619LD=$ac_cv_prog_LD
8620if test -n "$LD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8622$as_echo "$LD" >&6; }
8623else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628
8629 done
8630fi
8631
8632for ncn_progname in ld; do
8633 if test -n "$ncn_tool_prefix"; then
8634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8635set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
8643else
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8654 fi
8655done
8656 done
8657IFS=$as_save_IFS
8658
8659fi
8660fi
8661LD=$ac_cv_prog_LD
8662if test -n "$LD"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664$as_echo "$LD" >&6; }
8665else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
8668fi
8669
8670
8671 fi
8672 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674set dummy ${ncn_progname}; ac_word=$2
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676$as_echo_n "checking for $ac_word... " >&6; }
8677if test "${ac_cv_prog_LD+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679else
8680 if test -n "$LD"; then
8681 ac_cv_prog_LD="$LD" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_LD="${ncn_progname}"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695 done
8696IFS=$as_save_IFS
8697
8698fi
8699fi
8700LD=$ac_cv_prog_LD
8701if test -n "$LD"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8703$as_echo "$LD" >&6; }
8704else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707fi
8708
8709
8710 fi
8711 test -n "$ac_cv_prog_LD" && break
8712done
8713
8714if test -z "$ac_cv_prog_LD" ; then
8715 set dummy ld
8716 if test $build = $host ; then
8717 LD="$2"
8718 else
8719 LD="${ncn_tool_prefix}$2"
8720 fi
8721fi
8722
8723
8724
8725if test -n "$LIPO"; then
8726 ac_cv_prog_LIPO=$LIPO
8727elif test -n "$ac_cv_prog_LIPO"; then
8728 LIPO=$ac_cv_prog_LIPO
8729fi
8730
8731if test -n "$ac_cv_prog_LIPO"; then
8732 for ncn_progname in lipo; do
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734set dummy ${ncn_progname}; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
8737if test "${ac_cv_prog_LIPO+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739else
8740 if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8742else
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_LIPO="${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8753 fi
8754done
8755 done
8756IFS=$as_save_IFS
8757
8758fi
8759fi
8760LIPO=$ac_cv_prog_LIPO
8761if test -n "$LIPO"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8763$as_echo "$LIPO" >&6; }
8764else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766$as_echo "no" >&6; }
8767fi
8768
8769
8770 done
8771fi
8772
8773for ncn_progname in lipo; do
8774 if test -n "$ncn_tool_prefix"; then
8775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8776set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784else
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796done
8797 done
8798IFS=$as_save_IFS
8799
8800fi
8801fi
8802LIPO=$ac_cv_prog_LIPO
8803if test -n "$LIPO"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805$as_echo "$LIPO" >&6; }
8806else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
8809fi
8810
8811
8812 fi
8813 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8815set dummy ${ncn_progname}; ac_word=$2
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if test "${ac_cv_prog_LIPO+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820else
8821 if test -n "$LIPO"; then
8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_LIPO="${ncn_progname}"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836 done
8837IFS=$as_save_IFS
8838
8839fi
8840fi
8841LIPO=$ac_cv_prog_LIPO
8842if test -n "$LIPO"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8844$as_echo "$LIPO" >&6; }
8845else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
8850
8851 fi
8852 test -n "$ac_cv_prog_LIPO" && break
8853done
8854
8855if test -z "$ac_cv_prog_LIPO" ; then
8856 set dummy lipo
8857 if test $build = $host ; then
8858 LIPO="$2"
8859 else
8860 LIPO="${ncn_tool_prefix}$2"
8861 fi
8862fi
8863
8864
8865
8866if test -n "$NM"; then
8867 ac_cv_prog_NM=$NM
8868elif test -n "$ac_cv_prog_NM"; then
8869 NM=$ac_cv_prog_NM
8870fi
8871
8872if test -n "$ac_cv_prog_NM"; then
8873 for ncn_progname in nm; do
8874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8875set dummy ${ncn_progname}; ac_word=$2
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877$as_echo_n "checking for $ac_word... " >&6; }
8878if test "${ac_cv_prog_NM+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880else
8881 if test -n "$NM"; then
8882 ac_cv_prog_NM="$NM" # Let the user override the test.
8883else
8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $PATH
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_NM="${ncn_progname}"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8894 fi
8895done
8896 done
8897IFS=$as_save_IFS
8898
8899fi
8900fi
8901NM=$ac_cv_prog_NM
8902if test -n "$NM"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8904$as_echo "$NM" >&6; }
8905else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
8909
8910
8911 done
8912fi
8913
8914for ncn_progname in nm; do
8915 if test -n "$ncn_tool_prefix"; then
8916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8917set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922else
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937done
8938 done
8939IFS=$as_save_IFS
8940
8941fi
8942fi
8943NM=$ac_cv_prog_NM
8944if test -n "$NM"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946$as_echo "$NM" >&6; }
8947else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
8950fi
8951
8952
8953 fi
8954 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8956set dummy ${ncn_progname}; ac_word=$2
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958$as_echo_n "checking for $ac_word... " >&6; }
8959if test "${ac_cv_prog_NM+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961else
8962 if test -n "$NM"; then
8963 ac_cv_prog_NM="$NM" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_NM="${ncn_progname}"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8975 fi
8976done
8977 done
8978IFS=$as_save_IFS
8979
8980fi
8981fi
8982NM=$ac_cv_prog_NM
8983if test -n "$NM"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8985$as_echo "$NM" >&6; }
8986else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988$as_echo "no" >&6; }
8989fi
8990
8991
8992 fi
8993 test -n "$ac_cv_prog_NM" && break
8994done
8995
8996if test -z "$ac_cv_prog_NM" ; then
8997 set dummy nm
8998 if test $build = $host ; then
8999 NM="$2"
9000 else
9001 NM="${ncn_tool_prefix}$2"
9002 fi
9003fi
9004
9005
9006
9007if test -n "$RANLIB"; then
9008 ac_cv_prog_RANLIB=$RANLIB
9009elif test -n "$ac_cv_prog_RANLIB"; then
9010 RANLIB=$ac_cv_prog_RANLIB
9011fi
9012
9013if test -n "$ac_cv_prog_RANLIB"; then
9014 for ncn_progname in ranlib; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_progname}; ac_word=$2
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018$as_echo_n "checking for $ac_word... " >&6; }
9019if test "${ac_cv_prog_RANLIB+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021else
9022 if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_RANLIB="${ncn_progname}"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037 done
9038IFS=$as_save_IFS
9039
9040fi
9041fi
9042RANLIB=$ac_cv_prog_RANLIB
9043if test -n "$RANLIB"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9045$as_echo "$RANLIB" >&6; }
9046else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
9049fi
9050
9051
9052 done
9053fi
9054
9055for ncn_progname in ranlib; do
9056 if test -n "$ncn_tool_prefix"; then
9057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063else
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9066else
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9077 fi
9078done
9079 done
9080IFS=$as_save_IFS
9081
9082fi
9083fi
9084RANLIB=$ac_cv_prog_RANLIB
9085if test -n "$RANLIB"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087$as_echo "$RANLIB" >&6; }
9088else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
9091fi
9092
9093
9094 fi
9095 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097set dummy ${ncn_progname}; ac_word=$2
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099$as_echo_n "checking for $ac_word... " >&6; }
9100if test "${ac_cv_prog_RANLIB+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102else
9103 if test -n "$RANLIB"; then
9104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9105else
9106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107for as_dir in $PATH
9108do
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_RANLIB="${ncn_progname}"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117done
9118 done
9119IFS=$as_save_IFS
9120
9121fi
9122fi
9123RANLIB=$ac_cv_prog_RANLIB
9124if test -n "$RANLIB"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9126$as_echo "$RANLIB" >&6; }
9127else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
9130fi
9131
9132
9133 fi
9134 test -n "$ac_cv_prog_RANLIB" && break
9135done
9136
9137if test -z "$ac_cv_prog_RANLIB" ; then
9138 RANLIB="true"
9139fi
9140
9141
9142
9143if test -n "$STRIP"; then
9144 ac_cv_prog_STRIP=$STRIP
9145elif test -n "$ac_cv_prog_STRIP"; then
9146 STRIP=$ac_cv_prog_STRIP
9147fi
9148
9149if test -n "$ac_cv_prog_STRIP"; then
9150 for ncn_progname in strip; do
9151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9152set dummy ${ncn_progname}; ac_word=$2
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154$as_echo_n "checking for $ac_word... " >&6; }
9155if test "${ac_cv_prog_STRIP+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9157else
9158 if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9160else
9161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162for as_dir in $PATH
9163do
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168 ac_cv_prog_STRIP="${ncn_progname}"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172done
9173 done
9174IFS=$as_save_IFS
9175
9176fi
9177fi
9178STRIP=$ac_cv_prog_STRIP
9179if test -n "$STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9181$as_echo "$STRIP" >&6; }
9182else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185fi
9186
9187
9188 done
9189fi
9190
9191for ncn_progname in strip; do
9192 if test -n "$ncn_tool_prefix"; then
9193 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9194set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202else
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9213 fi
9214done
9215 done
9216IFS=$as_save_IFS
9217
9218fi
9219fi
9220STRIP=$ac_cv_prog_STRIP
9221if test -n "$STRIP"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223$as_echo "$STRIP" >&6; }
9224else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
9227fi
9228
9229
9230 fi
9231 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9233set dummy ${ncn_progname}; ac_word=$2
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235$as_echo_n "checking for $ac_word... " >&6; }
9236if test "${ac_cv_prog_STRIP+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238else
9239 if test -n "$STRIP"; then
9240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9241else
9242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243for as_dir in $PATH
9244do
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249 ac_cv_prog_STRIP="${ncn_progname}"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 break 2
9252 fi
9253done
9254 done
9255IFS=$as_save_IFS
9256
9257fi
9258fi
9259STRIP=$ac_cv_prog_STRIP
9260if test -n "$STRIP"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9262$as_echo "$STRIP" >&6; }
9263else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265$as_echo "no" >&6; }
9266fi
9267
9268
9269 fi
9270 test -n "$ac_cv_prog_STRIP" && break
9271done
9272
9273if test -z "$ac_cv_prog_STRIP" ; then
9274 STRIP="true"
9275fi
9276
9277
9278
9279if test -n "$WINDRES"; then
9280 ac_cv_prog_WINDRES=$WINDRES
9281elif test -n "$ac_cv_prog_WINDRES"; then
9282 WINDRES=$ac_cv_prog_WINDRES
9283fi
9284
9285if test -n "$ac_cv_prog_WINDRES"; then
9286 for ncn_progname in windres; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_progname}; ac_word=$2
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_WINDRES+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293else
9294 if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_WINDRES="${ncn_progname}"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9307 fi
9308done
9309 done
9310IFS=$as_save_IFS
9311
9312fi
9313fi
9314WINDRES=$ac_cv_prog_WINDRES
9315if test -n "$WINDRES"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9317$as_echo "$WINDRES" >&6; }
9318else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321fi
9322
9323
9324 done
9325fi
9326
9327for ncn_progname in windres; do
9328 if test -n "$ncn_tool_prefix"; then
9329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335else
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9338else
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350done
9351 done
9352IFS=$as_save_IFS
9353
9354fi
9355fi
9356WINDRES=$ac_cv_prog_WINDRES
9357if test -n "$WINDRES"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359$as_echo "$WINDRES" >&6; }
9360else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
9363fi
9364
9365
9366 fi
9367 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369set dummy ${ncn_progname}; ac_word=$2
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371$as_echo_n "checking for $ac_word... " >&6; }
9372if test "${ac_cv_prog_WINDRES+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374else
9375 if test -n "$WINDRES"; then
9376 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9377else
9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379for as_dir in $PATH
9380do
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_prog_WINDRES="${ncn_progname}"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9388 fi
9389done
9390 done
9391IFS=$as_save_IFS
9392
9393fi
9394fi
9395WINDRES=$ac_cv_prog_WINDRES
9396if test -n "$WINDRES"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9398$as_echo "$WINDRES" >&6; }
9399else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
9402fi
9403
9404
9405 fi
9406 test -n "$ac_cv_prog_WINDRES" && break
9407done
9408
9409if test -z "$ac_cv_prog_WINDRES" ; then
9410 set dummy windres
9411 if test $build = $host ; then
9412 WINDRES="$2"
9413 else
9414 WINDRES="${ncn_tool_prefix}$2"
9415 fi
9416fi
9417
9418
9419
9420if test -n "$WINDMC"; then
9421 ac_cv_prog_WINDMC=$WINDMC
9422elif test -n "$ac_cv_prog_WINDMC"; then
9423 WINDMC=$ac_cv_prog_WINDMC
9424fi
9425
9426if test -n "$ac_cv_prog_WINDMC"; then
9427 for ncn_progname in windmc; do
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429set dummy ${ncn_progname}; ac_word=$2
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431$as_echo_n "checking for $ac_word... " >&6; }
9432if test "${ac_cv_prog_WINDMC+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434else
9435 if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9437else
9438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $PATH
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_WINDMC="${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9448 fi
9449done
9450 done
9451IFS=$as_save_IFS
9452
9453fi
9454fi
9455WINDMC=$ac_cv_prog_WINDMC
9456if test -n "$WINDMC"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9458$as_echo "$WINDMC" >&6; }
9459else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
9462fi
9463
9464
9465 done
9466fi
9467
9468for ncn_progname in windmc; do
9469 if test -n "$ncn_tool_prefix"; then
9470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491done
9492 done
9493IFS=$as_save_IFS
9494
9495fi
9496fi
9497WINDMC=$ac_cv_prog_WINDMC
9498if test -n "$WINDMC"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500$as_echo "$WINDMC" >&6; }
9501else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
9504fi
9505
9506
9507 fi
9508 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9510set dummy ${ncn_progname}; ac_word=$2
9511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512$as_echo_n "checking for $ac_word... " >&6; }
9513if test "${ac_cv_prog_WINDMC+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515else
9516 if test -n "$WINDMC"; then
9517 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9518else
9519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in $PATH
9521do
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_prog_WINDMC="${ncn_progname}"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9529 fi
9530done
9531 done
9532IFS=$as_save_IFS
9533
9534fi
9535fi
9536WINDMC=$ac_cv_prog_WINDMC
9537if test -n "$WINDMC"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9539$as_echo "$WINDMC" >&6; }
9540else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542$as_echo "no" >&6; }
9543fi
9544
9545
9546 fi
9547 test -n "$ac_cv_prog_WINDMC" && break
9548done
9549
9550if test -z "$ac_cv_prog_WINDMC" ; then
9551 set dummy windmc
9552 if test $build = $host ; then
9553 WINDMC="$2"
9554 else
9555 WINDMC="${ncn_tool_prefix}$2"
9556 fi
9557fi
9558
9559
9560
9561if test -n "$OBJCOPY"; then
9562 ac_cv_prog_OBJCOPY=$OBJCOPY
9563elif test -n "$ac_cv_prog_OBJCOPY"; then
9564 OBJCOPY=$ac_cv_prog_OBJCOPY
9565fi
9566
9567if test -n "$ac_cv_prog_OBJCOPY"; then
9568 for ncn_progname in objcopy; do
9569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9570set dummy ${ncn_progname}; ac_word=$2
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572$as_echo_n "checking for $ac_word... " >&6; }
9573if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575else
9576 if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_OBJCOPY="${ncn_progname}"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9589 fi
9590done
9591 done
9592IFS=$as_save_IFS
9593
9594fi
9595fi
9596OBJCOPY=$ac_cv_prog_OBJCOPY
9597if test -n "$OBJCOPY"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9599$as_echo "$OBJCOPY" >&6; }
9600else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9603fi
9604
9605
9606 done
9607fi
9608
9609for ncn_progname in objcopy; do
9610 if test -n "$ncn_tool_prefix"; then
9611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9612set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617else
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9620else
9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9631 fi
9632done
9633 done
9634IFS=$as_save_IFS
9635
9636fi
9637fi
9638OBJCOPY=$ac_cv_prog_OBJCOPY
9639if test -n "$OBJCOPY"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641$as_echo "$OBJCOPY" >&6; }
9642else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
9645fi
9646
9647
9648 fi
9649 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651set dummy ${ncn_progname}; ac_word=$2
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653$as_echo_n "checking for $ac_word... " >&6; }
9654if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656else
9657 if test -n "$OBJCOPY"; then
9658 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9659else
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_OBJCOPY="${ncn_progname}"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9670 fi
9671done
9672 done
9673IFS=$as_save_IFS
9674
9675fi
9676fi
9677OBJCOPY=$ac_cv_prog_OBJCOPY
9678if test -n "$OBJCOPY"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9680$as_echo "$OBJCOPY" >&6; }
9681else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683$as_echo "no" >&6; }
9684fi
9685
9686
9687 fi
9688 test -n "$ac_cv_prog_OBJCOPY" && break
9689done
9690
9691if test -z "$ac_cv_prog_OBJCOPY" ; then
9692 set dummy objcopy
9693 if test $build = $host ; then
9694 OBJCOPY="$2"
9695 else
9696 OBJCOPY="${ncn_tool_prefix}$2"
9697 fi
9698fi
9699
9700
9701
9702if test -n "$OBJDUMP"; then
9703 ac_cv_prog_OBJDUMP=$OBJDUMP
9704elif test -n "$ac_cv_prog_OBJDUMP"; then
9705 OBJDUMP=$ac_cv_prog_OBJDUMP
9706fi
9707
9708if test -n "$ac_cv_prog_OBJDUMP"; then
9709 for ncn_progname in objdump; do
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711set dummy ${ncn_progname}; ac_word=$2
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713$as_echo_n "checking for $ac_word... " >&6; }
9714if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716else
9717 if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_OBJDUMP="${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731done
9732 done
9733IFS=$as_save_IFS
9734
9735fi
9736fi
9737OBJDUMP=$ac_cv_prog_OBJDUMP
9738if test -n "$OBJDUMP"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9740$as_echo "$OBJDUMP" >&6; }
9741else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744fi
9745
9746
9747 done
9748fi
9749
9750for ncn_progname in objdump; do
9751 if test -n "$ncn_tool_prefix"; then
9752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758else
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9761else
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9772 fi
9773done
9774 done
9775IFS=$as_save_IFS
9776
9777fi
9778fi
9779OBJDUMP=$ac_cv_prog_OBJDUMP
9780if test -n "$OBJDUMP"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782$as_echo "$OBJDUMP" >&6; }
9783else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
9786fi
9787
9788
9789 fi
9790 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9792set dummy ${ncn_progname}; ac_word=$2
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794$as_echo_n "checking for $ac_word... " >&6; }
9795if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797else
9798 if test -n "$OBJDUMP"; then
9799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9800else
9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802for as_dir in $PATH
9803do
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_prog_OBJDUMP="${ncn_progname}"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9811 fi
9812done
9813 done
9814IFS=$as_save_IFS
9815
9816fi
9817fi
9818OBJDUMP=$ac_cv_prog_OBJDUMP
9819if test -n "$OBJDUMP"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9821$as_echo "$OBJDUMP" >&6; }
9822else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824$as_echo "no" >&6; }
9825fi
9826
9827
9828 fi
9829 test -n "$ac_cv_prog_OBJDUMP" && break
9830done
9831
9832if test -z "$ac_cv_prog_OBJDUMP" ; then
9833 set dummy objdump
9834 if test $build = $host ; then
9835 OBJDUMP="$2"
9836 else
9837 OBJDUMP="${ncn_tool_prefix}$2"
9838 fi
9839fi
9840
9841
9842
9843if test -n "$READELF"; then
9844 ac_cv_prog_READELF=$READELF
9845elif test -n "$ac_cv_prog_READELF"; then
9846 READELF=$ac_cv_prog_READELF
9847fi
9848
9849if test -n "$ac_cv_prog_READELF"; then
9850 for ncn_progname in readelf; do
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852set dummy ${ncn_progname}; ac_word=$2
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if test "${ac_cv_prog_READELF+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857else
9858 if test -n "$READELF"; then
9859 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_READELF="${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9871 fi
9872done
9873 done
9874IFS=$as_save_IFS
9875
9876fi
9877fi
9878READELF=$ac_cv_prog_READELF
9879if test -n "$READELF"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9881$as_echo "$READELF" >&6; }
9882else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9885fi
9886
9887
9888 done
9889fi
9890
9891for ncn_progname in readelf; do
9892 if test -n "$ncn_tool_prefix"; then
9893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896$as_echo_n "checking for $ac_word... " >&6; }
9897if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915 done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920READELF=$ac_cv_prog_READELF
9921if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923$as_echo "$READELF" >&6; }
9924else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927fi
9928
9929
9930 fi
9931 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9933set dummy ${ncn_progname}; ac_word=$2
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935$as_echo_n "checking for $ac_word... " >&6; }
9936if test "${ac_cv_prog_READELF+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938else
9939 if test -n "$READELF"; then
9940 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9941else
9942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943for as_dir in $PATH
9944do
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_READELF="${ncn_progname}"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9952 fi
9953done
9954 done
9955IFS=$as_save_IFS
9956
9957fi
9958fi
9959READELF=$ac_cv_prog_READELF
9960if test -n "$READELF"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9962$as_echo "$READELF" >&6; }
9963else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965$as_echo "no" >&6; }
9966fi
9967
9968
9969 fi
9970 test -n "$ac_cv_prog_READELF" && break
9971done
9972
9973if test -z "$ac_cv_prog_READELF" ; then
9974 set dummy readelf
9975 if test $build = $host ; then
9976 READELF="$2"
9977 else
9978 READELF="${ncn_tool_prefix}$2"
9979 fi
9980fi
9981
9982
9983
9984
9985
9986
9987# Target tools.
9988
9989# Check whether --with-build-time-tools was given.
9990if test "${with_build_time_tools+set}" = set; then :
9991 withval=$with_build_time_tools; case x"$withval" in
9992 x/*) ;;
9993 *)
9994 with_build_time_tools=
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9996$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9997 ;;
9998 esac
9999else
10000 with_build_time_tools=
10001fi
10002
10003
10004
10005
10006if test -n "$CC_FOR_TARGET"; then
10007 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10008elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10009 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10010fi
10011
10012if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013 for ncn_progname in cc gcc; do
10014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10015set dummy ${ncn_progname}; ac_word=$2
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017$as_echo_n "checking for $ac_word... " >&6; }
10018if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020else
10021 if test -n "$CC_FOR_TARGET"; then
10022 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035done
10036 done
10037IFS=$as_save_IFS
10038
10039fi
10040fi
10041CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10042if test -n "$CC_FOR_TARGET"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10044$as_echo "$CC_FOR_TARGET" >&6; }
10045else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048fi
10049
10050
10051 done
10052fi
10053
10054if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10055 for ncn_progname in cc gcc; do
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10057$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10058 if test -x $with_build_time_tools/${ncn_progname}; then
10059 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10061$as_echo "yes" >&6; }
10062 break
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065$as_echo "no" >&6; }
10066 fi
10067 done
10068fi
10069
10070if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10071 for ncn_progname in cc gcc; do
10072 if test -n "$ncn_target_tool_prefix"; then
10073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079else
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095 done
10096IFS=$as_save_IFS
10097
10098fi
10099fi
10100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10101if test -n "$CC_FOR_TARGET"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103$as_echo "$CC_FOR_TARGET" >&6; }
10104else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
10107fi
10108
10109
10110 fi
10111 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113set dummy ${ncn_progname}; ac_word=$2
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
10116if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118else
10119 if test -n "$CC_FOR_TARGET"; then
10120 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10121else
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10132 fi
10133done
10134 done
10135IFS=$as_save_IFS
10136
10137fi
10138fi
10139CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10140if test -n "$CC_FOR_TARGET"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10142$as_echo "$CC_FOR_TARGET" >&6; }
10143else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
10146fi
10147
10148
10149 fi
10150 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10151 done
10152fi
10153
10154if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10155 set dummy cc gcc
10156 if test $build = $target ; then
10157 CC_FOR_TARGET="$2"
10158 else
10159 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10160 fi
10161else
10162 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10163fi
10164
10165
10166
10167if test -n "$CXX_FOR_TARGET"; then
10168 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10169elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10170 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10171fi
10172
10173if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174 for ncn_progname in c++ g++ cxx gxx; do
10175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10176set dummy ${ncn_progname}; ac_word=$2
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178$as_echo_n "checking for $ac_word... " >&6; }
10179if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181else
10182 if test -n "$CXX_FOR_TARGET"; then
10183 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10184else
10185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186for as_dir in $PATH
10187do
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10192 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10195 fi
10196done
10197 done
10198IFS=$as_save_IFS
10199
10200fi
10201fi
10202CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10203if test -n "$CXX_FOR_TARGET"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10205$as_echo "$CXX_FOR_TARGET" >&6; }
10206else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208$as_echo "no" >&6; }
10209fi
10210
10211
10212 done
10213fi
10214
10215if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10216 for ncn_progname in c++ g++ cxx gxx; do
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10222$as_echo "yes" >&6; }
10223 break
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226$as_echo "no" >&6; }
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10232 for ncn_progname in c++ g++ cxx gxx; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256 done
10257IFS=$as_save_IFS
10258
10259fi
10260fi
10261CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10262if test -n "$CXX_FOR_TARGET"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264$as_echo "$CXX_FOR_TARGET" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
10271 fi
10272 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10274set dummy ${ncn_progname}; ac_word=$2
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276$as_echo_n "checking for $ac_word... " >&6; }
10277if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279else
10280 if test -n "$CXX_FOR_TARGET"; then
10281 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10282else
10283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295 done
10296IFS=$as_save_IFS
10297
10298fi
10299fi
10300CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10301if test -n "$CXX_FOR_TARGET"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10303$as_echo "$CXX_FOR_TARGET" >&6; }
10304else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306$as_echo "no" >&6; }
10307fi
10308
10309
10310 fi
10311 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10312 done
10313fi
10314
10315if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10316 set dummy c++ g++ cxx gxx
10317 if test $build = $target ; then
10318 CXX_FOR_TARGET="$2"
10319 else
10320 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10321 fi
10322else
10323 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10324fi
10325
10326
10327
10328if test -n "$GCC_FOR_TARGET"; then
10329 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10330elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10331 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10332fi
10333
10334if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335 for ncn_progname in gcc; do
10336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10337set dummy ${ncn_progname}; ac_word=$2
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339$as_echo_n "checking for $ac_word... " >&6; }
10340if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
10342else
10343 if test -n "$GCC_FOR_TARGET"; then
10344 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10345else
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10353 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10356 fi
10357done
10358 done
10359IFS=$as_save_IFS
10360
10361fi
10362fi
10363GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10364if test -n "$GCC_FOR_TARGET"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10366$as_echo "$GCC_FOR_TARGET" >&6; }
10367else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369$as_echo "no" >&6; }
10370fi
10371
10372
10373 done
10374fi
10375
10376if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10377 for ncn_progname in gcc; do
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10379$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10380 if test -x $with_build_time_tools/${ncn_progname}; then
10381 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10383$as_echo "yes" >&6; }
10384 break
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388 fi
10389 done
10390fi
10391
10392if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10393 for ncn_progname in gcc; do
10394 if test -n "$ncn_target_tool_prefix"; then
10395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401else
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10404else
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10415 fi
10416done
10417 done
10418IFS=$as_save_IFS
10419
10420fi
10421fi
10422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10423if test -n "$GCC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425$as_echo "$GCC_FOR_TARGET" >&6; }
10426else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429fi
10430
10431
10432 fi
10433 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10435set dummy ${ncn_progname}; ac_word=$2
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441 if test -n "$GCC_FOR_TARGET"; then
10442 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10443else
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10454 fi
10455done
10456 done
10457IFS=$as_save_IFS
10458
10459fi
10460fi
10461GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10462if test -n "$GCC_FOR_TARGET"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10464$as_echo "$GCC_FOR_TARGET" >&6; }
10465else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468fi
10469
10470
10471 fi
10472 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10473 done
10474fi
10475
10476if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10477 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10478else
10479 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10480fi
10481
10482
10483
10484if test -n "$GCJ_FOR_TARGET"; then
10485 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10486elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10487 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10488fi
10489
10490if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10491 for ncn_progname in gcj; do
10492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10493set dummy ${ncn_progname}; ac_word=$2
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495$as_echo_n "checking for $ac_word... " >&6; }
10496if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498else
10499 if test -n "$GCJ_FOR_TARGET"; then
10500 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513done
10514 done
10515IFS=$as_save_IFS
10516
10517fi
10518fi
10519GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10520if test -n "$GCJ_FOR_TARGET"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10522$as_echo "$GCJ_FOR_TARGET" >&6; }
10523else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
10526fi
10527
10528
10529 done
10530fi
10531
10532if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10533 for ncn_progname in gcj; do
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10535$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10536 if test -x $with_build_time_tools/${ncn_progname}; then
10537 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539$as_echo "yes" >&6; }
10540 break
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
10544 fi
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10549 for ncn_progname in gcj; do
10550 if test -n "$ncn_target_tool_prefix"; then
10551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10552set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10571 fi
10572done
10573 done
10574IFS=$as_save_IFS
10575
10576fi
10577fi
10578GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579if test -n "$GCJ_FOR_TARGET"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581$as_echo "$GCJ_FOR_TARGET" >&6; }
10582else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
10585fi
10586
10587
10588 fi
10589 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10591set dummy ${ncn_progname}; ac_word=$2
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593$as_echo_n "checking for $ac_word... " >&6; }
10594if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596else
10597 if test -n "$GCJ_FOR_TARGET"; then
10598 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10599else
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10610 fi
10611done
10612 done
10613IFS=$as_save_IFS
10614
10615fi
10616fi
10617GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10618if test -n "$GCJ_FOR_TARGET"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10620$as_echo "$GCJ_FOR_TARGET" >&6; }
10621else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
10624fi
10625
10626
10627 fi
10628 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10629 done
10630fi
10631
10632if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10633 set dummy gcj
10634 if test $build = $target ; then
10635 GCJ_FOR_TARGET="$2"
10636 else
10637 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10638 fi
10639else
10640 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10641fi
10642
10643
10644
10645if test -n "$GFORTRAN_FOR_TARGET"; then
10646 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10647elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10648 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10649fi
10650
10651if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10652 for ncn_progname in gfortran; do
10653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10654set dummy ${ncn_progname}; ac_word=$2
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656$as_echo_n "checking for $ac_word... " >&6; }
10657if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659else
10660 if test -n "$GFORTRAN_FOR_TARGET"; then
10661 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675 done
10676IFS=$as_save_IFS
10677
10678fi
10679fi
10680GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10681if test -n "$GFORTRAN_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10683$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10684else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686$as_echo "no" >&6; }
10687fi
10688
10689
10690 done
10691fi
10692
10693if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10694 for ncn_progname in gfortran; do
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10696$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10697 if test -x $with_build_time_tools/${ncn_progname}; then
10698 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700$as_echo "yes" >&6; }
10701 break
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704$as_echo "no" >&6; }
10705 fi
10706 done
10707fi
10708
10709if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10710 for ncn_progname in gfortran; do
10711 if test -n "$ncn_target_tool_prefix"; then
10712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10713set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
10716if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718else
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721else
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10732 fi
10733done
10734 done
10735IFS=$as_save_IFS
10736
10737fi
10738fi
10739GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10740if test -n "$GFORTRAN_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10743else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
10746fi
10747
10748
10749 fi
10750 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752set dummy ${ncn_progname}; ac_word=$2
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754$as_echo_n "checking for $ac_word... " >&6; }
10755if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757else
10758 if test -n "$GFORTRAN_FOR_TARGET"; then
10759 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10760else
10761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762for as_dir in $PATH
10763do
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10771 fi
10772done
10773 done
10774IFS=$as_save_IFS
10775
10776fi
10777fi
10778GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10779if test -n "$GFORTRAN_FOR_TARGET"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10781$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10782else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784$as_echo "no" >&6; }
10785fi
10786
10787
10788 fi
10789 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10790 done
10791fi
10792
10793if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10794 set dummy gfortran
10795 if test $build = $target ; then
10796 GFORTRAN_FOR_TARGET="$2"
10797 else
10798 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10799 fi
10800else
10801 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10802fi
10803
10804
10805
10806if test -n "$GOC_FOR_TARGET"; then
10807 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10808elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10809 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10810fi
10811
10812if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10813 for ncn_progname in gccgo; do
10814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10815set dummy ${ncn_progname}; ac_word=$2
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820else
10821 if test -n "$GOC_FOR_TARGET"; then
10822 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10823else
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835done
10836 done
10837IFS=$as_save_IFS
10838
10839fi
10840fi
10841GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10842if test -n "$GOC_FOR_TARGET"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10844$as_echo "$GOC_FOR_TARGET" >&6; }
10845else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848fi
10849
10850
10851 done
10852fi
10853
10854if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10855 for ncn_progname in gccgo; do
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10857$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10858 if test -x $with_build_time_tools/${ncn_progname}; then
10859 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861$as_echo "yes" >&6; }
10862 break
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865$as_echo "no" >&6; }
10866 fi
10867 done
10868fi
10869
10870if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10871 for ncn_progname in gccgo; do
10872 if test -n "$ncn_target_tool_prefix"; then
10873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10874set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903$as_echo "$GOC_FOR_TARGET" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910 fi
10911 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913set dummy ${ncn_progname}; ac_word=$2
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918else
10919 if test -n "$GOC_FOR_TARGET"; then
10920 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934 done
10935IFS=$as_save_IFS
10936
10937fi
10938fi
10939GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10940if test -n "$GOC_FOR_TARGET"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10942$as_echo "$GOC_FOR_TARGET" >&6; }
10943else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
10946fi
10947
10948
10949 fi
10950 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10951 done
10952fi
10953
10954if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10955 set dummy gccgo
10956 if test $build = $target ; then
10957 GOC_FOR_TARGET="$2"
10958 else
10959 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10960 fi
10961else
10962 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10963fi
10964
10965
10966
10967cat > conftest.c << \EOF
10968#ifdef __GNUC__
10969 gcc_yay;
10970#endif
10971EOF
10972if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10973 have_gcc_for_target=yes
10974else
10975 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10976 have_gcc_for_target=no
10977fi
10978rm conftest.c
10979
10980
10981
10982
10983if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10984 if test -n "$with_build_time_tools"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10986$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10987 if test -x $with_build_time_tools/ar; then
10988 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10989 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10991$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994$as_echo "no" >&6; }
10995 fi
10996 elif test $build != $host && test $have_gcc_for_target = yes; then
10997 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10998 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10999 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11000 fi
11001fi
11002if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11003 # Extract the first word of "ar", so it can be a program name with args.
11004set dummy ar; ac_word=$2
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006$as_echo_n "checking for $ac_word... " >&6; }
11007if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
11009else
11010 case $AR_FOR_TARGET in
11011 [\\/]* | ?:[\\/]*)
11012 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11013 ;;
11014 *)
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $gcc_cv_tool_dirs
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11022 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11025 fi
11026done
11027 done
11028IFS=$as_save_IFS
11029
11030 ;;
11031esac
11032fi
11033AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11034if test -n "$AR_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036$as_echo "$AR_FOR_TARGET" >&6; }
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041
11042
11043fi
11044if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11045
11046
11047if test -n "$AR_FOR_TARGET"; then
11048 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11049elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11050 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11051fi
11052
11053if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054 for ncn_progname in ar; do
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056set dummy ${ncn_progname}; ac_word=$2
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058$as_echo_n "checking for $ac_word... " >&6; }
11059if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
11061else
11062 if test -n "$AR_FOR_TARGET"; then
11063 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11064else
11065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
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
11072 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11075 fi
11076done
11077 done
11078IFS=$as_save_IFS
11079
11080fi
11081fi
11082AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11083if test -n "$AR_FOR_TARGET"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11085$as_echo "$AR_FOR_TARGET" >&6; }
11086else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088$as_echo "no" >&6; }
11089fi
11090
11091
11092 done
11093fi
11094
11095if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11096 for ncn_progname in ar; do
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11098$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11099 if test -x $with_build_time_tools/${ncn_progname}; then
11100 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102$as_echo "yes" >&6; }
11103 break
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
11107 fi
11108 done
11109fi
11110
11111if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11112 for ncn_progname in ar; do
11113 if test -n "$ncn_target_tool_prefix"; then
11114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11115set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117$as_echo_n "checking for $ac_word... " >&6; }
11118if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11120else
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11123else
11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 break 2
11134 fi
11135done
11136 done
11137IFS=$as_save_IFS
11138
11139fi
11140fi
11141AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11142if test -n "$AR_FOR_TARGET"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144$as_echo "$AR_FOR_TARGET" >&6; }
11145else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
11148fi
11149
11150
11151 fi
11152 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11154set dummy ${ncn_progname}; ac_word=$2
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156$as_echo_n "checking for $ac_word... " >&6; }
11157if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159else
11160 if test -n "$AR_FOR_TARGET"; then
11161 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175 done
11176IFS=$as_save_IFS
11177
11178fi
11179fi
11180AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11181if test -n "$AR_FOR_TARGET"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11183$as_echo "$AR_FOR_TARGET" >&6; }
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
11187fi
11188
11189
11190 fi
11191 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11192 done
11193fi
11194
11195if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11196 set dummy ar
11197 if test $build = $target ; then
11198 AR_FOR_TARGET="$2"
11199 else
11200 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11201 fi
11202else
11203 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11204fi
11205
11206else
11207 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11208fi
11209
11210
11211
11212
11213if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11214 if test -n "$with_build_time_tools"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11216$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11217 if test -x $with_build_time_tools/as; then
11218 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11219 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11221$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
11225 fi
11226 elif test $build != $host && test $have_gcc_for_target = yes; then
11227 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11228 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11229 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11230 fi
11231fi
11232if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11233 # Extract the first word of "as", so it can be a program name with args.
11234set dummy as; ac_word=$2
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236$as_echo_n "checking for $ac_word... " >&6; }
11237if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11239else
11240 case $AS_FOR_TARGET in
11241 [\\/]* | ?:[\\/]*)
11242 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11243 ;;
11244 *)
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246for as_dir in $gcc_cv_tool_dirs
11247do
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11252 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11255 fi
11256done
11257 done
11258IFS=$as_save_IFS
11259
11260 ;;
11261esac
11262fi
11263AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11264if test -n "$AS_FOR_TARGET"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266$as_echo "$AS_FOR_TARGET" >&6; }
11267else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272
11273fi
11274if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11275
11276
11277if test -n "$AS_FOR_TARGET"; then
11278 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11279elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11280 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11281fi
11282
11283if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284 for ncn_progname in as; do
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286set dummy ${ncn_progname}; ac_word=$2
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288$as_echo_n "checking for $ac_word... " >&6; }
11289if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11291else
11292 if test -n "$AS_FOR_TARGET"; then
11293 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
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
11302 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307 done
11308IFS=$as_save_IFS
11309
11310fi
11311fi
11312AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11313if test -n "$AS_FOR_TARGET"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11315$as_echo "$AS_FOR_TARGET" >&6; }
11316else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319fi
11320
11321
11322 done
11323fi
11324
11325if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11326 for ncn_progname in as; do
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11328$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11329 if test -x $with_build_time_tools/${ncn_progname}; then
11330 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332$as_echo "yes" >&6; }
11333 break
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
11337 fi
11338 done
11339fi
11340
11341if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11342 for ncn_progname in as; do
11343 if test -n "$ncn_target_tool_prefix"; then
11344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350else
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365done
11366 done
11367IFS=$as_save_IFS
11368
11369fi
11370fi
11371AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11372if test -n "$AS_FOR_TARGET"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374$as_echo "$AS_FOR_TARGET" >&6; }
11375else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379
11380
11381 fi
11382 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11384set dummy ${ncn_progname}; ac_word=$2
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386$as_echo_n "checking for $ac_word... " >&6; }
11387if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389else
11390 if test -n "$AS_FOR_TARGET"; then
11391 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11392else
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405 done
11406IFS=$as_save_IFS
11407
11408fi
11409fi
11410AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11411if test -n "$AS_FOR_TARGET"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11413$as_echo "$AS_FOR_TARGET" >&6; }
11414else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417fi
11418
11419
11420 fi
11421 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11422 done
11423fi
11424
11425if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11426 set dummy as
11427 if test $build = $target ; then
11428 AS_FOR_TARGET="$2"
11429 else
11430 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11431 fi
11432else
11433 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11434fi
11435
11436else
11437 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11438fi
11439
11440
11441
11442
11443if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11444 if test -n "$with_build_time_tools"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11446$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11447 if test -x $with_build_time_tools/dlltool; then
11448 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11449 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11451$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
11455 fi
11456 elif test $build != $host && test $have_gcc_for_target = yes; then
11457 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11458 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11459 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11460 fi
11461fi
11462if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11463 # Extract the first word of "dlltool", so it can be a program name with args.
11464set dummy dlltool; ac_word=$2
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466$as_echo_n "checking for $ac_word... " >&6; }
11467if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 case $DLLTOOL_FOR_TARGET in
11471 [\\/]* | ?:[\\/]*)
11472 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11473 ;;
11474 *)
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $gcc_cv_tool_dirs
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487 done
11488IFS=$as_save_IFS
11489
11490 ;;
11491esac
11492fi
11493DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11494if test -n "$DLLTOOL_FOR_TARGET"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
11503fi
11504if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11505
11506
11507if test -n "$DLLTOOL_FOR_TARGET"; then
11508 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11509elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11510 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11511fi
11512
11513if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514 for ncn_progname in dlltool; do
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11516set dummy ${ncn_progname}; ac_word=$2
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518$as_echo_n "checking for $ac_word... " >&6; }
11519if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521else
11522 if test -n "$DLLTOOL_FOR_TARGET"; then
11523 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
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
11532 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536done
11537 done
11538IFS=$as_save_IFS
11539
11540fi
11541fi
11542DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11543if test -n "$DLLTOOL_FOR_TARGET"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11545$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11546else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549fi
11550
11551
11552 done
11553fi
11554
11555if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11556 for ncn_progname in dlltool; do
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11558$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11559 if test -x $with_build_time_tools/${ncn_progname}; then
11560 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562$as_echo "yes" >&6; }
11563 break
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566$as_echo "no" >&6; }
11567 fi
11568 done
11569fi
11570
11571if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11572 for ncn_progname in dlltool; do
11573 if test -n "$ncn_target_tool_prefix"; then
11574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11575set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577$as_echo_n "checking for $ac_word... " >&6; }
11578if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11583else
11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595done
11596 done
11597IFS=$as_save_IFS
11598
11599fi
11600fi
11601DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11602if test -n "$DLLTOOL_FOR_TARGET"; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11605else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
11608fi
11609
11610
11611 fi
11612 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614set dummy ${ncn_progname}; ac_word=$2
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619else
11620 if test -n "$DLLTOOL_FOR_TARGET"; then
11621 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635 done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11641if test -n "$DLLTOOL_FOR_TARGET"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11643$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11644else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649
11650 fi
11651 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11652 done
11653fi
11654
11655if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11656 set dummy dlltool
11657 if test $build = $target ; then
11658 DLLTOOL_FOR_TARGET="$2"
11659 else
11660 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11661 fi
11662else
11663 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11664fi
11665
11666else
11667 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11668fi
11669
11670
11671
11672
11673if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11674 if test -n "$with_build_time_tools"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11676$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11677 if test -x $with_build_time_tools/ld; then
11678 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11679 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11681$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
11685 fi
11686 elif test $build != $host && test $have_gcc_for_target = yes; then
11687 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11688 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11689 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11690 fi
11691fi
11692if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11693 # Extract the first word of "ld", so it can be a program name with args.
11694set dummy ld; ac_word=$2
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
11697if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699else
11700 case $LD_FOR_TARGET in
11701 [\\/]* | ?:[\\/]*)
11702 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11703 ;;
11704 *)
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $gcc_cv_tool_dirs
11707do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11712 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11715 fi
11716done
11717 done
11718IFS=$as_save_IFS
11719
11720 ;;
11721esac
11722fi
11723LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11724if test -n "$LD_FOR_TARGET"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726$as_echo "$LD_FOR_TARGET" >&6; }
11727else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732
11733fi
11734if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11735
11736
11737if test -n "$LD_FOR_TARGET"; then
11738 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11739elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11740 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11741fi
11742
11743if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744 for ncn_progname in ld; do
11745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11746set dummy ${ncn_progname}; ac_word=$2
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748$as_echo_n "checking for $ac_word... " >&6; }
11749if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751else
11752 if test -n "$LD_FOR_TARGET"; then
11753 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11754else
11755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
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
11762 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11765 fi
11766done
11767 done
11768IFS=$as_save_IFS
11769
11770fi
11771fi
11772LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11773if test -n "$LD_FOR_TARGET"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11775$as_echo "$LD_FOR_TARGET" >&6; }
11776else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778$as_echo "no" >&6; }
11779fi
11780
11781
11782 done
11783fi
11784
11785if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11786 for ncn_progname in ld; do
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11788$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11789 if test -x $with_build_time_tools/${ncn_progname}; then
11790 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792$as_echo "yes" >&6; }
11793 break
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797 fi
11798 done
11799fi
11800
11801if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11802 for ncn_progname in ld; do
11803 if test -n "$ncn_target_tool_prefix"; then
11804 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11805set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825done
11826 done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11832if test -n "$LD_FOR_TARGET"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834$as_echo "$LD_FOR_TARGET" >&6; }
11835else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
11840
11841 fi
11842 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11844set dummy ${ncn_progname}; ac_word=$2
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846$as_echo_n "checking for $ac_word... " >&6; }
11847if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849else
11850 if test -n "$LD_FOR_TARGET"; then
11851 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11852else
11853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854for as_dir in $PATH
11855do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11863 fi
11864done
11865 done
11866IFS=$as_save_IFS
11867
11868fi
11869fi
11870LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11871if test -n "$LD_FOR_TARGET"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11873$as_echo "$LD_FOR_TARGET" >&6; }
11874else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877fi
11878
11879
11880 fi
11881 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11882 done
11883fi
11884
11885if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11886 set dummy ld
11887 if test $build = $target ; then
11888 LD_FOR_TARGET="$2"
11889 else
11890 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11891 fi
11892else
11893 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11894fi
11895
11896else
11897 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11898fi
11899
11900
11901
11902
11903if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11904 if test -n "$with_build_time_tools"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11906$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11907 if test -x $with_build_time_tools/lipo; then
11908 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11909 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11911$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
11915 fi
11916 elif test $build != $host && test $have_gcc_for_target = yes; then
11917 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11918 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11919 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11920 fi
11921fi
11922if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11923 # Extract the first word of "lipo", so it can be a program name with args.
11924set dummy lipo; ac_word=$2
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926$as_echo_n "checking for $ac_word... " >&6; }
11927if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929else
11930 case $LIPO_FOR_TARGET in
11931 [\\/]* | ?:[\\/]*)
11932 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11933 ;;
11934 *)
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $gcc_cv_tool_dirs
11937do
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 break 2
11945 fi
11946done
11947 done
11948IFS=$as_save_IFS
11949
11950 ;;
11951esac
11952fi
11953LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11954if test -n "$LIPO_FOR_TARGET"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956$as_echo "$LIPO_FOR_TARGET" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962
11963fi
11964if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11965
11966
11967if test -n "$LIPO_FOR_TARGET"; then
11968 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11969elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11970 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11971fi
11972
11973if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974 for ncn_progname in lipo; do
11975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11976set dummy ${ncn_progname}; ac_word=$2
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978$as_echo_n "checking for $ac_word... " >&6; }
11979if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981else
11982 if test -n "$LIPO_FOR_TARGET"; then
11983 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11984else
11985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $PATH
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
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
11992 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11995 fi
11996done
11997 done
11998IFS=$as_save_IFS
11999
12000fi
12001fi
12002LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12003if test -n "$LIPO_FOR_TARGET"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12005$as_echo "$LIPO_FOR_TARGET" >&6; }
12006else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008$as_echo "no" >&6; }
12009fi
12010
12011
12012 done
12013fi
12014
12015if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12016 for ncn_progname in lipo; do
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12019 if test -x $with_build_time_tools/${ncn_progname}; then
12020 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12022$as_echo "yes" >&6; }
12023 break
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027 fi
12028 done
12029fi
12030
12031if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12032 for ncn_progname in lipo; do
12033 if test -n "$ncn_target_tool_prefix"; then
12034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040else
12041 if test -n "$LIPO_FOR_TARGET"; then
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055done
12056 done
12057IFS=$as_save_IFS
12058
12059fi
12060fi
12061LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12062if test -n "$LIPO_FOR_TARGET"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064$as_echo "$LIPO_FOR_TARGET" >&6; }
12065else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
12068fi
12069
12070
12071 fi
12072 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12074set dummy ${ncn_progname}; ac_word=$2
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076$as_echo_n "checking for $ac_word... " >&6; }
12077if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079else
12080 if test -n "$LIPO_FOR_TARGET"; then
12081 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12082else
12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12090 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12093 fi
12094done
12095 done
12096IFS=$as_save_IFS
12097
12098fi
12099fi
12100LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12101if test -n "$LIPO_FOR_TARGET"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12103$as_echo "$LIPO_FOR_TARGET" >&6; }
12104else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
12107fi
12108
12109
12110 fi
12111 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12112 done
12113fi
12114
12115if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12116 set dummy lipo
12117 if test $build = $target ; then
12118 LIPO_FOR_TARGET="$2"
12119 else
12120 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12121 fi
12122else
12123 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12124fi
12125
12126else
12127 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12128fi
12129
12130
12131
12132
12133if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12134 if test -n "$with_build_time_tools"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12136$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12137 if test -x $with_build_time_tools/nm; then
12138 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12139 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12141$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
12145 fi
12146 elif test $build != $host && test $have_gcc_for_target = yes; then
12147 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12148 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12149 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12150 fi
12151fi
12152if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12153 # Extract the first word of "nm", so it can be a program name with args.
12154set dummy nm; ac_word=$2
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156$as_echo_n "checking for $ac_word... " >&6; }
12157if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159else
12160 case $NM_FOR_TARGET in
12161 [\\/]* | ?:[\\/]*)
12162 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12163 ;;
12164 *)
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166for as_dir in $gcc_cv_tool_dirs
12167do
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
12170 for ac_exec_ext in '' $ac_executable_extensions; do
12171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12172 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174 break 2
12175 fi
12176done
12177 done
12178IFS=$as_save_IFS
12179
12180 ;;
12181esac
12182fi
12183NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12184if test -n "$NM_FOR_TARGET"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186$as_echo "$NM_FOR_TARGET" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193fi
12194if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12195
12196
12197if test -n "$NM_FOR_TARGET"; then
12198 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12199elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12200 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12201fi
12202
12203if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204 for ncn_progname in nm; do
12205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12206set dummy ${ncn_progname}; ac_word=$2
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211else
12212 if test -n "$NM_FOR_TARGET"; then
12213 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12214else
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
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
12222 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12225 fi
12226done
12227 done
12228IFS=$as_save_IFS
12229
12230fi
12231fi
12232NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12233if test -n "$NM_FOR_TARGET"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12235$as_echo "$NM_FOR_TARGET" >&6; }
12236else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
12239fi
12240
12241
12242 done
12243fi
12244
12245if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12246 for ncn_progname in nm; do
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12248$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12249 if test -x $with_build_time_tools/${ncn_progname}; then
12250 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252$as_echo "yes" >&6; }
12253 break
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257 fi
12258 done
12259fi
12260
12261if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12262 for ncn_progname in nm; do
12263 if test -n "$ncn_target_tool_prefix"; then
12264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270else
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285done
12286 done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12292if test -n "$NM_FOR_TARGET"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294$as_echo "$NM_FOR_TARGET" >&6; }
12295else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301 fi
12302 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12304set dummy ${ncn_progname}; ac_word=$2
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
12307if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309else
12310 if test -n "$NM_FOR_TARGET"; then
12311 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12320 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325 done
12326IFS=$as_save_IFS
12327
12328fi
12329fi
12330NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12331if test -n "$NM_FOR_TARGET"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12333$as_echo "$NM_FOR_TARGET" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
12339
12340 fi
12341 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12342 done
12343fi
12344
12345if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12346 set dummy nm
12347 if test $build = $target ; then
12348 NM_FOR_TARGET="$2"
12349 else
12350 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12351 fi
12352else
12353 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12354fi
12355
12356else
12357 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12358fi
12359
12360
12361
12362
12363if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12364 if test -n "$with_build_time_tools"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12366$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12367 if test -x $with_build_time_tools/objdump; then
12368 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12369 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12371$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
12375 fi
12376 elif test $build != $host && test $have_gcc_for_target = yes; then
12377 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12378 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12379 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12380 fi
12381fi
12382if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12383 # Extract the first word of "objdump", so it can be a program name with args.
12384set dummy objdump; ac_word=$2
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386$as_echo_n "checking for $ac_word... " >&6; }
12387if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389else
12390 case $OBJDUMP_FOR_TARGET in
12391 [\\/]* | ?:[\\/]*)
12392 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12393 ;;
12394 *)
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396for as_dir in $gcc_cv_tool_dirs
12397do
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12405 fi
12406done
12407 done
12408IFS=$as_save_IFS
12409
12410 ;;
12411esac
12412fi
12413OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12414if test -n "$OBJDUMP_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12416$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12417else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422
12423fi
12424if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12425
12426
12427if test -n "$OBJDUMP_FOR_TARGET"; then
12428 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12429elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12430 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12431fi
12432
12433if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12434 for ncn_progname in objdump; do
12435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12436set dummy ${ncn_progname}; ac_word=$2
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438$as_echo_n "checking for $ac_word... " >&6; }
12439if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12441else
12442 if test -n "$OBJDUMP_FOR_TARGET"; then
12443 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12444else
12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
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_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
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
12460fi
12461fi
12462OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12463if test -n "$OBJDUMP_FOR_TARGET"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12465$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12466else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468$as_echo "no" >&6; }
12469fi
12470
12471
12472 done
12473fi
12474
12475if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12476 for ncn_progname in objdump; do
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12478$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12479 if test -x $with_build_time_tools/${ncn_progname}; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482$as_echo "yes" >&6; }
12483 break
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487 fi
12488 done
12489fi
12490
12491if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12492 for ncn_progname in objdump; do
12493 if test -n "$ncn_target_tool_prefix"; then
12494 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12495set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$OBJDUMP_FOR_TARGET"; then
12502 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12522if test -n "$OBJDUMP_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12524$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531 fi
12532 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534set dummy ${ncn_progname}; ac_word=$2
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536$as_echo_n "checking for $ac_word... " >&6; }
12537if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539else
12540 if test -n "$OBJDUMP_FOR_TARGET"; then
12541 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12542else
12543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544for as_dir in $PATH
12545do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12553 fi
12554done
12555 done
12556IFS=$as_save_IFS
12557
12558fi
12559fi
12560OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12561if test -n "$OBJDUMP_FOR_TARGET"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12563$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12564else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
12567fi
12568
12569
12570 fi
12571 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12572 done
12573fi
12574
12575if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12576 set dummy objdump
12577 if test $build = $target ; then
12578 OBJDUMP_FOR_TARGET="$2"
12579 else
12580 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12581 fi
12582else
12583 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12584fi
12585
12586else
12587 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12588fi
12589
12590
12591
12592
12593if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12594 if test -n "$with_build_time_tools"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12596$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12597 if test -x $with_build_time_tools/ranlib; then
12598 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12599 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12601$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
12605 fi
12606 elif test $build != $host && test $have_gcc_for_target = yes; then
12607 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12608 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12609 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12610 fi
12611fi
12612if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12613 # Extract the first word of "ranlib", so it can be a program name with args.
12614set dummy ranlib; ac_word=$2
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616$as_echo_n "checking for $ac_word... " >&6; }
12617if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619else
12620 case $RANLIB_FOR_TARGET in
12621 [\\/]* | ?:[\\/]*)
12622 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12623 ;;
12624 *)
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $gcc_cv_tool_dirs
12627do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636done
12637 done
12638IFS=$as_save_IFS
12639
12640 ;;
12641esac
12642fi
12643RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12644if test -n "$RANLIB_FOR_TARGET"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12646$as_echo "$RANLIB_FOR_TARGET" >&6; }
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650fi
12651
12652
12653fi
12654if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12655
12656
12657if test -n "$RANLIB_FOR_TARGET"; then
12658 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12659elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12660 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12661fi
12662
12663if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12664 for ncn_progname in ranlib; do
12665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12666set dummy ${ncn_progname}; ac_word=$2
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668$as_echo_n "checking for $ac_word... " >&6; }
12669if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671else
12672 if test -n "$RANLIB_FOR_TARGET"; then
12673 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12674else
12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $PATH
12677do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
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
12682 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12685 fi
12686done
12687 done
12688IFS=$as_save_IFS
12689
12690fi
12691fi
12692RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12693if test -n "$RANLIB_FOR_TARGET"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12695$as_echo "$RANLIB_FOR_TARGET" >&6; }
12696else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698$as_echo "no" >&6; }
12699fi
12700
12701
12702 done
12703fi
12704
12705if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12706 for ncn_progname in ranlib; do
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12708$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12709 if test -x $with_build_time_tools/${ncn_progname}; then
12710 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712$as_echo "yes" >&6; }
12713 break
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
12717 fi
12718 done
12719fi
12720
12721if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12722 for ncn_progname in ranlib; do
12723 if test -n "$ncn_target_tool_prefix"; then
12724 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12725set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730else
12731 if test -n "$RANLIB_FOR_TARGET"; then
12732 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12733else
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745done
12746 done
12747IFS=$as_save_IFS
12748
12749fi
12750fi
12751RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12752if test -n "$RANLIB_FOR_TARGET"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12754$as_echo "$RANLIB_FOR_TARGET" >&6; }
12755else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
12758fi
12759
12760
12761 fi
12762 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764set dummy ${ncn_progname}; ac_word=$2
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
12767if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769else
12770 if test -n "$RANLIB_FOR_TARGET"; then
12771 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784done
12785 done
12786IFS=$as_save_IFS
12787
12788fi
12789fi
12790RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12791if test -n "$RANLIB_FOR_TARGET"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12793$as_echo "$RANLIB_FOR_TARGET" >&6; }
12794else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797fi
12798
12799
12800 fi
12801 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12802 done
12803fi
12804
12805if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12806 set dummy ranlib
12807 if test $build = $target ; then
12808 RANLIB_FOR_TARGET="$2"
12809 else
12810 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12811 fi
12812else
12813 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12814fi
12815
12816else
12817 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12818fi
12819
12820
12821
12822
12823if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12824 if test -n "$with_build_time_tools"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12826$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12827 if test -x $with_build_time_tools/readelf; then
12828 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12829 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12831$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835 fi
12836 elif test $build != $host && test $have_gcc_for_target = yes; then
12837 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12838 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12839 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12840 fi
12841fi
12842if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12843 # Extract the first word of "readelf", so it can be a program name with args.
12844set dummy readelf; ac_word=$2
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846$as_echo_n "checking for $ac_word... " >&6; }
12847if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849else
12850 case $READELF_FOR_TARGET in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12853 ;;
12854 *)
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856for as_dir in $gcc_cv_tool_dirs
12857do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12865 fi
12866done
12867 done
12868IFS=$as_save_IFS
12869
12870 ;;
12871esac
12872fi
12873READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12874if test -n "$READELF_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12876$as_echo "$READELF_FOR_TARGET" >&6; }
12877else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
12880fi
12881
12882
12883fi
12884if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12885
12886
12887if test -n "$READELF_FOR_TARGET"; then
12888 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12889elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12890 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12891fi
12892
12893if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12894 for ncn_progname in readelf; do
12895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12896set dummy ${ncn_progname}; ac_word=$2
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898$as_echo_n "checking for $ac_word... " >&6; }
12899if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901else
12902 if test -n "$READELF_FOR_TARGET"; then
12903 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12904else
12905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906for as_dir in $PATH
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
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
12912 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917 done
12918IFS=$as_save_IFS
12919
12920fi
12921fi
12922READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12923if test -n "$READELF_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12925$as_echo "$READELF_FOR_TARGET" >&6; }
12926else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928$as_echo "no" >&6; }
12929fi
12930
12931
12932 done
12933fi
12934
12935if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12936 for ncn_progname in readelf; do
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12938$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12939 if test -x $with_build_time_tools/${ncn_progname}; then
12940 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942$as_echo "yes" >&6; }
12943 break
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
12947 fi
12948 done
12949fi
12950
12951if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12952 for ncn_progname in readelf; do
12953 if test -n "$ncn_target_tool_prefix"; then
12954 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12955set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
12958if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960else
12961 if test -n "$READELF_FOR_TARGET"; then
12962 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975done
12976 done
12977IFS=$as_save_IFS
12978
12979fi
12980fi
12981READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12982if test -n "$READELF_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12984$as_echo "$READELF_FOR_TARGET" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988fi
12989
12990
12991 fi
12992 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12994set dummy ${ncn_progname}; ac_word=$2
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996$as_echo_n "checking for $ac_word... " >&6; }
12997if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999else
13000 if test -n "$READELF_FOR_TARGET"; then
13001 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014done
13015 done
13016IFS=$as_save_IFS
13017
13018fi
13019fi
13020READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13021if test -n "$READELF_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13023$as_echo "$READELF_FOR_TARGET" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029
13030 fi
13031 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13032 done
13033fi
13034
13035if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13036 set dummy readelf
13037 if test $build = $target ; then
13038 READELF_FOR_TARGET="$2"
13039 else
13040 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13041 fi
13042else
13043 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13044fi
13045
13046else
13047 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13048fi
13049
13050
13051
13052
13053if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13054 if test -n "$with_build_time_tools"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13056$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13057 if test -x $with_build_time_tools/strip; then
13058 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13059 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13061$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064$as_echo "no" >&6; }
13065 fi
13066 elif test $build != $host && test $have_gcc_for_target = yes; then
13067 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13068 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13069 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13070 fi
13071fi
13072if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13073 # Extract the first word of "strip", so it can be a program name with args.
13074set dummy strip; ac_word=$2
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076$as_echo_n "checking for $ac_word... " >&6; }
13077if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13079else
13080 case $STRIP_FOR_TARGET in
13081 [\\/]* | ?:[\\/]*)
13082 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13083 ;;
13084 *)
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $gcc_cv_tool_dirs
13087do
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13095 fi
13096done
13097 done
13098IFS=$as_save_IFS
13099
13100 ;;
13101esac
13102fi
13103STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13104if test -n "$STRIP_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13106$as_echo "$STRIP_FOR_TARGET" >&6; }
13107else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
13110fi
13111
13112
13113fi
13114if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13115
13116
13117if test -n "$STRIP_FOR_TARGET"; then
13118 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13119elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13120 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13121fi
13122
13123if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13124 for ncn_progname in strip; do
13125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13126set dummy ${ncn_progname}; ac_word=$2
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128$as_echo_n "checking for $ac_word... " >&6; }
13129if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131else
13132 if test -n "$STRIP_FOR_TARGET"; then
13133 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13134else
13135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136for as_dir in $PATH
13137do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
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
13142 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13145 fi
13146done
13147 done
13148IFS=$as_save_IFS
13149
13150fi
13151fi
13152STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13153if test -n "$STRIP_FOR_TARGET"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13155$as_echo "$STRIP_FOR_TARGET" >&6; }
13156else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158$as_echo "no" >&6; }
13159fi
13160
13161
13162 done
13163fi
13164
13165if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13166 for ncn_progname in strip; do
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13168$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13169 if test -x $with_build_time_tools/${ncn_progname}; then
13170 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172$as_echo "yes" >&6; }
13173 break
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
13177 fi
13178 done
13179fi
13180
13181if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13182 for ncn_progname in strip; do
13183 if test -n "$ncn_target_tool_prefix"; then
13184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13185set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 if test -n "$STRIP_FOR_TARGET"; then
13192 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205done
13206 done
13207IFS=$as_save_IFS
13208
13209fi
13210fi
13211STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13212if test -n "$STRIP_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13214$as_echo "$STRIP_FOR_TARGET" >&6; }
13215else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
13218fi
13219
13220
13221 fi
13222 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13224set dummy ${ncn_progname}; ac_word=$2
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226$as_echo_n "checking for $ac_word... " >&6; }
13227if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229else
13230 if test -n "$STRIP_FOR_TARGET"; then
13231 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13232else
13233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244done
13245 done
13246IFS=$as_save_IFS
13247
13248fi
13249fi
13250STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13251if test -n "$STRIP_FOR_TARGET"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13253$as_echo "$STRIP_FOR_TARGET" >&6; }
13254else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
13257fi
13258
13259
13260 fi
13261 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13262 done
13263fi
13264
13265if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13266 set dummy strip
13267 if test $build = $target ; then
13268 STRIP_FOR_TARGET="$2"
13269 else
13270 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13271 fi
13272else
13273 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13274fi
13275
13276else
13277 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13278fi
13279
13280
13281
13282
13283if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13284 if test -n "$with_build_time_tools"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13286$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13287 if test -x $with_build_time_tools/windres; then
13288 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13289 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13291$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
13295 fi
13296 elif test $build != $host && test $have_gcc_for_target = yes; then
13297 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13298 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13299 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13300 fi
13301fi
13302if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13303 # Extract the first word of "windres", so it can be a program name with args.
13304set dummy windres; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
13307if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13309else
13310 case $WINDRES_FOR_TARGET in
13311 [\\/]* | ?:[\\/]*)
13312 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13313 ;;
13314 *)
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $gcc_cv_tool_dirs
13317do
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13325 fi
13326done
13327 done
13328IFS=$as_save_IFS
13329
13330 ;;
13331esac
13332fi
13333WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13334if test -n "$WINDRES_FOR_TARGET"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13336$as_echo "$WINDRES_FOR_TARGET" >&6; }
13337else
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339$as_echo "no" >&6; }
13340fi
13341
13342
13343fi
13344if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13345
13346
13347if test -n "$WINDRES_FOR_TARGET"; then
13348 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13349elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13350 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13351fi
13352
13353if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13354 for ncn_progname in windres; do
13355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13356set dummy ${ncn_progname}; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
13359if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$WINDRES_FOR_TARGET"; then
13363 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13383if test -n "$WINDRES_FOR_TARGET"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13385$as_echo "$WINDRES_FOR_TARGET" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391
13392 done
13393fi
13394
13395if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13396 for ncn_progname in windres; do
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13399 if test -x $with_build_time_tools/${ncn_progname}; then
13400 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13402$as_echo "yes" >&6; }
13403 break
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
13407 fi
13408 done
13409fi
13410
13411if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13412 for ncn_progname in windres; do
13413 if test -n "$ncn_target_tool_prefix"; then
13414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420else
13421 if test -n "$WINDRES_FOR_TARGET"; then
13422 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13423else
13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435done
13436 done
13437IFS=$as_save_IFS
13438
13439fi
13440fi
13441WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13442if test -n "$WINDRES_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13444$as_echo "$WINDRES_FOR_TARGET" >&6; }
13445else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
13448fi
13449
13450
13451 fi
13452 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13454set dummy ${ncn_progname}; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
13457if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459else
13460 if test -n "$WINDRES_FOR_TARGET"; then
13461 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474done
13475 done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13481if test -n "$WINDRES_FOR_TARGET"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13483$as_echo "$WINDRES_FOR_TARGET" >&6; }
13484else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489
13490 fi
13491 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13492 done
13493fi
13494
13495if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13496 set dummy windres
13497 if test $build = $target ; then
13498 WINDRES_FOR_TARGET="$2"
13499 else
13500 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13501 fi
13502else
13503 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13504fi
13505
13506else
13507 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13508fi
13509
13510
13511
13512
13513if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13514 if test -n "$with_build_time_tools"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13516$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13517 if test -x $with_build_time_tools/windmc; then
13518 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13519 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13521$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
13525 fi
13526 elif test $build != $host && test $have_gcc_for_target = yes; then
13527 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13528 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13529 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13530 fi
13531fi
13532if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13533 # Extract the first word of "windmc", so it can be a program name with args.
13534set dummy windmc; ac_word=$2
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536$as_echo_n "checking for $ac_word... " >&6; }
13537if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
13539else
13540 case $WINDMC_FOR_TARGET in
13541 [\\/]* | ?:[\\/]*)
13542 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13543 ;;
13544 *)
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546for as_dir in $gcc_cv_tool_dirs
13547do
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13552 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 break 2
13555 fi
13556done
13557 done
13558IFS=$as_save_IFS
13559
13560 ;;
13561esac
13562fi
13563WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13564if test -n "$WINDMC_FOR_TARGET"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13566$as_echo "$WINDMC_FOR_TARGET" >&6; }
13567else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570fi
13571
13572
13573fi
13574if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13575
13576
13577if test -n "$WINDMC_FOR_TARGET"; then
13578 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13579elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13580 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13581fi
13582
13583if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13584 for ncn_progname in windmc; do
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13586set dummy ${ncn_progname}; ac_word=$2
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
13589if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13591else
13592 if test -n "$WINDMC_FOR_TARGET"; then
13593 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13594else
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13602 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606done
13607 done
13608IFS=$as_save_IFS
13609
13610fi
13611fi
13612WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13613if test -n "$WINDMC_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13615$as_echo "$WINDMC_FOR_TARGET" >&6; }
13616else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
13619fi
13620
13621
13622 done
13623fi
13624
13625if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13626 for ncn_progname in windmc; do
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13628$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13629 if test -x $with_build_time_tools/${ncn_progname}; then
13630 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632$as_echo "yes" >&6; }
13633 break
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
13637 fi
13638 done
13639fi
13640
13641if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13642 for ncn_progname in windmc; do
13643 if test -n "$ncn_target_tool_prefix"; then
13644 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13645set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13650else
13651 if test -n "$WINDMC_FOR_TARGET"; then
13652 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13653else
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13664 fi
13665done
13666 done
13667IFS=$as_save_IFS
13668
13669fi
13670fi
13671WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13672if test -n "$WINDMC_FOR_TARGET"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13674$as_echo "$WINDMC_FOR_TARGET" >&6; }
13675else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
13678fi
13679
13680
13681 fi
13682 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13684set dummy ${ncn_progname}; ac_word=$2
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686$as_echo_n "checking for $ac_word... " >&6; }
13687if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689else
13690 if test -n "$WINDMC_FOR_TARGET"; then
13691 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13692else
13693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694for as_dir in $PATH
13695do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13703 fi
13704done
13705 done
13706IFS=$as_save_IFS
13707
13708fi
13709fi
13710WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13711if test -n "$WINDMC_FOR_TARGET"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13713$as_echo "$WINDMC_FOR_TARGET" >&6; }
13714else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716$as_echo "no" >&6; }
13717fi
13718
13719
13720 fi
13721 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13722 done
13723fi
13724
13725if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13726 set dummy windmc
13727 if test $build = $target ; then
13728 WINDMC_FOR_TARGET="$2"
13729 else
13730 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13731 fi
13732else
13733 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13734fi
13735
13736else
13737 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13738fi
13739
13740
13741RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13742
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13744$as_echo_n "checking where to find the target ar... " >&6; }
13745if test "x${build}" != "x${host}" ; then
13746 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
13748 ac_dir=`dirname $AR_FOR_TARGET`
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750$as_echo "pre-installed in $ac_dir" >&6; }
13751 else
13752 # Canadian cross, just use what we found
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754$as_echo "pre-installed" >&6; }
13755 fi
13756else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" binutils "*) ;;
13760 *) ok=no ;;
13761 esac
13762
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767$as_echo "just compiled" >&6; }
13768 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $AR_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 AR_FOR_TARGET='$(AR)'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777$as_echo "host tool" >&6; }
13778 else
13779 # We need a cross tool
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781$as_echo "pre-installed" >&6; }
13782 fi
13783fi
13784
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13786$as_echo_n "checking where to find the target as... " >&6; }
13787if test "x${build}" != "x${host}" ; then
13788 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
13790 ac_dir=`dirname $AS_FOR_TARGET`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
13793 else
13794 # Canadian cross, just use what we found
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796$as_echo "pre-installed" >&6; }
13797 fi
13798else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gas "*) ;;
13802 *) ok=no ;;
13803 esac
13804
13805 if test $ok = yes; then
13806 # An in-tree tool is available and we can use it
13807 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13809$as_echo "just compiled" >&6; }
13810 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
13812 ac_dir=`dirname $AS_FOR_TARGET`
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
13815 elif test "x$target" = "x$host"; then
13816 # We can use an host tool
13817 AS_FOR_TARGET='$(AS)'
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13819$as_echo "host tool" >&6; }
13820 else
13821 # We need a cross tool
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13823$as_echo "pre-installed" >&6; }
13824 fi
13825fi
13826
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13828$as_echo_n "checking where to find the target cc... " >&6; }
13829if test "x${build}" != "x${host}" ; then
13830 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13831 # We already found the complete path
13832 ac_dir=`dirname $CC_FOR_TARGET`
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13834$as_echo "pre-installed in $ac_dir" >&6; }
13835 else
13836 # Canadian cross, just use what we found
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838$as_echo "pre-installed" >&6; }
13839 fi
13840else
13841 ok=yes
13842 case " ${configdirs} " in
13843 *" gcc "*) ;;
13844 *) ok=no ;;
13845 esac
13846
13847 if test $ok = yes; then
13848 # An in-tree tool is available and we can use it
13849 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13851$as_echo "just compiled" >&6; }
13852 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $CC_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
13857 elif test "x$target" = "x$host"; then
13858 # We can use an host tool
13859 CC_FOR_TARGET='$(CC)'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13861$as_echo "host tool" >&6; }
13862 else
13863 # We need a cross tool
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13865$as_echo "pre-installed" >&6; }
13866 fi
13867fi
13868
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13870$as_echo_n "checking where to find the target c++... " >&6; }
13871if test "x${build}" != "x${host}" ; then
13872 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $CXX_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876$as_echo "pre-installed in $ac_dir" >&6; }
13877 else
13878 # Canadian cross, just use what we found
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880$as_echo "pre-installed" >&6; }
13881 fi
13882else
13883 ok=yes
13884 case " ${configdirs} " in
13885 *" gcc "*) ;;
13886 *) ok=no ;;
13887 esac
13888 case ,${enable_languages}, in
13889 *,c++,*) ;;
13890 *) ok=no ;;
13891 esac
13892 if test $ok = yes; then
13893 # An in-tree tool is available and we can use it
13894 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13896$as_echo "just compiled" >&6; }
13897 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
13899 ac_dir=`dirname $CXX_FOR_TARGET`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901$as_echo "pre-installed in $ac_dir" >&6; }
13902 elif test "x$target" = "x$host"; then
13903 # We can use an host tool
13904 CXX_FOR_TARGET='$(CXX)'
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13906$as_echo "host tool" >&6; }
13907 else
13908 # We need a cross tool
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13910$as_echo "pre-installed" >&6; }
13911 fi
13912fi
13913
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13915$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13916if test "x${build}" != "x${host}" ; then
13917 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921$as_echo "pre-installed in $ac_dir" >&6; }
13922 else
13923 # Canadian cross, just use what we found
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925$as_echo "pre-installed" >&6; }
13926 fi
13927else
13928 ok=yes
13929 case " ${configdirs} " in
13930 *" gcc "*) ;;
13931 *) ok=no ;;
13932 esac
13933 case ,${enable_languages}, in
13934 *,c++,*) ;;
13935 *) ok=no ;;
13936 esac
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941$as_echo "just compiled" >&6; }
13942 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
13944 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946$as_echo "pre-installed in $ac_dir" >&6; }
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 RAW_CXX_FOR_TARGET='$(CXX)'
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951$as_echo "host tool" >&6; }
13952 else
13953 # We need a cross tool
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955$as_echo "pre-installed" >&6; }
13956 fi
13957fi
13958
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13960$as_echo_n "checking where to find the target dlltool... " >&6; }
13961if test "x${build}" != "x${host}" ; then
13962 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
13967 else
13968 # Canadian cross, just use what we found
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970$as_echo "pre-installed" >&6; }
13971 fi
13972else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" binutils "*) ;;
13976 *) ok=no ;;
13977 esac
13978
13979 if test $ok = yes; then
13980 # An in-tree tool is available and we can use it
13981 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13983$as_echo "just compiled" >&6; }
13984 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13985 # We already found the complete path
13986 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13988$as_echo "pre-installed in $ac_dir" >&6; }
13989 elif test "x$target" = "x$host"; then
13990 # We can use an host tool
13991 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13993$as_echo "host tool" >&6; }
13994 else
13995 # We need a cross tool
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997$as_echo "pre-installed" >&6; }
13998 fi
13999fi
14000
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14002$as_echo_n "checking where to find the target gcc... " >&6; }
14003if test "x${build}" != "x${host}" ; then
14004 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
14006 ac_dir=`dirname $GCC_FOR_TARGET`
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008$as_echo "pre-installed in $ac_dir" >&6; }
14009 else
14010 # Canadian cross, just use what we found
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012$as_echo "pre-installed" >&6; }
14013 fi
14014else
14015 ok=yes
14016 case " ${configdirs} " in
14017 *" gcc "*) ;;
14018 *) ok=no ;;
14019 esac
14020
14021 if test $ok = yes; then
14022 # An in-tree tool is available and we can use it
14023 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14025$as_echo "just compiled" >&6; }
14026 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
14028 ac_dir=`dirname $GCC_FOR_TARGET`
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030$as_echo "pre-installed in $ac_dir" >&6; }
14031 elif test "x$target" = "x$host"; then
14032 # We can use an host tool
14033 GCC_FOR_TARGET='$()'
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14035$as_echo "host tool" >&6; }
14036 else
14037 # We need a cross tool
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039$as_echo "pre-installed" >&6; }
14040 fi
14041fi
14042
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14044$as_echo_n "checking where to find the target gcj... " >&6; }
14045if test "x${build}" != "x${host}" ; then
14046 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GCJ_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050$as_echo "pre-installed in $ac_dir" >&6; }
14051 else
14052 # Canadian cross, just use what we found
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14054$as_echo "pre-installed" >&6; }
14055 fi
14056else
14057 ok=yes
14058 case " ${configdirs} " in
14059 *" gcc "*) ;;
14060 *) ok=no ;;
14061 esac
14062 case ,${enable_languages}, in
14063 *,java,*) ;;
14064 *) ok=no ;;
14065 esac
14066 if test $ok = yes; then
14067 # An in-tree tool is available and we can use it
14068 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14070$as_echo "just compiled" >&6; }
14071 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $GCJ_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075$as_echo "pre-installed in $ac_dir" >&6; }
14076 elif test "x$target" = "x$host"; then
14077 # We can use an host tool
14078 GCJ_FOR_TARGET='$(GCJ)'
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14080$as_echo "host tool" >&6; }
14081 else
14082 # We need a cross tool
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084$as_echo "pre-installed" >&6; }
14085 fi
14086fi
14087
14088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14089$as_echo_n "checking where to find the target gfortran... " >&6; }
14090if test "x${build}" != "x${host}" ; then
14091 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
14093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095$as_echo "pre-installed in $ac_dir" >&6; }
14096 else
14097 # Canadian cross, just use what we found
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099$as_echo "pre-installed" >&6; }
14100 fi
14101else
14102 ok=yes
14103 case " ${configdirs} " in
14104 *" gcc "*) ;;
14105 *) ok=no ;;
14106 esac
14107 case ,${enable_languages}, in
14108 *,fortran,*) ;;
14109 *) ok=no ;;
14110 esac
14111 if test $ok = yes; then
14112 # An in-tree tool is available and we can use it
14113 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14115$as_echo "just compiled" >&6; }
14116 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120$as_echo "pre-installed in $ac_dir" >&6; }
14121 elif test "x$target" = "x$host"; then
14122 # We can use an host tool
14123 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14125$as_echo "host tool" >&6; }
14126 else
14127 # We need a cross tool
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14129$as_echo "pre-installed" >&6; }
14130 fi
14131fi
14132
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14134$as_echo_n "checking where to find the target gccgo... " >&6; }
14135if test "x${build}" != "x${host}" ; then
14136 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GOC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140$as_echo "pre-installed in $ac_dir" >&6; }
14141 else
14142 # Canadian cross, just use what we found
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144$as_echo "pre-installed" >&6; }
14145 fi
14146else
14147 ok=yes
14148 case " ${configdirs} " in
14149 *" gcc "*) ;;
14150 *) ok=no ;;
14151 esac
14152 case ,${enable_languages}, in
14153 *,go,*) ;;
14154 *) ok=no ;;
14155 esac
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160$as_echo "just compiled" >&6; }
14161 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $GOC_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165$as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 GOC_FOR_TARGET='$(GOC)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170$as_echo "host tool" >&6; }
14171 else
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174$as_echo "pre-installed" >&6; }
14175 fi
14176fi
14177
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14179$as_echo_n "checking where to find the target ld... " >&6; }
14180if test "x${build}" != "x${host}" ; then
14181 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $LD_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
14186 else
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189$as_echo "pre-installed" >&6; }
14190 fi
14191else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" ld "*) ;;
14195 *) ok=no ;;
14196 esac
14197
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202$as_echo "just compiled" >&6; }
14203 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $LD_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207$as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 LD_FOR_TARGET='$(LD)'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212$as_echo "host tool" >&6; }
14213 else
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216$as_echo "pre-installed" >&6; }
14217 fi
14218fi
14219
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14221$as_echo_n "checking where to find the target lipo... " >&6; }
14222if test "x${build}" != "x${host}" ; then
14223 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $LIPO_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227$as_echo "pre-installed in $ac_dir" >&6; }
14228 else
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231$as_echo "pre-installed" >&6; }
14232 fi
14233else
14234 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $LIPO_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 LIPO_FOR_TARGET='$(LIPO)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243$as_echo "host tool" >&6; }
14244 else
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
14248 fi
14249fi
14250
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14252$as_echo_n "checking where to find the target nm... " >&6; }
14253if test "x${build}" != "x${host}" ; then
14254 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $NM_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
14259 else
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
14263 fi
14264else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
14270
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
14276 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $NM_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 NM_FOR_TARGET='$(NM)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
14286 else
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
14290 fi
14291fi
14292
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14294$as_echo_n "checking where to find the target objdump... " >&6; }
14295if test "x${build}" != "x${host}" ; then
14296 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
14305 fi
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
14318 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
14332 fi
14333fi
14334
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14336$as_echo_n "checking where to find the target ranlib... " >&6; }
14337if test "x${build}" != "x${host}" ; then
14338 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $RANLIB_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
14343 else
14344 # Canadian cross, just use what we found
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
14347 fi
14348else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
14354
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
14360 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $RANLIB_FOR_TARGET`
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 RANLIB_FOR_TARGET='$(RANLIB)'
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
14370 else
14371 # We need a cross tool
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
14374 fi
14375fi
14376
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14378$as_echo_n "checking where to find the target readelf... " >&6; }
14379if test "x${build}" != "x${host}" ; then
14380 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $READELF_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
14389 fi
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
14396
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401$as_echo "just compiled" >&6; }
14402 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $READELF_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 READELF_FOR_TARGET='$(READELF)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411$as_echo "host tool" >&6; }
14412 else
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
14416 fi
14417fi
14418
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14420$as_echo_n "checking where to find the target strip... " >&6; }
14421if test "x${build}" != "x${host}" ; then
14422 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $STRIP_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
14427 else
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430$as_echo "pre-installed" >&6; }
14431 fi
14432else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
14438
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443$as_echo "just compiled" >&6; }
14444 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $STRIP_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448$as_echo "pre-installed in $ac_dir" >&6; }
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 STRIP_FOR_TARGET='$(STRIP)'
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453$as_echo "host tool" >&6; }
14454 else
14455 # We need a cross tool
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457$as_echo "pre-installed" >&6; }
14458 fi
14459fi
14460
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14462$as_echo_n "checking where to find the target windres... " >&6; }
14463if test "x${build}" != "x${host}" ; then
14464 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $WINDRES_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
14469 else
14470 # Canadian cross, just use what we found
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472$as_echo "pre-installed" >&6; }
14473 fi
14474else
14475 ok=yes
14476 case " ${configdirs} " in
14477 *" binutils "*) ;;
14478 *) ok=no ;;
14479 esac
14480
14481 if test $ok = yes; then
14482 # An in-tree tool is available and we can use it
14483 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14485$as_echo "just compiled" >&6; }
14486 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14487 # We already found the complete path
14488 ac_dir=`dirname $WINDRES_FOR_TARGET`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14490$as_echo "pre-installed in $ac_dir" >&6; }
14491 elif test "x$target" = "x$host"; then
14492 # We can use an host tool
14493 WINDRES_FOR_TARGET='$(WINDRES)'
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14495$as_echo "host tool" >&6; }
14496 else
14497 # We need a cross tool
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14499$as_echo "pre-installed" >&6; }
14500 fi
14501fi
14502
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14504$as_echo_n "checking where to find the target windmc... " >&6; }
14505if test "x${build}" != "x${host}" ; then
14506 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14507 # We already found the complete path
14508 ac_dir=`dirname $WINDMC_FOR_TARGET`
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14510$as_echo "pre-installed in $ac_dir" >&6; }
14511 else
14512 # Canadian cross, just use what we found
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14514$as_echo "pre-installed" >&6; }
14515 fi
14516else
14517 ok=yes
14518 case " ${configdirs} " in
14519 *" binutils "*) ;;
14520 *) ok=no ;;
14521 esac
14522
14523 if test $ok = yes; then
14524 # An in-tree tool is available and we can use it
14525 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14527$as_echo "just compiled" >&6; }
14528 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14529 # We already found the complete path
14530 ac_dir=`dirname $WINDMC_FOR_TARGET`
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14532$as_echo "pre-installed in $ac_dir" >&6; }
14533 elif test "x$target" = "x$host"; then
14534 # We can use an host tool
14535 WINDMC_FOR_TARGET='$(WINDMC)'
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14537$as_echo "host tool" >&6; }
14538 else
14539 # We need a cross tool
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14541$as_echo "pre-installed" >&6; }
14542 fi
14543fi
14544
14545
14546
14547
14548
14549# Certain tools may need extra flags.
14550AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14551RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14552NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14553
14554# When building target libraries, except in a Canadian cross, we use
14555# the same toolchain as the compiler we just built.
14556COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14557COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14558COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14559if test $host = $build; then
14560 case " $configdirs " in
14561 *" gcc "*)
14562 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14563 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14564 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14565 ;;
14566 esac
14567fi
14568
14569
14570
14571
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14575# Check whether --enable-maintainer-mode was given.
14576if test "${enable_maintainer_mode+set}" = set; then :
14577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14578else
14579 USE_MAINTAINER_MODE=no
14580fi
14581
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14583$as_echo "$USE_MAINTAINER_MODE" >&6; }
14584
14585
14586if test "$USE_MAINTAINER_MODE" = yes; then
14587 MAINTAINER_MODE_TRUE=
14588 MAINTAINER_MODE_FALSE='#'
14589else
14590 MAINTAINER_MODE_TRUE='#'
14591 MAINTAINER_MODE_FALSE=
14592fi
14593MAINT=$MAINTAINER_MODE_TRUE
14594
14595# ---------------------
14596# GCC bootstrap support
14597# ---------------------
14598
14599# Stage specific cflags for build.
14600stage1_cflags="-g"
14601case $build in
14602 vax-*-*)
14603 case ${GCC} in
14604 yes) stage1_cflags="-g -Wa,-J" ;;
14605 *) stage1_cflags="-g -J" ;;
14606 esac ;;
14607esac
14608
14609
14610
14611# Enable --enable-checking in stage1 of the compiler.
14612# Check whether --enable-stage1-checking was given.
14613if test "${enable_stage1_checking+set}" = set; then :
14614 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14615else
14616 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14617 stage1_checking=--enable-checking=yes,types
14618else
14619 stage1_checking=--enable-checking=$enable_checking,types
14620fi
14621fi
14622
14623
14624
14625# Enable -Werror in bootstrap stage2 and later.
14626# Check whether --enable-werror was given.
14627if test "${enable_werror+set}" = set; then :
14628 enableval=$enable_werror;
14629else
14630 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14631 enable_werror=yes
14632else
14633 enable_werror=no
14634fi
14635fi
14636
14637case ${enable_werror} in
14638 yes) stage2_werror_flag="--enable-werror-always" ;;
14639 *) stage2_werror_flag="" ;;
14640esac
14641
14642
14643# Enable --enable-host-shared.
14644# Check whether --enable-host-shared was given.
14645if test "${enable_host_shared+set}" = set; then :
14646 enableval=$enable_host_shared; host_shared=$enableval
14647else
14648 host_shared=no
14649fi
14650
14651
14652
14653# Specify what files to not compare during bootstrap.
14654
14655compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14656case "$target" in
14657 hppa*64*-*-hpux*) ;;
14658 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14659 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14660esac
14661
14662
14663ac_config_files="$ac_config_files Makefile"
14664
14665cat >confcache <<\_ACEOF
14666# This file is a shell script that caches the results of configure
14667# tests run on this system so they can be shared between configure
14668# scripts and configure runs, see configure's option --config-cache.
14669# It is not useful on other systems. If it contains results you don't
14670# want to keep, you may remove or edit it.
14671#
14672# config.status only pays attention to the cache file if you give it
14673# the --recheck option to rerun configure.
14674#
14675# `ac_cv_env_foo' variables (set or unset) will be overridden when
14676# loading this file, other *unset* `ac_cv_foo' will be assigned the
14677# following values.
14678
14679_ACEOF
14680
14681# The following way of writing the cache mishandles newlines in values,
14682# but we know of no workaround that is simple, portable, and efficient.
14683# So, we kill variables containing newlines.
14684# Ultrix sh set writes to stderr and can't be redirected directly,
14685# and sets the high bit in the cache file unless we assign to the vars.
14686(
14687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688 eval ac_val=\$$ac_var
14689 case $ac_val in #(
14690 *${as_nl}*)
14691 case $ac_var in #(
14692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694 esac
14695 case $ac_var in #(
14696 _ | IFS | as_nl) ;; #(
14697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698 *) { eval $ac_var=; unset $ac_var;} ;;
14699 esac ;;
14700 esac
14701 done
14702
14703 (set) 2>&1 |
14704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705 *${as_nl}ac_space=\ *)
14706 # `set' does not quote correctly, so add quotes: double-quote
14707 # substitution turns \\\\ into \\, and sed turns \\ into \.
14708 sed -n \
14709 "s/'/'\\\\''/g;
14710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14711 ;; #(
14712 *)
14713 # `set' quotes correctly as required by POSIX, so do not add quotes.
14714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14715 ;;
14716 esac |
14717 sort
14718) |
14719 sed '
14720 /^ac_cv_env_/b end
14721 t clear
14722 :clear
14723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724 t end
14725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726 :end' >>confcache
14727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728 if test -w "$cache_file"; then
14729 test "x$cache_file" != "x/dev/null" &&
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731$as_echo "$as_me: updating cache $cache_file" >&6;}
14732 cat confcache >$cache_file
14733 else
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14735$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14736 fi
14737fi
14738rm -f confcache
14739
14740test "x$prefix" = xNONE && prefix=$ac_default_prefix
14741# Let make expand exec_prefix.
14742test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14743
14744# Transform confdefs.h into DEFS.
14745# Protect against shell expansion while executing Makefile rules.
14746# Protect against Makefile macro expansion.
14747#
14748# If the first sed substitution is executed (which looks for macros that
14749# take arguments), then branch to the quote section. Otherwise,
14750# look for a macro that doesn't take arguments.
14751ac_script='
14752:mline
14753/\\$/{
14754 N
14755 s,\\\n,,
14756 b mline
14757}
14758t clear
14759:clear
14760s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14761t quote
14762s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14763t quote
14764b any
14765:quote
14766s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14767s/\[/\\&/g
14768s/\]/\\&/g
14769s/\$/$$/g
14770H
14771:any
14772${
14773 g
14774 s/^\n//
14775 s/\n/ /g
14776 p
14777}
14778'
14779DEFS=`sed -n "$ac_script" confdefs.h`
14780
14781
14782ac_libobjs=
14783ac_ltlibobjs=
14784for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14785 # 1. Remove the extension, and $U if already installed.
14786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14789 # will be set to the directory where LIBOBJS objects are built.
14790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14792done
14793LIBOBJS=$ac_libobjs
14794
14795LTLIBOBJS=$ac_ltlibobjs
14796
14797
14798
14799: ${CONFIG_STATUS=./config.status}
14800ac_write_fail=0
14801ac_clean_files_save=$ac_clean_files
14802ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14804$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14805as_write_fail=0
14806cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14807#! $SHELL
14808# Generated by $as_me.
14809# Run this file to recreate the current configuration.
14810# Compiler output produced by configure, useful for debugging
14811# configure, is in config.log if it exists.
14812
14813debug=false
14814ac_cs_recheck=false
14815ac_cs_silent=false
14816
14817SHELL=\${CONFIG_SHELL-$SHELL}
14818export SHELL
14819_ASEOF
14820cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14821## -------------------- ##
14822## M4sh Initialization. ##
14823## -------------------- ##
14824
14825# Be more Bourne compatible
14826DUALCASE=1; export DUALCASE # for MKS sh
14827if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14828 emulate sh
14829 NULLCMD=:
14830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14831 # is contrary to our usage. Disable this feature.
14832 alias -g '${1+"$@"}'='"$@"'
14833 setopt NO_GLOB_SUBST
14834else
14835 case `(set -o) 2>/dev/null` in #(
14836 *posix*) :
14837 set -o posix ;; #(
14838 *) :
14839 ;;
14840esac
14841fi
14842
14843
14844as_nl='
14845'
14846export as_nl
14847# Printing a long string crashes Solaris 7 /usr/bin/printf.
14848as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14849as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14850as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14851# Prefer a ksh shell builtin over an external printf program on Solaris,
14852# but without wasting forks for bash or zsh.
14853if test -z "$BASH_VERSION$ZSH_VERSION" \
14854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14855 as_echo='print -r --'
14856 as_echo_n='print -rn --'
14857elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14858 as_echo='printf %s\n'
14859 as_echo_n='printf %s'
14860else
14861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14863 as_echo_n='/usr/ucb/echo -n'
14864 else
14865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14866 as_echo_n_body='eval
14867 arg=$1;
14868 case $arg in #(
14869 *"$as_nl"*)
14870 expr "X$arg" : "X\\(.*\\)$as_nl";
14871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14872 esac;
14873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14874 '
14875 export as_echo_n_body
14876 as_echo_n='sh -c $as_echo_n_body as_echo'
14877 fi
14878 export as_echo_body
14879 as_echo='sh -c $as_echo_body as_echo'
14880fi
14881
14882# The user is always right.
14883if test "${PATH_SEPARATOR+set}" != set; then
14884 PATH_SEPARATOR=:
14885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14887 PATH_SEPARATOR=';'
14888 }
14889fi
14890
14891
14892# IFS
14893# We need space, tab and new line, in precisely that order. Quoting is
14894# there to prevent editors from complaining about space-tab.
14895# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14896# splitting by setting IFS to empty value.)
14897IFS=" "" $as_nl"
14898
14899# Find who we are. Look in the path if we contain no directory separator.
14900case $0 in #((
14901 *[\\/]* ) as_myself=$0 ;;
14902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903for as_dir in $PATH
14904do
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14908 done
14909IFS=$as_save_IFS
14910
14911 ;;
14912esac
14913# We did not find ourselves, most probably we were run as `sh COMMAND'
14914# in which case we are not to be found in the path.
14915if test "x$as_myself" = x; then
14916 as_myself=$0
14917fi
14918if test ! -f "$as_myself"; then
14919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14920 exit 1
14921fi
14922
14923# Unset variables that we do not need and which cause bugs (e.g. in
14924# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14925# suppresses any "Segmentation fault" message there. '((' could
14926# trigger a bug in pdksh 5.2.14.
14927for as_var in BASH_ENV ENV MAIL MAILPATH
14928do eval test x\${$as_var+set} = xset \
14929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14930done
14931PS1='$ '
14932PS2='> '
14933PS4='+ '
14934
14935# NLS nuisances.
14936LC_ALL=C
14937export LC_ALL
14938LANGUAGE=C
14939export LANGUAGE
14940
14941# CDPATH.
14942(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14943
14944
14945# as_fn_error ERROR [LINENO LOG_FD]
14946# ---------------------------------
14947# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14948# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14949# script with status $?, using 1 if that was 0.
14950as_fn_error ()
14951{
14952 as_status=$?; test $as_status -eq 0 && as_status=1
14953 if test "$3"; then
14954 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14956 fi
14957 $as_echo "$as_me: error: $1" >&2
14958 as_fn_exit $as_status
14959} # as_fn_error
14960
14961
14962# as_fn_set_status STATUS
14963# -----------------------
14964# Set $? to STATUS, without forking.
14965as_fn_set_status ()
14966{
14967 return $1
14968} # as_fn_set_status
14969
14970# as_fn_exit STATUS
14971# -----------------
14972# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14973as_fn_exit ()
14974{
14975 set +e
14976 as_fn_set_status $1
14977 exit $1
14978} # as_fn_exit
14979
14980# as_fn_unset VAR
14981# ---------------
14982# Portably unset VAR.
14983as_fn_unset ()
14984{
14985 { eval $1=; unset $1;}
14986}
14987as_unset=as_fn_unset
14988# as_fn_append VAR VALUE
14989# ----------------------
14990# Append the text in VALUE to the end of the definition contained in VAR. Take
14991# advantage of any shell optimizations that allow amortized linear growth over
14992# repeated appends, instead of the typical quadratic growth present in naive
14993# implementations.
14994if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14995 eval 'as_fn_append ()
14996 {
14997 eval $1+=\$2
14998 }'
14999else
15000 as_fn_append ()
15001 {
15002 eval $1=\$$1\$2
15003 }
15004fi # as_fn_append
15005
15006# as_fn_arith ARG...
15007# ------------------
15008# Perform arithmetic evaluation on the ARGs, and store the result in the
15009# global $as_val. Take advantage of shells that can avoid forks. The arguments
15010# must be portable across $(()) and expr.
15011if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15012 eval 'as_fn_arith ()
15013 {
15014 as_val=$(( $* ))
15015 }'
15016else
15017 as_fn_arith ()
15018 {
15019 as_val=`expr "$@" || test $? -eq 1`
15020 }
15021fi # as_fn_arith
15022
15023
15024if expr a : '\(a\)' >/dev/null 2>&1 &&
15025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15026 as_expr=expr
15027else
15028 as_expr=false
15029fi
15030
15031if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15032 as_basename=basename
15033else
15034 as_basename=false
15035fi
15036
15037if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15038 as_dirname=dirname
15039else
15040 as_dirname=false
15041fi
15042
15043as_me=`$as_basename -- "$0" ||
15044$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15045 X"$0" : 'X\(//\)$' \| \
15046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15047$as_echo X/"$0" |
15048 sed '/^.*\/\([^/][^/]*\)\/*$/{
15049 s//\1/
15050 q
15051 }
15052 /^X\/\(\/\/\)$/{
15053 s//\1/
15054 q
15055 }
15056 /^X\/\(\/\).*/{
15057 s//\1/
15058 q
15059 }
15060 s/.*/./; q'`
15061
15062# Avoid depending upon Character Ranges.
15063as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15064as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15065as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15066as_cr_digits='0123456789'
15067as_cr_alnum=$as_cr_Letters$as_cr_digits
15068
15069ECHO_C= ECHO_N= ECHO_T=
15070case `echo -n x` in #(((((
15071-n*)
15072 case `echo 'xy\c'` in
15073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15074 xy) ECHO_C='\c';;
15075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15076 ECHO_T=' ';;
15077 esac;;
15078*)
15079 ECHO_N='-n';;
15080esac
15081
15082rm -f conf$$ conf$$.exe conf$$.file
15083if test -d conf$$.dir; then
15084 rm -f conf$$.dir/conf$$.file
15085else
15086 rm -f conf$$.dir
15087 mkdir conf$$.dir 2>/dev/null
15088fi
15089if (echo >conf$$.file) 2>/dev/null; then
15090 if ln -s conf$$.file conf$$ 2>/dev/null; then
15091 as_ln_s='ln -s'
15092 # ... but there are two gotchas:
15093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15095 # In both cases, we have to default to `cp -p'.
15096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15097 as_ln_s='cp -p'
15098 elif ln conf$$.file conf$$ 2>/dev/null; then
15099 as_ln_s=ln
15100 else
15101 as_ln_s='cp -p'
15102 fi
15103else
15104 as_ln_s='cp -p'
15105fi
15106rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15107rmdir conf$$.dir 2>/dev/null
15108
15109
15110# as_fn_mkdir_p
15111# -------------
15112# Create "$as_dir" as a directory, including parents if necessary.
15113as_fn_mkdir_p ()
15114{
15115
15116 case $as_dir in #(
15117 -*) as_dir=./$as_dir;;
15118 esac
15119 test -d "$as_dir" || eval $as_mkdir_p || {
15120 as_dirs=
15121 while :; do
15122 case $as_dir in #(
15123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15124 *) as_qdir=$as_dir;;
15125 esac
15126 as_dirs="'$as_qdir' $as_dirs"
15127 as_dir=`$as_dirname -- "$as_dir" ||
15128$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15129 X"$as_dir" : 'X\(//\)[^/]' \| \
15130 X"$as_dir" : 'X\(//\)$' \| \
15131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15132$as_echo X"$as_dir" |
15133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15134 s//\1/
15135 q
15136 }
15137 /^X\(\/\/\)[^/].*/{
15138 s//\1/
15139 q
15140 }
15141 /^X\(\/\/\)$/{
15142 s//\1/
15143 q
15144 }
15145 /^X\(\/\).*/{
15146 s//\1/
15147 q
15148 }
15149 s/.*/./; q'`
15150 test -d "$as_dir" && break
15151 done
15152 test -z "$as_dirs" || eval "mkdir $as_dirs"
15153 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15154
15155
15156} # as_fn_mkdir_p
15157if mkdir -p . 2>/dev/null; then
15158 as_mkdir_p='mkdir -p "$as_dir"'
15159else
15160 test -d ./-p && rmdir ./-p
15161 as_mkdir_p=false
15162fi
15163
15164if test -x / >/dev/null 2>&1; then
15165 as_test_x='test -x'
15166else
15167 if ls -dL / >/dev/null 2>&1; then
15168 as_ls_L_option=L
15169 else
15170 as_ls_L_option=
15171 fi
15172 as_test_x='
15173 eval sh -c '\''
15174 if test -d "$1"; then
15175 test -d "$1/.";
15176 else
15177 case $1 in #(
15178 -*)set "./$1";;
15179 esac;
15180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15181 ???[sx]*):;;*)false;;esac;fi
15182 '\'' sh
15183 '
15184fi
15185as_executable_p=$as_test_x
15186
15187# Sed expression to map a string onto a valid CPP name.
15188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15189
15190# Sed expression to map a string onto a valid variable name.
15191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15192
15193
15194exec 6>&1
15195## ----------------------------------- ##
15196## Main body of $CONFIG_STATUS script. ##
15197## ----------------------------------- ##
15198_ASEOF
15199test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15200
15201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202# Save the log message, to keep $0 and so on meaningful, and to
15203# report actual input values of CONFIG_FILES etc. instead of their
15204# values after options handling.
15205ac_log="
15206This file was extended by $as_me, which was
15207generated by GNU Autoconf 2.64. Invocation command line was
15208
15209 CONFIG_FILES = $CONFIG_FILES
15210 CONFIG_HEADERS = $CONFIG_HEADERS
15211 CONFIG_LINKS = $CONFIG_LINKS
15212 CONFIG_COMMANDS = $CONFIG_COMMANDS
15213 $ $0 $@
15214
15215on `(hostname || uname -n) 2>/dev/null | sed 1q`
15216"
15217
15218_ACEOF
15219
15220case $ac_config_files in *"
15221"*) set x $ac_config_files; shift; ac_config_files=$*;;
15222esac
15223
15224
15225
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227# Files that config.status was made for.
15228config_files="$ac_config_files"
15229
15230_ACEOF
15231
15232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233ac_cs_usage="\
15234\`$as_me' instantiates files and other configuration actions
15235from templates according to the current configuration. Unless the files
15236and actions are specified as TAGs, all are instantiated by default.
15237
15238Usage: $0 [OPTION]... [TAG]...
15239
15240 -h, --help print this help, then exit
15241 -V, --version print version number and configuration settings, then exit
15242 -q, --quiet, --silent
15243 do not print progress messages
15244 -d, --debug don't remove temporary files
15245 --recheck update $as_me by reconfiguring in the same conditions
15246 --file=FILE[:TEMPLATE]
15247 instantiate the configuration file FILE
15248
15249Configuration files:
15250$config_files
15251
15252Report bugs to the package provider."
15253
15254_ACEOF
15255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256ac_cs_version="\\
15257config.status
15258configured by $0, generated by GNU Autoconf 2.64,
15259 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15260
15261Copyright (C) 2009 Free Software Foundation, Inc.
15262This config.status script is free software; the Free Software Foundation
15263gives unlimited permission to copy, distribute and modify it."
15264
15265ac_pwd='$ac_pwd'
15266srcdir='$srcdir'
15267INSTALL='$INSTALL'
15268AWK='$AWK'
15269test -n "\$AWK" || AWK=awk
15270_ACEOF
15271
15272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273# The default lists apply if the user does not specify any file.
15274ac_need_defaults=:
15275while test $# != 0
15276do
15277 case $1 in
15278 --*=*)
15279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15281 ac_shift=:
15282 ;;
15283 *)
15284 ac_option=$1
15285 ac_optarg=$2
15286 ac_shift=shift
15287 ;;
15288 esac
15289
15290 case $ac_option in
15291 # Handling of the options.
15292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15293 ac_cs_recheck=: ;;
15294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15295 $as_echo "$ac_cs_version"; exit ;;
15296 --debug | --debu | --deb | --de | --d | -d )
15297 debug=: ;;
15298 --file | --fil | --fi | --f )
15299 $ac_shift
15300 case $ac_optarg in
15301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15302 esac
15303 as_fn_append CONFIG_FILES " '$ac_optarg'"
15304 ac_need_defaults=false;;
15305 --he | --h | --help | --hel | -h )
15306 $as_echo "$ac_cs_usage"; exit ;;
15307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15309 ac_cs_silent=: ;;
15310
15311 # This is an error.
15312 -*) as_fn_error "unrecognized option: \`$1'
15313Try \`$0 --help' for more information." ;;
15314
15315 *) as_fn_append ac_config_targets " $1"
15316 ac_need_defaults=false ;;
15317
15318 esac
15319 shift
15320done
15321
15322ac_configure_extra_args=
15323
15324if $ac_cs_silent; then
15325 exec 6>/dev/null
15326 ac_configure_extra_args="$ac_configure_extra_args --silent"
15327fi
15328
15329_ACEOF
15330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331if \$ac_cs_recheck; then
15332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15333 shift
15334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15335 CONFIG_SHELL='$SHELL'
15336 export CONFIG_SHELL
15337 exec "\$@"
15338fi
15339
15340_ACEOF
15341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342exec 5>>config.log
15343{
15344 echo
15345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15346## Running $as_me. ##
15347_ASBOX
15348 $as_echo "$ac_log"
15349} >&5
15350
15351_ACEOF
15352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353#
15354# INIT-COMMANDS
15355#
15356extrasub_build="$extrasub_build"
15357 extrasub_host="$extrasub_host"
15358 extrasub_target="$extrasub_target"
15359
15360_ACEOF
15361
15362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15363
15364# Handling of arguments.
15365for ac_config_target in $ac_config_targets
15366do
15367 case $ac_config_target in
15368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15369
15370 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15371 esac
15372done
15373
15374
15375# If the user did not use the arguments to specify the items to instantiate,
15376# then the envvar interface is used. Set only those that are not.
15377# We use the long form for the default assignment because of an extremely
15378# bizarre bug on SunOS 4.1.3.
15379if $ac_need_defaults; then
15380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15381fi
15382
15383# Have a temporary directory for convenience. Make it in the build tree
15384# simply because there is no reason against having it here, and in addition,
15385# creating and moving files from /tmp can sometimes cause problems.
15386# Hook for its removal unless debugging.
15387# Note that there is a small window in which the directory will not be cleaned:
15388# after its creation but before its name has been assigned to `$tmp'.
15389$debug ||
15390{
15391 tmp=
15392 trap 'exit_status=$?
15393 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15394' 0
15395 trap 'as_fn_exit 1' 1 2 13 15
15396}
15397# Create a (secure) tmp directory for tmp files.
15398
15399{
15400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15401 test -n "$tmp" && test -d "$tmp"
15402} ||
15403{
15404 tmp=./conf$$-$RANDOM
15405 (umask 077 && mkdir "$tmp")
15406} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15407
15408# Set up the scripts for CONFIG_FILES section.
15409# No need to generate them if there are no CONFIG_FILES.
15410# This happens for instance with `./config.status config.h'.
15411if test -n "$CONFIG_FILES"; then
15412
15413if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15414 ac_cs_awk_getline=:
15415 ac_cs_awk_pipe_init=
15416 ac_cs_awk_read_file='
15417 while ((getline aline < (F[key])) > 0)
15418 print(aline)
15419 close(F[key])'
15420 ac_cs_awk_pipe_fini=
15421else
15422 ac_cs_awk_getline=false
15423 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15424 ac_cs_awk_read_file='
15425 print "|#_!!_#|"
15426 print "cat " F[key] " &&"
15427 '$ac_cs_awk_pipe_init
15428 # The final `:' finishes the AND list.
15429 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15430fi
15431ac_cr=`echo X | tr X '\015'`
15432# On cygwin, bash can eat \r inside `` if the user requested igncr.
15433# But we know of no other shell where ac_cr would be empty at this
15434# point, so we can use a bashism as a fallback.
15435if test "x$ac_cr" = x; then
15436 eval ac_cr=\$\'\\r\'
15437fi
15438ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15439if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15440 ac_cs_awk_cr='\r'
15441else
15442 ac_cs_awk_cr=$ac_cr
15443fi
15444
15445echo 'BEGIN {' >"$tmp/subs1.awk" &&
15446_ACEOF
15447
15448# Create commands to substitute file output variables.
15449{
15450 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15451 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15452 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15453 echo "_ACAWK" &&
15454 echo "_ACEOF"
15455} >conf$$files.sh &&
15456. ./conf$$files.sh ||
15457 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15458rm -f conf$$files.sh
15459
15460{
15461 echo "cat >conf$$subs.awk <<_ACEOF" &&
15462 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15463 echo "_ACEOF"
15464} >conf$$subs.sh ||
15465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15466ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15467ac_delim='%!_!# '
15468for ac_last_try in false false false false false :; do
15469 . ./conf$$subs.sh ||
15470 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15471
15472 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15473 if test $ac_delim_n = $ac_delim_num; then
15474 break
15475 elif $ac_last_try; then
15476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15477 else
15478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15479 fi
15480done
15481rm -f conf$$subs.sh
15482
15483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15484cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15485_ACEOF
15486sed -n '
15487h
15488s/^/S["/; s/!.*/"]=/
15489p
15490g
15491s/^[^!]*!//
15492:repl
15493t repl
15494s/'"$ac_delim"'$//
15495t delim
15496:nl
15497h
15498s/\(.\{148\}\).*/\1/
15499t more1
15500s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15501p
15502n
15503b repl
15504:more1
15505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15506p
15507g
15508s/.\{148\}//
15509t nl
15510:delim
15511h
15512s/\(.\{148\}\).*/\1/
15513t more2
15514s/["\\]/\\&/g; s/^/"/; s/$/"/
15515p
15516b
15517:more2
15518s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15519p
15520g
15521s/.\{148\}//
15522t delim
15523' <conf$$subs.awk | sed '
15524/^[^""]/{
15525 N
15526 s/\n//
15527}
15528' >>$CONFIG_STATUS || ac_write_fail=1
15529rm -f conf$$subs.awk
15530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15531_ACAWK
15532cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15533 for (key in S) S_is_set[key] = 1
15534 FS = "\a"
15535 \$ac_cs_awk_pipe_init
15536}
15537{
15538 line = $ 0
15539 nfields = split(line, field, "@")
15540 substed = 0
15541 len = length(field[1])
15542 for (i = 2; i < nfields; i++) {
15543 key = field[i]
15544 keylen = length(key)
15545 if (S_is_set[key]) {
15546 value = S[key]
15547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15548 len += length(value) + length(field[++i])
15549 substed = 1
15550 } else
15551 len += 1 + keylen
15552 }
15553 if (nfields == 3 && !substed) {
15554 key = field[2]
15555 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15556 \$ac_cs_awk_read_file
15557 next
15558 }
15559 }
15560 print line
15561}
15562\$ac_cs_awk_pipe_fini
15563_ACAWK
15564_ACEOF
15565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15568else
15569 cat
15570fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15572_ACEOF
15573
15574# VPATH may cause trouble with some makes, so we remove $(srcdir),
15575# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15576# trailing colons and then remove the whole line if VPATH becomes empty
15577# (actually we leave an empty line to preserve line numbers).
15578if test "x$srcdir" = x.; then
15579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15580s/:*\$(srcdir):*/:/
15581s/:*\${srcdir}:*/:/
15582s/:*@srcdir@:*/:/
15583s/^\([^=]*=[ ]*\):*/\1/
15584s/:*$//
15585s/^[^=]*=[ ]*$//
15586}'
15587fi
15588
15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590fi # test -n "$CONFIG_FILES"
15591
15592
15593eval set X " :F $CONFIG_FILES "
15594shift
15595for ac_tag
15596do
15597 case $ac_tag in
15598 :[FHLC]) ac_mode=$ac_tag; continue;;
15599 esac
15600 case $ac_mode$ac_tag in
15601 :[FHL]*:*);;
15602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15603 :[FH]-) ac_tag=-:-;;
15604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15605 esac
15606 ac_save_IFS=$IFS
15607 IFS=:
15608 set x $ac_tag
15609 IFS=$ac_save_IFS
15610 shift
15611 ac_file=$1
15612 shift
15613
15614 case $ac_mode in
15615 :L) ac_source=$1;;
15616 :[FH])
15617 ac_file_inputs=
15618 for ac_f
15619 do
15620 case $ac_f in
15621 -) ac_f="$tmp/stdin";;
15622 *) # Look for the file first in the build tree, then in the source tree
15623 # (if the path is not absolute). The absolute path cannot be DOS-style,
15624 # because $ac_f cannot contain `:'.
15625 test -f "$ac_f" ||
15626 case $ac_f in
15627 [\\/$]*) false;;
15628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15629 esac ||
15630 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15631 esac
15632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15633 as_fn_append ac_file_inputs " '$ac_f'"
15634 done
15635
15636 # Let's still pretend it is `configure' which instantiates (i.e., don't
15637 # use $as_me), people would be surprised to read:
15638 # /* config.h. Generated by config.status. */
15639 configure_input='Generated from '`
15640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15641 `' by configure.'
15642 if test x"$ac_file" != x-; then
15643 configure_input="$ac_file. $configure_input"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15645$as_echo "$as_me: creating $ac_file" >&6;}
15646 fi
15647 # Neutralize special characters interpreted by sed in replacement strings.
15648 case $configure_input in #(
15649 *\&* | *\|* | *\\* )
15650 ac_sed_conf_input=`$as_echo "$configure_input" |
15651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15652 *) ac_sed_conf_input=$configure_input;;
15653 esac
15654
15655 case $ac_tag in
15656 *:-:* | *:-) cat >"$tmp/stdin" \
15657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15658 esac
15659 ;;
15660 esac
15661
15662 ac_dir=`$as_dirname -- "$ac_file" ||
15663$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15664 X"$ac_file" : 'X\(//\)[^/]' \| \
15665 X"$ac_file" : 'X\(//\)$' \| \
15666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15667$as_echo X"$ac_file" |
15668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15669 s//\1/
15670 q
15671 }
15672 /^X\(\/\/\)[^/].*/{
15673 s//\1/
15674 q
15675 }
15676 /^X\(\/\/\)$/{
15677 s//\1/
15678 q
15679 }
15680 /^X\(\/\).*/{
15681 s//\1/
15682 q
15683 }
15684 s/.*/./; q'`
15685 as_dir="$ac_dir"; as_fn_mkdir_p
15686 ac_builddir=.
15687
15688case "$ac_dir" in
15689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15690*)
15691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15692 # A ".." for each directory in $ac_dir_suffix.
15693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15694 case $ac_top_builddir_sub in
15695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15697 esac ;;
15698esac
15699ac_abs_top_builddir=$ac_pwd
15700ac_abs_builddir=$ac_pwd$ac_dir_suffix
15701# for backward compatibility:
15702ac_top_builddir=$ac_top_build_prefix
15703
15704case $srcdir in
15705 .) # We are building in place.
15706 ac_srcdir=.
15707 ac_top_srcdir=$ac_top_builddir_sub
15708 ac_abs_top_srcdir=$ac_pwd ;;
15709 [\\/]* | ?:[\\/]* ) # Absolute name.
15710 ac_srcdir=$srcdir$ac_dir_suffix;
15711 ac_top_srcdir=$srcdir
15712 ac_abs_top_srcdir=$srcdir ;;
15713 *) # Relative name.
15714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15715 ac_top_srcdir=$ac_top_build_prefix$srcdir
15716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15717esac
15718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15719
15720
15721 case $ac_mode in
15722 :F)
15723 #
15724 # CONFIG_FILE
15725 #
15726
15727 case $INSTALL in
15728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15730 esac
15731_ACEOF
15732
15733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734# If the template does not know about datarootdir, expand it.
15735# FIXME: This hack should be removed a few years after 2.60.
15736ac_datarootdir_hack=; ac_datarootdir_seen=
15737ac_sed_dataroot='
15738/datarootdir/ {
15739 p
15740 q
15741}
15742/@datadir@/p
15743/@docdir@/p
15744/@infodir@/p
15745/@localedir@/p
15746/@mandir@/p'
15747case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15748*datarootdir*) ac_datarootdir_seen=yes;;
15749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15751$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15752_ACEOF
15753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 ac_datarootdir_hack='
15755 s&@datadir@&$datadir&g
15756 s&@docdir@&$docdir&g
15757 s&@infodir@&$infodir&g
15758 s&@localedir@&$localedir&g
15759 s&@mandir@&$mandir&g
15760 s&\\\${datarootdir}&$datarootdir&g' ;;
15761esac
15762_ACEOF
15763
15764# Neutralize VPATH when `$srcdir' = `.'.
15765# Shell code in configure.ac might set extrasub.
15766# FIXME: do we really want to maintain this feature?
15767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768ac_sed_extra="$ac_vpsub
15769$extrasub
15770_ACEOF
15771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772:t
15773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15774s|@configure_input@|$ac_sed_conf_input|;t t
15775s&@top_builddir@&$ac_top_builddir_sub&;t t
15776s&@top_build_prefix@&$ac_top_build_prefix&;t t
15777s&@srcdir@&$ac_srcdir&;t t
15778s&@abs_srcdir@&$ac_abs_srcdir&;t t
15779s&@top_srcdir@&$ac_top_srcdir&;t t
15780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15781s&@builddir@&$ac_builddir&;t t
15782s&@abs_builddir@&$ac_abs_builddir&;t t
15783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15784s&@INSTALL@&$ac_INSTALL&;t t
15785$ac_datarootdir_hack
15786"
15787eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15788if $ac_cs_awk_getline; then
15789 $AWK -f "$tmp/subs.awk"
15790else
15791 $AWK -f "$tmp/subs.awk" | $SHELL
15792fi >$tmp/out \
15793 || as_fn_error "could not create $ac_file" "$LINENO" 5
15794
15795test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15796 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15799which seems to be undefined. Please make sure it is defined." >&5
15800$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15801which seems to be undefined. Please make sure it is defined." >&2;}
15802
15803 rm -f "$tmp/stdin"
15804 case $ac_file in
15805 -) cat "$tmp/out" && rm -f "$tmp/out";;
15806 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15807 esac \
15808 || as_fn_error "could not create $ac_file" "$LINENO" 5
15809 ;;
15810
15811
15812
15813 esac
15814
15815
15816 case $ac_file$ac_mode in
15817 "Makefile":F) sed "$extrasub_build" Makefile |
15818 sed "$extrasub_host" |
15819 sed "$extrasub_target" > mf$$
15820 mv -f mf$$ Makefile ;;
15821
15822 esac
15823done # for ac_tag
15824
15825
15826as_fn_exit 0
15827_ACEOF
15828ac_clean_files=$ac_clean_files_save
15829
15830test $ac_write_fail = 0 ||
15831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15832
15833
15834# configure is writing to config.log, and then calls config.status.
15835# config.status does its own redirection, appending to config.log.
15836# Unfortunately, on DOS this fails, as config.log is still kept open
15837# by configure, so config.status won't be able to write to it; its
15838# output is simply discarded. So we exec the FD to /dev/null,
15839# effectively closing config.log, so it can be properly (re)opened and
15840# appended to by config.status. When coming back to configure, we
15841# need to make the FD available again.
15842if test "$no_create" != yes; then
15843 ac_cs_success=:
15844 ac_config_status_args=
15845 test "$silent" = yes &&
15846 ac_config_status_args="$ac_config_status_args --quiet"
15847 exec 5>/dev/null
15848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15849 exec 5>>config.log
15850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15851 # would make configure fail if this is the last instruction.
15852 $ac_cs_success || as_fn_exit $?
15853fi
15854if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15856$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15857fi
15858
This page took 0.107529 seconds and 4 git commands to generate.