*** empty log message ***
[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
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GOC_FOR_TARGET
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
614GOC_FOR_BUILD
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
624target_configdirs
625configdirs
626build_configdirs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
634target_configargs
635host_configargs
636build_configargs
637BUILD_CONFIG
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
643extra_host_libiberty_configure_flags
644clooginc
645clooglibs
646pplinc
647ppllibs
648poststage1_ldflags
649poststage1_libs
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
674AWK
675SED
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
744enable_libada
745enable_libssp
746enable_build_with_cxx
747with_mpc
748with_mpc_include
749with_mpc_lib
750with_mpfr_dir
751with_mpfr
752with_mpfr_include
753with_mpfr_lib
754with_gmp_dir
755with_gmp
756with_gmp_include
757with_gmp_lib
758with_host_libstdcxx
759with_stage1_ldflags
760with_stage1_libs
761with_boot_libs
762with_boot_ldflags
763with_ppl
764with_ppl_include
765with_ppl_lib
766enable_ppl_version_check
767with_cloog
768with_cloog_include
769with_cloog_lib
770enable_cloog_backend
771enable_cloog_version_check
772enable_lto
773enable_stage1_languages
774enable_objc_gc
775with_build_sysroot
776with_debug_prefix_map
777enable_bootstrap
778with_build_config
779enable_serial_configure
780with_build_time_tools
781enable_maintainer_mode
782enable_stage1_checking
783enable_werror
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CXX
794CXXFLAGS
795CCC
796build_configargs
797host_configargs
798target_configargs
799AR
800AS
801DLLTOOL
802LD
803LIPO
804NM
805RANLIB
806STRIP
807WINDRES
808WINDMC
809OBJCOPY
810OBJDUMP
811CC_FOR_TARGET
812CXX_FOR_TARGET
813GCC_FOR_TARGET
814GCJ_FOR_TARGET
815GFORTRAN_FOR_TARGET
816GOC_FOR_TARGET
817AR_FOR_TARGET
818AS_FOR_TARGET
819DLLTOOL_FOR_TARGET
820LD_FOR_TARGET
821LIPO_FOR_TARGET
822NM_FOR_TARGET
823OBJDUMP_FOR_TARGET
824RANLIB_FOR_TARGET
825STRIP_FOR_TARGET
826WINDRES_FOR_TARGET
827WINDMC_FOR_TARGET'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
887 fi
888
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information."
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 ;;
1233
1234 esac
1235done
1236
1237if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1255do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355case $srcdir in
1356 *" "*)
1357 as_fn_error "path to source, $srcdir, contains spaces"
1358 ;;
1359esac
1360ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures this package to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429_ACEOF
1430
1431 cat <<\_ACEOF
1432
1433Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1454 --enable-libada build libada directory
1455 --enable-libssp build libssp directory
1456 --enable-build-with-cxx build with C++ compiler instead of C compiler
1457 --disable-ppl-version-check disable check for PPL version
1458 --enable-cloog-backend[=BACKEND]
1459 set the CLooG BACKEND used to either isl, ppl or
1460 ppl-legacy (default)
1461 --disable-cloog-version-check
1462 disable check for CLooG version
1463 --enable-lto enable link time optimization support
1464 --enable-stage1-languages[=all] choose additional languages to build during
1465 stage1. Mostly useful for compiler development.
1466 --enable-objc-gc enable use of Boehm's garbage collector with the
1467 GNU Objective-C runtime
1468 --enable-bootstrap enable bootstrapping [yes if native build]
1469 --enable-serial-[{host,target,build}-]configure
1470 force sequential configuration of
1471 sub-packages for the host, target or build
1472 machine, or all sub-packages
1473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
1475 --enable-stage1-checking[=all] choose additional checking for stage1
1476 of the compiler
1477 --enable-werror enable -Werror in bootstrap stage2 and later
1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
1483 --with-mpc=PATH specify prefix directory for installed MPC package.
1484 Equivalent to --with-mpc-include=PATH/include
1485 plus --with-mpc-lib=PATH/lib
1486 --with-mpc-include=PATH
1487 specify directory for installed MPC include files
1488 --with-mpc-lib=PATH specify directory for the installed MPC library
1489 --with-mpfr-dir=PATH this option has been REMOVED
1490 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1491 Equivalent to --with-mpfr-include=PATH/include
1492 plus --with-mpfr-lib=PATH/lib
1493 --with-mpfr-include=PATH
1494 specify directory for installed MPFR include files
1495 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1496 --with-gmp-dir=PATH this option has been REMOVED
1497 --with-gmp=PATH specify prefix directory for the installed GMP package.
1498 Equivalent to --with-gmp-include=PATH/include
1499 plus --with-gmp-lib=PATH/lib
1500 --with-gmp-include=PATH specify directory for installed GMP include files
1501 --with-gmp-lib=PATH specify directory for the installed GMP library
1502 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1503 when linking with PPL
1504 --with-stage1-ldflags=FLAGS Linker flags for stage1
1505 -with-stage1-libs=LIBS Libraries for stage1
1506 --with-boot-libs=LIBS Libraries for stage2 and later
1507 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1508 --with-ppl=PATH Specify prefix directory for the installed PPL package
1509 Equivalent to --with-ppl-include=PATH/include
1510 plus --with-ppl-lib=PATH/lib
1511 --with-ppl-include=PATH Specify directory for installed PPL include files
1512 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1513 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1514 package. Equivalent to
1515 --with-cloog-include=PATH/include plus
1516 --with-cloog-lib=PATH/lib
1517 --with-cloog-include=PATH
1518 Specify directory for installed CLooG include files
1519 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1520 library
1521 --with-build-sysroot=SYSROOT
1522 use sysroot as the system root during the build
1523 --with-debug-prefix-map='A=B C=D ...'
1524 map A to B, C to D ... in debug information
1525--with-build-config='NAME NAME2...'
1526 Use config/NAME.mk build configuration
1527 --with-build-time-tools=PATH
1528 use given path to find target tools during the build
1529
1530Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CXX C++ compiler command
1539 CXXFLAGS C++ compiler flags
1540 build_configargs
1541 additional configure arguments for build directories
1542 host_configargs
1543 additional configure arguments for host directories
1544 target_configargs
1545 additional configure arguments for target directories
1546 AR AR for the host
1547 AS AS for the host
1548 DLLTOOL DLLTOOL for the host
1549 LD LD for the host
1550 LIPO LIPO for the host
1551 NM NM for the host
1552 RANLIB RANLIB for the host
1553 STRIP STRIP for the host
1554 WINDRES WINDRES for the host
1555 WINDMC WINDMC for the host
1556 OBJCOPY OBJCOPY for the host
1557 OBJDUMP OBJDUMP for the host
1558 CC_FOR_TARGET
1559 CC for the target
1560 CXX_FOR_TARGET
1561 CXX for the target
1562 GCC_FOR_TARGET
1563 GCC for the target
1564 GCJ_FOR_TARGET
1565 GCJ for the target
1566 GFORTRAN_FOR_TARGET
1567 GFORTRAN for the target
1568 GOC_FOR_TARGET
1569 GOC for the target
1570 AR_FOR_TARGET
1571 AR for the target
1572 AS_FOR_TARGET
1573 AS for the target
1574 DLLTOOL_FOR_TARGET
1575 DLLTOOL for the target
1576 LD_FOR_TARGET
1577 LD for the target
1578 LIPO_FOR_TARGET
1579 LIPO for the target
1580 NM_FOR_TARGET
1581 NM for the target
1582 OBJDUMP_FOR_TARGET
1583 OBJDUMP for the target
1584 RANLIB_FOR_TARGET
1585 RANLIB for the target
1586 STRIP_FOR_TARGET
1587 STRIP for the target
1588 WINDRES_FOR_TARGET
1589 WINDRES for the target
1590 WINDMC_FOR_TARGET
1591 WINDMC for the target
1592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
1596Report bugs to the package provider.
1597_ACEOF
1598ac_status=$?
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1608
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
1624
1625case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638esac
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654fi
1655
1656test -n "$ac_init_help" && exit $ac_status
1657if $ac_init_version; then
1658 cat <<\_ACEOF
1659configure
1660generated by GNU Autoconf 2.64
1661
1662Copyright (C) 2009 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
1666 exit
1667fi
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_c_try_compile
1710
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747} # ac_fn_cxx_try_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793} # ac_fn_c_try_link
1794cat >config.log <<_ACEOF
1795This file contains any messages produced by compilers while
1796running configure, to aid debugging if configure makes a mistake.
1797
1798It was created by $as_me, which was
1799generated by GNU Autoconf 2.64. Invocation command line was
1800
1801 $ $0 $@
1802
1803_ACEOF
1804exec 5>>config.log
1805{
1806cat <<_ASUNAME
1807## --------- ##
1808## Platform. ##
1809## --------- ##
1810
1811hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819
1820/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827
1828_ASUNAME
1829
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 $as_echo "PATH: $as_dir"
1836 done
1837IFS=$as_save_IFS
1838
1839} >&5
1840
1841cat >&5 <<_ACEOF
1842
1843
1844## ----------- ##
1845## Core tests. ##
1846## ----------- ##
1847
1848_ACEOF
1849
1850
1851# Keep a trace of the command line.
1852# Strip out --no-create and --no-recursion so they do not pile up.
1853# Strip out --silent because we don't want to record it for future runs.
1854# Also quote any args containing shell meta-characters.
1855# Make two passes to allow for proper duplicate-argument suppression.
1856ac_configure_args=
1857ac_configure_args0=
1858ac_configure_args1=
1859ac_must_keep_next=false
1860for ac_pass in 1 2
1861do
1862 for ac_arg
1863 do
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
1869 *\'*)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 esac
1872 case $ac_pass in
1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874 2)
1875 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1887 ;;
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1890 fi
1891 as_fn_append ac_configure_args " '$ac_arg'"
1892 ;;
1893 esac
1894 done
1895done
1896{ ac_configure_args0=; unset ac_configure_args0;}
1897{ ac_configure_args1=; unset ac_configure_args1;}
1898
1899# When interrupted or exit'd, cleanup temporary files, and complete
1900# config.log. We remove comments because anyway the quotes in there
1901# would cause problems or look ugly.
1902# WARNING: Use '\'' to represent an apostrophe within the trap.
1903# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1906 {
1907 echo
1908
1909 cat <<\_ASBOX
1910## ---------------- ##
1911## Cache variables. ##
1912## ---------------- ##
1913_ASBOX
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
1916(
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
1932 (set) 2>&1 |
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
1935 sed -n \
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
1939 *)
1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1941 ;;
1942 esac |
1943 sort
1944)
1945 echo
1946
1947 cat <<\_ASBOX
1948## ----------------- ##
1949## Output variables. ##
1950## ----------------- ##
1951_ASBOX
1952 echo
1953 for ac_var in $ac_subst_vars
1954 do
1955 eval ac_val=\$$ac_var
1956 case $ac_val in
1957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 esac
1959 $as_echo "$ac_var='\''$ac_val'\''"
1960 done | sort
1961 echo
1962
1963 if test -n "$ac_subst_files"; then
1964 cat <<\_ASBOX
1965## ------------------- ##
1966## File substitutions. ##
1967## ------------------- ##
1968_ASBOX
1969 echo
1970 for ac_var in $ac_subst_files
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 esac
1976 $as_echo "$ac_var='\''$ac_val'\''"
1977 done | sort
1978 echo
1979 fi
1980
1981 if test -s confdefs.h; then
1982 cat <<\_ASBOX
1983## ----------- ##
1984## confdefs.h. ##
1985## ----------- ##
1986_ASBOX
1987 echo
1988 cat confdefs.h
1989 echo
1990 fi
1991 test "$ac_signal" != 0 &&
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
1994 } >&5
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 exit $exit_status
1998' 0
1999for ac_signal in 1 2 13 15; do
2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001done
2002ac_signal=0
2003
2004# confdefs.h avoids OS command line length limits that DEFS can exceed.
2005rm -f -r conftest* confdefs.h
2006
2007$as_echo "/* confdefs.h */" > confdefs.h
2008
2009# Predefined preprocessor variables.
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_NAME "$PACKAGE_NAME"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_VERSION "$PACKAGE_VERSION"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_STRING "$PACKAGE_STRING"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_URL "$PACKAGE_URL"
2033_ACEOF
2034
2035
2036# Let the site file select an alternate cache file if it wants to.
2037# Prefer an explicitly selected file to automatically selected ones.
2038ac_site_file1=NONE
2039ac_site_file2=NONE
2040if test -n "$CONFIG_SITE"; then
2041 ac_site_file1=$CONFIG_SITE
2042elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
2048fi
2049for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050do
2051 test "x$ac_site_file" = xNONE && continue
2052 if test -r "$ac_site_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2055 sed 's/^/| /' "$ac_site_file" >&5
2056 . "$ac_site_file"
2057 fi
2058done
2059
2060if test -r "$cache_file"; then
2061 # Some versions of bash will fail to source /dev/null (special
2062 # files actually), so we avoid doing that.
2063 if test -f "$cache_file"; then
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065$as_echo "$as_me: loading cache $cache_file" >&6;}
2066 case $cache_file in
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
2069 esac
2070 fi
2071else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073$as_echo "$as_me: creating cache $cache_file" >&6;}
2074 >$cache_file
2075fi
2076
2077# Check that the precious variables saved in the cache have kept the same
2078# value.
2079ac_cache_corrupted=false
2080for ac_var in $ac_precious_vars; do
2081 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082 eval ac_new_set=\$ac_env_${ac_var}_set
2083 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084 eval ac_new_val=\$ac_env_${ac_var}_value
2085 case $ac_old_set,$ac_new_set in
2086 set,)
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2089 ac_cache_corrupted=: ;;
2090 ,set)
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2093 ac_cache_corrupted=: ;;
2094 ,);;
2095 *)
2096 if test "x$ac_old_val" != "x$ac_new_val"; then
2097 # differences in whitespace do not lead to failure.
2098 ac_old_val_w=`echo x $ac_old_val`
2099 ac_new_val_w=`echo x $ac_new_val`
2100 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103 ac_cache_corrupted=:
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107 eval $ac_var=\$ac_old_val
2108 fi
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2110$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2112$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2113 fi;;
2114 esac
2115 # Pass precious variables to config.status.
2116 if test "$ac_new_set" = set; then
2117 case $ac_new_val in
2118 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 *) ac_arg=$ac_var=$ac_new_val ;;
2120 esac
2121 case " $ac_configure_args " in
2122 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2123 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2124 esac
2125 fi
2126done
2127if $ac_cache_corrupted; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2133fi
2134## -------------------- ##
2135## Main body of script. ##
2136## -------------------- ##
2137
2138ac_ext=c
2139ac_cpp='$CPP $CPPFLAGS'
2140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152progname=$0
2153# if PWD already has a value, it is probably wrong.
2154if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2155
2156# Export original configure arguments for use by sub-configures.
2157# Quote arguments with shell meta charatcers.
2158TOPLEVEL_CONFIGURE_ARGUMENTS=
2159set -- "$progname" "$@"
2160for ac_arg
2161do
2162 case "$ac_arg" in
2163 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2164 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2165 # if the argument is of the form -foo=baz, quote the baz part only
2166 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2167 *) ;;
2168 esac
2169 # Add the quoted argument to the list.
2170 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2171done
2172if test "$silent" = yes; then
2173 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2174fi
2175# Remove the initial space we just introduced and, as these will be
2176# expanded by make, quote '$'.
2177TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2178
2179
2180# Find the build, host, and target systems.
2181ac_aux_dir=
2182for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183 for ac_t in install-sh install.sh shtool; do
2184 if test -f "$ac_dir/$ac_t"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 break 2
2188 fi
2189 done
2190done
2191if test -z "$ac_aux_dir"; then
2192 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193fi
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
2203
2204# Make sure we can run config.sub.
2205$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2206 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2207
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2209$as_echo_n "checking build system type... " >&6; }
2210if test "${ac_cv_build+set}" = set; then :
2211 $as_echo_n "(cached) " >&6
2212else
2213 ac_build_alias=$build_alias
2214test "x$ac_build_alias" = x &&
2215 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2216test "x$ac_build_alias" = x &&
2217 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2218ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2219 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2220
2221fi
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2223$as_echo "$ac_cv_build" >&6; }
2224case $ac_cv_build in
2225*-*-*) ;;
2226*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2227esac
2228build=$ac_cv_build
2229ac_save_IFS=$IFS; IFS='-'
2230set x $ac_cv_build
2231shift
2232build_cpu=$1
2233build_vendor=$2
2234shift; shift
2235# Remember, the first character of IFS is used to create $*,
2236# except with old shells:
2237build_os=$*
2238IFS=$ac_save_IFS
2239case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2240
2241
2242 case ${build_alias} in
2243 "") build_noncanonical=${build} ;;
2244 *) build_noncanonical=${build_alias} ;;
2245esac
2246
2247
2248
2249 case ${host_alias} in
2250 "") host_noncanonical=${build_noncanonical} ;;
2251 *) host_noncanonical=${host_alias} ;;
2252esac
2253
2254
2255
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
2259esac
2260
2261
2262
2263
2264test "$host_noncanonical" = "$target_noncanonical" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_transform_name=s,y,y,
2268
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2270$as_echo_n "checking host system type... " >&6; }
2271if test "${ac_cv_host+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2273else
2274 if test "x$host_alias" = x; then
2275 ac_cv_host=$ac_cv_build
2276else
2277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2279fi
2280
2281fi
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2283$as_echo "$ac_cv_host" >&6; }
2284case $ac_cv_host in
2285*-*-*) ;;
2286*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2287esac
2288host=$ac_cv_host
2289ac_save_IFS=$IFS; IFS='-'
2290set x $ac_cv_host
2291shift
2292host_cpu=$1
2293host_vendor=$2
2294shift; shift
2295# Remember, the first character of IFS is used to create $*,
2296# except with old shells:
2297host_os=$*
2298IFS=$ac_save_IFS
2299case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2300
2301
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2303$as_echo_n "checking target system type... " >&6; }
2304if test "${ac_cv_target+set}" = set; then :
2305 $as_echo_n "(cached) " >&6
2306else
2307 if test "x$target_alias" = x; then
2308 ac_cv_target=$ac_cv_host
2309else
2310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2312fi
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2316$as_echo "$ac_cv_target" >&6; }
2317case $ac_cv_target in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2320esac
2321target=$ac_cv_target
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_target
2324shift
2325target_cpu=$1
2326target_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330target_os=$*
2331IFS=$ac_save_IFS
2332case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2333
2334
2335# The aliases save the names the user supplied, while $host etc.
2336# will get canonicalized.
2337test -n "$target_alias" &&
2338 test "$program_prefix$program_suffix$program_transform_name" = \
2339 NONENONEs,x,x, &&
2340 program_prefix=${target_alias}-
2341
2342test "$program_prefix" != NONE &&
2343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2344# Use a double $ so make ignores it.
2345test "$program_suffix" != NONE &&
2346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347# Double any \ or $.
2348# By default was `s,x,x', remove it if useless.
2349ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2351
2352
2353
2354# Get 'install' or 'install-sh' and its variants.
2355# Find a good install program. We prefer a C program (faster),
2356# so one script is as good as another. But avoid the broken or
2357# incompatible versions:
2358# SysV /etc/install, /usr/sbin/install
2359# SunOS /usr/etc/install
2360# IRIX /sbin/install
2361# AIX /bin/install
2362# AmigaOS /C/install, which installs bootblocks on floppy discs
2363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366# OS/2's system install, which has a completely different semantic
2367# ./install, which can be erroneously created by make from ./install.sh.
2368# Reject install programs that cannot install multiple files.
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370$as_echo_n "checking for a BSD-compatible install... " >&6; }
2371if test -z "$INSTALL"; then
2372if test "${ac_cv_path_install+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 # Account for people who put trailing slashes in PATH elements.
2381case $as_dir/ in #((
2382 ./ | .// | /[cC]/* | \
2383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2384 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385 /usr/ucb/* ) ;;
2386 *)
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2389 # by default.
2390 for ac_prog in ginstall scoinst install; do
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2393 if test $ac_prog = install &&
2394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # AIX install. It has an incompatible calling convention.
2396 :
2397 elif test $ac_prog = install &&
2398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2400 :
2401 else
2402 rm -rf conftest.one conftest.two conftest.dir
2403 echo one > conftest.one
2404 echo two > conftest.two
2405 mkdir conftest.dir
2406 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407 test -s conftest.one && test -s conftest.two &&
2408 test -s conftest.dir/conftest.one &&
2409 test -s conftest.dir/conftest.two
2410 then
2411 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412 break 3
2413 fi
2414 fi
2415 fi
2416 done
2417 done
2418 ;;
2419esac
2420
2421 done
2422IFS=$as_save_IFS
2423
2424rm -rf conftest.one conftest.two conftest.dir
2425
2426fi
2427 if test "${ac_cv_path_install+set}" = set; then
2428 INSTALL=$ac_cv_path_install
2429 else
2430 # As a last resort, use the slow shell script. Don't cache a
2431 # value for INSTALL within a source directory, because that will
2432 # break other packages using the cache if that directory is
2433 # removed, or if the value is a relative name.
2434 INSTALL=$ac_install_sh
2435 fi
2436fi
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438$as_echo "$INSTALL" >&6; }
2439
2440# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441# It thinks the first close brace ends the variable substitution.
2442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
2444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2445
2446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2449$as_echo_n "checking whether ln works... " >&6; }
2450if test "${acx_cv_prog_LN+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 rm -f conftestdata_t
2454echo >conftestdata_f
2455if ln conftestdata_f conftestdata_t 2>/dev/null
2456then
2457 acx_cv_prog_LN=ln
2458else
2459 acx_cv_prog_LN=no
2460fi
2461rm -f conftestdata_f conftestdata_t
2462
2463fi
2464if test $acx_cv_prog_LN = no; then
2465 LN="cp"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2467$as_echo "no, using $LN" >&6; }
2468else
2469 LN="$acx_cv_prog_LN"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471$as_echo "yes" >&6; }
2472fi
2473
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2475$as_echo_n "checking whether ln -s works... " >&6; }
2476LN_S=$as_ln_s
2477if test "$LN_S" = "ln -s"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479$as_echo "yes" >&6; }
2480else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2482$as_echo "no, using $LN_S" >&6; }
2483fi
2484
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2486$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2487if test "${ac_cv_path_SED+set}" = set; then :
2488 $as_echo_n "(cached) " >&6
2489else
2490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2491 for ac_i in 1 2 3 4 5 6 7; do
2492 ac_script="$ac_script$as_nl$ac_script"
2493 done
2494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2495 { ac_script=; unset ac_script;}
2496 if test -z "$SED"; then
2497 ac_path_SED_found=false
2498 # Loop through the user's path and test for each of PROGNAME-LIST
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_prog in sed gsed; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2508# Check for GNU ac_path_SED and select it if it is found.
2509 # Check for GNU $ac_path_SED
2510case `"$ac_path_SED" --version 2>&1` in
2511*GNU*)
2512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2513*)
2514 ac_count=0
2515 $as_echo_n 0123456789 >"conftest.in"
2516 while :
2517 do
2518 cat "conftest.in" "conftest.in" >"conftest.tmp"
2519 mv "conftest.tmp" "conftest.in"
2520 cp "conftest.in" "conftest.nl"
2521 $as_echo '' >> "conftest.nl"
2522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2524 as_fn_arith $ac_count + 1 && ac_count=$as_val
2525 if test $ac_count -gt ${ac_path_SED_max-0}; then
2526 # Best one so far, save it but keep looking for a better one
2527 ac_cv_path_SED="$ac_path_SED"
2528 ac_path_SED_max=$ac_count
2529 fi
2530 # 10*(2^10) chars as input seems more than enough
2531 test $ac_count -gt 10 && break
2532 done
2533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2534esac
2535
2536 $ac_path_SED_found && break 3
2537 done
2538 done
2539 done
2540IFS=$as_save_IFS
2541 if test -z "$ac_cv_path_SED"; then
2542 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2543 fi
2544else
2545 ac_cv_path_SED=$SED
2546fi
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2550$as_echo "$ac_cv_path_SED" >&6; }
2551 SED="$ac_cv_path_SED"
2552 rm -f conftest.sed
2553
2554for ac_prog in gawk mawk nawk awk
2555do
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557set dummy $ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_AWK+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578 done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583AWK=$ac_cv_prog_AWK
2584if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586$as_echo "$AWK" >&6; }
2587else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593 test -n "$AWK" && break
2594done
2595
2596
2597### we might need to use some other shell than /bin/sh for running subshells
2598### If we are on Windows, search for the shell. This will permit people
2599### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2600### without also having to set CONFIG_SHELL. This code will work when
2601### using bash, which sets OSTYPE.
2602case "${OSTYPE}" in
2603*win32*)
2604 if test x${CONFIG_SHELL} = x ; then
2605 if test ! -f /bin/sh ; then
2606 if test x${SHELL} != x && test -f ${SHELL} ; then
2607 CONFIG_SHELL=${SHELL}
2608 export CONFIG_SHELL
2609 else
2610 for prog in sh sh.exe bash bash.exe; do
2611 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2612 for dir in $PATH; do
2613 test -z "$dir" && dir=.
2614 if test -f $dir/$prog; then
2615 CONFIG_SHELL=$dir/$prog
2616 export CONFIG_SHELL
2617 break
2618 fi
2619 done
2620 IFS="$save_ifs"
2621 test -n "${CONFIG_SHELL}" && break
2622 done
2623 fi
2624 fi
2625 fi
2626 ;;
2627esac
2628
2629config_shell=${CONFIG_SHELL-/bin/sh}
2630
2631moveifchange=${srcdir}/move-if-change
2632
2633srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2634
2635# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2636# a relative path.
2637if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2638 INSTALL="${srcpwd}/install-sh -c"
2639fi
2640
2641# Set srcdir to "." if that's what it is.
2642# This is important for multilib support.
2643pwd=`${PWDCMD-pwd}`
2644if test "${pwd}" = "${srcpwd}" ; then
2645 srcdir=.
2646fi
2647
2648topsrcdir=$srcpwd
2649
2650extra_host_args=
2651
2652### To add a new directory to the tree, first choose whether it is a target
2653### or a host dependent tool. Then put it into the appropriate list
2654### (library or tools, host or target), doing a dependency sort.
2655
2656# Subdirs will be configured in the order listed in build_configdirs,
2657# configdirs, or target_configdirs; see the serialization section below.
2658
2659# Dependency sorting is only needed when *configuration* must be done in
2660# a particular order. In all cases a dependency should be specified in
2661# the Makefile, whether or not it's implicitly specified here.
2662
2663# Double entries in build_configdirs, configdirs, or target_configdirs may
2664# cause circular dependencies and break everything horribly.
2665
2666# these library is used by various programs built for the build
2667# environment
2668#
2669build_libs="build-libiberty"
2670
2671# these tools are built for the build environment
2672build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2673
2674# these libraries are used by various programs built for the host environment
2675#
2676host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2677
2678# these tools are built for the host environment
2679# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2680# know that we are building the simulator.
2681# binutils, gas and ld appear in that order because it makes sense to run
2682# "make check" in that particular order.
2683# If --enable-gold is used, "gold" may replace "ld".
2684host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2685
2686# libgcj represents the runtime libraries only used by gcj.
2687libgcj="target-libffi \
2688 target-zlib \
2689 target-qthreads \
2690 target-libjava"
2691
2692# these libraries are built for the target environment, and are built after
2693# the host libraries and the host tools (which may be a cross compiler)
2694#
2695target_libraries="target-libgcc \
2696 target-libiberty \
2697 target-libgloss \
2698 target-newlib \
2699 target-libgomp \
2700 target-libstdc++-v3 \
2701 target-libmudflap \
2702 target-libssp \
2703 target-libquadmath \
2704 target-libgfortran \
2705 target-boehm-gc \
2706 ${libgcj} \
2707 target-libobjc \
2708 target-libada \
2709 target-libgo"
2710
2711# these tools are built using the target libraries, and are intended to
2712# run only in the target environment
2713#
2714# note: any program that *uses* libraries that are in the "target_libraries"
2715# list belongs in this list. those programs are also very likely
2716# candidates for the "native_only" list which follows
2717#
2718target_tools="target-examples target-groff target-gperf target-rda"
2719
2720################################################################################
2721
2722## All tools belong in one of the four categories, and are assigned above
2723## We assign ${configdirs} this way to remove all embedded newlines. This
2724## is important because configure will choke if they ever get through.
2725## ${configdirs} is directories we build using the host tools.
2726## ${target_configdirs} is directories we build using the target tools.
2727configdirs=`echo ${host_libs} ${host_tools}`
2728target_configdirs=`echo ${target_libraries} ${target_tools}`
2729build_configdirs=`echo ${build_libs} ${build_tools}`
2730
2731
2732
2733################################################################################
2734
2735srcname="gnu development package"
2736
2737# This gets set non-empty for some net releases of packages.
2738appdirs=""
2739
2740# Define is_cross_compiler to save on calls to 'test'.
2741is_cross_compiler=
2742if test x"${host}" = x"${target}" ; then
2743 is_cross_compiler=no
2744else
2745 is_cross_compiler=yes
2746fi
2747
2748# Find the build and target subdir names.
2749
2750# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751# have matching libraries, they should use host libraries: Makefile.tpl
2752# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753# However, they still use the build modules, because the corresponding
2754# host modules (e.g. bison) are only built for the host when bootstrap
2755# finishes. So:
2756# - build_subdir is where we find build modules, and never changes.
2757# - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759# Prefix 'build-' so this never conflicts with target_subdir.
2760build_subdir="build-${build_noncanonical}"
2761
2762# Check whether --with-build-libsubdir was given.
2763if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
2765else
2766 build_libsubdir="$build_subdir"
2767fi
2768
2769# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773else
2774 host_subdir=.
2775fi
2776# No prefix.
2777target_subdir=${target_noncanonical}
2778
2779# Be sure to cover against remnants of an in-tree build.
2780if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2781 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2782Use a pristine source tree when building in a separate tree" "$LINENO" 5
2783fi
2784
2785# Skipdirs are removed silently.
2786skipdirs=
2787# Noconfigdirs are removed loudly.
2788noconfigdirs=""
2789
2790use_gnu_ld=
2791# Make sure we don't let GNU ld be added if we didn't want it.
2792if test x$with_gnu_ld = xno ; then
2793 use_gnu_ld=no
2794 noconfigdirs="$noconfigdirs ld gold"
2795fi
2796
2797use_gnu_as=
2798# Make sure we don't let GNU as be added if we didn't want it.
2799if test x$with_gnu_as = xno ; then
2800 use_gnu_as=no
2801 noconfigdirs="$noconfigdirs gas"
2802fi
2803
2804use_included_zlib=
2805# Make sure we don't let ZLIB be added if we didn't want it.
2806if test x$with_system_zlib = xyes ; then
2807 use_included_zlib=no
2808 noconfigdirs="$noconfigdirs zlib"
2809fi
2810
2811# some tools are so dependent upon X11 that if we're not building with X,
2812# it's not even worth trying to configure, much less build, that tool.
2813
2814case ${with_x} in
2815 yes | "") ;; # the default value for this tree is that X11 is available
2816 no)
2817 skipdirs="${skipdirs} tk itcl libgui"
2818 # We won't be able to build gdbtk without X.
2819 enable_gdbtk=no
2820 ;;
2821 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2822esac
2823
2824# Some tools are only suitable for building in a "native" situation.
2825# Remove these if host!=target.
2826native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2827
2828# Similarly, some are only suitable for cross toolchains.
2829# Remove these if host=target.
2830cross_only="target-libgloss target-newlib target-opcodes"
2831
2832case $is_cross_compiler in
2833 no) skipdirs="${skipdirs} ${cross_only}" ;;
2834 yes) skipdirs="${skipdirs} ${native_only}" ;;
2835esac
2836
2837# If both --with-headers and --with-libs are specified, default to
2838# --without-newlib.
2839if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2841 if test x"${with_newlib}" = x ; then
2842 with_newlib=no
2843 fi
2844fi
2845
2846# Recognize --with-newlib/--without-newlib.
2847case ${with_newlib} in
2848 no) skipdirs="${skipdirs} target-newlib" ;;
2849 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850esac
2851
2852# Handle --enable-gold.
2853# --enable-gold Build only gold
2854# --disable-gold [default] Build only ld
2855# --enable-gold=both Build both gold and ld, ld is default
2856# --enable-gold=both/ld Same
2857# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2858
2859# Check whether --enable-gold was given.
2860if test "${enable_gold+set}" = set; then :
2861 enableval=$enable_gold; ENABLE_GOLD=$enableval
2862else
2863 ENABLE_GOLD=no
2864fi
2865
2866 case "${ENABLE_GOLD}" in
2867 yes|both|both/gold|both/ld)
2868 # Check for ELF target.
2869 is_elf=no
2870 case "${target}" in
2871 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2872 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2873 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2874 case "${target}" in
2875 *-*-linux*aout* | *-*-linux*oldld*)
2876 ;;
2877 *)
2878 is_elf=yes
2879 ;;
2880 esac
2881 esac
2882
2883 if test "$is_elf" = "yes"; then
2884 # Check for target supported by gold.
2885 case "${target}" in
2886 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887 case "${ENABLE_GOLD}" in
2888 both*)
2889 configdirs="$configdirs gold"
2890 ;;
2891 *)
2892 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2893 ;;
2894 esac
2895 ENABLE_GOLD=yes
2896 ;;
2897 esac
2898 fi
2899 ;;
2900 no)
2901 ;;
2902 *)
2903 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2904 ;;
2905 esac
2906
2907# Configure extra directories which are host specific
2908
2909case "${host}" in
2910 *-cygwin*)
2911 configdirs="$configdirs libtermcap" ;;
2912esac
2913
2914# A target can indicate whether a language isn't supported for some reason.
2915# Only spaces may be used in this macro; not newlines or tabs.
2916unsupported_languages=
2917
2918# Remove more programs from consideration, based on the host or
2919# target this usually means that a port of the program doesn't
2920# exist yet.
2921
2922case "${host}" in
2923 hppa*64*-*-*)
2924 noconfigdirs="$noconfigdirs byacc"
2925 ;;
2926 i[3456789]86-*-vsta)
2927 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2928 ;;
2929 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2930 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2931 ;;
2932 x86_64-*-mingw*)
2933 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2934 ;;
2935 i[3456789]86-*-mingw32*)
2936 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2937 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2938 ;;
2939 i[3456789]86-*-beos*)
2940 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2941 ;;
2942 *-*-cygwin*)
2943 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2944 ;;
2945 *-*-netbsd*)
2946 noconfigdirs="$noconfigdirs rcs"
2947 ;;
2948 ppc*-*-pe)
2949 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2950 ;;
2951 powerpc-*-beos*)
2952 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2953 ;;
2954esac
2955
2956
2957# Check whether --enable-libada was given.
2958if test "${enable_libada+set}" = set; then :
2959 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2960else
2961 ENABLE_LIBADA=yes
2962fi
2963
2964if test "${ENABLE_LIBADA}" != "yes" ; then
2965 noconfigdirs="$noconfigdirs gnattools"
2966fi
2967
2968# Check whether --enable-libssp was given.
2969if test "${enable_libssp+set}" = set; then :
2970 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2971else
2972 ENABLE_LIBSSP=yes
2973fi
2974
2975
2976# Save it here so that, even in case of --enable-libgcj, if the Java
2977# front-end isn't enabled, we still get libgcj disabled.
2978libgcj_saved=$libgcj
2979case $enable_libgcj in
2980yes)
2981 # If we reset it here, it won't get added to noconfigdirs in the
2982 # target-specific build rules, so it will be forcibly enabled
2983 # (unless the Java language itself isn't enabled).
2984 libgcj=
2985 ;;
2986no)
2987 # Make sure we get it printed in the list of not supported target libs.
2988 noconfigdirs="$noconfigdirs ${libgcj}"
2989 ;;
2990esac
2991
2992
2993# Disable libmudflap on some systems.
2994if test x$enable_libmudflap = x ; then
2995 case "${target}" in
2996 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2997 # Enable libmudflap by default in GNU and friends.
2998 ;;
2999 *-*-freebsd*)
3000 # Enable libmudflap by default in FreeBSD.
3001 ;;
3002 *)
3003 # Disable it by default everywhere else.
3004 noconfigdirs="$noconfigdirs target-libmudflap"
3005 ;;
3006 esac
3007fi
3008
3009# Disable libgomp on non POSIX hosted systems.
3010if test x$enable_libgomp = x ; then
3011 # Enable libgomp by default on hosted POSIX systems.
3012 case "${target}" in
3013 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3014 ;;
3015 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3016 ;;
3017 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3018 ;;
3019 *-*-darwin* | *-*-aix*)
3020 ;;
3021 *)
3022 noconfigdirs="$noconfigdirs target-libgomp"
3023 ;;
3024 esac
3025fi
3026
3027# Default libgloss CPU subdirectory.
3028libgloss_dir="$target_cpu"
3029
3030case "${target}" in
3031 *-*-chorusos)
3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3033 ;;
3034 powerpc-*-darwin*)
3035 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3036 noconfigdirs="$noconfigdirs sim target-rda"
3037 ;;
3038 i[3456789]86-*-darwin*)
3039 noconfigdirs="$noconfigdirs ld gprof"
3040 noconfigdirs="$noconfigdirs sim target-rda"
3041 ;;
3042 x86_64-*-darwin[912]*)
3043 noconfigdirs="$noconfigdirs ld gas gprof"
3044 noconfigdirs="$noconfigdirs sim target-rda"
3045 ;;
3046 *-*-darwin*)
3047 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3048 noconfigdirs="$noconfigdirs sim target-rda"
3049 noconfigdirs="$noconfigdirs ${libgcj}"
3050 ;;
3051 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3053 ;;
3054 *-*-freebsd*)
3055 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3056 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3057 && test -f /usr/local/include/gmp.h; then
3058 with_gmp=/usr/local
3059 fi
3060
3061 # Skip some stuff that's unsupported on some FreeBSD configurations.
3062 case "${target}" in
3063 i*86-*-*) ;;
3064 alpha*-*-*) ;;
3065 x86_64-*-*) ;;
3066 *)
3067 noconfigdirs="$noconfigdirs ${libgcj}"
3068 ;;
3069 esac
3070 ;;
3071 *-*-kaos*)
3072 # Remove unsupported stuff on all kaOS configurations.
3073 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3074 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3075 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3076 noconfigdirs="$noconfigdirs target-libgloss"
3077 ;;
3078 *-*-netbsd*)
3079 # Skip some stuff on all NetBSD configurations.
3080 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3081
3082 # Skip some stuff that's unsupported on some NetBSD configurations.
3083 case "${target}" in
3084 i*86-*-netbsdelf*) ;;
3085 arm*-*-netbsdelf*) ;;
3086 *)
3087 noconfigdirs="$noconfigdirs ${libgcj}"
3088 ;;
3089 esac
3090 ;;
3091 *-*-netware*)
3092 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3093 ;;
3094 *-*-rtems*)
3095 skipdirs="${skipdirs} target-libiberty"
3096 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3097 ;;
3098 # The tpf target doesn't support gdb yet.
3099 *-*-tpf*)
3100 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3101 ;;
3102 *-*-uclinux*)
3103 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3104 ;;
3105 *-*-vxworks*)
3106 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3107 ;;
3108 alpha*-dec-osf*)
3109 # ld works, but does not support shared libraries.
3110 # newlib is not 64 bit ready. I'm not sure about fileutils.
3111 # gas doesn't generate exception information.
3112 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3113 ;;
3114 alpha*-*-*vms*)
3115 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3116 ;;
3117 alpha*-*-linux*)
3118 # newlib is not 64 bit ready
3119 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3120 ;;
3121 alpha*-*-*)
3122 # newlib is not 64 bit ready
3123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3124 ;;
3125 am33_2.0-*-linux*)
3126 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3127 ;;
3128 sh-*-linux*)
3129 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3130 ;;
3131 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3132 noconfigdirs="$noconfigdirs ${libgcj}"
3133 noconfigdirs="$noconfigdirs target-examples"
3134 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3135 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3136 noconfigdirs="$noconfigdirs expect dejagnu"
3137 # the C++ libraries don't build on top of CE's C libraries
3138 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3139 noconfigdirs="$noconfigdirs target-newlib"
3140 case "${host}" in
3141 *-*-cygwin*) ;; # keep gdb and readline
3142 *) noconfigdirs="$noconfigdirs gdb readline"
3143 ;;
3144 esac
3145 libgloss_dir=wince
3146 ;;
3147 arc-*-*)
3148 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3149 ;;
3150 arm-semi-aof )
3151 ;;
3152 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3153 noconfigdirs="$noconfigdirs ${libgcj}"
3154 libgloss_dir=arm
3155 ;;
3156 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3157 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3158 libgloss_dir=arm
3159 ;;
3160 arm*-*-linux-gnueabi)
3161 noconfigdirs="$noconfigdirs target-qthreads"
3162 case ${with_newlib} in
3163 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3164 esac
3165 libgloss_dir=arm
3166 ;;
3167 arm*-*-symbianelf*)
3168 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3169 libgloss_dir=arm
3170 ;;
3171 arm-*-pe*)
3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3173 ;;
3174 thumb-*-coff)
3175 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3176 ;;
3177 thumb-*-elf)
3178 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3179 ;;
3180 thumb-*-pe)
3181 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3182 ;;
3183 arm-*-riscix*)
3184 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3185 ;;
3186 avr-*-*)
3187 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3188 ;;
3189 bfin-*-*)
3190 unsupported_languages="$unsupported_languages java"
3191 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3192 if test x${is_cross_compiler} != xno ; then
3193 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3194 fi
3195 ;;
3196 c4x-*-* | tic4x-*-*)
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3198 ;;
3199 c54x*-*-* | tic54x-*-*)
3200 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3201 ;;
3202 cr16-*-*)
3203 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3204 ;;
3205 cris-*-* | crisv32-*-*)
3206 unsupported_languages="$unsupported_languages java"
3207 case "${target}" in
3208 *-*-aout)
3209 unsupported_languages="$unsupported_languages fortran"
3210 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3211 *-*-elf)
3212 noconfigdirs="$noconfigdirs target-boehm-gc";;
3213 *-*-linux*)
3214 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3215 *)
3216 unsupported_languages="$unsupported_languages fortran"
3217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3218 esac
3219 libgloss_dir=cris
3220 ;;
3221 crx-*-*)
3222 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3223 ;;
3224 d10v-*-*)
3225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3226 ;;
3227 d30v-*-*)
3228 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3229 ;;
3230 ep9312-*-elf | ep9312-*-coff)
3231 libgloss_dir=arm
3232 ;;
3233 fr30-*-elf*)
3234 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3235 ;;
3236 frv-*-*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3238 ;;
3239 moxie-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 noconfigdirs="$noconfigdirs gprof"
3242 ;;
3243 h8300*-*-*)
3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3245 ;;
3246 h8500-*-*)
3247 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3248 ;;
3249 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3250 ;;
3251 hppa*64*-*-linux* | parisc*64*-*-linux*)
3252 # In this case, it's because the hppa64-linux target is for
3253 # the kernel only at this point and has no libc, and thus no
3254 # headers, crt*.o, etc., all of which are needed by these.
3255 noconfigdirs="$noconfigdirs target-zlib"
3256 ;;
3257 parisc*-*-linux* | hppa*-*-linux*)
3258 ;;
3259 hppa*-*-*elf* | \
3260 hppa*-*-lites* | \
3261 hppa*-*-openbsd* | \
3262 hppa*64*-*-*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3264 ;;
3265 hppa*-hp-hpux11*)
3266 noconfigdirs="$noconfigdirs ld shellutils"
3267 ;;
3268 hppa*-*-pro*)
3269 libgloss_dir=pa
3270 ;;
3271 hppa*-*-*)
3272 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3273 # build on HP-UX 10.20.
3274 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3275 ;;
3276 i960-*-*)
3277 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3278 ;;
3279 ia64*-*-elf*)
3280 # No gdb support yet.
3281 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3282 ;;
3283 ia64*-**-hpux*)
3284 # No gdb or ld support yet.
3285 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3286 ;;
3287 ia64*-*-*vms*)
3288 # No gdb or ld support yet.
3289 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3290 ;;
3291 i370-*-opened*)
3292 ;;
3293 i[3456789]86-*-coff | i[3456789]86-*-elf)
3294 noconfigdirs="$noconfigdirs ${libgcj}"
3295 libgloss_dir=i386
3296 ;;
3297 i[3456789]86-*-linux*)
3298 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3299 # not build java stuff by default.
3300 case "${target}" in
3301 *-*-*libc1*)
3302 noconfigdirs="$noconfigdirs ${libgcj}";;
3303 esac
3304
3305 # This section makes it possible to build newlib natively on linux.
3306 # If we are using a cross compiler then don't configure newlib.
3307 if test x${is_cross_compiler} != xno ; then
3308 noconfigdirs="$noconfigdirs target-newlib"
3309 fi
3310 noconfigdirs="$noconfigdirs target-libgloss"
3311 # If we are not using a cross compiler, do configure newlib.
3312 # Note however, that newlib will only be configured in this situation
3313 # if the --with-newlib option has been given, because otherwise
3314 # 'target-newlib' will appear in skipdirs.
3315 ;;
3316 i[3456789]86-w64-mingw*)
3317 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3318 ;;
3319 i[3456789]86-*-mingw*)
3320 target_configdirs="$target_configdirs target-winsup"
3321 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3322 ;;
3323 x86_64-*-mingw*)
3324 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3325 ;;
3326 *-*-cygwin*)
3327 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3328 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3329 # always build newlib if winsup directory is present.
3330 if test -d "$srcdir/winsup/cygwin"; then
3331 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3332 elif test -d "$srcdir/newlib"; then
3333 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3334 fi
3335 ;;
3336 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3337 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3338 ;;
3339 i[3456789]86-*-pe)
3340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3341 ;;
3342 i[3456789]86-*-sco3.2v5*)
3343 # The linker does not yet know about weak symbols in COFF,
3344 # and is not configured to handle mixed ELF and COFF.
3345 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3346 ;;
3347 i[3456789]86-*-sco*)
3348 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3349 ;;
3350 i[3456789]86-*-solaris2*)
3351 noconfigdirs="$noconfigdirs target-libgloss"
3352 ;;
3353 i[3456789]86-*-sysv4*)
3354 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3355 ;;
3356 i[3456789]86-*-beos*)
3357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3358 ;;
3359 i[3456789]86-*-rdos*)
3360 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3361 ;;
3362 m32r-*-*)
3363 noconfigdirs="$noconfigdirs ${libgcj}"
3364 ;;
3365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3366 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3367 libgloss_dir=m68hc11
3368 ;;
3369 m68k-*-elf*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3371 ;;
3372 m68k-*-coff*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3374 ;;
3375 m68*-*-* | fido-*-*)
3376 libgloss_dir=m68k
3377 ;;
3378 mcore-*-pe*)
3379 # The EPOC C++ environment does not support exceptions or rtti,
3380 # and so building libstdc++-v3 tends not to always work.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 mmix-*-*)
3384 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3385 unsupported_languages="$unsupported_languages fortran java"
3386 ;;
3387 mn10200-*-*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 mn10300-*-*)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3392 ;;
3393 mt-*-*)
3394 noconfigdirs="$noconfigdirs sim"
3395 ;;
3396 powerpc-*-aix*)
3397 # copied from rs6000-*-* entry
3398 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3399 ;;
3400 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3401 target_configdirs="$target_configdirs target-winsup"
3402 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3403 # always build newlib.
3404 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3405 ;;
3406 # This is temporary until we can link against shared libraries
3407 powerpcle-*-solaris*)
3408 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3409 libgloss_dir=rs6000
3410 ;;
3411 powerpc-*-beos*)
3412 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3413 ;;
3414 powerpc-*-eabi)
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 libgloss_dir=rs6000
3417 ;;
3418 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3419 libgloss_dir=rs6000
3420 ;;
3421 rs6000-*-lynxos*)
3422 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3423 ;;
3424 rs6000-*-aix*)
3425 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3426 ;;
3427 rs6000-*-*)
3428 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3429 ;;
3430 m68k-apollo-*)
3431 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3432 ;;
3433 microblaze*)
3434 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3435 ;;
3436 mips*-sde-elf*)
3437 skipdirs="$skipdirs target-libiberty"
3438 noconfigdirs="$noconfigdirs ${libgcj}"
3439 if test x$with_newlib = xyes; then
3440 noconfigdirs="$noconfigdirs gprof"
3441 fi
3442 libgloss_dir=mips
3443 ;;
3444 mips*-*-irix5*)
3445 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3446 ;;
3447 mips*-*-irix6*)
3448 # Linking libjava exceeds command-line length limits on at least
3449 # IRIX 6.2, but not on IRIX 6.5.
3450 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3451 # <oldham@codesourcery.com>
3452 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3453 ;;
3454 mips*-*-bsd*)
3455 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3456 ;;
3457 mips*-*-linux*)
3458 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3459 ;;
3460 mips*-*-*)
3461 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3462 libgloss_dir=mips
3463 ;;
3464 romp-*-*)
3465 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3466 ;;
3467 sh-*-* | sh64-*-*)
3468 case "${host}" in
3469 i[3456789]86-*-vsta) ;; # don't add gprof back in
3470 i[3456789]86-*-go32*) ;; # don't add gprof back in
3471 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3472 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3473 esac
3474 case "${target}" in
3475 sh*-*-elf)
3476 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3477 *)
3478 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3479 esac
3480 ;;
3481 sparclet-*-aout* | sparc86x-*-*)
3482 libgloss_dir=sparc
3483 ;;
3484 sparc-*-elf*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
3487 sparc64-*-elf*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 libgloss_dir=sparc
3490 ;;
3491 sparclite-*-*)
3492 noconfigdirs="$noconfigdirs ${libgcj}"
3493 libgloss_dir=sparc
3494 ;;
3495 sparc-*-sunos4*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 if test x${is_cross_compiler} != xno ; then
3498 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3499 else
3500 use_gnu_ld=no
3501 fi
3502 ;;
3503 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3504 noconfigdirs="$noconfigdirs ${libgcj}"
3505 ;;
3506 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3507 ;;
3508 tic6x-*-*)
3509 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3510 ;;
3511 v810-*-*)
3512 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3513 ;;
3514 v850*-*-*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3516 ;;
3517 vax-*-vms)
3518 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3519 ;;
3520 vax-*-*)
3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3522 ;;
3523 xtensa*-*-*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
3526 ip2k-*-*)
3527 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3528 ;;
3529 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 ;;
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3534 ;;
3535 *-*-*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3537 ;;
3538esac
3539
3540# If we aren't building newlib, then don't build libgloss, since libgloss
3541# depends upon some newlib header files.
3542case "${noconfigdirs}" in
3543 *target-libgloss*) ;;
3544 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3545esac
3546
3547# Work in distributions that contain no compiler tools, like Autoconf.
3548tentative_cc=""
3549host_makefile_frag=/dev/null
3550if test -d ${srcdir}/config ; then
3551case "${host}" in
3552 m68k-hp-hpux*)
3553 # Avoid "too much defining" errors from HPUX compiler.
3554 tentative_cc="cc -Wp,-H256000"
3555 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3556 # If it's HP/UX ar, this should be harmless.
3557 RANLIB="ar ts"
3558 ;;
3559 m68k-apollo-sysv*)
3560 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3561 ;;
3562 m68k-apollo-bsd*)
3563 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3564 # chokes on bfd, the compiler won't let you assign integers to enums, and
3565 # other problems. Defining CC to gcc is a questionable way to say "don't use
3566 # the apollo compiler" (the preferred version of GCC could be called cc,
3567 # or whatever), but I'm not sure leaving CC as cc is any better...
3568 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3569 # Used to have BISON=yacc.
3570 tentative_cc=gcc
3571 ;;
3572 m88k-dg-dgux*)
3573 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3574 ;;
3575 m88k-harris-cxux*)
3576 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3577 tentative_cc="cc -Xa"
3578 host_makefile_frag="config/mh-cxux"
3579 ;;
3580 m88k-motorola-sysv*)
3581 ;;
3582 mips*-dec-ultrix*)
3583 tentative_cc="cc -Wf,-XNg1000"
3584 host_makefile_frag="config/mh-decstation"
3585 ;;
3586 mips*-nec-sysv4*)
3587 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3588 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3589 host_makefile_frag="config/mh-necv4"
3590 ;;
3591 mips*-sgi-irix4*)
3592 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3593 # environment. Also bump switch table size so that cp-parse will
3594 # compile. Bump string length limit so linker builds.
3595 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3596 ;;
3597 mips*-*-sysv4*)
3598 host_makefile_frag="config/mh-sysv4"
3599 ;;
3600 mips*-*-sysv*)
3601 # This is for a MIPS running RISC/os 4.52C.
3602
3603 # This is needed for GDB, but needs to be in the top-level make because
3604 # if a library is compiled with the bsd headers and gets linked with the
3605 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3606 # a different size).
3607 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3608 # known except to select the sysv environment. Could we use /proc instead?
3609 # These "sysv environments" and "bsd environments" often end up being a pain.
3610 #
3611 # This is not part of CFLAGS because perhaps not all C compilers have this
3612 # option.
3613 tentative_cc="cc -systype sysv"
3614 ;;
3615 i370-ibm-opened*)
3616 tentative_cc="c89"
3617 ;;
3618 i[3456789]86-*-sysv5*)
3619 host_makefile_frag="config/mh-sysv5"
3620 ;;
3621 i[3456789]86-*-dgux*)
3622 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3623 host_makefile_frag="config/mh-dgux386"
3624 ;;
3625 i[3456789]86-ncr-sysv4.3*)
3626 # The MetaWare compiler will generate a copyright message unless you
3627 # turn it off by adding the -Hnocopyr flag.
3628 tentative_cc="cc -Hnocopyr"
3629 ;;
3630 i[3456789]86-ncr-sysv4*)
3631 # for an NCR 3000 (i486/SVR4) system.
3632 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3633 # This compiler not only emits obnoxious copyright messages every time
3634 # you run it, but it chokes and dies on a whole bunch of GNU source
3635 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3636 tentative_cc="/usr/ccs/ATT/cc"
3637 host_makefile_frag="config/mh-ncr3000"
3638 ;;
3639 i[3456789]86-*-sco3.2v5*)
3640 ;;
3641 i[3456789]86-*-sco*)
3642 # The native C compiler botches some simple uses of const. Unfortunately,
3643 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3644 tentative_cc="cc -Dconst="
3645 host_makefile_frag="config/mh-sco"
3646 ;;
3647 i[3456789]86-*-udk*)
3648 host_makefile_frag="config/mh-sysv5"
3649 ;;
3650 i[3456789]86-*-solaris2*)
3651 host_makefile_frag="config/mh-sysv4"
3652 ;;
3653 i[3456789]86-*-msdosdjgpp*)
3654 host_makefile_frag="config/mh-djgpp"
3655 ;;
3656 *-cygwin*)
3657
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3659$as_echo_n "checking to see if cat works as expected... " >&6; }
3660echo a >cygwin-cat-check
3661if test `cat cygwin-cat-check` = a ; then
3662 rm cygwin-cat-check
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664$as_echo "yes" >&6; }
3665else
3666 rm cygwin-cat-check
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669 as_fn_error "The cat command does not ignore carriage return characters.
3670 Please either mount the build directory in binary mode or run the following
3671 commands before running any configure script:
3672set -o igncr
3673export SHELLOPTS
3674 " "$LINENO" 5
3675fi
3676
3677 host_makefile_frag="config/mh-cygwin"
3678 ;;
3679 *-mingw*)
3680 host_makefile_frag="config/mh-mingw"
3681 ;;
3682 *-interix*)
3683 host_makefile_frag="config/mh-interix"
3684 ;;
3685 vax-*-ultrix2*)
3686 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3687 tentative_cc=gcc
3688 ;;
3689 *-*-solaris2*)
3690 host_makefile_frag="config/mh-solaris"
3691 ;;
3692 m68k-sun-sunos*)
3693 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3694 # without overflowing the jump tables (-J says to use a 32 bit table)
3695 tentative_cc="cc -J"
3696 ;;
3697 hppa*-hp-hpux10*)
3698 tentative_cc="cc -Wp,-H256000"
3699 host_makefile_frag="config/mh-pa-hpux10"
3700 ;;
3701 hppa*-hp-hpux* | hppa*-*-hiux*)
3702 tentative_cc="cc -Wp,-H256000"
3703 host_makefile_frag="config/mh-pa"
3704 ;;
3705 hppa*-*)
3706 host_makefile_frag="config/mh-pa"
3707 ;;
3708 *-hp-hpux* | *-*-hiux*)
3709 tentative_cc="cc -Wp,-H256000"
3710 ;;
3711 rs6000-*-lynxos*)
3712 # /bin/cc is less than useful for our purposes. Always use GCC
3713 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3714 host_makefile_frag="config/mh-lynxrs6k"
3715 ;;
3716 *-*-darwin*)
3717 host_makefile_frag="config/mh-darwin"
3718 ;;
3719 powerpc-*-aix*)
3720 host_makefile_frag="config/mh-ppc-aix"
3721 ;;
3722 rs6000-*-aix*)
3723 host_makefile_frag="config/mh-ppc-aix"
3724 ;;
3725 *-*-lynxos*)
3726 # /bin/cc is less than useful for our purposes. Always use GCC
3727 tentative_cc="/bin/gcc"
3728 ;;
3729 *-*-sysv4*)
3730 host_makefile_frag="config/mh-sysv4"
3731 ;;
3732 # This is placed last to prevent interfering with the cases above.
3733 i[3456789]86-*-*)
3734 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3735 host_makefile_frag="config/mh-x86omitfp"
3736 ;;
3737esac
3738fi
3739
3740# If we aren't going to be using gcc, see if we can extract a definition
3741# of CC from the fragment.
3742# Actually, use the 'pre-extracted' version above.
3743if test -z "${CC}" && test "${build}" = "${host}" ; then
3744 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3745 found=
3746 for dir in $PATH; do
3747 test -z "$dir" && dir=.
3748 if test -f $dir/gcc; then
3749 found=yes
3750 break
3751 fi
3752 done
3753 IFS="$save_ifs"
3754 if test -z "${found}" && test -n "${tentative_cc}" ; then
3755 CC=$tentative_cc
3756 fi
3757fi
3758
3759if test "${build}" != "${host}" ; then
3760 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3761 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3762 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3763 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3764 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3765 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3766 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3767 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3768 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3769 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3770 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3771 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3772 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3773else
3774 AR_FOR_BUILD="\$(AR)"
3775 AS_FOR_BUILD="\$(AS)"
3776 CC_FOR_BUILD="\$(CC)"
3777 CXX_FOR_BUILD="\$(CXX)"
3778 GCJ_FOR_BUILD="\$(GCJ)"
3779 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3780 GOC_FOR_BUILD="\$(GOC)"
3781 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3782 LD_FOR_BUILD="\$(LD)"
3783 NM_FOR_BUILD="\$(NM)"
3784 RANLIB_FOR_BUILD="\$(RANLIB)"
3785 WINDRES_FOR_BUILD="\$(WINDRES)"
3786 WINDMC_FOR_BUILD="\$(WINDMC)"
3787fi
3788
3789ac_ext=c
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794if test -n "$ac_tool_prefix"; then
3795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3796set dummy ${ac_tool_prefix}gcc; ac_word=$2
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798$as_echo_n "checking for $ac_word... " >&6; }
3799if test "${ac_cv_prog_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801else
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3804else
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822CC=$ac_cv_prog_CC
3823if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825$as_echo "$CC" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831
3832fi
3833if test -z "$ac_cv_prog_CC"; then
3834 ac_ct_CC=$CC
3835 # Extract the first word of "gcc", so it can be a program name with args.
3836set dummy gcc; ac_word=$2
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
3839if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841else
3842 if test -n "$ac_ct_CC"; then
3843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_prog_ac_ct_CC="gcc"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856done
3857 done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862ac_ct_CC=$ac_cv_prog_ac_ct_CC
3863if test -n "$ac_ct_CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3865$as_echo "$ac_ct_CC" >&6; }
3866else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869fi
3870
3871 if test "x$ac_ct_CC" = x; then
3872 CC=""
3873 else
3874 case $cross_compiling:$ac_tool_warned in
3875yes:)
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878ac_tool_warned=yes ;;
3879esac
3880 CC=$ac_ct_CC
3881 fi
3882else
3883 CC="$ac_cv_prog_CC"
3884fi
3885
3886if test -z "$CC"; then
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3889set dummy ${ac_tool_prefix}cc; ac_word=$2
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891$as_echo_n "checking for $ac_word... " >&6; }
3892if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_CC="${ac_tool_prefix}cc"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909done
3910 done
3911IFS=$as_save_IFS
3912
3913fi
3914fi
3915CC=$ac_cv_prog_CC
3916if test -n "$CC"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918$as_echo "$CC" >&6; }
3919else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
3922fi
3923
3924
3925 fi
3926fi
3927if test -z "$CC"; then
3928 # Extract the first word of "cc", so it can be a program name with args.
3929set dummy cc; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
3932if test "${ac_cv_prog_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934else
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3937else
3938 ac_prog_rejected=no
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3947 ac_prog_rejected=yes
3948 continue
3949 fi
3950 ac_cv_prog_CC="cc"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954done
3955 done
3956IFS=$as_save_IFS
3957
3958if test $ac_prog_rejected = yes; then
3959 # We found a bogon in the path, so make sure we never use it.
3960 set dummy $ac_cv_prog_CC
3961 shift
3962 if test $# != 0; then
3963 # We chose a different compiler from the bogus one.
3964 # However, it has the same basename, so the bogon will be chosen
3965 # first if we set CC to just the basename; use the full file name.
3966 shift
3967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3968 fi
3969fi
3970fi
3971fi
3972CC=$ac_cv_prog_CC
3973if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975$as_echo "$CC" >&6; }
3976else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981
3982fi
3983if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 for ac_prog in cl.exe
3986 do
3987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013fi
4014CC=$ac_cv_prog_CC
4015if test -n "$CC"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017$as_echo "$CC" >&6; }
4018else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
4021fi
4022
4023
4024 test -n "$CC" && break
4025 done
4026fi
4027if test -z "$CC"; then
4028 ac_ct_CC=$CC
4029 for ac_prog in cl.exe
4030do
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 if test -n "$ac_ct_CC"; then
4039 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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
4058ac_ct_CC=$ac_cv_prog_ac_ct_CC
4059if test -n "$ac_ct_CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4061$as_echo "$ac_ct_CC" >&6; }
4062else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
4065fi
4066
4067
4068 test -n "$ac_ct_CC" && break
4069done
4070
4071 if test "x$ac_ct_CC" = x; then
4072 CC=""
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078ac_tool_warned=yes ;;
4079esac
4080 CC=$ac_ct_CC
4081 fi
4082fi
4083
4084fi
4085
4086
4087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089as_fn_error "no acceptable C compiler found in \$PATH
4090See \`config.log' for more details." "$LINENO" 5; }
4091
4092# Provide some information about the compiler.
4093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4094set X $ac_compile
4095ac_compiler=$2
4096for ac_option in --version -v -V -qversion; do
4097 { { ac_try="$ac_compiler $ac_option >&5"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4105 ac_status=$?
4106 if test -s conftest.err; then
4107 sed '10a\
4108... rest of stderr output deleted ...
4109 10q' conftest.err >conftest.er1
4110 cat conftest.er1 >&5
4111 rm -f conftest.er1 conftest.err
4112 fi
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115done
4116
4117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128ac_clean_files_save=$ac_clean_files
4129ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4130# Try to create an executable without -o first, disregard a.out.
4131# It will help us diagnose broken compilers, and finding out an intuition
4132# of exeext.
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4134$as_echo_n "checking for C compiler default output file name... " >&6; }
4135ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4136
4137# The possible output files:
4138ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4139
4140ac_rmfiles=
4141for ac_file in $ac_files
4142do
4143 case $ac_file in
4144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4146 esac
4147done
4148rm -f $ac_rmfiles
4149
4150if { { ac_try="$ac_link_default"
4151case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156$as_echo "$ac_try_echo"; } >&5
4157 (eval "$ac_link_default") 2>&5
4158 ac_status=$?
4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160 test $ac_status = 0; }; then :
4161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4163# in a Makefile. We should not override ac_cv_exeext if it was cached,
4164# so that the user can short-circuit this test for compilers unknown to
4165# Autoconf.
4166for ac_file in $ac_files ''
4167do
4168 test -f "$ac_file" || continue
4169 case $ac_file in
4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4171 ;;
4172 [ab].out )
4173 # We found the default executable, but exeext='' is most
4174 # certainly right.
4175 break;;
4176 *.* )
4177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4178 then :; else
4179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4180 fi
4181 # We set ac_cv_exeext here because the later test for it is not
4182 # safe: cross compilers may not add the suffix if given an `-o'
4183 # argument, so we may need to know it at that point already.
4184 # Even if this section looks crufty: it has the advantage of
4185 # actually working.
4186 break;;
4187 * )
4188 break;;
4189 esac
4190done
4191test "$ac_cv_exeext" = no && ac_cv_exeext=
4192
4193else
4194 ac_file=''
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4197$as_echo "$ac_file" >&6; }
4198if test -z "$ac_file"; then :
4199 $as_echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204{ as_fn_set_status 77
4205as_fn_error "C compiler cannot create executables
4206See \`config.log' for more details." "$LINENO" 5; }; }
4207fi
4208ac_exeext=$ac_cv_exeext
4209
4210# Check that the compiler produces executables we can run. If not, either
4211# the compiler is broken, or we cross compile.
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4213$as_echo_n "checking whether the C compiler works... " >&6; }
4214# If not cross compiling, check that we can run a simple program.
4215if test "$cross_compiling" != yes; then
4216 if { ac_try='./$ac_file'
4217 { { case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222$as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; }; then
4227 cross_compiling=no
4228 else
4229 if test "$cross_compiling" = maybe; then
4230 cross_compiling=yes
4231 else
4232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4234as_fn_error "cannot run C compiled programs.
4235If you meant to cross compile, use \`--host'.
4236See \`config.log' for more details." "$LINENO" 5; }
4237 fi
4238 fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241$as_echo "yes" >&6; }
4242
4243rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4244ac_clean_files=$ac_clean_files_save
4245# Check that the compiler produces executables we can run. If not, either
4246# the compiler is broken, or we cross compile.
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4248$as_echo_n "checking whether we are cross compiling... " >&6; }
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4250$as_echo "$cross_compiling" >&6; }
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4253$as_echo_n "checking for suffix of executables... " >&6; }
4254if { { ac_try="$ac_link"
4255case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260$as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_link") 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; then :
4265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4267# work properly (i.e., refer to `conftest.exe'), while it won't with
4268# `rm'.
4269for ac_file in conftest.exe conftest conftest.*; do
4270 test -f "$ac_file" || continue
4271 case $ac_file in
4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4274 break;;
4275 * ) break;;
4276 esac
4277done
4278else
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281as_fn_error "cannot compute suffix of executables: cannot compile and link
4282See \`config.log' for more details." "$LINENO" 5; }
4283fi
4284rm -f conftest$ac_cv_exeext
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4286$as_echo "$ac_cv_exeext" >&6; }
4287
4288rm -f conftest.$ac_ext
4289EXEEXT=$ac_cv_exeext
4290ac_exeext=$EXEEXT
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4292$as_echo_n "checking for suffix of object files... " >&6; }
4293if test "${ac_cv_objext+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295else
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h. */
4298
4299int
4300main ()
4301{
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307rm -f conftest.o conftest.obj
4308if { { ac_try="$ac_compile"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314$as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compile") 2>&5
4316 ac_status=$?
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
4319 for ac_file in conftest.o conftest.obj conftest.*; do
4320 test -f "$ac_file" || continue;
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4324 break;;
4325 esac
4326done
4327else
4328 $as_echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333as_fn_error "cannot compute suffix of object files: cannot compile
4334See \`config.log' for more details." "$LINENO" 5; }
4335fi
4336rm -f conftest.$ac_cv_objext conftest.$ac_ext
4337fi
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4339$as_echo "$ac_cv_objext" >&6; }
4340OBJEXT=$ac_cv_objext
4341ac_objext=$OBJEXT
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4343$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4344if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h. */
4349
4350int
4351main ()
4352{
4353#ifndef __GNUC__
4354 choke me
4355#endif
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_compiler_gnu=yes
4363else
4364 ac_compiler_gnu=no
4365fi
4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367ac_cv_c_compiler_gnu=$ac_compiler_gnu
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4371$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4372if test $ac_compiler_gnu = yes; then
4373 GCC=yes
4374else
4375 GCC=
4376fi
4377ac_test_CFLAGS=${CFLAGS+set}
4378ac_save_CFLAGS=$CFLAGS
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4380$as_echo_n "checking whether $CC accepts -g... " >&6; }
4381if test "${ac_cv_prog_cc_g+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383else
4384 ac_save_c_werror_flag=$ac_c_werror_flag
4385 ac_c_werror_flag=yes
4386 ac_cv_prog_cc_g=no
4387 CFLAGS="-g"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
4390
4391int
4392main ()
4393{
4394
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_cv_prog_cc_g=yes
4401else
4402 CFLAGS=""
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
4405
4406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415
4416else
4417 ac_c_werror_flag=$ac_save_c_werror_flag
4418 CFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h. */
4421
4422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430if ac_fn_c_try_compile "$LINENO"; then :
4431 ac_cv_prog_cc_g=yes
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4441$as_echo "$ac_cv_prog_cc_g" >&6; }
4442if test "$ac_test_CFLAGS" = set; then
4443 CFLAGS=$ac_save_CFLAGS
4444elif test $ac_cv_prog_cc_g = yes; then
4445 if test "$GCC" = yes; then
4446 CFLAGS="-g -O2"
4447 else
4448 CFLAGS="-g"
4449 fi
4450else
4451 if test "$GCC" = yes; then
4452 CFLAGS="-O2"
4453 else
4454 CFLAGS=
4455 fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4458$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4459if test "${ac_cv_prog_cc_c89+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 ac_cv_prog_cc_c89=no
4463ac_save_CC=$CC
4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h. */
4466#include <stdarg.h>
4467#include <stdio.h>
4468#include <sys/types.h>
4469#include <sys/stat.h>
4470/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4471struct buf { int x; };
4472FILE * (*rcsopen) (struct buf *, struct stat *, int);
4473static char *e (p, i)
4474 char **p;
4475 int i;
4476{
4477 return p[i];
4478}
4479static char *f (char * (*g) (char **, int), char **p, ...)
4480{
4481 char *s;
4482 va_list v;
4483 va_start (v,p);
4484 s = g (p, va_arg (v,int));
4485 va_end (v);
4486 return s;
4487}
4488
4489/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4490 function prototypes and stuff, but not '\xHH' hex character constants.
4491 These don't provoke an error unfortunately, instead are silently treated
4492 as 'x'. The following induces an error, until -std is added to get
4493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4494 array size at least. It's necessary to write '\x00'==0 to get something
4495 that's true only with -std. */
4496int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4497
4498/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4499 inside strings and character constants. */
4500#define FOO(x) 'x'
4501int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4502
4503int test (int i, double x);
4504struct s1 {int (*f) (int a);};
4505struct s2 {int (*f) (double a);};
4506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4507int argc;
4508char **argv;
4509int
4510main ()
4511{
4512return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4519do
4520 CC="$ac_save_CC $ac_arg"
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_prog_cc_c89=$ac_arg
4523fi
4524rm -f core conftest.err conftest.$ac_objext
4525 test "x$ac_cv_prog_cc_c89" != "xno" && break
4526done
4527rm -f conftest.$ac_ext
4528CC=$ac_save_CC
4529
4530fi
4531# AC_CACHE_VAL
4532case "x$ac_cv_prog_cc_c89" in
4533 x)
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4535$as_echo "none needed" >&6; } ;;
4536 xno)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538$as_echo "unsupported" >&6; } ;;
4539 *)
4540 CC="$CC $ac_cv_prog_cc_c89"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4542$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4543esac
4544if test "x$ac_cv_prog_cc_c89" != xno; then :
4545
4546fi
4547
4548ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554ac_ext=cpp
4555ac_cpp='$CXXCPP $CPPFLAGS'
4556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559if test -z "$CXX"; then
4560 if test -n "$CCC"; then
4561 CXX=$CCC
4562 else
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4565 do
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if test "${ac_cv_prog_CXX+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 if test -n "$CXX"; then
4574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588 done
4589IFS=$as_save_IFS
4590
4591fi
4592fi
4593CXX=$ac_cv_prog_CXX
4594if test -n "$CXX"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4596$as_echo "$CXX" >&6; }
4597else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
4600fi
4601
4602
4603 test -n "$CXX" && break
4604 done
4605fi
4606if test -z "$CXX"; then
4607 ac_ct_CXX=$CXX
4608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4609do
4610 # Extract the first word of "$ac_prog", so it can be a program name with args.
4611set dummy $ac_prog; ac_word=$2
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613$as_echo_n "checking for $ac_word... " >&6; }
4614if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616else
4617 if test -n "$ac_ct_CXX"; then
4618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_ac_ct_CXX="$ac_prog"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632 done
4633IFS=$as_save_IFS
4634
4635fi
4636fi
4637ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4638if test -n "$ac_ct_CXX"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4640$as_echo "$ac_ct_CXX" >&6; }
4641else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
4644fi
4645
4646
4647 test -n "$ac_ct_CXX" && break
4648done
4649
4650 if test "x$ac_ct_CXX" = x; then
4651 CXX="g++"
4652 else
4653 case $cross_compiling:$ac_tool_warned in
4654yes:)
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4657ac_tool_warned=yes ;;
4658esac
4659 CXX=$ac_ct_CXX
4660 fi
4661fi
4662
4663 fi
4664fi
4665# Provide some information about the compiler.
4666$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4667set X $ac_compile
4668ac_compiler=$2
4669for ac_option in --version -v -V -qversion; do
4670 { { ac_try="$ac_compiler $ac_option >&5"
4671case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674esac
4675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676$as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4678 ac_status=$?
4679 if test -s conftest.err; then
4680 sed '10a\
4681... rest of stderr output deleted ...
4682 10q' conftest.err >conftest.er1
4683 cat conftest.er1 >&5
4684 rm -f conftest.er1 conftest.err
4685 fi
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }
4688done
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4691$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4692if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697
4698int
4699main ()
4700{
4701#ifndef __GNUC__
4702 choke me
4703#endif
4704
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709if ac_fn_cxx_try_compile "$LINENO"; then :
4710 ac_compiler_gnu=yes
4711else
4712 ac_compiler_gnu=no
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4716
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4719$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4720if test $ac_compiler_gnu = yes; then
4721 GXX=yes
4722else
4723 GXX=
4724fi
4725ac_test_CXXFLAGS=${CXXFLAGS+set}
4726ac_save_CXXFLAGS=$CXXFLAGS
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4728$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4729if test "${ac_cv_prog_cxx_g+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4733 ac_cxx_werror_flag=yes
4734 ac_cv_prog_cxx_g=no
4735 CXXFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738
4739int
4740main ()
4741{
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747if ac_fn_cxx_try_compile "$LINENO"; then :
4748 ac_cv_prog_cxx_g=yes
4749else
4750 CXXFLAGS=""
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h. */
4753
4754int
4755main ()
4756{
4757
4758 ;
4759 return 0;
4760}
4761_ACEOF
4762if ac_fn_cxx_try_compile "$LINENO"; then :
4763
4764else
4765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4766 CXXFLAGS="-g"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769
4770int
4771main ()
4772{
4773
4774 ;
4775 return 0;
4776}
4777_ACEOF
4778if ac_fn_cxx_try_compile "$LINENO"; then :
4779 ac_cv_prog_cxx_g=yes
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4789$as_echo "$ac_cv_prog_cxx_g" >&6; }
4790if test "$ac_test_CXXFLAGS" = set; then
4791 CXXFLAGS=$ac_save_CXXFLAGS
4792elif test $ac_cv_prog_cxx_g = yes; then
4793 if test "$GXX" = yes; then
4794 CXXFLAGS="-g -O2"
4795 else
4796 CXXFLAGS="-g"
4797 fi
4798else
4799 if test "$GXX" = yes; then
4800 CXXFLAGS="-O2"
4801 else
4802 CXXFLAGS=
4803 fi
4804fi
4805ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811
4812# We must set the default linker to the linker used by gcc for the correct
4813# operation of libtool. If LD is not defined and we are using gcc, try to
4814# set the LD default to the ld used by gcc.
4815if test -z "$LD"; then
4816 if test "$GCC" = yes; then
4817 case $build in
4818 *-*-mingw*)
4819 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4820 *)
4821 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4822 esac
4823 case $gcc_prog_ld in
4824 # Accept absolute paths.
4825 [\\/]* | [A-Za-z]:[\\/]*)
4826 LD="$gcc_prog_ld" ;;
4827 esac
4828 fi
4829fi
4830
4831
4832
4833
4834if test -n "$ac_tool_prefix"; then
4835 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4836set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4841else
4842 if test -n "$GNATBIND"; then
4843 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857 done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862GNATBIND=$ac_cv_prog_GNATBIND
4863if test -n "$GNATBIND"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4865$as_echo "$GNATBIND" >&6; }
4866else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870
4871
4872fi
4873if test -z "$ac_cv_prog_GNATBIND"; then
4874 ac_ct_GNATBIND=$GNATBIND
4875 # Extract the first word of "gnatbind", so it can be a program name with args.
4876set dummy gnatbind; ac_word=$2
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878$as_echo_n "checking for $ac_word... " >&6; }
4879if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881else
4882 if test -n "$ac_ct_GNATBIND"; then
4883 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4884else
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896done
4897 done
4898IFS=$as_save_IFS
4899
4900fi
4901fi
4902ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4903if test -n "$ac_ct_GNATBIND"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4905$as_echo "$ac_ct_GNATBIND" >&6; }
4906else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909fi
4910
4911 if test "x$ac_ct_GNATBIND" = x; then
4912 GNATBIND="no"
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915yes:)
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4918ac_tool_warned=yes ;;
4919esac
4920 GNATBIND=$ac_ct_GNATBIND
4921 fi
4922else
4923 GNATBIND="$ac_cv_prog_GNATBIND"
4924fi
4925
4926if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4928set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 if test -n "$GNATMAKE"; then
4935 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949 done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954GNATMAKE=$ac_cv_prog_GNATMAKE
4955if test -n "$GNATMAKE"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4957$as_echo "$GNATMAKE" >&6; }
4958else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964fi
4965if test -z "$ac_cv_prog_GNATMAKE"; then
4966 ac_ct_GNATMAKE=$GNATMAKE
4967 # Extract the first word of "gnatmake", so it can be a program name with args.
4968set dummy gnatmake; ac_word=$2
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
4971if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973else
4974 if test -n "$ac_ct_GNATMAKE"; then
4975 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989 done
4990IFS=$as_save_IFS
4991
4992fi
4993fi
4994ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4995if test -n "$ac_ct_GNATMAKE"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4997$as_echo "$ac_ct_GNATMAKE" >&6; }
4998else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003 if test "x$ac_ct_GNATMAKE" = x; then
5004 GNATMAKE="no"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012 GNATMAKE=$ac_ct_GNATMAKE
5013 fi
5014else
5015 GNATMAKE="$ac_cv_prog_GNATMAKE"
5016fi
5017
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5019$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5020if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022else
5023 cat >conftest.adb <<EOF
5024procedure conftest is begin null; end conftest;
5025EOF
5026acx_cv_cc_gcc_supports_ada=no
5027# There is a bug in old released versions of GCC which causes the
5028# driver to exit successfully when the appropriate language module
5029# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5030# Therefore we must check for the error message as well as an
5031# unsuccessful exit.
5032# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5033# given a .adb file, but produce no object file. So we must check
5034# if an object file was really produced to guard against this.
5035errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5036if test x"$errors" = x && test -f conftest.$ac_objext; then
5037 acx_cv_cc_gcc_supports_ada=yes
5038fi
5039rm -f conftest.*
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5042$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5043
5044if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5045 have_gnat=yes
5046else
5047 have_gnat=no
5048fi
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5051$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5052if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 echo abfoo >t1
5056 echo cdfoo >t2
5057 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5058 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5059 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5060 :
5061 else
5062 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5063 fi
5064 fi
5065 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5066 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5067 :
5068 else
5069 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5070 fi
5071 fi
5072 rm t1 t2
5073
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5076$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5077do_compare="$gcc_cv_prog_cmp_skip"
5078
5079
5080
5081# See if we are building gcc with C++.
5082# Check whether --enable-build-with-cxx was given.
5083if test "${enable_build_with_cxx+set}" = set; then :
5084 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5085else
5086 ENABLE_BUILD_WITH_CXX=no
5087fi
5088
5089
5090# Used for setting $lt_cv_objdir
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5092$as_echo_n "checking for objdir... " >&6; }
5093if test "${lt_cv_objdir+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 rm -f .libs 2>/dev/null
5097mkdir .libs 2>/dev/null
5098if test -d .libs; then
5099 lt_cv_objdir=.libs
5100else
5101 # MS-DOS does not allow filenames that begin with a dot.
5102 lt_cv_objdir=_libs
5103fi
5104rmdir .libs 2>/dev/null
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5107$as_echo "$lt_cv_objdir" >&6; }
5108objdir=$lt_cv_objdir
5109
5110
5111
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define LT_OBJDIR "$lt_cv_objdir/"
5116_ACEOF
5117
5118
5119
5120# Check for GMP, MPFR and MPC
5121gmplibs="-lmpc -lmpfr -lgmp"
5122gmpinc=
5123have_gmp=no
5124
5125# Specify a location for mpc
5126# check for this first so it ends up on the link line before mpfr.
5127
5128# Check whether --with-mpc was given.
5129if test "${with_mpc+set}" = set; then :
5130 withval=$with_mpc;
5131fi
5132
5133
5134# Check whether --with-mpc-include was given.
5135if test "${with_mpc_include+set}" = set; then :
5136 withval=$with_mpc_include;
5137fi
5138
5139
5140# Check whether --with-mpc-lib was given.
5141if test "${with_mpc_lib+set}" = set; then :
5142 withval=$with_mpc_lib;
5143fi
5144
5145
5146if test "x$with_mpc" != x; then
5147 gmplibs="-L$with_mpc/lib $gmplibs"
5148 gmpinc="-I$with_mpc/include $gmpinc"
5149fi
5150if test "x$with_mpc_include" != x; then
5151 gmpinc="-I$with_mpc_include $gmpinc"
5152fi
5153if test "x$with_mpc_lib" != x; then
5154 gmplibs="-L$with_mpc_lib $gmplibs"
5155fi
5156if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5157 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5158 gmpinc='-I$$s/mpc/src '"$gmpinc"
5159 # Do not test the mpc version. Assume that it is sufficient, since
5160 # it is in the source tree, and the library has not been built yet
5161 # but it would be included on the link line in the version check below
5162 # hence making the test fail.
5163 have_gmp=yes
5164fi
5165
5166# Specify a location for mpfr
5167# check for this first so it ends up on the link line before gmp.
5168
5169# Check whether --with-mpfr-dir was given.
5170if test "${with_mpfr_dir+set}" = set; then :
5171 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5172Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5173fi
5174
5175
5176
5177# Check whether --with-mpfr was given.
5178if test "${with_mpfr+set}" = set; then :
5179 withval=$with_mpfr;
5180fi
5181
5182
5183# Check whether --with-mpfr-include was given.
5184if test "${with_mpfr_include+set}" = set; then :
5185 withval=$with_mpfr_include;
5186fi
5187
5188
5189# Check whether --with-mpfr-lib was given.
5190if test "${with_mpfr_lib+set}" = set; then :
5191 withval=$with_mpfr_lib;
5192fi
5193
5194
5195if test "x$with_mpfr" != x; then
5196 gmplibs="-L$with_mpfr/lib $gmplibs"
5197 gmpinc="-I$with_mpfr/include $gmpinc"
5198fi
5199if test "x$with_mpfr_include" != x; then
5200 gmpinc="-I$with_mpfr_include $gmpinc"
5201fi
5202if test "x$with_mpfr_lib" != x; then
5203 gmplibs="-L$with_mpfr_lib $gmplibs"
5204fi
5205if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5206 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5207 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5208 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5209 # Do not test the mpfr version. Assume that it is sufficient, since
5210 # it is in the source tree, and the library has not been built yet
5211 # but it would be included on the link line in the version check below
5212 # hence making the test fail.
5213 have_gmp=yes
5214fi
5215
5216# Specify a location for gmp
5217
5218# Check whether --with-gmp-dir was given.
5219if test "${with_gmp_dir+set}" = set; then :
5220 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5221Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5222fi
5223
5224
5225
5226# Check whether --with-gmp was given.
5227if test "${with_gmp+set}" = set; then :
5228 withval=$with_gmp;
5229fi
5230
5231
5232# Check whether --with-gmp-include was given.
5233if test "${with_gmp_include+set}" = set; then :
5234 withval=$with_gmp_include;
5235fi
5236
5237
5238# Check whether --with-gmp-lib was given.
5239if test "${with_gmp_lib+set}" = set; then :
5240 withval=$with_gmp_lib;
5241fi
5242
5243
5244
5245if test "x$with_gmp" != x; then
5246 gmplibs="-L$with_gmp/lib $gmplibs"
5247 gmpinc="-I$with_gmp/include $gmpinc"
5248fi
5249if test "x$with_gmp_include" != x; then
5250 gmpinc="-I$with_gmp_include $gmpinc"
5251fi
5252if test "x$with_gmp_lib" != x; then
5253 gmplibs="-L$with_gmp_lib $gmplibs"
5254fi
5255if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5256 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5257 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5258 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5259 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5260 # Do not test the gmp version. Assume that it is sufficient, since
5261 # it is in the source tree, and the library has not been built yet
5262 # but it would be included on the link line in the version check below
5263 # hence making the test fail.
5264 have_gmp=yes
5265fi
5266
5267if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5268 have_gmp=yes
5269 saved_CFLAGS="$CFLAGS"
5270 CFLAGS="$CFLAGS $gmpinc"
5271 # Check for the recommended and required versions of GMP.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5273$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5274
5275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h. */
5277#include "gmp.h"
5278int
5279main ()
5280{
5281
5282 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5283 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5284 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5285 choke me
5286 #endif
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294/* end confdefs.h. */
5295#include <gmp.h>
5296int
5297main ()
5298{
5299
5300 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5301 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5302 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5303 choke me
5304 #endif
5305
5306 ;
5307 return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312$as_echo "yes" >&6; }
5313else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5315$as_echo "buggy but acceptable" >&6; }
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }; have_gmp=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323
5324 # If we have GMP, check the MPFR version.
5325 if test x"$have_gmp" = xyes; then
5326 # Check for the recommended and required versions of MPFR.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5328$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
5331#include <gmp.h>
5332 #include <mpfr.h>
5333int
5334main ()
5335{
5336
5337 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5338 choke me
5339 #endif
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
5348#include <gmp.h>
5349 #include <mpfr.h>
5350int
5351main ()
5352{
5353
5354 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5355 choke me
5356 #endif
5357
5358 ;
5359 return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_compile "$LINENO"; then :
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364$as_echo "yes" >&6; }
5365else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5367$as_echo "buggy but acceptable" >&6; }
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }; have_gmp=no
5373fi
5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 fi
5376
5377 # Check for the MPC header version.
5378 if test x"$have_gmp" = xyes ; then
5379 # Check for the recommended and required versions of MPC.
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5381$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384#include <mpc.h>
5385int
5386main ()
5387{
5388
5389 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5390 choke me
5391 #endif
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400#include <mpc.h>
5401int
5402main ()
5403{
5404
5405 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5406 choke me
5407 #endif
5408
5409 ;
5410 return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_compile "$LINENO"; then :
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5415$as_echo "yes" >&6; }
5416else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5418$as_echo "buggy but acceptable" >&6; }
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }; have_gmp=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 fi
5427
5428 # Now check the MPFR library.
5429 if test x"$have_gmp" = xyes; then
5430 saved_LIBS="$LIBS"
5431 LIBS="$LIBS $gmplibs"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5433$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <mpc.h>
5437int
5438main ()
5439{
5440
5441 mpfr_t n;
5442 mpfr_t x;
5443 mpc_t c;
5444 int t;
5445 mpfr_init (n);
5446 mpfr_init (x);
5447 mpfr_atan2 (n, n, x, GMP_RNDN);
5448 mpfr_erfc (n, x, GMP_RNDN);
5449 mpfr_subnormalize (x, t, GMP_RNDN);
5450 mpfr_clear(n);
5451 mpfr_clear(x);
5452 mpc_init2 (c, 53);
5453 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5454 mpc_cosh (c, c, MPC_RNDNN);
5455 mpc_pow (c, c, c, MPC_RNDNN);
5456 mpc_acosh (c, c, MPC_RNDNN);
5457 mpc_clear (c);
5458
5459 ;
5460 return 0;
5461}
5462_ACEOF
5463if ac_fn_c_try_link "$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465$as_echo "yes" >&6; }
5466else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }; have_gmp=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS="$saved_LIBS"
5473 fi
5474
5475 CFLAGS="$saved_CFLAGS"
5476
5477# The library versions listed in the error message below should match
5478# the HARD-minimums enforced above.
5479 if test x$have_gmp != xyes; then
5480 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5481Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5482their locations. Source code for these libraries can be found at
5483their respective hosting sites as well as at
5484ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5485http://gcc.gnu.org/install/prerequisites.html for additional info. If
5486you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5487make sure that you have installed both the libraries and the header
5488files. They may be located in separate packages." "$LINENO" 5
5489 fi
5490fi
5491
5492# Flags needed for both GMP, MPFR and/or MPC.
5493
5494
5495
5496
5497
5498
5499# Allow host libstdc++ to be specified for static linking with PPL.
5500
5501# Check whether --with-host-libstdcxx was given.
5502if test "${with_host_libstdcxx+set}" = set; then :
5503 withval=$with_host_libstdcxx;
5504fi
5505
5506
5507case $with_host_libstdcxx in
5508 no|yes)
5509 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5510 ;;
5511esac
5512
5513# Linker flags to use for stage1 or when not boostrapping.
5514
5515# Check whether --with-stage1-ldflags was given.
5516if test "${with_stage1_ldflags+set}" = set; then :
5517 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5518 stage1_ldflags=
5519 else
5520 stage1_ldflags=$withval
5521 fi
5522else
5523 stage1_ldflags=
5524fi
5525
5526
5527
5528# Libraries to use for stage1 or when not bootstrapping.
5529
5530# Check whether --with-stage1-libs was given.
5531if test "${with_stage1_libs+set}" = set; then :
5532 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5533 stage1_libs=
5534 else
5535 stage1_libs=$withval
5536 fi
5537else
5538 stage1_libs=$with_host_libstdcxx
5539fi
5540
5541
5542
5543# Libraries to use for stage2 and later builds. This defaults to the
5544# argument passed to --with-host-libstdcxx.
5545
5546# Check whether --with-boot-libs was given.
5547if test "${with_boot_libs+set}" = set; then :
5548 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5549 poststage1_libs=
5550 else
5551 poststage1_libs=$withval
5552 fi
5553else
5554 poststage1_libs=$with_host_libstdcxx
5555fi
5556
5557
5558
5559# Linker flags to use for stage2 and later builds.
5560
5561# Check whether --with-boot-ldflags was given.
5562if test "${with_boot_ldflags+set}" = set; then :
5563 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5564 poststage1_ldflags=
5565 else
5566 poststage1_ldflags=$withval
5567 fi
5568else
5569 poststage1_ldflags=
5570 # With --enable-build-with-cxx, default to linking libstdc++ and
5571 # libgcc statically. But if the user explicitly specified the
5572 # libraries to use, trust that they are doing what they want.
5573 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5574 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5575 fi
5576fi
5577
5578
5579
5580# Check for PPL
5581ppllibs=" -lppl_c -lppl -lgmpxx"
5582pplinc=
5583
5584
5585# Check whether --with-ppl was given.
5586if test "${with_ppl+set}" = set; then :
5587 withval=$with_ppl;
5588fi
5589
5590
5591# Check whether --with-ppl-include was given.
5592if test "${with_ppl_include+set}" = set; then :
5593 withval=$with_ppl_include;
5594fi
5595
5596
5597# Check whether --with-ppl-lib was given.
5598if test "${with_ppl_lib+set}" = set; then :
5599 withval=$with_ppl_lib;
5600fi
5601
5602
5603case $with_ppl in
5604 no)
5605 ppllibs=
5606 ;;
5607 "" | yes)
5608 ;;
5609 *)
5610 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5611 pplinc="-I$with_ppl/include $pplinc"
5612 ;;
5613esac
5614if test "x$with_ppl_include" != x; then
5615 pplinc="-I$with_ppl_include $pplinc"
5616fi
5617if test "x$with_ppl_lib" != x; then
5618 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5619fi
5620if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5621 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5622 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5623 enable_ppl_version_check=no
5624fi
5625
5626# Check whether --enable-ppl-version-check was given.
5627if test "${enable_ppl_version_check+set}" = set; then :
5628 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5629else
5630 ENABLE_PPL_CHECK=yes
5631fi
5632
5633
5634if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5635 saved_CFLAGS="$CFLAGS"
5636 CFLAGS="$CFLAGS $pplinc $gmpinc"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5638$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h. */
5641#include "ppl_c.h"
5642int
5643main ()
5644{
5645
5646 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5647 choke me
5648 #endif
5649
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 CFLAGS="$saved_CFLAGS"
5663fi
5664
5665# Flags needed for PPL
5666
5667
5668
5669
5670# Check for CLOOG
5671
5672
5673
5674# Check whether --with-cloog was given.
5675if test "${with_cloog+set}" = set; then :
5676 withval=$with_cloog;
5677fi
5678
5679
5680# Check whether --with-cloog-include was given.
5681if test "${with_cloog_include+set}" = set; then :
5682 withval=$with_cloog_include;
5683fi
5684
5685
5686# Check whether --with-cloog-lib was given.
5687if test "${with_cloog_lib+set}" = set; then :
5688 withval=$with_cloog_lib;
5689fi
5690
5691
5692 # Check whether --enable-cloog-backend was given.
5693if test "${enable_cloog_backend+set}" = set; then :
5694 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5695 cloog_backend=isl
5696 elif test "x${enableval}" = "xppl"; then
5697 cloog_backend=ppl
5698 else
5699 cloog_backend=ppl-legacy
5700 fi
5701else
5702 cloog_backend=ppl-legacy
5703fi
5704
5705 # Check whether --enable-cloog-version-check was given.
5706if test "${enable_cloog_version_check+set}" = set; then :
5707 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5708else
5709 ENABLE_CLOOG_CHECK=yes
5710fi
5711
5712
5713 # Initialize clooglibs and clooginc.
5714 case $with_cloog in
5715 no)
5716 clooglibs=
5717 clooginc=
5718 ;;
5719 "" | yes)
5720 ;;
5721 *)
5722 clooglibs="-L$with_cloog/lib"
5723 clooginc="-I$with_cloog/include"
5724 ;;
5725 esac
5726 if test "x${with_cloog_include}" != x ; then
5727 clooginc="-I$with_cloog_include"
5728 fi
5729 if test "x${with_cloog_lib}" != x; then
5730 clooglibs="-L$with_cloog_lib"
5731 fi
5732
5733
5734
5735
5736
5737if test "x$with_ppl" = "xno"; then
5738 with_cloog=no
5739fi
5740if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5741 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5742 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5743 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5744fi
5745if test "x$with_cloog" != "xno"; then
5746
5747
5748
5749 _cloog_saved_CFLAGS=$CFLAGS
5750 _cloog_saved_CPPFLAGS=$CPPFLAGS
5751 _cloog_saved_LDFLAGS=$LDFLAGS
5752 _cloog_saved_LIBS=$LIBS
5753
5754 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5755
5756 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5757 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5758 LDFLAGS="${LDFLAGS} ${clooglibs}"
5759
5760 case $cloog_backend in
5761 "ppl-legacy")
5762 CFLAGS="${CFLAGS} ${pplinc}"
5763 LDFLAGS="${LDFLAGS} ${ppllibs}"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5765$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5766if test "${gcc_cv_cloog_type+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768else
5769 LIBS="-lcloog ${_cloog_saved_LIBS}"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772#include "cloog/cloog.h"
5773int
5774main ()
5775{
5776#ifndef CLOOG_PPL_BACKEND
5777 choke me
5778 #endif
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784 gcc_cv_cloog_type="PPL Legacy"
5785else
5786 gcc_cv_cloog_type=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5792$as_echo "$gcc_cv_cloog_type" >&6; }
5793 ;;
5794 "isl")
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5796$as_echo_n "checking for installed CLooG ISL... " >&6; }
5797if test "${gcc_cv_cloog_type+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h. */
5803#include "cloog/cloog.h"
5804int
5805main ()
5806{
5807cloog_version ()
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_link "$LINENO"; then :
5813 gcc_cv_cloog_type="ISL"
5814else
5815 gcc_cv_cloog_type=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5821$as_echo "$gcc_cv_cloog_type" >&6; }
5822 ;;
5823 "ppl")
5824 CFLAGS="${CFLAGS} ${pplinc}"
5825 LDFLAGS="${LDFLAGS} ${ppllibs}"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5827$as_echo_n "checking for installed CLooG PPL... " >&6; }
5828if test "${gcc_cv_cloog_type+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834#include "cloog/cloog.h"
5835 #include "cloog/ppl/cloog.h"
5836int
5837main ()
5838{
5839cloog_version ()
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_link "$LINENO"; then :
5845 gcc_cv_cloog_type="PPL"
5846else
5847 gcc_cv_cloog_type=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5853$as_echo "$gcc_cv_cloog_type" >&6; }
5854 ;;
5855 *)
5856 gcc_cv_cloog_type=""
5857 esac
5858
5859 case $gcc_cv_cloog_type in
5860 "PPL Legacy")
5861 clooginc="${clooginc}"
5862 clooglibs="${clooglibs} -lcloog"
5863 cloog_org=no
5864 ;;
5865 "ISL")
5866 clooginc="${clooginc} ${_cloogorginc}"
5867 clooglibs="${clooglibs} -lcloog-isl"
5868 cloog_org=yes
5869 ;;
5870 "PPL")
5871 clooginc="${clooginc} ${_cloogorginc}"
5872 clooglibs="${clooglibs} -lcloog-ppl"
5873 cloog_org=yes
5874 ;;
5875 *)
5876 clooglibs=
5877 clooginc=
5878 cloog_org=
5879 ;;
5880 esac
5881
5882 LIBS=$_cloog_saved_LIBS
5883 CFLAGS=$_cloog_saved_CFLAGS
5884 CPPFLAGS=$_cloog_saved_CPPFLAGS
5885 LDFLAGS=$_cloog_saved_LDFLAGS
5886
5887
5888
5889
5890
5891 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5892 _cloog_saved_CFLAGS=$CFLAGS
5893 _cloog_saved_LDFLAGS=$LDFLAGS
5894
5895 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5896 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5897
5898 if test "${cloog_org}" = yes ; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5900$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5901if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include "cloog/cloog.h"
5907int
5908main ()
5909{
5910#if CLOOG_VERSION_MAJOR != 0 \
5911 || CLOOG_VERSION_MINOR != 14 \
5912 || CLOOG_VERSION_REVISION < 0
5913 choke me
5914 #endif
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920 gcc_cv_cloog_ct_0_14_0=yes
5921else
5922 gcc_cv_cloog_ct_0_14_0=no
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5927$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5928 elif test "${cloog_org}" = no ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5930$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5931if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936#include "cloog/cloog.h"
5937int
5938main ()
5939{
5940#if CLOOG_VERSION_MAJOR != 0 \
5941 || CLOOG_VERSION_MINOR != 15 \
5942 || CLOOG_VERSION_REVISION < 5
5943 choke me
5944 #endif
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include "cloog/cloog.h"
5953int
5954main ()
5955{
5956#if CLOOG_VERSION_MAJOR != 0 \
5957 || CLOOG_VERSION_MINOR != 15 \
5958 || CLOOG_VERSION_REVISION < 9
5959 choke me
5960 #endif
5961 ;
5962 return 0;
5963}
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then :
5966 gcc_cv_cloog_ct_0_15_5=yes
5967else
5968 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5969fi
5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971else
5972 gcc_cv_cloog_ct_0_15_5=no
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975fi
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5977$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5978 fi
5979
5980 CFLAGS=$_cloog_saved_CFLAGS
5981 LDFLAGS=$_cloog_saved_LDFLAGS
5982 fi
5983
5984
5985
5986
5987
5988
5989
5990 if test "x${with_cloog}" != x \
5991 || test "x${with_cloog_include}" != x \
5992 || test "x${with_cloog_lib}" != x ; then
5993 graphite_requested=yes
5994 else
5995 graphite_requested=no
5996 fi
5997
5998
5999
6000 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6001 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6002 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6003 clooglibs=
6004 clooginc=
6005 fi
6006
6007 if test "${graphite_requested}" = yes \
6008 && test "x${clooglibs}" = x \
6009 && test "x${clooginc}" = x ; then
6010
6011 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6012 fi
6013
6014
6015fi
6016
6017# Check for LTO support.
6018# Check whether --enable-lto was given.
6019if test "${enable_lto+set}" = set; then :
6020 enableval=$enable_lto; enable_lto=$enableval
6021else
6022 enable_lto=yes; default_enable_lto=yes
6023fi
6024
6025
6026
6027
6028
6029target_elf=no
6030case $target in
6031 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6032 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6033 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6034 target_elf=no
6035 ;;
6036 *)
6037 target_elf=yes
6038 ;;
6039esac
6040
6041if test $target_elf = yes; then :
6042 # ELF platforms build the lto-plugin always.
6043 build_lto_plugin=yes
6044
6045else
6046 if test x"$default_enable_lto" = x"yes" ; then
6047 case $target in
6048 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6049 # On other non-ELF platforms, LTO has yet to be validated.
6050 *) enable_lto=no ;;
6051 esac
6052 else
6053 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6054 # It would also be nice to check the binutils support, but we don't
6055 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6056 # warn during gcc/ subconfigure; unless you're bootstrapping with
6057 # -flto it won't be needed until after installation anyway.
6058 case $target in
6059 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6060 *) if test x"$enable_lto" = x"yes"; then
6061 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6062 fi
6063 ;;
6064 esac
6065 fi
6066 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6067 # Build it unless LTO was explicitly disabled.
6068 case $target in
6069 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6070 *) ;;
6071 esac
6072
6073fi
6074
6075
6076
6077# By default, C is the only stage 1 language.
6078stage1_languages=,c,
6079
6080# Target libraries that we bootstrap.
6081bootstrap_target_libs=,target-libgcc,
6082
6083# Figure out what language subdirectories are present.
6084# Look if the user specified --enable-languages="..."; if not, use
6085# the environment variable $LANGUAGES if defined. $LANGUAGES might
6086# go away some day.
6087# NB: embedded tabs in this IF block -- do not untabify
6088if test -d ${srcdir}/gcc; then
6089 if test x"${enable_languages+set}" != xset; then
6090 if test x"${LANGUAGES+set}" = xset; then
6091 enable_languages="${LANGUAGES}"
6092 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6093 else
6094 enable_languages=all
6095 fi
6096 else
6097 if test x"${enable_languages}" = x ||
6098 test x"${enable_languages}" = xyes;
6099 then
6100 echo configure.in: --enable-languages needs at least one language argument 1>&2
6101 exit 1
6102 fi
6103 fi
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6105
6106 # 'f95' is the old name for the 'fortran' language. We issue a warning
6107 # and make the substitution.
6108 case ,${enable_languages}, in
6109 *,f95,*)
6110 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6111 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6112 ;;
6113 esac
6114
6115 # First scan to see if an enabled language requires some other language.
6116 # We assume that a given config-lang.in will list all the language
6117 # front ends it requires, even if some are required indirectly.
6118 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6119 case ${lang_frag} in
6120 ..) ;;
6121 # The odd quoting in the next line works around
6122 # an apparent bug in bash 1.12 on linux.
6123 ${srcdir}/gcc/[*]/config-lang.in) ;;
6124 *)
6125 # From the config-lang.in, get $language, $lang_requires, and
6126 # $lang_requires_boot_languages.
6127 language=
6128 lang_requires=
6129 lang_requires_boot_languages=
6130 . ${lang_frag}
6131 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6132 case ,${enable_languages}, in
6133 *,$other,*) ;;
6134 *,all,*) ;;
6135 *,$language,*)
6136 echo " \`$other' language required by \`$language'; enabling" 1>&2
6137 enable_languages="${enable_languages},${other}"
6138 ;;
6139 esac
6140 done
6141 for other in ${lang_requires_boot_languages} ; do
6142 if test "$other" != "c"; then
6143 case ,${enable_stage1_languages}, in
6144 *,$other,*) ;;
6145 *,all,*) ;;
6146 *)
6147 case ,${enable_languages}, in
6148 *,$language,*)
6149 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6150 enable_stage1_languages="$enable_stage1_languages,${other}"
6151 ;;
6152 esac
6153 ;;
6154 esac
6155 fi
6156 done
6157 ;;
6158 esac
6159 done
6160
6161 new_enable_languages=,c,
6162
6163 # If LTO is enabled, add the LTO front end.
6164 extra_host_libiberty_configure_flags=
6165 if test "$enable_lto" = "yes" ; then
6166 case ,${enable_languages}, in
6167 *,lto,*) ;;
6168 *) enable_languages="${enable_languages},lto" ;;
6169 esac
6170 if test "${build_lto_plugin}" = "yes" ; then
6171 configdirs="$configdirs lto-plugin"
6172 extra_host_libiberty_configure_flags=--enable-shared
6173 fi
6174 fi
6175
6176
6177 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6178 potential_languages=,c,
6179
6180 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6181 case ${lang_frag} in
6182 ..) ;;
6183 # The odd quoting in the next line works around
6184 # an apparent bug in bash 1.12 on linux.
6185 ${srcdir}/gcc/[*]/config-lang.in) ;;
6186 *)
6187 # From the config-lang.in, get $language, $target_libs,
6188 # $lang_dirs, $boot_language, and $build_by_default
6189 language=
6190 target_libs=
6191 lang_dirs=
6192 subdir_requires=
6193 boot_language=no
6194 build_by_default=yes
6195 . ${lang_frag}
6196 if test x${language} = x; then
6197 echo "${lang_frag} doesn't set \$language." 1>&2
6198 exit 1
6199 fi
6200
6201 if test "$language" = "c++" \
6202 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6203 boot_language=yes
6204 fi
6205
6206 case ,${enable_languages}, in
6207 *,${language},*)
6208 # Language was explicitly selected; include it.
6209 add_this_lang=yes
6210 ;;
6211 *,all,*)
6212 # 'all' was selected, select it if it is a default language
6213 add_this_lang=${build_by_default}
6214 ;;
6215 *)
6216 add_this_lang=no
6217 ;;
6218 esac
6219
6220 # Disable languages that need other directories if these aren't available.
6221 for i in $subdir_requires; do
6222 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6223 case ,${enable_languages}, in
6224 *,${language},*)
6225 # Specifically requested language; tell them.
6226 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6227 ;;
6228 *)
6229 # Silently disable.
6230 add_this_lang=unsupported
6231 ;;
6232 esac
6233 done
6234
6235 # Disable Ada if no preexisting GNAT is available.
6236 case ,${enable_languages},:${language}:${have_gnat} in
6237 *,${language},*:ada:no)
6238 # Specifically requested language; tell them.
6239 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6240 ;;
6241 *:ada:no)
6242 # Silently disable.
6243 add_this_lang=unsupported
6244 ;;
6245 esac
6246
6247 # Disable a language that is unsupported by the target.
6248 case " $unsupported_languages " in
6249 *" $language "*)
6250 add_this_lang=unsupported
6251 ;;
6252 esac
6253
6254 case $add_this_lang in
6255 unsupported)
6256 # Remove language-dependent dirs.
6257 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6258 ;;
6259 no)
6260 # Remove language-dependent dirs; still show language as supported.
6261 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6262 potential_languages="${potential_languages}${language},"
6263 ;;
6264 yes)
6265 new_enable_languages="${new_enable_languages}${language},"
6266 potential_languages="${potential_languages}${language},"
6267 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6268 case "${boot_language}:,$enable_stage1_languages," in
6269 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6270 # Add to (comma-separated) list of stage 1 languages.
6271 case ",$stage1_languages," in
6272 *,$language,* | ,yes, | ,all,) ;;
6273 *) stage1_languages="${stage1_languages}${language}," ;;
6274 esac
6275 # We need to bootstrap any supporting libraries.
6276 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6277 ;;
6278 esac
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 done
6284
6285 # Check whether --enable-stage1-languages was given.
6286if test "${enable_stage1_languages+set}" = set; then :
6287 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6288 ,no,|,,)
6289 # Set it to something that will have no effect in the loop below
6290 enable_stage1_languages=c ;;
6291 ,yes,)
6292 enable_stage1_languages=`echo $new_enable_languages | \
6293 sed -e "s/^,//" -e "s/,$//" ` ;;
6294 *,all,*)
6295 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6296 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6297 esac
6298
6299 # Add "good" languages from enable_stage1_languages to stage1_languages,
6300 # while "bad" languages go in missing_languages. Leave no duplicates.
6301 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6302 case $potential_languages in
6303 *,$i,*)
6304 case $stage1_languages in
6305 *,$i,*) ;;
6306 *) stage1_languages="$stage1_languages$i," ;;
6307 esac ;;
6308 *)
6309 case $missing_languages in
6310 *,$i,*) ;;
6311 *) missing_languages="$missing_languages$i," ;;
6312 esac ;;
6313 esac
6314 done
6315fi
6316
6317
6318 # Remove leading/trailing commas that were added for simplicity
6319 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6320 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6321 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6322 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6323
6324 if test "x$missing_languages" != x; then
6325 as_fn_error "
6326The following requested languages could not be built: ${missing_languages}
6327Supported languages are: ${potential_languages}" "$LINENO" 5
6328 fi
6329 if test "x$new_enable_languages" != "x$enable_languages"; then
6330 echo The following languages will be built: ${new_enable_languages}
6331 enable_languages="$new_enable_languages"
6332 fi
6333
6334
6335 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6336fi
6337
6338# Handle --disable-<component> generically.
6339for dir in $configdirs $build_configdirs $target_configdirs ; do
6340 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6341 varname=`echo $dirname | sed -e s/+/_/g`
6342 if eval test x\${enable_${varname}} "=" xno ; then
6343 noconfigdirs="$noconfigdirs $dir"
6344 fi
6345done
6346
6347# Check for Boehm's garbage collector
6348# Check whether --enable-objc-gc was given.
6349if test "${enable_objc_gc+set}" = set; then :
6350 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6351 *,objc,*:*:yes:*target-boehm-gc*)
6352 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6353 ;;
6354esac
6355fi
6356
6357
6358# Make sure we only build Boehm's garbage collector if required.
6359case ,${enable_languages},:${enable_objc_gc} in
6360 *,objc,*:yes)
6361 # Keep target-boehm-gc if requested for Objective-C.
6362 ;;
6363 *)
6364 # Otherwise remove target-boehm-gc depending on target-libjava.
6365 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6366 noconfigdirs="$noconfigdirs target-boehm-gc"
6367 fi
6368 ;;
6369esac
6370
6371# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6372# $build_configdirs and $target_configdirs.
6373# If we have the source for $noconfigdirs entries, add them to $notsupp.
6374
6375notsupp=""
6376for dir in . $skipdirs $noconfigdirs ; do
6377 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6378 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6379 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6380 if test -r $srcdir/$dirname/configure ; then
6381 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6382 true
6383 else
6384 notsupp="$notsupp $dir"
6385 fi
6386 fi
6387 fi
6388 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6389 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6390 if test -r $srcdir/$dirname/configure ; then
6391 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6392 true
6393 else
6394 notsupp="$notsupp $dir"
6395 fi
6396 fi
6397 fi
6398 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6399 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6400 if test -r $srcdir/$dirname/configure ; then
6401 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6402 true
6403 else
6404 notsupp="$notsupp $dir"
6405 fi
6406 fi
6407 fi
6408done
6409
6410# Sometimes the tools are distributed with libiberty but with no other
6411# libraries. In that case, we don't want to build target-libiberty.
6412# Don't let libgcc imply libiberty either.
6413if test -n "${target_configdirs}" ; then
6414 libgcc=
6415 others=
6416 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6417 if test "$i" = "libgcc"; then
6418 libgcc=target-libgcc
6419 elif test "$i" != "libiberty" ; then
6420 if test -r $srcdir/$i/configure ; then
6421 others=yes;
6422 break;
6423 fi
6424 fi
6425 done
6426 if test -z "${others}" ; then
6427 target_configdirs=$libgcc
6428 fi
6429fi
6430
6431# Quietly strip out all directories which aren't configurable in this tree.
6432# This relies on all configurable subdirectories being autoconfiscated, which
6433# is now the case.
6434build_configdirs_all="$build_configdirs"
6435build_configdirs=
6436for i in ${build_configdirs_all} ; do
6437 j=`echo $i | sed -e s/build-//g`
6438 if test -f ${srcdir}/$j/configure ; then
6439 build_configdirs="${build_configdirs} $i"
6440 fi
6441done
6442
6443configdirs_all="$configdirs"
6444configdirs=
6445for i in ${configdirs_all} ; do
6446 if test -f ${srcdir}/$i/configure ; then
6447 configdirs="${configdirs} $i"
6448 fi
6449done
6450
6451target_configdirs_all="$target_configdirs"
6452target_configdirs=
6453for i in ${target_configdirs_all} ; do
6454 j=`echo $i | sed -e s/target-//g`
6455 if test -f ${srcdir}/$j/configure ; then
6456 target_configdirs="${target_configdirs} $i"
6457 fi
6458done
6459
6460# Produce a warning message for the subdirs we can't configure.
6461# This isn't especially interesting in the Cygnus tree, but in the individual
6462# FSF releases, it's important to let people know when their machine isn't
6463# supported by the one or two programs in a package.
6464
6465if test -n "${notsupp}" && test -z "${norecursion}" ; then
6466 # If $appdirs is non-empty, at least one of those directories must still
6467 # be configured, or we error out. (E.g., if the gas release supports a
6468 # specified target in some subdirs but not the gas subdir, we shouldn't
6469 # pretend that all is well.)
6470 if test -n "$appdirs" ; then
6471 for dir in $appdirs ; do
6472 if test -r $dir/Makefile.in ; then
6473 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 appdirs=""
6475 break
6476 fi
6477 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6478 appdirs=""
6479 break
6480 fi
6481 fi
6482 done
6483 if test -n "$appdirs" ; then
6484 echo "*** This configuration is not supported by this package." 1>&2
6485 exit 1
6486 fi
6487 fi
6488 # Okay, some application will build, or we don't care to check. Still
6489 # notify of subdirs not getting built.
6490 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6491 echo " ${notsupp}" 1>&2
6492 echo " (Any other directories should still work fine.)" 1>&2
6493fi
6494
6495case "$host" in
6496 *msdosdjgpp*)
6497 enable_gdbtk=no ;;
6498esac
6499
6500# To find our prefix, in gcc_cv_tool_prefix.
6501
6502# The user is always right.
6503if test "${PATH_SEPARATOR+set}" != set; then
6504 echo "#! /bin/sh" >conf$$.sh
6505 echo "exit 0" >>conf$$.sh
6506 chmod +x conf$$.sh
6507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6508 PATH_SEPARATOR=';'
6509 else
6510 PATH_SEPARATOR=:
6511 fi
6512 rm -f conf$$.sh
6513fi
6514
6515
6516
6517if test "x$exec_prefix" = xNONE; then
6518 if test "x$prefix" = xNONE; then
6519 gcc_cv_tool_prefix=$ac_default_prefix
6520 else
6521 gcc_cv_tool_prefix=$prefix
6522 fi
6523else
6524 gcc_cv_tool_prefix=$exec_prefix
6525fi
6526
6527# If there is no compiler in the tree, use the PATH only. In any
6528# case, if there is no compiler in the tree nobody should use
6529# AS_FOR_TARGET and LD_FOR_TARGET.
6530if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6531 gcc_version=`cat $srcdir/gcc/BASE-VER`
6532 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6533 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6534 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6535 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6538else
6539 gcc_cv_tool_dirs=
6540fi
6541
6542if test x$build = x$target && test -n "$md_exec_prefix"; then
6543 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6544fi
6545
6546
6547
6548copy_dirs=
6549
6550
6551# Check whether --with-build-sysroot was given.
6552if test "${with_build_sysroot+set}" = set; then :
6553 withval=$with_build_sysroot; if test x"$withval" != x ; then
6554 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6555 fi
6556else
6557 SYSROOT_CFLAGS_FOR_TARGET=
6558fi
6559
6560
6561
6562
6563# Check whether --with-debug-prefix-map was given.
6564if test "${with_debug_prefix_map+set}" = set; then :
6565 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6566 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6567 for debug_map in $withval; do
6568 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6569 done
6570 fi
6571else
6572 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6573fi
6574
6575
6576
6577# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6578# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6579# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6580# We want to ensure that TARGET libraries (which we know are built with
6581# gcc) are built with "-O2 -g", so include those options when setting
6582# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6583if test "x$CFLAGS_FOR_TARGET" = x; then
6584 CFLAGS_FOR_TARGET=$CFLAGS
6585 case " $CFLAGS " in
6586 *" -O2 "*) ;;
6587 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6588 esac
6589 case " $CFLAGS " in
6590 *" -g "* | *" -g3 "*) ;;
6591 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6592 esac
6593fi
6594
6595
6596if test "x$CXXFLAGS_FOR_TARGET" = x; then
6597 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6598 case " $CXXFLAGS " in
6599 *" -O2 "*) ;;
6600 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6601 esac
6602 case " $CXXFLAGS " in
6603 *" -g "* | *" -g3 "*) ;;
6604 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6605 esac
6606fi
6607
6608
6609# Handle --with-headers=XXX. If the value is not "yes", the contents of
6610# the named directory are copied to $(tooldir)/sys-include.
6611if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6612 if test x${is_cross_compiler} = xno ; then
6613 echo 1>&2 '***' --with-headers is only supported when cross compiling
6614 exit 1
6615 fi
6616 if test x"${with_headers}" != xyes ; then
6617 x=${gcc_cv_tool_prefix}
6618 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6619 fi
6620fi
6621
6622# Handle --with-libs=XXX. If the value is not "yes", the contents of
6623# the name directories are copied to $(tooldir)/lib. Multiple directories
6624# are permitted.
6625if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6626 if test x${is_cross_compiler} = xno ; then
6627 echo 1>&2 '***' --with-libs is only supported when cross compiling
6628 exit 1
6629 fi
6630 if test x"${with_libs}" != xyes ; then
6631 # Copy the libraries in reverse order, so that files in the first named
6632 # library override files in subsequent libraries.
6633 x=${gcc_cv_tool_prefix}
6634 for l in ${with_libs}; do
6635 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6636 done
6637 fi
6638fi
6639
6640# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6641#
6642# This is done by determining whether or not the appropriate directory
6643# is available, and by checking whether or not specific configurations
6644# have requested that this magic not happen.
6645#
6646# The command line options always override the explicit settings in
6647# configure.in, and the settings in configure.in override this magic.
6648#
6649# If the default for a toolchain is to use GNU as and ld, and you don't
6650# want to do that, then you should use the --without-gnu-as and
6651# --without-gnu-ld options for the configure script. Similarly, if
6652# the default is to use the included zlib and you don't want to do that,
6653# you should use the --with-system-zlib option for the configure script.
6654
6655if test x${use_gnu_as} = x &&
6656 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6657 with_gnu_as=yes
6658 extra_host_args="$extra_host_args --with-gnu-as"
6659fi
6660
6661if test x${use_gnu_ld} = x &&
6662 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6663 with_gnu_ld=yes
6664 extra_host_args="$extra_host_args --with-gnu-ld"
6665fi
6666
6667if test x${use_included_zlib} = x &&
6668 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6669 :
6670else
6671 with_system_zlib=yes
6672 extra_host_args="$extra_host_args --with-system-zlib"
6673fi
6674
6675# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6676# can detect this case.
6677
6678if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6679 with_newlib=yes
6680 extra_host_args="$extra_host_args --with-newlib"
6681fi
6682
6683# Handle ${copy_dirs}
6684set fnord ${copy_dirs}
6685shift
6686while test $# != 0 ; do
6687 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6688 :
6689 else
6690 echo Copying $1 to $2
6691
6692 # Use the install script to create the directory and all required
6693 # parent directories.
6694 if test -d $2 ; then
6695 :
6696 else
6697 echo >config.temp
6698 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6699 fi
6700
6701 # Copy the directory, assuming we have tar.
6702 # FIXME: Should we use B in the second tar? Not all systems support it.
6703 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6704
6705 # It is the responsibility of the user to correctly adjust all
6706 # symlinks. If somebody can figure out how to handle them correctly
6707 # here, feel free to add the code.
6708
6709 echo $1 > $2/COPIED
6710 fi
6711 shift; shift
6712done
6713
6714# Determine a target-dependent exec_prefix that the installed
6715# gcc will search in. Keep this list sorted by triplet, with
6716# the *-*-osname triplets last.
6717md_exec_prefix=
6718case "${target}" in
6719 alpha*-*-*vms*)
6720 md_exec_prefix=/gnu/lib/gcc-lib
6721 ;;
6722 i[34567]86-pc-msdosdjgpp*)
6723 md_exec_prefix=/dev/env/DJDIR/bin
6724 ;;
6725 i[34567]86-*-sco3.2v5*)
6726 if test $with_gnu_as = yes; then
6727 md_exec_prefix=/usr/gnu/bin
6728 else
6729 md_exec_prefix=/usr/ccs/bin/elf
6730 fi
6731 ;;
6732
6733 mn10300-*-* | \
6734 powerpc-*-chorusos* | \
6735 powerpc*-*-eabi* | \
6736 powerpc*-*-sysv* | \
6737 powerpc*-*-kaos* | \
6738 s390x-ibm-tpf*)
6739 md_exec_prefix=/usr/ccs/bin
6740 ;;
6741 sparc64-*-elf*)
6742 ;;
6743 v850*-*-*)
6744 md_exec_prefix=/usr/ccs/bin
6745 ;;
6746 xtensa*-*-elf*)
6747 ;;
6748
6749 *-*-beos* | \
6750 *-*-elf* | \
6751 *-*-hpux* | \
6752 *-*-netware* | \
6753 *-*-nto-qnx* | \
6754 *-*-rtems* | \
6755 *-*-solaris2* | \
6756 *-*-sysv[45]* | \
6757 *-*-vxworks* | \
6758 *-wrs-windiss)
6759 md_exec_prefix=/usr/ccs/bin
6760 ;;
6761esac
6762
6763extra_arflags_for_target=
6764extra_nmflags_for_target=
6765extra_ranlibflags_for_target=
6766target_makefile_frag=/dev/null
6767case "${target}" in
6768 mep*-*-*)
6769 target_makefile_frag="config/mt-mep"
6770 ;;
6771 spu-*-*)
6772 target_makefile_frag="config/mt-spu"
6773 ;;
6774 mips*-sde-elf*)
6775 target_makefile_frag="config/mt-sde"
6776 ;;
6777 mipsisa*-*-elfoabi*)
6778 target_makefile_frag="config/mt-mips-elfoabi"
6779 ;;
6780 mips*-*-*linux* | mips*-*-gnu*)
6781 target_makefile_frag="config/mt-mips-gnu"
6782 ;;
6783 *-*-netware*)
6784 target_makefile_frag="config/mt-netware"
6785 ;;
6786 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6787 target_makefile_frag="config/mt-gnu"
6788 ;;
6789 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6790 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6791 # commands to handle both 32-bit and 64-bit objects. These flags are
6792 # harmless if we're using GNU nm or ar.
6793 extra_arflags_for_target=" -X32_64"
6794 extra_nmflags_for_target=" -B -X32_64"
6795 ;;
6796 *-*-darwin[3-9]*)
6797 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6798 extra_ranlibflags_for_target=" -c"
6799 ;;
6800 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6801 target_makefile_frag="config/mt-wince"
6802 ;;
6803esac
6804
6805alphaieee_frag=/dev/null
6806case $target in
6807 alpha*-*-*)
6808 # This just makes sure to use the -mieee option to build target libs.
6809 # This should probably be set individually by each library.
6810 alphaieee_frag="config/mt-alphaieee"
6811 ;;
6812esac
6813
6814# If --enable-target-optspace always use -Os instead of -O2 to build
6815# the target libraries, similarly if it is not specified, use -Os
6816# on selected platforms.
6817ospace_frag=/dev/null
6818case "${enable_target_optspace}:${target}" in
6819 yes:*)
6820 ospace_frag="config/mt-ospace"
6821 ;;
6822 :d30v-*)
6823 ospace_frag="config/mt-d30v"
6824 ;;
6825 :m32r-* | :d10v-* | :fr30-*)
6826 ospace_frag="config/mt-ospace"
6827 ;;
6828 no:* | :*)
6829 ;;
6830 *)
6831 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6832 ;;
6833esac
6834
6835# Default to using --with-stabs for certain targets.
6836if test x${with_stabs} = x ; then
6837 case "${target}" in
6838 mips*-*-irix[56]*)
6839 ;;
6840 mips*-*-* | alpha*-*-osf*)
6841 with_stabs=yes;
6842 extra_host_args="${extra_host_args} --with-stabs"
6843 ;;
6844 esac
6845fi
6846
6847# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6848# them automatically.
6849case "${host}" in
6850 hppa*64*-*-hpux11*)
6851 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6852 ;;
6853esac
6854
6855# Some systems (e.g., one of the i386-aix systems the gas testers are
6856# using) don't handle "\$" correctly, so don't use it here.
6857tooldir='${exec_prefix}'/${target_noncanonical}
6858build_tooldir=${tooldir}
6859
6860# Create a .gdbinit file which runs the one in srcdir
6861# and tells GDB to look there for source files.
6862
6863if test -r ${srcdir}/.gdbinit ; then
6864 case ${srcdir} in
6865 .) ;;
6866 *) cat > ./.gdbinit <<EOF
6867# ${NO_EDIT}
6868dir ${srcdir}
6869dir .
6870source ${srcdir}/.gdbinit
6871EOF
6872 ;;
6873 esac
6874fi
6875
6876# Make sure that the compiler is able to generate an executable. If it
6877# can't, we are probably in trouble. We don't care whether we can run the
6878# executable--we might be using a cross compiler--we only care whether it
6879# can be created. At this point the main configure script has set CC.
6880we_are_ok=no
6881echo "int main () { return 0; }" > conftest.c
6882${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6883if test $? = 0 ; then
6884 if test -s conftest || test -s conftest.exe ; then
6885 we_are_ok=yes
6886 fi
6887fi
6888case $we_are_ok in
6889 no)
6890 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6891 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6892 rm -f conftest*
6893 exit 1
6894 ;;
6895esac
6896rm -f conftest*
6897
6898# The Solaris /usr/ucb/cc compiler does not appear to work.
6899case "${host}" in
6900 sparc-sun-solaris2*)
6901 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6902 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6903 could_use=
6904 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6905 if test -d /opt/cygnus/bin ; then
6906 if test "$could_use" = "" ; then
6907 could_use="/opt/cygnus/bin"
6908 else
6909 could_use="$could_use or /opt/cygnus/bin"
6910 fi
6911 fi
6912 if test "$could_use" = "" ; then
6913 echo "Warning: compilation may fail because you're using"
6914 echo "/usr/ucb/cc. You should change your PATH or CC "
6915 echo "variable and rerun configure."
6916 else
6917 echo "Warning: compilation may fail because you're using"
6918 echo "/usr/ucb/cc, when you should use the C compiler from"
6919 echo "$could_use. You should change your"
6920 echo "PATH or CC variable and rerun configure."
6921 fi
6922 fi
6923 ;;
6924esac
6925
6926# Decide which environment variable is used to find dynamic libraries.
6927case "${host}" in
6928 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6929 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6930 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6931 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6932esac
6933
6934# On systems where the dynamic library environment variable is PATH,
6935# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6936# built executables to PATH.
6937if test "$RPATH_ENVVAR" = PATH; then
6938 GCC_SHLIB_SUBDIR=/shlib
6939else
6940 GCC_SHLIB_SUBDIR=
6941fi
6942
6943# Record target_configdirs and the configure arguments for target and
6944# build configuration in Makefile.
6945target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6946build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6947
6948# If we are building libgomp, bootstrap it.
6949if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6950 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6951fi
6952
6953# Determine whether gdb needs tk/tcl or not.
6954# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6955# and in that case we want gdb to be built without tk. Ugh!
6956# In fact I believe gdb is the *only* package directly dependent on tk,
6957# so we should be able to put the 'maybe's in unconditionally and
6958# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6959# 100% sure that that's safe though.
6960
6961gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6962case "$enable_gdbtk" in
6963 no)
6964 GDB_TK="" ;;
6965 yes)
6966 GDB_TK="${gdb_tk}" ;;
6967 *)
6968 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6969 # distro. Eventually someone will fix this and move Insight, nee
6970 # gdbtk to a separate directory.
6971 if test -d ${srcdir}/gdb/gdbtk ; then
6972 GDB_TK="${gdb_tk}"
6973 else
6974 GDB_TK=""
6975 fi
6976 ;;
6977esac
6978CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6979INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6980
6981# Strip out unwanted targets.
6982
6983# While at that, we remove Makefiles if we were started for recursive
6984# configuration, so that the top-level Makefile reconfigures them,
6985# like we used to do when configure itself was recursive.
6986
6987# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6988# but now we're fixing up the Makefile ourselves with the additional
6989# commands passed to AC_CONFIG_FILES. Use separate variables
6990# extrasub-{build,host,target} not because there is any reason to split
6991# the substitutions up that way, but only to remain below the limit of
6992# 99 commands in a script, for HP-UX sed.
6993# Do not nest @if/@endif pairs, because configure will not warn you at all.
6994
6995# Check whether --enable-bootstrap was given.
6996if test "${enable_bootstrap+set}" = set; then :
6997 enableval=$enable_bootstrap;
6998else
6999 enable_bootstrap=default
7000fi
7001
7002
7003# Issue errors and warnings for invalid/strange bootstrap combinations.
7004case "$configdirs" in
7005 *gcc*) have_compiler=yes ;;
7006 *) have_compiler=no ;;
7007esac
7008
7009case "$have_compiler:$host:$target:$enable_bootstrap" in
7010 *:*:*:no) ;;
7011
7012 # Default behavior. Enable bootstrap if we have a compiler
7013 # and we are in a native configuration.
7014 yes:$build:$build:default)
7015 enable_bootstrap=yes ;;
7016
7017 *:*:*:default)
7018 enable_bootstrap=no ;;
7019
7020 # We have a compiler and we are in a native configuration, bootstrap is ok
7021 yes:$build:$build:yes)
7022 ;;
7023
7024 # Other configurations, but we have a compiler. Assume the user knows
7025 # what he's doing.
7026 yes:*:*:yes)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7028$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7029 ;;
7030
7031 # No compiler: if they passed --enable-bootstrap explicitly, fail
7032 no:*:*:yes)
7033 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7034
7035 # Fail if wrong command line
7036 *)
7037 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7038 ;;
7039esac
7040
7041case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7042 *,c++,*:yes:yes) ;;
7043 *:yes:yes)
7044 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7045 ;;
7046esac
7047
7048case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7049 yes:yes:*\ gold\ *:*,c++,*) ;;
7050 yes:yes:*\ gold\ *:*)
7051 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7052 ;;
7053esac
7054
7055# Adjust the toplevel makefile according to whether bootstrap was selected.
7056case $enable_bootstrap in
7057 yes)
7058 bootstrap_suffix=bootstrap
7059 BUILD_CONFIG=bootstrap-debug
7060 ;;
7061 no)
7062 bootstrap_suffix=no-bootstrap
7063 BUILD_CONFIG=
7064 ;;
7065esac
7066
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7068$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7069
7070
7071# Check whether --with-build-config was given.
7072if test "${with_build_config+set}" = set; then :
7073 withval=$with_build_config; case $with_build_config in
7074 yes) with_build_config= ;;
7075 no) with_build_config= BUILD_CONFIG= ;;
7076 esac
7077fi
7078
7079
7080if test "x${with_build_config}" != x; then
7081 BUILD_CONFIG=$with_build_config
7082else
7083 case $BUILD_CONFIG in
7084 bootstrap-debug)
7085 if echo "int f (void) { return 0; }" > conftest.c &&
7086 ${CC} -c conftest.c &&
7087 mv conftest.o conftest.o.g0 &&
7088 ${CC} -c -g conftest.c &&
7089 mv conftest.o conftest.o.g &&
7090 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7091 :
7092 else
7093 BUILD_CONFIG=
7094 fi
7095 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7096 ;;
7097 esac
7098fi
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7100$as_echo "$BUILD_CONFIG" >&6; }
7101
7102
7103extrasub_build=
7104for module in ${build_configdirs} ; do
7105 if test -z "${no_recursion}" \
7106 && test -f ${build_subdir}/${module}/Makefile; then
7107 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7108 rm -f ${build_subdir}/${module}/Makefile
7109 fi
7110 extrasub_build="$extrasub_build
7111/^@if build-$module\$/d
7112/^@endif build-$module\$/d
7113/^@if build-$module-$bootstrap_suffix\$/d
7114/^@endif build-$module-$bootstrap_suffix\$/d"
7115done
7116extrasub_host=
7117for module in ${configdirs} ; do
7118 if test -z "${no_recursion}"; then
7119 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7120 if test -f ${file}; then
7121 echo 1>&2 "*** removing ${file} to force reconfigure"
7122 rm -f ${file}
7123 fi
7124 done
7125 fi
7126 extrasub_host="$extrasub_host
7127/^@if $module\$/d
7128/^@endif $module\$/d
7129/^@if $module-$bootstrap_suffix\$/d
7130/^@endif $module-$bootstrap_suffix\$/d"
7131done
7132extrasub_target=
7133for module in ${target_configdirs} ; do
7134 if test -z "${no_recursion}" \
7135 && test -f ${target_subdir}/${module}/Makefile; then
7136 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7137 rm -f ${target_subdir}/${module}/Makefile
7138 fi
7139
7140 # We only bootstrap target libraries listed in bootstrap_target_libs.
7141 case $bootstrap_target_libs in
7142 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7143 *) target_bootstrap_suffix=no-bootstrap ;;
7144 esac
7145
7146 extrasub_target="$extrasub_target
7147/^@if target-$module\$/d
7148/^@endif target-$module\$/d
7149/^@if target-$module-$target_bootstrap_suffix\$/d
7150/^@endif target-$module-$target_bootstrap_suffix\$/d"
7151done
7152
7153# Do the final fixup along with target modules.
7154extrasub_target="$extrasub_target
7155/^@if /,/^@endif /d"
7156
7157# Create the serialization dependencies. This uses a temporary file.
7158
7159# Check whether --enable-serial-configure was given.
7160if test "${enable_serial_configure+set}" = set; then :
7161 enableval=$enable_serial_configure;
7162fi
7163
7164
7165case ${enable_serial_configure} in
7166 yes)
7167 enable_serial_build_configure=yes
7168 enable_serial_host_configure=yes
7169 enable_serial_target_configure=yes
7170 ;;
7171esac
7172
7173# These force 'configure's to be done one at a time, to avoid problems
7174# with contention over a shared config.cache.
7175rm -f serdep.tmp
7176echo '# serdep.tmp' > serdep.tmp
7177olditem=
7178test "x${enable_serial_build_configure}" = xyes &&
7179for item in ${build_configdirs} ; do
7180 case ${olditem} in
7181 "") ;;
7182 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7183 esac
7184 olditem=${item}
7185done
7186olditem=
7187test "x${enable_serial_host_configure}" = xyes &&
7188for item in ${configdirs} ; do
7189 case ${olditem} in
7190 "") ;;
7191 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7192 esac
7193 olditem=${item}
7194done
7195olditem=
7196test "x${enable_serial_target_configure}" = xyes &&
7197for item in ${target_configdirs} ; do
7198 case ${olditem} in
7199 "") ;;
7200 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7201 esac
7202 olditem=${item}
7203done
7204serialization_dependencies=serdep.tmp
7205
7206
7207# Base args. Strip norecursion, cache-file, srcdir, host, build,
7208# target, nonopt, and variable assignments. These are the ones we
7209# might not want to pass down to subconfigures. The exception being
7210# --cache-file=/dev/null, which is used to turn off the use of cache
7211# files altogether, and which should be passed on to subconfigures.
7212# Also strip program-prefix, program-suffix, and program-transform-name,
7213# so that we can pass down a consistent program-transform-name.
7214baseargs=
7215keep_next=no
7216skip_next=no
7217eval "set -- $ac_configure_args"
7218for ac_arg
7219do
7220 if test X"$skip_next" = X"yes"; then
7221 skip_next=no
7222 continue
7223 fi
7224 if test X"$keep_next" = X"yes"; then
7225 case $ac_arg in
7226 *\'*)
7227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7228 esac
7229 baseargs="$baseargs '$ac_arg'"
7230 keep_next=no
7231 continue
7232 fi
7233
7234 # Handle separated arguments. Based on the logic generated by
7235 # autoconf 2.59.
7236 case $ac_arg in
7237 *=* | --config-cache | -C | -disable-* | --disable-* \
7238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7240 | -with-* | --with-* | -without-* | --without-* | --x)
7241 separate_arg=no
7242 ;;
7243 -*)
7244 separate_arg=yes
7245 ;;
7246 *)
7247 separate_arg=no
7248 ;;
7249 esac
7250
7251 case "$ac_arg" in
7252 --cache-file=/dev/null | \
7253 -cache-file=/dev/null )
7254 # Handled here to avoid the test to skip args below.
7255 baseargs="$baseargs '$ac_arg'"
7256 # Assert: $separate_arg should always be no.
7257 keep_next=$separate_arg
7258 ;;
7259 --no*)
7260 continue
7261 ;;
7262 --c* | \
7263 --sr* | \
7264 --ho* | \
7265 --bu* | \
7266 --t* | \
7267 --program-* | \
7268 -cache_file* | \
7269 -srcdir* | \
7270 -host* | \
7271 -build* | \
7272 -target* | \
7273 -program-prefix* | \
7274 -program-suffix* | \
7275 -program-transform-name* )
7276 skip_next=$separate_arg
7277 continue
7278 ;;
7279 -*)
7280 # An option. Add it.
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=$separate_arg
7287 ;;
7288 *)
7289 # Either a variable assignment, or a nonopt (triplet). Don't
7290 # pass it down; let the Makefile handle this.
7291 continue
7292 ;;
7293 esac
7294done
7295# Remove the initial space we just introduced and, as these will be
7296# expanded by make, quote '$'.
7297baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7298
7299# Add in --program-transform-name, after --program-prefix and
7300# --program-suffix have been applied to it. Autoconf has already
7301# doubled dollar signs and backslashes in program_transform_name; we want
7302# the backslashes un-doubled, and then the entire thing wrapped in single
7303# quotes, because this will be expanded first by make and then by the shell.
7304# Also, because we want to override the logic in subdir configure scripts to
7305# choose program_transform_name, replace any s,x,x, with s,y,y,.
7306sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7307${program_transform_name}
7308EOF_SED
7309gcc_transform_name=`cat conftestsed.out`
7310rm -f conftestsed.out
7311baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7312if test "$silent" = yes; then
7313 baseargs="$baseargs --silent"
7314fi
7315baseargs="$baseargs --disable-option-checking"
7316
7317# Record and document user additions to sub configure arguments.
7318
7319
7320
7321
7322# For the build-side libraries, we just need to pretend we're native,
7323# and not use the same cache file. Multilibs are neither needed nor
7324# desired.
7325build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7326
7327# For host modules, accept cache file option, or specification as blank.
7328case "${cache_file}" in
7329"") # empty
7330 cache_file_option="" ;;
7331/* | [A-Za-z]:[\\/]* ) # absolute path
7332 cache_file_option="--cache-file=${cache_file}" ;;
7333*) # relative path
7334 cache_file_option="--cache-file=../${cache_file}" ;;
7335esac
7336
7337# Host dirs don't like to share a cache file either, horribly enough.
7338# This seems to be due to autoconf 2.5x stupidity.
7339host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7340
7341target_configargs="$target_configargs ${baseargs}"
7342
7343# Passing a --with-cross-host argument lets the target libraries know
7344# whether they are being built with a cross-compiler or being built
7345# native. However, it would be better to use other mechanisms to make the
7346# sorts of decisions they want to make on this basis. Please consider
7347# this option to be deprecated. FIXME.
7348if test x${is_cross_compiler} = xyes ; then
7349 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7350fi
7351
7352# Default to --enable-multilib.
7353if test x${enable_multilib} = x ; then
7354 target_configargs="--enable-multilib ${target_configargs}"
7355fi
7356
7357# Pass --with-newlib if appropriate. Note that target_configdirs has
7358# changed from the earlier setting of with_newlib.
7359if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7360 target_configargs="--with-newlib ${target_configargs}"
7361fi
7362
7363# Different target subdirs use different values of certain variables
7364# (notably CXX). Worse, multilibs use *lots* of different values.
7365# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7366# it doesn't automatically accept command-line overrides of them.
7367# This means it's not safe for target subdirs to share a cache file,
7368# which is disgusting, but there you have it. Hopefully this can be
7369# fixed in future. It's still worthwhile to use a cache file for each
7370# directory. I think.
7371
7372# Pass the appropriate --build, --host, --target and --cache-file arguments.
7373# We need to pass --target, as newer autoconf's requires consistency
7374# for target_alias and gcc doesn't manage it consistently.
7375target_configargs="--cache-file=./config.cache ${target_configargs}"
7376
7377FLAGS_FOR_TARGET=
7378case " $target_configdirs " in
7379 *" newlib "*)
7380 case " $target_configargs " in
7381 *" --with-newlib "*)
7382 case "$target" in
7383 *-cygwin*)
7384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7385 ;;
7386 esac
7387
7388 # If we're not building GCC, don't discard standard headers.
7389 if test -d ${srcdir}/gcc; then
7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7391
7392 if test "${build}" != "${host}"; then
7393 # On Canadian crosses, CC_FOR_TARGET will have already been set
7394 # by `configure', so we won't have an opportunity to add -Bgcc/
7395 # to it. This is right: we don't want to search that directory
7396 # for binaries, but we want the header files in there, so add
7397 # them explicitly.
7398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7399
7400 # Someone might think of using the pre-installed headers on
7401 # Canadian crosses, in case the installed compiler is not fully
7402 # compatible with the compiler being built. In this case, it
7403 # would be better to flag an error than risking having
7404 # incompatible object files being constructed. We can't
7405 # guarantee that an error will be flagged, but let's hope the
7406 # compiler will do it, when presented with incompatible header
7407 # files.
7408 fi
7409 fi
7410
7411 case "${target}-${is_cross_compiler}" in
7412 i[3456789]86-*-linux*-no)
7413 # Here host == target, so we don't need to build gcc,
7414 # so we don't want to discard standard headers.
7415 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7416 ;;
7417 *)
7418 # If we're building newlib, use its generic headers last, but search
7419 # for any libc-related directories first (so make it the last -B
7420 # switch).
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7422
7423 # If we're building libgloss, find the startup file, simulator library
7424 # and linker script.
7425 case " $target_configdirs " in
7426 *" libgloss "*)
7427 # Look for startup file, simulator library and maybe linker script.
7428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7429 # Look for libnosys.a in case the target needs it.
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7431 # Most targets have the linker script in the source directory.
7432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7433 ;;
7434 esac
7435 ;;
7436 esac
7437 ;;
7438 esac
7439 ;;
7440esac
7441
7442case "$target" in
7443 x86_64-*mingw* | *-w64-mingw*)
7444 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7445 # however, use a symlink named 'mingw' in ${prefix} .
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7447 ;;
7448 *-mingw*)
7449 # MinGW can't be handled as Cygwin above since it does not use newlib.
7450 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'
7451 ;;
7452esac
7453
7454# Allow the user to override the flags for
7455# our build compiler if desired.
7456if test x"${build}" = x"${host}" ; then
7457 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7458 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7459 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7460fi
7461
7462# On Canadian crosses, we'll be searching the right directories for
7463# the previously-installed cross compiler, so don't bother to add
7464# flags for directories within the install tree of the compiler
7465# being built; programs in there won't even run.
7466if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7467 # Search for pre-installed headers if nothing else fits.
7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7469fi
7470
7471if test "x${use_gnu_ld}" = x &&
7472 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7473 # Arrange for us to find uninstalled linker scripts.
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7475fi
7476
7477# Search for other target-specific linker scripts and such.
7478case "${target}" in
7479 mep*)
7480 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7481 ;;
7482esac
7483
7484# Makefile fragments.
7485for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7486do
7487 eval fragval=\$$frag
7488 if test $fragval != /dev/null; then
7489 eval $frag=${srcdir}/$fragval
7490 fi
7491done
7492
7493
7494
7495
7496
7497# Miscellanea: directories, flags, etc.
7498
7499
7500
7501
7502
7503
7504
7505
7506# Build module lists & subconfigure args.
7507
7508
7509
7510# Host module lists & subconfigure args.
7511
7512
7513
7514
7515# Target module lists & subconfigure args.
7516
7517
7518
7519# Build tools.
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538# Generate default definitions for YACC, M4, LEX and other programs that run
7539# on the build machine. These are used if the Makefile can't locate these
7540# programs in objdir.
7541MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7542
7543for ac_prog in 'bison -y' byacc yacc
7544do
7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
7546set dummy $ac_prog; ac_word=$2
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_YACC+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$YACC"; then
7553 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_YACC="$ac_prog"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567 done
7568IFS=$as_save_IFS
7569
7570fi
7571fi
7572YACC=$ac_cv_prog_YACC
7573if test -n "$YACC"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7575$as_echo "$YACC" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 test -n "$YACC" && break
7583done
7584test -n "$YACC" || YACC="$MISSING bison -y"
7585
7586case " $build_configdirs " in
7587 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7588 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7589esac
7590
7591for ac_prog in bison
7592do
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594set dummy $ac_prog; ac_word=$2
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596$as_echo_n "checking for $ac_word... " >&6; }
7597if test "${ac_cv_prog_BISON+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599else
7600 if test -n "$BISON"; then
7601 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_BISON="$ac_prog"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614done
7615 done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620BISON=$ac_cv_prog_BISON
7621if test -n "$BISON"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7623$as_echo "$BISON" >&6; }
7624else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629
7630 test -n "$BISON" && break
7631done
7632test -n "$BISON" || BISON="$MISSING bison"
7633
7634case " $build_configdirs " in
7635 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7636esac
7637
7638for ac_prog in gm4 gnum4 m4
7639do
7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
7641set dummy $ac_prog; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if test "${ac_cv_prog_M4+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646else
7647 if test -n "$M4"; then
7648 ac_cv_prog_M4="$M4" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_M4="$ac_prog"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662 done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667M4=$ac_cv_prog_M4
7668if test -n "$M4"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7670$as_echo "$M4" >&6; }
7671else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677 test -n "$M4" && break
7678done
7679test -n "$M4" || M4="$MISSING m4"
7680
7681case " $build_configdirs " in
7682 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7683esac
7684
7685for ac_prog in flex lex
7686do
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if test "${ac_cv_prog_LEX+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693else
7694 if test -n "$LEX"; then
7695 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_LEX="$ac_prog"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708done
7709 done
7710IFS=$as_save_IFS
7711
7712fi
7713fi
7714LEX=$ac_cv_prog_LEX
7715if test -n "$LEX"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7717$as_echo "$LEX" >&6; }
7718else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721fi
7722
7723
7724 test -n "$LEX" && break
7725done
7726test -n "$LEX" || LEX="$MISSING flex"
7727
7728case " $build_configdirs " in
7729 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7730 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7731esac
7732
7733for ac_prog in flex
7734do
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736set dummy $ac_prog; ac_word=$2
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_FLEX+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741else
7742 if test -n "$FLEX"; then
7743 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_FLEX="$ac_prog"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756done
7757 done
7758IFS=$as_save_IFS
7759
7760fi
7761fi
7762FLEX=$ac_cv_prog_FLEX
7763if test -n "$FLEX"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7765$as_echo "$FLEX" >&6; }
7766else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771
7772 test -n "$FLEX" && break
7773done
7774test -n "$FLEX" || FLEX="$MISSING flex"
7775
7776case " $build_configdirs " in
7777 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7778esac
7779
7780for ac_prog in makeinfo
7781do
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783set dummy $ac_prog; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788else
7789 if test -n "$MAKEINFO"; then
7790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_MAKEINFO="$ac_prog"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804 done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809MAKEINFO=$ac_cv_prog_MAKEINFO
7810if test -n "$MAKEINFO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7812$as_echo "$MAKEINFO" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819 test -n "$MAKEINFO" && break
7820done
7821test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7822
7823case " $build_configdirs " in
7824 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7825 *)
7826
7827 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7828 # higher, else we use the "missing" dummy.
7829 if ${MAKEINFO} --version \
7830 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7831 :
7832 else
7833 MAKEINFO="$MISSING makeinfo"
7834 fi
7835 ;;
7836
7837esac
7838
7839# FIXME: expect and dejagnu may become build tools?
7840
7841for ac_prog in expect
7842do
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844set dummy $ac_prog; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if test "${ac_cv_prog_EXPECT+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849else
7850 if test -n "$EXPECT"; then
7851 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_prog_EXPECT="$ac_prog"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865 done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870EXPECT=$ac_cv_prog_EXPECT
7871if test -n "$EXPECT"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7873$as_echo "$EXPECT" >&6; }
7874else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879
7880 test -n "$EXPECT" && break
7881done
7882test -n "$EXPECT" || EXPECT="expect"
7883
7884case " $configdirs " in
7885 *" expect "*)
7886 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7887 ;;
7888esac
7889
7890for ac_prog in runtest
7891do
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893set dummy $ac_prog; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 if test -n "$RUNTEST"; then
7900 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_RUNTEST="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914 done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919RUNTEST=$ac_cv_prog_RUNTEST
7920if test -n "$RUNTEST"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7922$as_echo "$RUNTEST" >&6; }
7923else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928
7929 test -n "$RUNTEST" && break
7930done
7931test -n "$RUNTEST" || RUNTEST="runtest"
7932
7933case " $configdirs " in
7934 *" dejagnu "*)
7935 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7936 ;;
7937esac
7938
7939
7940# Host tools.
7941ncn_tool_prefix=
7942test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7943ncn_target_tool_prefix=
7944test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7945
7946
7947
7948if test -n "$AR"; then
7949 ac_cv_prog_AR=$AR
7950elif test -n "$ac_cv_prog_AR"; then
7951 AR=$ac_cv_prog_AR
7952fi
7953
7954if test -n "$ac_cv_prog_AR"; then
7955 for ncn_progname in ar; do
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957set dummy ${ncn_progname}; ac_word=$2
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if test "${ac_cv_prog_AR+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962else
7963 if test -n "$AR"; then
7964 ac_cv_prog_AR="$AR" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_AR="${ncn_progname}"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978 done
7979IFS=$as_save_IFS
7980
7981fi
7982fi
7983AR=$ac_cv_prog_AR
7984if test -n "$AR"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7986$as_echo "$AR" >&6; }
7987else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992
7993 done
7994fi
7995
7996for ncn_progname in ar; do
7997 if test -n "$ncn_tool_prefix"; then
7998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7999set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if test "${ac_cv_prog_AR+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 if test -n "$AR"; then
8006 ac_cv_prog_AR="$AR" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019done
8020 done
8021IFS=$as_save_IFS
8022
8023fi
8024fi
8025AR=$ac_cv_prog_AR
8026if test -n "$AR"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8028$as_echo "$AR" >&6; }
8029else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_progname}; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_AR="${ncn_progname}"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059 done
8060IFS=$as_save_IFS
8061
8062fi
8063fi
8064AR=$ac_cv_prog_AR
8065if test -n "$AR"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067$as_echo "$AR" >&6; }
8068else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
8072
8073
8074 fi
8075 test -n "$ac_cv_prog_AR" && break
8076done
8077
8078if test -z "$ac_cv_prog_AR" ; then
8079 set dummy ar
8080 if test $build = $host ; then
8081 AR="$2"
8082 else
8083 AR="${ncn_tool_prefix}$2"
8084 fi
8085fi
8086
8087
8088
8089if test -n "$AS"; then
8090 ac_cv_prog_AS=$AS
8091elif test -n "$ac_cv_prog_AS"; then
8092 AS=$ac_cv_prog_AS
8093fi
8094
8095if test -n "$ac_cv_prog_AS"; then
8096 for ncn_progname in as; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if test "${ac_cv_prog_AS+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 if test -n "$AS"; then
8105 ac_cv_prog_AS="$AS" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_AS="${ncn_progname}"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119 done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124AS=$ac_cv_prog_AS
8125if test -n "$AS"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8127$as_echo "$AS" >&6; }
8128else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134 done
8135fi
8136
8137for ncn_progname in as; do
8138 if test -n "$ncn_tool_prefix"; then
8139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8140set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142$as_echo_n "checking for $ac_word... " >&6; }
8143if test "${ac_cv_prog_AS+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145else
8146 if test -n "$AS"; then
8147 ac_cv_prog_AS="$AS" # Let the user override the test.
8148else
8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161 done
8162IFS=$as_save_IFS
8163
8164fi
8165fi
8166AS=$ac_cv_prog_AS
8167if test -n "$AS"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8169$as_echo "$AS" >&6; }
8170else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172$as_echo "no" >&6; }
8173fi
8174
8175
8176 fi
8177 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_progname}; ac_word=$2
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_AS="${ncn_progname}"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199done
8200 done
8201IFS=$as_save_IFS
8202
8203fi
8204fi
8205AS=$ac_cv_prog_AS
8206if test -n "$AS"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208$as_echo "$AS" >&6; }
8209else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
8212fi
8213
8214
8215 fi
8216 test -n "$ac_cv_prog_AS" && break
8217done
8218
8219if test -z "$ac_cv_prog_AS" ; then
8220 set dummy as
8221 if test $build = $host ; then
8222 AS="$2"
8223 else
8224 AS="${ncn_tool_prefix}$2"
8225 fi
8226fi
8227
8228
8229
8230if test -n "$DLLTOOL"; then
8231 ac_cv_prog_DLLTOOL=$DLLTOOL
8232elif test -n "$ac_cv_prog_DLLTOOL"; then
8233 DLLTOOL=$ac_cv_prog_DLLTOOL
8234fi
8235
8236if test -n "$ac_cv_prog_DLLTOOL"; then
8237 for ncn_progname in dlltool; do
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239set dummy ${ncn_progname}; ac_word=$2
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244else
8245 if test -n "$DLLTOOL"; then
8246 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8247else
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_DLLTOOL="${ncn_progname}"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259done
8260 done
8261IFS=$as_save_IFS
8262
8263fi
8264fi
8265DLLTOOL=$ac_cv_prog_DLLTOOL
8266if test -n "$DLLTOOL"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8268$as_echo "$DLLTOOL" >&6; }
8269else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274
8275 done
8276fi
8277
8278for ncn_progname in dlltool; do
8279 if test -n "$ncn_tool_prefix"; then
8280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8281set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286else
8287 if test -n "$DLLTOOL"; then
8288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301done
8302 done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307DLLTOOL=$ac_cv_prog_DLLTOOL
8308if test -n "$DLLTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8310$as_echo "$DLLTOOL" >&6; }
8311else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_progname}; ac_word=$2
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341 done
8342IFS=$as_save_IFS
8343
8344fi
8345fi
8346DLLTOOL=$ac_cv_prog_DLLTOOL
8347if test -n "$DLLTOOL"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349$as_echo "$DLLTOOL" >&6; }
8350else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
8353fi
8354
8355
8356 fi
8357 test -n "$ac_cv_prog_DLLTOOL" && break
8358done
8359
8360if test -z "$ac_cv_prog_DLLTOOL" ; then
8361 set dummy dlltool
8362 if test $build = $host ; then
8363 DLLTOOL="$2"
8364 else
8365 DLLTOOL="${ncn_tool_prefix}$2"
8366 fi
8367fi
8368
8369
8370
8371if test -n "$LD"; then
8372 ac_cv_prog_LD=$LD
8373elif test -n "$ac_cv_prog_LD"; then
8374 LD=$ac_cv_prog_LD
8375fi
8376
8377if test -n "$ac_cv_prog_LD"; then
8378 for ncn_progname in ld; do
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380set dummy ${ncn_progname}; ac_word=$2
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if test "${ac_cv_prog_LD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385else
8386 if test -n "$LD"; then
8387 ac_cv_prog_LD="$LD" # Let the user override the test.
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_LD="${ncn_progname}"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400done
8401 done
8402IFS=$as_save_IFS
8403
8404fi
8405fi
8406LD=$ac_cv_prog_LD
8407if test -n "$LD"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8409$as_echo "$LD" >&6; }
8410else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416 done
8417fi
8418
8419for ncn_progname in ld; do
8420 if test -n "$ncn_tool_prefix"; then
8421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8422set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424$as_echo_n "checking for $ac_word... " >&6; }
8425if test "${ac_cv_prog_LD+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427else
8428 if test -n "$LD"; then
8429 ac_cv_prog_LD="$LD" # Let the user override the test.
8430else
8431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432for as_dir in $PATH
8433do
8434 IFS=$as_save_IFS
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8438 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 break 2
8441 fi
8442done
8443 done
8444IFS=$as_save_IFS
8445
8446fi
8447fi
8448LD=$ac_cv_prog_LD
8449if test -n "$LD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8451$as_echo "$LD" >&6; }
8452else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454$as_echo "no" >&6; }
8455fi
8456
8457
8458 fi
8459 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_progname}; ac_word=$2
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_LD="${ncn_progname}"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485fi
8486fi
8487LD=$ac_cv_prog_LD
8488if test -n "$LD"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490$as_echo "$LD" >&6; }
8491else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
8494fi
8495
8496
8497 fi
8498 test -n "$ac_cv_prog_LD" && break
8499done
8500
8501if test -z "$ac_cv_prog_LD" ; then
8502 set dummy ld
8503 if test $build = $host ; then
8504 LD="$2"
8505 else
8506 LD="${ncn_tool_prefix}$2"
8507 fi
8508fi
8509
8510
8511
8512if test -n "$LIPO"; then
8513 ac_cv_prog_LIPO=$LIPO
8514elif test -n "$ac_cv_prog_LIPO"; then
8515 LIPO=$ac_cv_prog_LIPO
8516fi
8517
8518if test -n "$ac_cv_prog_LIPO"; then
8519 for ncn_progname in lipo; do
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521set dummy ${ncn_progname}; ac_word=$2
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523$as_echo_n "checking for $ac_word... " >&6; }
8524if test "${ac_cv_prog_LIPO+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526else
8527 if test -n "$LIPO"; then
8528 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8529else
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_LIPO="${ncn_progname}"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541done
8542 done
8543IFS=$as_save_IFS
8544
8545fi
8546fi
8547LIPO=$ac_cv_prog_LIPO
8548if test -n "$LIPO"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8550$as_echo "$LIPO" >&6; }
8551else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
8554fi
8555
8556
8557 done
8558fi
8559
8560for ncn_progname in lipo; do
8561 if test -n "$ncn_tool_prefix"; then
8562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565$as_echo_n "checking for $ac_word... " >&6; }
8566if test "${ac_cv_prog_LIPO+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568else
8569 if test -n "$LIPO"; then
8570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571else
8572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $PATH
8574do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583done
8584 done
8585IFS=$as_save_IFS
8586
8587fi
8588fi
8589LIPO=$ac_cv_prog_LIPO
8590if test -n "$LIPO"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8592$as_echo "$LIPO" >&6; }
8593else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595$as_echo "no" >&6; }
8596fi
8597
8598
8599 fi
8600 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_LIPO="${ncn_progname}"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622done
8623 done
8624IFS=$as_save_IFS
8625
8626fi
8627fi
8628LIPO=$ac_cv_prog_LIPO
8629if test -n "$LIPO"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631$as_echo "$LIPO" >&6; }
8632else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635fi
8636
8637
8638 fi
8639 test -n "$ac_cv_prog_LIPO" && break
8640done
8641
8642if test -z "$ac_cv_prog_LIPO" ; then
8643 set dummy lipo
8644 if test $build = $host ; then
8645 LIPO="$2"
8646 else
8647 LIPO="${ncn_tool_prefix}$2"
8648 fi
8649fi
8650
8651
8652
8653if test -n "$NM"; then
8654 ac_cv_prog_NM=$NM
8655elif test -n "$ac_cv_prog_NM"; then
8656 NM=$ac_cv_prog_NM
8657fi
8658
8659if test -n "$ac_cv_prog_NM"; then
8660 for ncn_progname in nm; do
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_progname}; ac_word=$2
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
8665if test "${ac_cv_prog_NM+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667else
8668 if test -n "$NM"; then
8669 ac_cv_prog_NM="$NM" # Let the user override the test.
8670else
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_NM="${ncn_progname}"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682done
8683 done
8684IFS=$as_save_IFS
8685
8686fi
8687fi
8688NM=$ac_cv_prog_NM
8689if test -n "$NM"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691$as_echo "$NM" >&6; }
8692else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
8695fi
8696
8697
8698 done
8699fi
8700
8701for ncn_progname in nm; do
8702 if test -n "$ncn_tool_prefix"; then
8703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8704set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706$as_echo_n "checking for $ac_word... " >&6; }
8707if test "${ac_cv_prog_NM+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709else
8710 if test -n "$NM"; then
8711 ac_cv_prog_NM="$NM" # Let the user override the test.
8712else
8713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714for as_dir in $PATH
8715do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8723 fi
8724done
8725 done
8726IFS=$as_save_IFS
8727
8728fi
8729fi
8730NM=$ac_cv_prog_NM
8731if test -n "$NM"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8733$as_echo "$NM" >&6; }
8734else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }
8737fi
8738
8739
8740 fi
8741 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759 ac_cv_prog_NM="${ncn_progname}"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764 done
8765IFS=$as_save_IFS
8766
8767fi
8768fi
8769NM=$ac_cv_prog_NM
8770if test -n "$NM"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772$as_echo "$NM" >&6; }
8773else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
8776fi
8777
8778
8779 fi
8780 test -n "$ac_cv_prog_NM" && break
8781done
8782
8783if test -z "$ac_cv_prog_NM" ; then
8784 set dummy nm
8785 if test $build = $host ; then
8786 NM="$2"
8787 else
8788 NM="${ncn_tool_prefix}$2"
8789 fi
8790fi
8791
8792
8793
8794if test -n "$RANLIB"; then
8795 ac_cv_prog_RANLIB=$RANLIB
8796elif test -n "$ac_cv_prog_RANLIB"; then
8797 RANLIB=$ac_cv_prog_RANLIB
8798fi
8799
8800if test -n "$ac_cv_prog_RANLIB"; then
8801 for ncn_progname in ranlib; do
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if test "${ac_cv_prog_RANLIB+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 if test -n "$RANLIB"; then
8810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_RANLIB="${ncn_progname}"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824 done
8825IFS=$as_save_IFS
8826
8827fi
8828fi
8829RANLIB=$ac_cv_prog_RANLIB
8830if test -n "$RANLIB"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8832$as_echo "$RANLIB" >&6; }
8833else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836fi
8837
8838
8839 done
8840fi
8841
8842for ncn_progname in ranlib; do
8843 if test -n "$ncn_tool_prefix"; then
8844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847$as_echo_n "checking for $ac_word... " >&6; }
8848if test "${ac_cv_prog_RANLIB+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8850else
8851 if test -n "$RANLIB"; then
8852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8853else
8854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855for as_dir in $PATH
8856do
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8864 fi
8865done
8866 done
8867IFS=$as_save_IFS
8868
8869fi
8870fi
8871RANLIB=$ac_cv_prog_RANLIB
8872if test -n "$RANLIB"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8874$as_echo "$RANLIB" >&6; }
8875else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
8878fi
8879
8880
8881 fi
8882 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_progname}; ac_word=$2
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900 ac_cv_prog_RANLIB="${ncn_progname}"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 break 2
8903 fi
8904done
8905 done
8906IFS=$as_save_IFS
8907
8908fi
8909fi
8910RANLIB=$ac_cv_prog_RANLIB
8911if test -n "$RANLIB"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913$as_echo "$RANLIB" >&6; }
8914else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
8917fi
8918
8919
8920 fi
8921 test -n "$ac_cv_prog_RANLIB" && break
8922done
8923
8924if test -z "$ac_cv_prog_RANLIB" ; then
8925 RANLIB="true"
8926fi
8927
8928
8929
8930if test -n "$STRIP"; then
8931 ac_cv_prog_STRIP=$STRIP
8932elif test -n "$ac_cv_prog_STRIP"; then
8933 STRIP=$ac_cv_prog_STRIP
8934fi
8935
8936if test -n "$ac_cv_prog_STRIP"; then
8937 for ncn_progname in strip; do
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939set dummy ${ncn_progname}; ac_word=$2
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941$as_echo_n "checking for $ac_word... " >&6; }
8942if test "${ac_cv_prog_STRIP+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944else
8945 if test -n "$STRIP"; then
8946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8947else
8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949for as_dir in $PATH
8950do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_STRIP="${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959done
8960 done
8961IFS=$as_save_IFS
8962
8963fi
8964fi
8965STRIP=$ac_cv_prog_STRIP
8966if test -n "$STRIP"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8968$as_echo "$STRIP" >&6; }
8969else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971$as_echo "no" >&6; }
8972fi
8973
8974
8975 done
8976fi
8977
8978for ncn_progname in strip; do
8979 if test -n "$ncn_tool_prefix"; then
8980 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8981set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983$as_echo_n "checking for $ac_word... " >&6; }
8984if test "${ac_cv_prog_STRIP+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
8986else
8987 if test -n "$STRIP"; then
8988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8989else
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001done
9002 done
9003IFS=$as_save_IFS
9004
9005fi
9006fi
9007STRIP=$ac_cv_prog_STRIP
9008if test -n "$STRIP"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9010$as_echo "$STRIP" >&6; }
9011else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013$as_echo "no" >&6; }
9014fi
9015
9016
9017 fi
9018 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_STRIP="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040done
9041 done
9042IFS=$as_save_IFS
9043
9044fi
9045fi
9046STRIP=$ac_cv_prog_STRIP
9047if test -n "$STRIP"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049$as_echo "$STRIP" >&6; }
9050else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053fi
9054
9055
9056 fi
9057 test -n "$ac_cv_prog_STRIP" && break
9058done
9059
9060if test -z "$ac_cv_prog_STRIP" ; then
9061 STRIP="true"
9062fi
9063
9064
9065
9066if test -n "$WINDRES"; then
9067 ac_cv_prog_WINDRES=$WINDRES
9068elif test -n "$ac_cv_prog_WINDRES"; then
9069 WINDRES=$ac_cv_prog_WINDRES
9070fi
9071
9072if test -n "$ac_cv_prog_WINDRES"; then
9073 for ncn_progname in windres; do
9074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9075set dummy ${ncn_progname}; ac_word=$2
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
9078if test "${ac_cv_prog_WINDRES+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080else
9081 if test -n "$WINDRES"; then
9082 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_prog_WINDRES="${ncn_progname}"
9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095done
9096 done
9097IFS=$as_save_IFS
9098
9099fi
9100fi
9101WINDRES=$ac_cv_prog_WINDRES
9102if test -n "$WINDRES"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9104$as_echo "$WINDRES" >&6; }
9105else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9108fi
9109
9110
9111 done
9112fi
9113
9114for ncn_progname in windres; do
9115 if test -n "$ncn_tool_prefix"; then
9116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9117set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119$as_echo_n "checking for $ac_word... " >&6; }
9120if test "${ac_cv_prog_WINDRES+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122else
9123 if test -n "$WINDRES"; then
9124 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9125else
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138 done
9139IFS=$as_save_IFS
9140
9141fi
9142fi
9143WINDRES=$ac_cv_prog_WINDRES
9144if test -n "$WINDRES"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9146$as_echo "$WINDRES" >&6; }
9147else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149$as_echo "no" >&6; }
9150fi
9151
9152
9153 fi
9154 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_prog_WINDRES="${ncn_progname}"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176done
9177 done
9178IFS=$as_save_IFS
9179
9180fi
9181fi
9182WINDRES=$ac_cv_prog_WINDRES
9183if test -n "$WINDRES"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185$as_echo "$WINDRES" >&6; }
9186else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
9189fi
9190
9191
9192 fi
9193 test -n "$ac_cv_prog_WINDRES" && break
9194done
9195
9196if test -z "$ac_cv_prog_WINDRES" ; then
9197 set dummy windres
9198 if test $build = $host ; then
9199 WINDRES="$2"
9200 else
9201 WINDRES="${ncn_tool_prefix}$2"
9202 fi
9203fi
9204
9205
9206
9207if test -n "$WINDMC"; then
9208 ac_cv_prog_WINDMC=$WINDMC
9209elif test -n "$ac_cv_prog_WINDMC"; then
9210 WINDMC=$ac_cv_prog_WINDMC
9211fi
9212
9213if test -n "$ac_cv_prog_WINDMC"; then
9214 for ncn_progname in windmc; do
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216set dummy ${ncn_progname}; ac_word=$2
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if test "${ac_cv_prog_WINDMC+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221else
9222 if test -n "$WINDMC"; then
9223 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9224else
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_prog_WINDMC="${ncn_progname}"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236done
9237 done
9238IFS=$as_save_IFS
9239
9240fi
9241fi
9242WINDMC=$ac_cv_prog_WINDMC
9243if test -n "$WINDMC"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9245$as_echo "$WINDMC" >&6; }
9246else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
9249fi
9250
9251
9252 done
9253fi
9254
9255for ncn_progname in windmc; do
9256 if test -n "$ncn_tool_prefix"; then
9257 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9258set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260$as_echo_n "checking for $ac_word... " >&6; }
9261if test "${ac_cv_prog_WINDMC+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263else
9264 if test -n "$WINDMC"; then
9265 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9274 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278done
9279 done
9280IFS=$as_save_IFS
9281
9282fi
9283fi
9284WINDMC=$ac_cv_prog_WINDMC
9285if test -n "$WINDMC"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9287$as_echo "$WINDMC" >&6; }
9288else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290$as_echo "no" >&6; }
9291fi
9292
9293
9294 fi
9295 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_progname}; ac_word=$2
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_WINDMC="${ncn_progname}"
9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 break 2
9316 fi
9317done
9318 done
9319IFS=$as_save_IFS
9320
9321fi
9322fi
9323WINDMC=$ac_cv_prog_WINDMC
9324if test -n "$WINDMC"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326$as_echo "$WINDMC" >&6; }
9327else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
9330fi
9331
9332
9333 fi
9334 test -n "$ac_cv_prog_WINDMC" && break
9335done
9336
9337if test -z "$ac_cv_prog_WINDMC" ; then
9338 set dummy windmc
9339 if test $build = $host ; then
9340 WINDMC="$2"
9341 else
9342 WINDMC="${ncn_tool_prefix}$2"
9343 fi
9344fi
9345
9346
9347
9348if test -n "$OBJCOPY"; then
9349 ac_cv_prog_OBJCOPY=$OBJCOPY
9350elif test -n "$ac_cv_prog_OBJCOPY"; then
9351 OBJCOPY=$ac_cv_prog_OBJCOPY
9352fi
9353
9354if test -n "$ac_cv_prog_OBJCOPY"; then
9355 for ncn_progname in objcopy; do
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357set dummy ${ncn_progname}; ac_word=$2
9358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359$as_echo_n "checking for $ac_word... " >&6; }
9360if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362else
9363 if test -n "$OBJCOPY"; then
9364 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9365else
9366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367for as_dir in $PATH
9368do
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_prog_OBJCOPY="${ncn_progname}"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9376 fi
9377done
9378 done
9379IFS=$as_save_IFS
9380
9381fi
9382fi
9383OBJCOPY=$ac_cv_prog_OBJCOPY
9384if test -n "$OBJCOPY"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9386$as_echo "$OBJCOPY" >&6; }
9387else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
9390fi
9391
9392
9393 done
9394fi
9395
9396for ncn_progname in objcopy; do
9397 if test -n "$ncn_tool_prefix"; then
9398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9399set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401$as_echo_n "checking for $ac_word... " >&6; }
9402if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9404else
9405 if test -n "$OBJCOPY"; then
9406 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9407else
9408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409for as_dir in $PATH
9410do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9418 fi
9419done
9420 done
9421IFS=$as_save_IFS
9422
9423fi
9424fi
9425OBJCOPY=$ac_cv_prog_OBJCOPY
9426if test -n "$OBJCOPY"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9428$as_echo "$OBJCOPY" >&6; }
9429else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431$as_echo "no" >&6; }
9432fi
9433
9434
9435 fi
9436 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9457 fi
9458done
9459 done
9460IFS=$as_save_IFS
9461
9462fi
9463fi
9464OBJCOPY=$ac_cv_prog_OBJCOPY
9465if test -n "$OBJCOPY"; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467$as_echo "$OBJCOPY" >&6; }
9468else
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
9471fi
9472
9473
9474 fi
9475 test -n "$ac_cv_prog_OBJCOPY" && break
9476done
9477
9478if test -z "$ac_cv_prog_OBJCOPY" ; then
9479 set dummy objcopy
9480 if test $build = $host ; then
9481 OBJCOPY="$2"
9482 else
9483 OBJCOPY="${ncn_tool_prefix}$2"
9484 fi
9485fi
9486
9487
9488
9489if test -n "$OBJDUMP"; then
9490 ac_cv_prog_OBJDUMP=$OBJDUMP
9491elif test -n "$ac_cv_prog_OBJDUMP"; then
9492 OBJDUMP=$ac_cv_prog_OBJDUMP
9493fi
9494
9495if test -n "$ac_cv_prog_OBJDUMP"; then
9496 for ncn_progname in objdump; do
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503else
9504 if test -n "$OBJDUMP"; then
9505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_prog_OBJDUMP="${ncn_progname}"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518done
9519 done
9520IFS=$as_save_IFS
9521
9522fi
9523fi
9524OBJDUMP=$ac_cv_prog_OBJDUMP
9525if test -n "$OBJDUMP"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9527$as_echo "$OBJDUMP" >&6; }
9528else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9531fi
9532
9533
9534 done
9535fi
9536
9537for ncn_progname in objdump; do
9538 if test -n "$ncn_tool_prefix"; then
9539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545else
9546 if test -n "$OBJDUMP"; then
9547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9548else
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9559 fi
9560done
9561 done
9562IFS=$as_save_IFS
9563
9564fi
9565fi
9566OBJDUMP=$ac_cv_prog_OBJDUMP
9567if test -n "$OBJDUMP"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9569$as_echo "$OBJDUMP" >&6; }
9570else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573fi
9574
9575
9576 fi
9577 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600 done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605OBJDUMP=$ac_cv_prog_OBJDUMP
9606if test -n "$OBJDUMP"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608$as_echo "$OBJDUMP" >&6; }
9609else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614
9615 fi
9616 test -n "$ac_cv_prog_OBJDUMP" && break
9617done
9618
9619if test -z "$ac_cv_prog_OBJDUMP" ; then
9620 set dummy objdump
9621 if test $build = $host ; then
9622 OBJDUMP="$2"
9623 else
9624 OBJDUMP="${ncn_tool_prefix}$2"
9625 fi
9626fi
9627
9628
9629
9630
9631
9632
9633# Target tools.
9634
9635# Check whether --with-build-time-tools was given.
9636if test "${with_build_time_tools+set}" = set; then :
9637 withval=$with_build_time_tools; case x"$withval" in
9638 x/*) ;;
9639 *)
9640 with_build_time_tools=
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9642$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9643 ;;
9644 esac
9645else
9646 with_build_time_tools=
9647fi
9648
9649
9650
9651
9652if test -n "$CC_FOR_TARGET"; then
9653 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9654elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9655 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9656fi
9657
9658if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9659 for ncn_progname in cc gcc; do
9660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9661set dummy ${ncn_progname}; ac_word=$2
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 if test -n "$CC_FOR_TARGET"; then
9668 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9669else
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682 done
9683IFS=$as_save_IFS
9684
9685fi
9686fi
9687CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9688if test -n "$CC_FOR_TARGET"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9690$as_echo "$CC_FOR_TARGET" >&6; }
9691else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694fi
9695
9696
9697 done
9698fi
9699
9700if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9701 for ncn_progname in cc gcc; do
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9703$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9704 if test -x $with_build_time_tools/${ncn_progname}; then
9705 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707$as_echo "yes" >&6; }
9708 break
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711$as_echo "no" >&6; }
9712 fi
9713 done
9714fi
9715
9716if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9717 for ncn_progname in cc gcc; do
9718 if test -n "$ncn_target_tool_prefix"; then
9719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9720set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$CC_FOR_TARGET"; then
9727 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9747if test -n "$CC_FOR_TARGET"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9749$as_echo "$CC_FOR_TARGET" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 fi
9757 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9759set dummy ${ncn_progname}; ac_word=$2
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761$as_echo_n "checking for $ac_word... " >&6; }
9762if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764else
9765 if test -n "$CC_FOR_TARGET"; then
9766 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9767else
9768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769for as_dir in $PATH
9770do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9778 fi
9779done
9780 done
9781IFS=$as_save_IFS
9782
9783fi
9784fi
9785CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9786if test -n "$CC_FOR_TARGET"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9788$as_echo "$CC_FOR_TARGET" >&6; }
9789else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791$as_echo "no" >&6; }
9792fi
9793
9794
9795 fi
9796 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9797 done
9798fi
9799
9800if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9801 set dummy cc gcc
9802 if test $build = $target ; then
9803 CC_FOR_TARGET="$2"
9804 else
9805 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9806 fi
9807else
9808 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9809fi
9810
9811
9812
9813if test -n "$CXX_FOR_TARGET"; then
9814 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9815elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9816 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9817fi
9818
9819if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9820 for ncn_progname in c++ g++ cxx gxx; do
9821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9822set dummy ${ncn_progname}; ac_word=$2
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824$as_echo_n "checking for $ac_word... " >&6; }
9825if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827else
9828 if test -n "$CXX_FOR_TARGET"; then
9829 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9830else
9831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9841 fi
9842done
9843 done
9844IFS=$as_save_IFS
9845
9846fi
9847fi
9848CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9849if test -n "$CXX_FOR_TARGET"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9851$as_echo "$CXX_FOR_TARGET" >&6; }
9852else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854$as_echo "no" >&6; }
9855fi
9856
9857
9858 done
9859fi
9860
9861if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9862 for ncn_progname in c++ g++ cxx gxx; do
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9864$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9865 if test -x $with_build_time_tools/${ncn_progname}; then
9866 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9868$as_echo "yes" >&6; }
9869 break
9870 else
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9873 fi
9874 done
9875fi
9876
9877if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9878 for ncn_progname in c++ g++ cxx gxx; do
9879 if test -n "$ncn_target_tool_prefix"; then
9880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9881set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883$as_echo_n "checking for $ac_word... " >&6; }
9884if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887 if test -n "$CXX_FOR_TARGET"; then
9888 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9889else
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
9892do
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9900 fi
9901done
9902 done
9903IFS=$as_save_IFS
9904
9905fi
9906fi
9907CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9908if test -n "$CXX_FOR_TARGET"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9910$as_echo "$CXX_FOR_TARGET" >&6; }
9911else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913$as_echo "no" >&6; }
9914fi
9915
9916
9917 fi
9918 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9920set dummy ${ncn_progname}; ac_word=$2
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922$as_echo_n "checking for $ac_word... " >&6; }
9923if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9925else
9926 if test -n "$CXX_FOR_TARGET"; then
9927 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9928else
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9939 fi
9940done
9941 done
9942IFS=$as_save_IFS
9943
9944fi
9945fi
9946CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9947if test -n "$CXX_FOR_TARGET"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9949$as_echo "$CXX_FOR_TARGET" >&6; }
9950else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
9953fi
9954
9955
9956 fi
9957 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9958 done
9959fi
9960
9961if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9962 set dummy c++ g++ cxx gxx
9963 if test $build = $target ; then
9964 CXX_FOR_TARGET="$2"
9965 else
9966 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9967 fi
9968else
9969 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9970fi
9971
9972
9973
9974if test -n "$GCC_FOR_TARGET"; then
9975 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9976elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9977 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9978fi
9979
9980if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9981 for ncn_progname in gcc; do
9982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9983set dummy ${ncn_progname}; ac_word=$2
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985$as_echo_n "checking for $ac_word... " >&6; }
9986if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988else
9989 if test -n "$GCC_FOR_TARGET"; then
9990 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9991else
9992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993for as_dir in $PATH
9994do
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10002 fi
10003done
10004 done
10005IFS=$as_save_IFS
10006
10007fi
10008fi
10009GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10010if test -n "$GCC_FOR_TARGET"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10012$as_echo "$GCC_FOR_TARGET" >&6; }
10013else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015$as_echo "no" >&6; }
10016fi
10017
10018
10019 done
10020fi
10021
10022if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10023 for ncn_progname in gcc; do
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10025$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10026 if test -x $with_build_time_tools/${ncn_progname}; then
10027 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10029$as_echo "yes" >&6; }
10030 break
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033$as_echo "no" >&6; }
10034 fi
10035 done
10036fi
10037
10038if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10039 for ncn_progname in gcc; do
10040 if test -n "$ncn_target_tool_prefix"; then
10041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
10047else
10048 if test -n "$GCC_FOR_TARGET"; then
10049 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10050else
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063 done
10064IFS=$as_save_IFS
10065
10066fi
10067fi
10068GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10069if test -n "$GCC_FOR_TARGET"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10071$as_echo "$GCC_FOR_TARGET" >&6; }
10072else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074$as_echo "no" >&6; }
10075fi
10076
10077
10078 fi
10079 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10081set dummy ${ncn_progname}; ac_word=$2
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086else
10087 if test -n "$GCC_FOR_TARGET"; then
10088 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101done
10102 done
10103IFS=$as_save_IFS
10104
10105fi
10106fi
10107GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10108if test -n "$GCC_FOR_TARGET"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10110$as_echo "$GCC_FOR_TARGET" >&6; }
10111else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113$as_echo "no" >&6; }
10114fi
10115
10116
10117 fi
10118 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10119 done
10120fi
10121
10122if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10123 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10124else
10125 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10126fi
10127
10128
10129
10130if test -n "$GCJ_FOR_TARGET"; then
10131 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10132elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10133 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10134fi
10135
10136if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10137 for ncn_progname in gcj; do
10138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10139set dummy ${ncn_progname}; ac_word=$2
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141$as_echo_n "checking for $ac_word... " >&6; }
10142if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10144else
10145 if test -n "$GCJ_FOR_TARGET"; then
10146 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10147else
10148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149for as_dir in $PATH
10150do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10158 fi
10159done
10160 done
10161IFS=$as_save_IFS
10162
10163fi
10164fi
10165GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10166if test -n "$GCJ_FOR_TARGET"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10168$as_echo "$GCJ_FOR_TARGET" >&6; }
10169else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171$as_echo "no" >&6; }
10172fi
10173
10174
10175 done
10176fi
10177
10178if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10179 for ncn_progname in gcj; do
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10182 if test -x $with_build_time_tools/${ncn_progname}; then
10183 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10185$as_echo "yes" >&6; }
10186 break
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
10190 fi
10191 done
10192fi
10193
10194if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10195 for ncn_progname in gcj; do
10196 if test -n "$ncn_target_tool_prefix"; then
10197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200$as_echo_n "checking for $ac_word... " >&6; }
10201if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203else
10204 if test -n "$GCJ_FOR_TARGET"; then
10205 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10206else
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219 done
10220IFS=$as_save_IFS
10221
10222fi
10223fi
10224GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10225if test -n "$GCJ_FOR_TARGET"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10227$as_echo "$GCJ_FOR_TARGET" >&6; }
10228else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
10231fi
10232
10233
10234 fi
10235 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10237set dummy ${ncn_progname}; ac_word=$2
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239$as_echo_n "checking for $ac_word... " >&6; }
10240if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10242else
10243 if test -n "$GCJ_FOR_TARGET"; then
10244 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10245else
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10253 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258 done
10259IFS=$as_save_IFS
10260
10261fi
10262fi
10263GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10264if test -n "$GCJ_FOR_TARGET"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10266$as_echo "$GCJ_FOR_TARGET" >&6; }
10267else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270fi
10271
10272
10273 fi
10274 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10275 done
10276fi
10277
10278if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10279 set dummy gcj
10280 if test $build = $target ; then
10281 GCJ_FOR_TARGET="$2"
10282 else
10283 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10284 fi
10285else
10286 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10287fi
10288
10289
10290
10291if test -n "$GFORTRAN_FOR_TARGET"; then
10292 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10293elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10294 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10295fi
10296
10297if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10298 for ncn_progname in gfortran; do
10299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10300set dummy ${ncn_progname}; ac_word=$2
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302$as_echo_n "checking for $ac_word... " >&6; }
10303if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305else
10306 if test -n "$GFORTRAN_FOR_TARGET"; then
10307 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10319 fi
10320done
10321 done
10322IFS=$as_save_IFS
10323
10324fi
10325fi
10326GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10327if test -n "$GFORTRAN_FOR_TARGET"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10329$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10330else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332$as_echo "no" >&6; }
10333fi
10334
10335
10336 done
10337fi
10338
10339if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10340 for ncn_progname in gfortran; do
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10342$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10343 if test -x $with_build_time_tools/${ncn_progname}; then
10344 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346$as_echo "yes" >&6; }
10347 break
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
10351 fi
10352 done
10353fi
10354
10355if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10356 for ncn_progname in gfortran; do
10357 if test -n "$ncn_target_tool_prefix"; then
10358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10359set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 if test -n "$GFORTRAN_FOR_TARGET"; then
10366 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10367else
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380 done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10386if test -n "$GFORTRAN_FOR_TARGET"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10388$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10389else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392fi
10393
10394
10395 fi
10396 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398set dummy ${ncn_progname}; ac_word=$2
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400$as_echo_n "checking for $ac_word... " >&6; }
10401if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10402 $as_echo_n "(cached) " >&6
10403else
10404 if test -n "$GFORTRAN_FOR_TARGET"; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10414 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419 done
10420IFS=$as_save_IFS
10421
10422fi
10423fi
10424GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10425if test -n "$GFORTRAN_FOR_TARGET"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10427$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10428else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
10431fi
10432
10433
10434 fi
10435 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10436 done
10437fi
10438
10439if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10440 set dummy gfortran
10441 if test $build = $target ; then
10442 GFORTRAN_FOR_TARGET="$2"
10443 else
10444 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10445 fi
10446else
10447 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10448fi
10449
10450
10451
10452if test -n "$GOC_FOR_TARGET"; then
10453 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10454elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10455 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10456fi
10457
10458if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10459 for ncn_progname in gccgo; do
10460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10461set dummy ${ncn_progname}; ac_word=$2
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463$as_echo_n "checking for $ac_word... " >&6; }
10464if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466else
10467 if test -n "$GOC_FOR_TARGET"; then
10468 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10469else
10470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471for as_dir in $PATH
10472do
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10477 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10480 fi
10481done
10482 done
10483IFS=$as_save_IFS
10484
10485fi
10486fi
10487GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10488if test -n "$GOC_FOR_TARGET"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10490$as_echo "$GOC_FOR_TARGET" >&6; }
10491else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493$as_echo "no" >&6; }
10494fi
10495
10496
10497 done
10498fi
10499
10500if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10501 for ncn_progname in gccgo; do
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10503$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10504 if test -x $with_build_time_tools/${ncn_progname}; then
10505 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507$as_echo "yes" >&6; }
10508 break
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512 fi
10513 done
10514fi
10515
10516if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10517 for ncn_progname in gccgo; do
10518 if test -n "$ncn_target_tool_prefix"; then
10519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525else
10526 if test -n "$GOC_FOR_TARGET"; then
10527 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541 done
10542IFS=$as_save_IFS
10543
10544fi
10545fi
10546GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10547if test -n "$GOC_FOR_TARGET"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10549$as_echo "$GOC_FOR_TARGET" >&6; }
10550else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552$as_echo "no" >&6; }
10553fi
10554
10555
10556 fi
10557 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559set dummy ${ncn_progname}; ac_word=$2
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561$as_echo_n "checking for $ac_word... " >&6; }
10562if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564else
10565 if test -n "$GOC_FOR_TARGET"; then
10566 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10567else
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 break 2
10578 fi
10579done
10580 done
10581IFS=$as_save_IFS
10582
10583fi
10584fi
10585GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10586if test -n "$GOC_FOR_TARGET"; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10588$as_echo "$GOC_FOR_TARGET" >&6; }
10589else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591$as_echo "no" >&6; }
10592fi
10593
10594
10595 fi
10596 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10597 done
10598fi
10599
10600if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10601 set dummy gccgo
10602 if test $build = $target ; then
10603 GOC_FOR_TARGET="$2"
10604 else
10605 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10606 fi
10607else
10608 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10609fi
10610
10611
10612
10613cat > conftest.c << \EOF
10614#ifdef __GNUC__
10615 gcc_yay;
10616#endif
10617EOF
10618if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10619 have_gcc_for_target=yes
10620else
10621 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10622 have_gcc_for_target=no
10623fi
10624rm conftest.c
10625
10626
10627
10628
10629if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10630 if test -n "$with_build_time_tools"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10632$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10633 if test -x $with_build_time_tools/ar; then
10634 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10635 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10637$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
10641 fi
10642 elif test $build != $host && test $have_gcc_for_target = yes; then
10643 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10644 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10645 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10646 fi
10647fi
10648if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10649 # Extract the first word of "ar", so it can be a program name with args.
10650set dummy ar; ac_word=$2
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652$as_echo_n "checking for $ac_word... " >&6; }
10653if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655else
10656 case $AR_FOR_TARGET in
10657 [\\/]* | ?:[\\/]*)
10658 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10659 ;;
10660 *)
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $gcc_cv_tool_dirs
10663do
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10671 fi
10672done
10673 done
10674IFS=$as_save_IFS
10675
10676 ;;
10677esac
10678fi
10679AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10680if test -n "$AR_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10682$as_echo "$AR_FOR_TARGET" >&6; }
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688
10689fi
10690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10691
10692
10693if test -n "$AR_FOR_TARGET"; then
10694 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10695elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10696 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10697fi
10698
10699if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10700 for ncn_progname in ar; do
10701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10702set dummy ${ncn_progname}; ac_word=$2
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
10705if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707else
10708 if test -n "$AR_FOR_TARGET"; then
10709 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
10723 done
10724IFS=$as_save_IFS
10725
10726fi
10727fi
10728AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10729if test -n "$AR_FOR_TARGET"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10731$as_echo "$AR_FOR_TARGET" >&6; }
10732else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737
10738 done
10739fi
10740
10741if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10742 for ncn_progname in ar; do
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10744$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10745 if test -x $with_build_time_tools/${ncn_progname}; then
10746 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10748$as_echo "yes" >&6; }
10749 break
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
10753 fi
10754 done
10755fi
10756
10757if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10758 for ncn_progname in ar; do
10759 if test -n "$ncn_target_tool_prefix"; then
10760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10761set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 if test -n "$AR_FOR_TARGET"; then
10768 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10769else
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10780 fi
10781done
10782 done
10783IFS=$as_save_IFS
10784
10785fi
10786fi
10787AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10788if test -n "$AR_FOR_TARGET"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10790$as_echo "$AR_FOR_TARGET" >&6; }
10791else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
10794fi
10795
10796
10797 fi
10798 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10800set dummy ${ncn_progname}; ac_word=$2
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802$as_echo_n "checking for $ac_word... " >&6; }
10803if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10805else
10806 if test -n "$AR_FOR_TARGET"; then
10807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10808else
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821 done
10822IFS=$as_save_IFS
10823
10824fi
10825fi
10826AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10827if test -n "$AR_FOR_TARGET"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10829$as_echo "$AR_FOR_TARGET" >&6; }
10830else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
10833fi
10834
10835
10836 fi
10837 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10838 done
10839fi
10840
10841if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10842 set dummy ar
10843 if test $build = $target ; then
10844 AR_FOR_TARGET="$2"
10845 else
10846 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10847 fi
10848else
10849 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10850fi
10851
10852else
10853 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10854fi
10855
10856
10857
10858
10859if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10860 if test -n "$with_build_time_tools"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10862$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10863 if test -x $with_build_time_tools/as; then
10864 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10865 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10867$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10868 else
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10870$as_echo "no" >&6; }
10871 fi
10872 elif test $build != $host && test $have_gcc_for_target = yes; then
10873 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10874 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10875 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10876 fi
10877fi
10878if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10879 # Extract the first word of "as", so it can be a program name with args.
10880set dummy as; ac_word=$2
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882$as_echo_n "checking for $ac_word... " >&6; }
10883if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10885else
10886 case $AS_FOR_TARGET in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10889 ;;
10890 *)
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $gcc_cv_tool_dirs
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902done
10903 done
10904IFS=$as_save_IFS
10905
10906 ;;
10907esac
10908fi
10909AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10910if test -n "$AS_FOR_TARGET"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10912$as_echo "$AS_FOR_TARGET" >&6; }
10913else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
10916fi
10917
10918
10919fi
10920if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10921
10922
10923if test -n "$AS_FOR_TARGET"; then
10924 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10925elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10926 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10927fi
10928
10929if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10930 for ncn_progname in as; do
10931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10932set dummy ${ncn_progname}; ac_word=$2
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934$as_echo_n "checking for $ac_word... " >&6; }
10935if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 if test -n "$AS_FOR_TARGET"; then
10939 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10940else
10941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942for as_dir in $PATH
10943do
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10951 fi
10952done
10953 done
10954IFS=$as_save_IFS
10955
10956fi
10957fi
10958AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10959if test -n "$AS_FOR_TARGET"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10961$as_echo "$AS_FOR_TARGET" >&6; }
10962else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964$as_echo "no" >&6; }
10965fi
10966
10967
10968 done
10969fi
10970
10971if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10972 for ncn_progname in as; do
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10974$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10975 if test -x $with_build_time_tools/${ncn_progname}; then
10976 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978$as_echo "yes" >&6; }
10979 break
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
10983 fi
10984 done
10985fi
10986
10987if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10988 for ncn_progname in as; do
10989 if test -n "$ncn_target_tool_prefix"; then
10990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
10994if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996else
10997 if test -n "$AS_FOR_TARGET"; then
10998 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012 done
11013IFS=$as_save_IFS
11014
11015fi
11016fi
11017AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11018if test -n "$AS_FOR_TARGET"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11020$as_echo "$AS_FOR_TARGET" >&6; }
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
11024fi
11025
11026
11027 fi
11028 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_progname}; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
11033if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035else
11036 if test -n "$AS_FOR_TARGET"; then
11037 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051 done
11052IFS=$as_save_IFS
11053
11054fi
11055fi
11056AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11057if test -n "$AS_FOR_TARGET"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11059$as_echo "$AS_FOR_TARGET" >&6; }
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063fi
11064
11065
11066 fi
11067 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11068 done
11069fi
11070
11071if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11072 set dummy as
11073 if test $build = $target ; then
11074 AS_FOR_TARGET="$2"
11075 else
11076 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11077 fi
11078else
11079 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11080fi
11081
11082else
11083 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11084fi
11085
11086
11087
11088
11089if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11090 if test -n "$with_build_time_tools"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11092$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11093 if test -x $with_build_time_tools/dlltool; then
11094 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11095 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11097$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101 fi
11102 elif test $build != $host && test $have_gcc_for_target = yes; then
11103 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11104 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11105 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11106 fi
11107fi
11108if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11109 # Extract the first word of "dlltool", so it can be a program name with args.
11110set dummy dlltool; ac_word=$2
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112$as_echo_n "checking for $ac_word... " >&6; }
11113if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115else
11116 case $DLLTOOL_FOR_TARGET in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11119 ;;
11120 *)
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $gcc_cv_tool_dirs
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133 done
11134IFS=$as_save_IFS
11135
11136 ;;
11137esac
11138fi
11139DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11140if test -n "$DLLTOOL_FOR_TARGET"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11142$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11143else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
11146fi
11147
11148
11149fi
11150if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11151
11152
11153if test -n "$DLLTOOL_FOR_TARGET"; then
11154 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11155elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11156 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11157fi
11158
11159if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11160 for ncn_progname in dlltool; do
11161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11162set dummy ${ncn_progname}; ac_word=$2
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164$as_echo_n "checking for $ac_word... " >&6; }
11165if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167else
11168 if test -n "$DLLTOOL_FOR_TARGET"; then
11169 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11170else
11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $PATH
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11181 fi
11182done
11183 done
11184IFS=$as_save_IFS
11185
11186fi
11187fi
11188DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11189if test -n "$DLLTOOL_FOR_TARGET"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11191$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11192else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194$as_echo "no" >&6; }
11195fi
11196
11197
11198 done
11199fi
11200
11201if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11202 for ncn_progname in dlltool; do
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11204$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11205 if test -x $with_build_time_tools/${ncn_progname}; then
11206 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208$as_echo "yes" >&6; }
11209 break
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213 fi
11214 done
11215fi
11216
11217if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11218 for ncn_progname in dlltool; do
11219 if test -n "$ncn_target_tool_prefix"; then
11220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11221set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223$as_echo_n "checking for $ac_word... " >&6; }
11224if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226else
11227 if test -n "$DLLTOOL_FOR_TARGET"; then
11228 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11229else
11230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11240 fi
11241done
11242 done
11243IFS=$as_save_IFS
11244
11245fi
11246fi
11247DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11248if test -n "$DLLTOOL_FOR_TARGET"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11250$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11251else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; }
11254fi
11255
11256
11257 fi
11258 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11260set dummy ${ncn_progname}; ac_word=$2
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262$as_echo_n "checking for $ac_word... " >&6; }
11263if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11265else
11266 if test -n "$DLLTOOL_FOR_TARGET"; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11268else
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281 done
11282IFS=$as_save_IFS
11283
11284fi
11285fi
11286DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11287if test -n "$DLLTOOL_FOR_TARGET"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11289$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11290else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292$as_echo "no" >&6; }
11293fi
11294
11295
11296 fi
11297 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11298 done
11299fi
11300
11301if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11302 set dummy dlltool
11303 if test $build = $target ; then
11304 DLLTOOL_FOR_TARGET="$2"
11305 else
11306 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11307 fi
11308else
11309 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11310fi
11311
11312else
11313 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11314fi
11315
11316
11317
11318
11319if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11320 if test -n "$with_build_time_tools"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11322$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11323 if test -x $with_build_time_tools/ld; then
11324 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11325 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11327$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330$as_echo "no" >&6; }
11331 fi
11332 elif test $build != $host && test $have_gcc_for_target = yes; then
11333 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11334 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11335 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11336 fi
11337fi
11338if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11339 # Extract the first word of "ld", so it can be a program name with args.
11340set dummy ld; ac_word=$2
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342$as_echo_n "checking for $ac_word... " >&6; }
11343if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345else
11346 case $LD_FOR_TARGET in
11347 [\\/]* | ?:[\\/]*)
11348 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11349 ;;
11350 *)
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $gcc_cv_tool_dirs
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363 done
11364IFS=$as_save_IFS
11365
11366 ;;
11367esac
11368fi
11369LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11370if test -n "$LD_FOR_TARGET"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11372$as_echo "$LD_FOR_TARGET" >&6; }
11373else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
11376fi
11377
11378
11379fi
11380if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11381
11382
11383if test -n "$LD_FOR_TARGET"; then
11384 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11385elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11386 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11387fi
11388
11389if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11390 for ncn_progname in ld; do
11391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11392set dummy ${ncn_progname}; ac_word=$2
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397else
11398 if test -n "$LD_FOR_TARGET"; then
11399 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11411 fi
11412done
11413 done
11414IFS=$as_save_IFS
11415
11416fi
11417fi
11418LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11419if test -n "$LD_FOR_TARGET"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11421$as_echo "$LD_FOR_TARGET" >&6; }
11422else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
11425fi
11426
11427
11428 done
11429fi
11430
11431if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11432 for ncn_progname in ld; do
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11435 if test -x $with_build_time_tools/${ncn_progname}; then
11436 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438$as_echo "yes" >&6; }
11439 break
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
11443 fi
11444 done
11445fi
11446
11447if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11448 for ncn_progname in ld; do
11449 if test -n "$ncn_target_tool_prefix"; then
11450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453$as_echo_n "checking for $ac_word... " >&6; }
11454if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11456else
11457 if test -n "$LD_FOR_TARGET"; then
11458 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11459else
11460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH
11462do
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11470 fi
11471done
11472 done
11473IFS=$as_save_IFS
11474
11475fi
11476fi
11477LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11478if test -n "$LD_FOR_TARGET"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11480$as_echo "$LD_FOR_TARGET" >&6; }
11481else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
11484fi
11485
11486
11487 fi
11488 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11490set dummy ${ncn_progname}; ac_word=$2
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492$as_echo_n "checking for $ac_word... " >&6; }
11493if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495else
11496 if test -n "$LD_FOR_TARGET"; then
11497 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11498else
11499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500for as_dir in $PATH
11501do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11509 fi
11510done
11511 done
11512IFS=$as_save_IFS
11513
11514fi
11515fi
11516LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11517if test -n "$LD_FOR_TARGET"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11519$as_echo "$LD_FOR_TARGET" >&6; }
11520else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522$as_echo "no" >&6; }
11523fi
11524
11525
11526 fi
11527 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11528 done
11529fi
11530
11531if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11532 set dummy ld
11533 if test $build = $target ; then
11534 LD_FOR_TARGET="$2"
11535 else
11536 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11537 fi
11538else
11539 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11540fi
11541
11542else
11543 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11544fi
11545
11546
11547
11548
11549if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11550 if test -n "$with_build_time_tools"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11552$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11553 if test -x $with_build_time_tools/lipo; then
11554 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11555 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11557$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
11561 fi
11562 elif test $build != $host && test $have_gcc_for_target = yes; then
11563 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11564 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11565 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11566 fi
11567fi
11568if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11569 # Extract the first word of "lipo", so it can be a program name with args.
11570set dummy lipo; ac_word=$2
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572$as_echo_n "checking for $ac_word... " >&6; }
11573if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575else
11576 case $LIPO_FOR_TARGET in
11577 [\\/]* | ?:[\\/]*)
11578 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11579 ;;
11580 *)
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $gcc_cv_tool_dirs
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11591 fi
11592done
11593 done
11594IFS=$as_save_IFS
11595
11596 ;;
11597esac
11598fi
11599LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11600if test -n "$LIPO_FOR_TARGET"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11602$as_echo "$LIPO_FOR_TARGET" >&6; }
11603else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
11606fi
11607
11608
11609fi
11610if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611
11612
11613if test -n "$LIPO_FOR_TARGET"; then
11614 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11615elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11616 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11617fi
11618
11619if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11620 for ncn_progname in lipo; do
11621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11622set dummy ${ncn_progname}; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627else
11628 if test -n "$LIPO_FOR_TARGET"; then
11629 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642done
11643 done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11649if test -n "$LIPO_FOR_TARGET"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11651$as_echo "$LIPO_FOR_TARGET" >&6; }
11652else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657
11658 done
11659fi
11660
11661if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11662 for ncn_progname in lipo; do
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11664$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11665 if test -x $with_build_time_tools/${ncn_progname}; then
11666 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668$as_echo "yes" >&6; }
11669 break
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
11673 fi
11674 done
11675fi
11676
11677if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11678 for ncn_progname in lipo; do
11679 if test -n "$ncn_target_tool_prefix"; then
11680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
11684if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686else
11687 if test -n "$LIPO_FOR_TARGET"; then
11688 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11697 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702 done
11703IFS=$as_save_IFS
11704
11705fi
11706fi
11707LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11708if test -n "$LIPO_FOR_TARGET"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11710$as_echo "$LIPO_FOR_TARGET" >&6; }
11711else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714fi
11715
11716
11717 fi
11718 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11720set dummy ${ncn_progname}; ac_word=$2
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722$as_echo_n "checking for $ac_word... " >&6; }
11723if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11725else
11726 if test -n "$LIPO_FOR_TARGET"; then
11727 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11728else
11729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730for as_dir in $PATH
11731do
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11739 fi
11740done
11741 done
11742IFS=$as_save_IFS
11743
11744fi
11745fi
11746LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11747if test -n "$LIPO_FOR_TARGET"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11749$as_echo "$LIPO_FOR_TARGET" >&6; }
11750else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752$as_echo "no" >&6; }
11753fi
11754
11755
11756 fi
11757 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11758 done
11759fi
11760
11761if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11762 set dummy lipo
11763 if test $build = $target ; then
11764 LIPO_FOR_TARGET="$2"
11765 else
11766 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11767 fi
11768else
11769 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11770fi
11771
11772else
11773 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11774fi
11775
11776
11777
11778
11779if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11780 if test -n "$with_build_time_tools"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11782$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11783 if test -x $with_build_time_tools/nm; then
11784 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11785 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11787$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791 fi
11792 elif test $build != $host && test $have_gcc_for_target = yes; then
11793 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11794 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11795 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11796 fi
11797fi
11798if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11799 # Extract the first word of "nm", so it can be a program name with args.
11800set dummy nm; ac_word=$2
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802$as_echo_n "checking for $ac_word... " >&6; }
11803if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805else
11806 case $NM_FOR_TARGET in
11807 [\\/]* | ?:[\\/]*)
11808 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11809 ;;
11810 *)
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $gcc_cv_tool_dirs
11813do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822done
11823 done
11824IFS=$as_save_IFS
11825
11826 ;;
11827esac
11828fi
11829NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11830if test -n "$NM_FOR_TARGET"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11832$as_echo "$NM_FOR_TARGET" >&6; }
11833else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
11836fi
11837
11838
11839fi
11840if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11841
11842
11843if test -n "$NM_FOR_TARGET"; then
11844 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11845elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11846 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11847fi
11848
11849if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11850 for ncn_progname in nm; do
11851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11852set dummy ${ncn_progname}; ac_word=$2
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857else
11858 if test -n "$NM_FOR_TARGET"; then
11859 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873 done
11874IFS=$as_save_IFS
11875
11876fi
11877fi
11878NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11879if test -n "$NM_FOR_TARGET"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11881$as_echo "$NM_FOR_TARGET" >&6; }
11882else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887
11888 done
11889fi
11890
11891if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11892 for ncn_progname in nm; do
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11894$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11895 if test -x $with_build_time_tools/${ncn_progname}; then
11896 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898$as_echo "yes" >&6; }
11899 break
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903 fi
11904 done
11905fi
11906
11907if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11908 for ncn_progname in nm; do
11909 if test -n "$ncn_target_tool_prefix"; then
11910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913$as_echo_n "checking for $ac_word... " >&6; }
11914if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11916else
11917 if test -n "$NM_FOR_TARGET"; then
11918 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11919else
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11927 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11930 fi
11931done
11932 done
11933IFS=$as_save_IFS
11934
11935fi
11936fi
11937NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11938if test -n "$NM_FOR_TARGET"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11940$as_echo "$NM_FOR_TARGET" >&6; }
11941else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944fi
11945
11946
11947 fi
11948 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11950set dummy ${ncn_progname}; ac_word=$2
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952$as_echo_n "checking for $ac_word... " >&6; }
11953if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955else
11956 if test -n "$NM_FOR_TARGET"; then
11957 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11958else
11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11969 fi
11970done
11971 done
11972IFS=$as_save_IFS
11973
11974fi
11975fi
11976NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11977if test -n "$NM_FOR_TARGET"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11979$as_echo "$NM_FOR_TARGET" >&6; }
11980else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
11983fi
11984
11985
11986 fi
11987 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11988 done
11989fi
11990
11991if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11992 set dummy nm
11993 if test $build = $target ; then
11994 NM_FOR_TARGET="$2"
11995 else
11996 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11997 fi
11998else
11999 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12000fi
12001
12002else
12003 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12004fi
12005
12006
12007
12008
12009if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12010 if test -n "$with_build_time_tools"; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12012$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12013 if test -x $with_build_time_tools/objdump; then
12014 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12015 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12017$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021 fi
12022 elif test $build != $host && test $have_gcc_for_target = yes; then
12023 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12024 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12025 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12026 fi
12027fi
12028if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12029 # Extract the first word of "objdump", so it can be a program name with args.
12030set dummy objdump; ac_word=$2
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032$as_echo_n "checking for $ac_word... " >&6; }
12033if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035else
12036 case $OBJDUMP_FOR_TARGET in
12037 [\\/]* | ?:[\\/]*)
12038 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12039 ;;
12040 *)
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $gcc_cv_tool_dirs
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053 done
12054IFS=$as_save_IFS
12055
12056 ;;
12057esac
12058fi
12059OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12060if test -n "$OBJDUMP_FOR_TARGET"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12062$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12063else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
12066fi
12067
12068
12069fi
12070if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12071
12072
12073if test -n "$OBJDUMP_FOR_TARGET"; then
12074 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12075elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12076 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12077fi
12078
12079if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12080 for ncn_progname in objdump; do
12081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12082set dummy ${ncn_progname}; ac_word=$2
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087else
12088 if test -n "$OBJDUMP_FOR_TARGET"; then
12089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12090else
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12101 fi
12102done
12103 done
12104IFS=$as_save_IFS
12105
12106fi
12107fi
12108OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12109if test -n "$OBJDUMP_FOR_TARGET"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12111$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12112else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
12115fi
12116
12117
12118 done
12119fi
12120
12121if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12122 for ncn_progname in objdump; do
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12124$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12125 if test -x $with_build_time_tools/${ncn_progname}; then
12126 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128$as_echo "yes" >&6; }
12129 break
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
12133 fi
12134 done
12135fi
12136
12137if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12138 for ncn_progname in objdump; do
12139 if test -n "$ncn_target_tool_prefix"; then
12140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12141set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
12144if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12146else
12147 if test -n "$OBJDUMP_FOR_TARGET"; then
12148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12149else
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12160 fi
12161done
12162 done
12163IFS=$as_save_IFS
12164
12165fi
12166fi
12167OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12168if test -n "$OBJDUMP_FOR_TARGET"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12170$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12171else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
12174fi
12175
12176
12177 fi
12178 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12180set dummy ${ncn_progname}; ac_word=$2
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
12183if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185else
12186 if test -n "$OBJDUMP_FOR_TARGET"; then
12187 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12196 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200done
12201 done
12202IFS=$as_save_IFS
12203
12204fi
12205fi
12206OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12207if test -n "$OBJDUMP_FOR_TARGET"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12209$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12210else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216 fi
12217 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12218 done
12219fi
12220
12221if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12222 set dummy objdump
12223 if test $build = $target ; then
12224 OBJDUMP_FOR_TARGET="$2"
12225 else
12226 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12227 fi
12228else
12229 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12230fi
12231
12232else
12233 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12234fi
12235
12236
12237
12238
12239if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12240 if test -n "$with_build_time_tools"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12242$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12243 if test -x $with_build_time_tools/ranlib; then
12244 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12245 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12247$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
12251 fi
12252 elif test $build != $host && test $have_gcc_for_target = yes; then
12253 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12254 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12255 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12256 fi
12257fi
12258if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12259 # Extract the first word of "ranlib", so it can be a program name with args.
12260set dummy ranlib; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265else
12266 case $RANLIB_FOR_TARGET in
12267 [\\/]* | ?:[\\/]*)
12268 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12269 ;;
12270 *)
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $gcc_cv_tool_dirs
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12278 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282done
12283 done
12284IFS=$as_save_IFS
12285
12286 ;;
12287esac
12288fi
12289RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12290if test -n "$RANLIB_FOR_TARGET"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12292$as_echo "$RANLIB_FOR_TARGET" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299fi
12300if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12301
12302
12303if test -n "$RANLIB_FOR_TARGET"; then
12304 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12305elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12306 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12307fi
12308
12309if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12310 for ncn_progname in ranlib; do
12311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12312set dummy ${ncn_progname}; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317else
12318 if test -n "$RANLIB_FOR_TARGET"; then
12319 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12339if test -n "$RANLIB_FOR_TARGET"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12341$as_echo "$RANLIB_FOR_TARGET" >&6; }
12342else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347
12348 done
12349fi
12350
12351if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12352 for ncn_progname in ranlib; do
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12354$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12355 if test -x $with_build_time_tools/${ncn_progname}; then
12356 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358$as_echo "yes" >&6; }
12359 break
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363 fi
12364 done
12365fi
12366
12367if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12368 for ncn_progname in ranlib; do
12369 if test -n "$ncn_target_tool_prefix"; then
12370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373$as_echo_n "checking for $ac_word... " >&6; }
12374if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376else
12377 if test -n "$RANLIB_FOR_TARGET"; then
12378 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12379else
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12390 fi
12391done
12392 done
12393IFS=$as_save_IFS
12394
12395fi
12396fi
12397RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12398if test -n "$RANLIB_FOR_TARGET"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12400$as_echo "$RANLIB_FOR_TARGET" >&6; }
12401else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
12404fi
12405
12406
12407 fi
12408 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410set dummy ${ncn_progname}; ac_word=$2
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
12413if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415else
12416 if test -n "$RANLIB_FOR_TARGET"; then
12417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12418else
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 break 2
12429 fi
12430done
12431 done
12432IFS=$as_save_IFS
12433
12434fi
12435fi
12436RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12437if test -n "$RANLIB_FOR_TARGET"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12439$as_echo "$RANLIB_FOR_TARGET" >&6; }
12440else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443fi
12444
12445
12446 fi
12447 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12448 done
12449fi
12450
12451if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12452 set dummy ranlib
12453 if test $build = $target ; then
12454 RANLIB_FOR_TARGET="$2"
12455 else
12456 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12457 fi
12458else
12459 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12460fi
12461
12462else
12463 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12464fi
12465
12466
12467
12468
12469if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12470 if test -n "$with_build_time_tools"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12472$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12473 if test -x $with_build_time_tools/strip; then
12474 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12475 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12477$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481 fi
12482 elif test $build != $host && test $have_gcc_for_target = yes; then
12483 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12484 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12485 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12486 fi
12487fi
12488if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12489 # Extract the first word of "strip", so it can be a program name with args.
12490set dummy strip; ac_word=$2
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492$as_echo_n "checking for $ac_word... " >&6; }
12493if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495else
12496 case $STRIP_FOR_TARGET in
12497 [\\/]* | ?:[\\/]*)
12498 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12499 ;;
12500 *)
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502for as_dir in $gcc_cv_tool_dirs
12503do
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12508 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12511 fi
12512done
12513 done
12514IFS=$as_save_IFS
12515
12516 ;;
12517esac
12518fi
12519STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12520if test -n "$STRIP_FOR_TARGET"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12522$as_echo "$STRIP_FOR_TARGET" >&6; }
12523else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
12526fi
12527
12528
12529fi
12530if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12531
12532
12533if test -n "$STRIP_FOR_TARGET"; then
12534 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12535elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12536 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12537fi
12538
12539if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12540 for ncn_progname in strip; do
12541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12542set dummy ${ncn_progname}; ac_word=$2
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547else
12548 if test -n "$STRIP_FOR_TARGET"; then
12549 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12561 fi
12562done
12563 done
12564IFS=$as_save_IFS
12565
12566fi
12567fi
12568STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12569if test -n "$STRIP_FOR_TARGET"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12571$as_echo "$STRIP_FOR_TARGET" >&6; }
12572else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577
12578 done
12579fi
12580
12581if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12582 for ncn_progname in strip; do
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12584$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12585 if test -x $with_build_time_tools/${ncn_progname}; then
12586 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588$as_echo "yes" >&6; }
12589 break
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
12593 fi
12594 done
12595fi
12596
12597if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12598 for ncn_progname in strip; do
12599 if test -n "$ncn_target_tool_prefix"; then
12600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12601set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603$as_echo_n "checking for $ac_word... " >&6; }
12604if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606else
12607 if test -n "$STRIP_FOR_TARGET"; then
12608 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12609else
12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611for as_dir in $PATH
12612do
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12620 fi
12621done
12622 done
12623IFS=$as_save_IFS
12624
12625fi
12626fi
12627STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12628if test -n "$STRIP_FOR_TARGET"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12630$as_echo "$STRIP_FOR_TARGET" >&6; }
12631else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
12634fi
12635
12636
12637 fi
12638 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12640set dummy ${ncn_progname}; ac_word=$2
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642$as_echo_n "checking for $ac_word... " >&6; }
12643if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12644 $as_echo_n "(cached) " >&6
12645else
12646 if test -n "$STRIP_FOR_TARGET"; then
12647 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12648else
12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12659 fi
12660done
12661 done
12662IFS=$as_save_IFS
12663
12664fi
12665fi
12666STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12667if test -n "$STRIP_FOR_TARGET"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12669$as_echo "$STRIP_FOR_TARGET" >&6; }
12670else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
12673fi
12674
12675
12676 fi
12677 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12678 done
12679fi
12680
12681if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12682 set dummy strip
12683 if test $build = $target ; then
12684 STRIP_FOR_TARGET="$2"
12685 else
12686 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12687 fi
12688else
12689 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12690fi
12691
12692else
12693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12694fi
12695
12696
12697
12698
12699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12700 if test -n "$with_build_time_tools"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12702$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12703 if test -x $with_build_time_tools/windres; then
12704 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12705 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12707$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710$as_echo "no" >&6; }
12711 fi
12712 elif test $build != $host && test $have_gcc_for_target = yes; then
12713 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12714 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12715 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12716 fi
12717fi
12718if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12719 # Extract the first word of "windres", so it can be a program name with args.
12720set dummy windres; ac_word=$2
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
12723if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725else
12726 case $WINDRES_FOR_TARGET in
12727 [\\/]* | ?:[\\/]*)
12728 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12729 ;;
12730 *)
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732for as_dir in $gcc_cv_tool_dirs
12733do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12738 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742done
12743 done
12744IFS=$as_save_IFS
12745
12746 ;;
12747esac
12748fi
12749WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12750if test -n "$WINDRES_FOR_TARGET"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12752$as_echo "$WINDRES_FOR_TARGET" >&6; }
12753else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
12756fi
12757
12758
12759fi
12760if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12761
12762
12763if test -n "$WINDRES_FOR_TARGET"; then
12764 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12765elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12766 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12767fi
12768
12769if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12770 for ncn_progname in windres; do
12771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12772set dummy ${ncn_progname}; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$WINDRES_FOR_TARGET"; then
12779 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12799if test -n "$WINDRES_FOR_TARGET"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12801$as_echo "$WINDRES_FOR_TARGET" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808 done
12809fi
12810
12811if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12812 for ncn_progname in windres; do
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12814$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12815 if test -x $with_build_time_tools/${ncn_progname}; then
12816 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818$as_echo "yes" >&6; }
12819 break
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
12823 fi
12824 done
12825fi
12826
12827if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12828 for ncn_progname in windres; do
12829 if test -n "$ncn_target_tool_prefix"; then
12830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12831set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
12834if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836else
12837 if test -n "$WINDRES_FOR_TARGET"; then
12838 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12839else
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12850 fi
12851done
12852 done
12853IFS=$as_save_IFS
12854
12855fi
12856fi
12857WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12858if test -n "$WINDRES_FOR_TARGET"; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12860$as_echo "$WINDRES_FOR_TARGET" >&6; }
12861else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
12864fi
12865
12866
12867 fi
12868 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12870set dummy ${ncn_progname}; ac_word=$2
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
12873if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875else
12876 if test -n "$WINDRES_FOR_TARGET"; then
12877 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12878else
12879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880for as_dir in $PATH
12881do
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12889 fi
12890done
12891 done
12892IFS=$as_save_IFS
12893
12894fi
12895fi
12896WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12897if test -n "$WINDRES_FOR_TARGET"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12899$as_echo "$WINDRES_FOR_TARGET" >&6; }
12900else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
12903fi
12904
12905
12906 fi
12907 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12908 done
12909fi
12910
12911if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12912 set dummy windres
12913 if test $build = $target ; then
12914 WINDRES_FOR_TARGET="$2"
12915 else
12916 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12917 fi
12918else
12919 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12920fi
12921
12922else
12923 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12924fi
12925
12926
12927
12928
12929if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12930 if test -n "$with_build_time_tools"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12932$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12933 if test -x $with_build_time_tools/windmc; then
12934 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12935 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12937$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12938 else
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940$as_echo "no" >&6; }
12941 fi
12942 elif test $build != $host && test $have_gcc_for_target = yes; then
12943 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12944 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12945 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12946 fi
12947fi
12948if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12949 # Extract the first word of "windmc", so it can be a program name with args.
12950set dummy windmc; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955else
12956 case $WINDMC_FOR_TARGET in
12957 [\\/]* | ?:[\\/]*)
12958 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12959 ;;
12960 *)
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $gcc_cv_tool_dirs
12963do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972done
12973 done
12974IFS=$as_save_IFS
12975
12976 ;;
12977esac
12978fi
12979WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12980if test -n "$WINDMC_FOR_TARGET"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12982$as_echo "$WINDMC_FOR_TARGET" >&6; }
12983else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
12986fi
12987
12988
12989fi
12990if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12991
12992
12993if test -n "$WINDMC_FOR_TARGET"; then
12994 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12995elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12996 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12997fi
12998
12999if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13000 for ncn_progname in windmc; do
13001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13002set dummy ${ncn_progname}; ac_word=$2
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13007else
13008 if test -n "$WINDMC_FOR_TARGET"; then
13009 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13018 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13021 fi
13022done
13023 done
13024IFS=$as_save_IFS
13025
13026fi
13027fi
13028WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13029if test -n "$WINDMC_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13031$as_echo "$WINDMC_FOR_TARGET" >&6; }
13032else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034$as_echo "no" >&6; }
13035fi
13036
13037
13038 done
13039fi
13040
13041if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13042 for ncn_progname in windmc; do
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13044$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13045 if test -x $with_build_time_tools/${ncn_progname}; then
13046 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048$as_echo "yes" >&6; }
13049 break
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053 fi
13054 done
13055fi
13056
13057if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13058 for ncn_progname in windmc; do
13059 if test -n "$ncn_target_tool_prefix"; then
13060 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13061set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063$as_echo_n "checking for $ac_word... " >&6; }
13064if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066else
13067 if test -n "$WINDMC_FOR_TARGET"; then
13068 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13069else
13070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071for as_dir in $PATH
13072do
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13077 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13080 fi
13081done
13082 done
13083IFS=$as_save_IFS
13084
13085fi
13086fi
13087WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13088if test -n "$WINDMC_FOR_TARGET"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13090$as_echo "$WINDMC_FOR_TARGET" >&6; }
13091else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
13094fi
13095
13096
13097 fi
13098 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13100set dummy ${ncn_progname}; ac_word=$2
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102$as_echo_n "checking for $ac_word... " >&6; }
13103if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105else
13106 if test -n "$WINDMC_FOR_TARGET"; then
13107 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13108else
13109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110for as_dir in $PATH
13111do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13119 fi
13120done
13121 done
13122IFS=$as_save_IFS
13123
13124fi
13125fi
13126WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13127if test -n "$WINDMC_FOR_TARGET"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13129$as_echo "$WINDMC_FOR_TARGET" >&6; }
13130else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133fi
13134
13135
13136 fi
13137 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13138 done
13139fi
13140
13141if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13142 set dummy windmc
13143 if test $build = $target ; then
13144 WINDMC_FOR_TARGET="$2"
13145 else
13146 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13147 fi
13148else
13149 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13150fi
13151
13152else
13153 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13154fi
13155
13156
13157RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13158
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13160$as_echo_n "checking where to find the target ar... " >&6; }
13161if test "x${build}" != "x${host}" ; then
13162 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13163 # We already found the complete path
13164 ac_dir=`dirname $AR_FOR_TARGET`
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13166$as_echo "pre-installed in $ac_dir" >&6; }
13167 else
13168 # Canadian cross, just use what we found
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13170$as_echo "pre-installed" >&6; }
13171 fi
13172else
13173 ok=yes
13174 case " ${configdirs} " in
13175 *" binutils "*) ;;
13176 *) ok=no ;;
13177 esac
13178
13179 if test $ok = yes; then
13180 # An in-tree tool is available and we can use it
13181 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13183$as_echo "just compiled" >&6; }
13184 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13185 # We already found the complete path
13186 ac_dir=`dirname $AR_FOR_TARGET`
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13188$as_echo "pre-installed in $ac_dir" >&6; }
13189 elif test "x$target" = "x$host"; then
13190 # We can use an host tool
13191 AR_FOR_TARGET='$(AR)'
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13193$as_echo "host tool" >&6; }
13194 else
13195 # We need a cross tool
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13197$as_echo "pre-installed" >&6; }
13198 fi
13199fi
13200
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13202$as_echo_n "checking where to find the target as... " >&6; }
13203if test "x${build}" != "x${host}" ; then
13204 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13205 # We already found the complete path
13206 ac_dir=`dirname $AS_FOR_TARGET`
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13208$as_echo "pre-installed in $ac_dir" >&6; }
13209 else
13210 # Canadian cross, just use what we found
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13212$as_echo "pre-installed" >&6; }
13213 fi
13214else
13215 ok=yes
13216 case " ${configdirs} " in
13217 *" gas "*) ;;
13218 *) ok=no ;;
13219 esac
13220
13221 if test $ok = yes; then
13222 # An in-tree tool is available and we can use it
13223 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13225$as_echo "just compiled" >&6; }
13226 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13227 # We already found the complete path
13228 ac_dir=`dirname $AS_FOR_TARGET`
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13230$as_echo "pre-installed in $ac_dir" >&6; }
13231 elif test "x$target" = "x$host"; then
13232 # We can use an host tool
13233 AS_FOR_TARGET='$(AS)'
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13235$as_echo "host tool" >&6; }
13236 else
13237 # We need a cross tool
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13239$as_echo "pre-installed" >&6; }
13240 fi
13241fi
13242
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13244$as_echo_n "checking where to find the target cc... " >&6; }
13245if test "x${build}" != "x${host}" ; then
13246 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13247 # We already found the complete path
13248 ac_dir=`dirname $CC_FOR_TARGET`
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13250$as_echo "pre-installed in $ac_dir" >&6; }
13251 else
13252 # Canadian cross, just use what we found
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13254$as_echo "pre-installed" >&6; }
13255 fi
13256else
13257 ok=yes
13258 case " ${configdirs} " in
13259 *" gcc "*) ;;
13260 *) ok=no ;;
13261 esac
13262
13263 if test $ok = yes; then
13264 # An in-tree tool is available and we can use it
13265 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13267$as_echo "just compiled" >&6; }
13268 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13269 # We already found the complete path
13270 ac_dir=`dirname $CC_FOR_TARGET`
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272$as_echo "pre-installed in $ac_dir" >&6; }
13273 elif test "x$target" = "x$host"; then
13274 # We can use an host tool
13275 CC_FOR_TARGET='$(CC)'
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13277$as_echo "host tool" >&6; }
13278 else
13279 # We need a cross tool
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13281$as_echo "pre-installed" >&6; }
13282 fi
13283fi
13284
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13286$as_echo_n "checking where to find the target c++... " >&6; }
13287if test "x${build}" != "x${host}" ; then
13288 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13289 # We already found the complete path
13290 ac_dir=`dirname $CXX_FOR_TARGET`
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13292$as_echo "pre-installed in $ac_dir" >&6; }
13293 else
13294 # Canadian cross, just use what we found
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13296$as_echo "pre-installed" >&6; }
13297 fi
13298else
13299 ok=yes
13300 case " ${configdirs} " in
13301 *" gcc "*) ;;
13302 *) ok=no ;;
13303 esac
13304 case ,${enable_languages}, in
13305 *,c++,*) ;;
13306 *) ok=no ;;
13307 esac
13308 if test $ok = yes; then
13309 # An in-tree tool is available and we can use it
13310 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13312$as_echo "just compiled" >&6; }
13313 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
13315 ac_dir=`dirname $CXX_FOR_TARGET`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317$as_echo "pre-installed in $ac_dir" >&6; }
13318 elif test "x$target" = "x$host"; then
13319 # We can use an host tool
13320 CXX_FOR_TARGET='$(CXX)'
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13322$as_echo "host tool" >&6; }
13323 else
13324 # We need a cross tool
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13326$as_echo "pre-installed" >&6; }
13327 fi
13328fi
13329
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13331$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13332if test "x${build}" != "x${host}" ; then
13333 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13334 # We already found the complete path
13335 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13337$as_echo "pre-installed in $ac_dir" >&6; }
13338 else
13339 # Canadian cross, just use what we found
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13341$as_echo "pre-installed" >&6; }
13342 fi
13343else
13344 ok=yes
13345 case " ${configdirs} " in
13346 *" gcc "*) ;;
13347 *) ok=no ;;
13348 esac
13349 case ,${enable_languages}, in
13350 *,c++,*) ;;
13351 *) ok=no ;;
13352 esac
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 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'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357$as_echo "just compiled" >&6; }
13358 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362$as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 RAW_CXX_FOR_TARGET='$(CXX)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367$as_echo "host tool" >&6; }
13368 else
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371$as_echo "pre-installed" >&6; }
13372 fi
13373fi
13374
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13376$as_echo_n "checking where to find the target dlltool... " >&6; }
13377if test "x${build}" != "x${host}" ; then
13378 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382$as_echo "pre-installed in $ac_dir" >&6; }
13383 else
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386$as_echo "pre-installed" >&6; }
13387 fi
13388else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" binutils "*) ;;
13392 *) ok=no ;;
13393 esac
13394
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399$as_echo "just compiled" >&6; }
13400 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
13402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404$as_echo "pre-installed in $ac_dir" >&6; }
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409$as_echo "host tool" >&6; }
13410 else
13411 # We need a cross tool
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413$as_echo "pre-installed" >&6; }
13414 fi
13415fi
13416
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13418$as_echo_n "checking where to find the target gcc... " >&6; }
13419if test "x${build}" != "x${host}" ; then
13420 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
13422 ac_dir=`dirname $GCC_FOR_TARGET`
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424$as_echo "pre-installed in $ac_dir" >&6; }
13425 else
13426 # Canadian cross, just use what we found
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428$as_echo "pre-installed" >&6; }
13429 fi
13430else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" gcc "*) ;;
13434 *) ok=no ;;
13435 esac
13436
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441$as_echo "just compiled" >&6; }
13442 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
13444 ac_dir=`dirname $GCC_FOR_TARGET`
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446$as_echo "pre-installed in $ac_dir" >&6; }
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 GCC_FOR_TARGET='$()'
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451$as_echo "host tool" >&6; }
13452 else
13453 # We need a cross tool
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455$as_echo "pre-installed" >&6; }
13456 fi
13457fi
13458
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13460$as_echo_n "checking where to find the target gcj... " >&6; }
13461if test "x${build}" != "x${host}" ; then
13462 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
13464 ac_dir=`dirname $GCJ_FOR_TARGET`
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466$as_echo "pre-installed in $ac_dir" >&6; }
13467 else
13468 # Canadian cross, just use what we found
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470$as_echo "pre-installed" >&6; }
13471 fi
13472else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gcc "*) ;;
13476 *) ok=no ;;
13477 esac
13478 case ,${enable_languages}, in
13479 *,java,*) ;;
13480 *) ok=no ;;
13481 esac
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486$as_echo "just compiled" >&6; }
13487 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $GCJ_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491$as_echo "pre-installed in $ac_dir" >&6; }
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 GCJ_FOR_TARGET='$(GCJ)'
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496$as_echo "host tool" >&6; }
13497 else
13498 # We need a cross tool
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500$as_echo "pre-installed" >&6; }
13501 fi
13502fi
13503
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13505$as_echo_n "checking where to find the target gfortran... " >&6; }
13506if test "x${build}" != "x${host}" ; then
13507 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
13509 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511$as_echo "pre-installed in $ac_dir" >&6; }
13512 else
13513 # Canadian cross, just use what we found
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515$as_echo "pre-installed" >&6; }
13516 fi
13517else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,fortran,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531$as_echo "just compiled" >&6; }
13532 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536$as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541$as_echo "host tool" >&6; }
13542 else
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545$as_echo "pre-installed" >&6; }
13546 fi
13547fi
13548
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13550$as_echo_n "checking where to find the target gccgo... " >&6; }
13551if test "x${build}" != "x${host}" ; then
13552 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $GOC_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556$as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560$as_echo "pre-installed" >&6; }
13561 fi
13562else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" gcc "*) ;;
13566 *) ok=no ;;
13567 esac
13568 case ,${enable_languages}, in
13569 *,go,*) ;;
13570 *) ok=no ;;
13571 esac
13572 if test $ok = yes; then
13573 # An in-tree tool is available and we can use it
13574 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13576$as_echo "just compiled" >&6; }
13577 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
13579 ac_dir=`dirname $GOC_FOR_TARGET`
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581$as_echo "pre-installed in $ac_dir" >&6; }
13582 elif test "x$target" = "x$host"; then
13583 # We can use an host tool
13584 GOC_FOR_TARGET='$(GOC)'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13586$as_echo "host tool" >&6; }
13587 else
13588 # We need a cross tool
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590$as_echo "pre-installed" >&6; }
13591 fi
13592fi
13593
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13595$as_echo_n "checking where to find the target ld... " >&6; }
13596if test "x${build}" != "x${host}" ; then
13597 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
13599 ac_dir=`dirname $LD_FOR_TARGET`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601$as_echo "pre-installed in $ac_dir" >&6; }
13602 else
13603 # Canadian cross, just use what we found
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605$as_echo "pre-installed" >&6; }
13606 fi
13607else
13608 ok=yes
13609 case " ${configdirs} " in
13610 *" ld "*) ;;
13611 *) ok=no ;;
13612 esac
13613
13614 if test $ok = yes; then
13615 # An in-tree tool is available and we can use it
13616 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13618$as_echo "just compiled" >&6; }
13619 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13620 # We already found the complete path
13621 ac_dir=`dirname $LD_FOR_TARGET`
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13623$as_echo "pre-installed in $ac_dir" >&6; }
13624 elif test "x$target" = "x$host"; then
13625 # We can use an host tool
13626 LD_FOR_TARGET='$(LD)'
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13628$as_echo "host tool" >&6; }
13629 else
13630 # We need a cross tool
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632$as_echo "pre-installed" >&6; }
13633 fi
13634fi
13635
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13637$as_echo_n "checking where to find the target lipo... " >&6; }
13638if test "x${build}" != "x${host}" ; then
13639 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13640 # We already found the complete path
13641 ac_dir=`dirname $LIPO_FOR_TARGET`
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13643$as_echo "pre-installed in $ac_dir" >&6; }
13644 else
13645 # Canadian cross, just use what we found
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13647$as_echo "pre-installed" >&6; }
13648 fi
13649else
13650 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13651 # We already found the complete path
13652 ac_dir=`dirname $LIPO_FOR_TARGET`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654$as_echo "pre-installed in $ac_dir" >&6; }
13655 elif test "x$target" = "x$host"; then
13656 # We can use an host tool
13657 LIPO_FOR_TARGET='$(LIPO)'
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13659$as_echo "host tool" >&6; }
13660 else
13661 # We need a cross tool
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13663$as_echo "pre-installed" >&6; }
13664 fi
13665fi
13666
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13668$as_echo_n "checking where to find the target nm... " >&6; }
13669if test "x${build}" != "x${host}" ; then
13670 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13671 # We already found the complete path
13672 ac_dir=`dirname $NM_FOR_TARGET`
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13674$as_echo "pre-installed in $ac_dir" >&6; }
13675 else
13676 # Canadian cross, just use what we found
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678$as_echo "pre-installed" >&6; }
13679 fi
13680else
13681 ok=yes
13682 case " ${configdirs} " in
13683 *" binutils "*) ;;
13684 *) ok=no ;;
13685 esac
13686
13687 if test $ok = yes; then
13688 # An in-tree tool is available and we can use it
13689 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13691$as_echo "just compiled" >&6; }
13692 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
13694 ac_dir=`dirname $NM_FOR_TARGET`
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696$as_echo "pre-installed in $ac_dir" >&6; }
13697 elif test "x$target" = "x$host"; then
13698 # We can use an host tool
13699 NM_FOR_TARGET='$(NM)'
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13701$as_echo "host tool" >&6; }
13702 else
13703 # We need a cross tool
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13705$as_echo "pre-installed" >&6; }
13706 fi
13707fi
13708
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13710$as_echo_n "checking where to find the target objdump... " >&6; }
13711if test "x${build}" != "x${host}" ; then
13712 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13713 # We already found the complete path
13714 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13716$as_echo "pre-installed in $ac_dir" >&6; }
13717 else
13718 # Canadian cross, just use what we found
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
13721 fi
13722else
13723 ok=yes
13724 case " ${configdirs} " in
13725 *" binutils "*) ;;
13726 *) ok=no ;;
13727 esac
13728
13729 if test $ok = yes; then
13730 # An in-tree tool is available and we can use it
13731 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13733$as_echo "just compiled" >&6; }
13734 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738$as_echo "pre-installed in $ac_dir" >&6; }
13739 elif test "x$target" = "x$host"; then
13740 # We can use an host tool
13741 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13743$as_echo "host tool" >&6; }
13744 else
13745 # We need a cross tool
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747$as_echo "pre-installed" >&6; }
13748 fi
13749fi
13750
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13752$as_echo_n "checking where to find the target ranlib... " >&6; }
13753if test "x${build}" != "x${host}" ; then
13754 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13755 # We already found the complete path
13756 ac_dir=`dirname $RANLIB_FOR_TARGET`
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13758$as_echo "pre-installed in $ac_dir" >&6; }
13759 else
13760 # Canadian cross, just use what we found
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13762$as_echo "pre-installed" >&6; }
13763 fi
13764else
13765 ok=yes
13766 case " ${configdirs} " in
13767 *" binutils "*) ;;
13768 *) ok=no ;;
13769 esac
13770
13771 if test $ok = yes; then
13772 # An in-tree tool is available and we can use it
13773 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13775$as_echo "just compiled" >&6; }
13776 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
13778 ac_dir=`dirname $RANLIB_FOR_TARGET`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780$as_echo "pre-installed in $ac_dir" >&6; }
13781 elif test "x$target" = "x$host"; then
13782 # We can use an host tool
13783 RANLIB_FOR_TARGET='$(RANLIB)'
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13785$as_echo "host tool" >&6; }
13786 else
13787 # We need a cross tool
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789$as_echo "pre-installed" >&6; }
13790 fi
13791fi
13792
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13794$as_echo_n "checking where to find the target strip... " >&6; }
13795if test "x${build}" != "x${host}" ; then
13796 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
13798 ac_dir=`dirname $STRIP_FOR_TARGET`
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800$as_echo "pre-installed in $ac_dir" >&6; }
13801 else
13802 # Canadian cross, just use what we found
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804$as_echo "pre-installed" >&6; }
13805 fi
13806else
13807 ok=yes
13808 case " ${configdirs} " in
13809 *" binutils "*) ;;
13810 *) ok=no ;;
13811 esac
13812
13813 if test $ok = yes; then
13814 # An in-tree tool is available and we can use it
13815 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13817$as_echo "just compiled" >&6; }
13818 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
13820 ac_dir=`dirname $STRIP_FOR_TARGET`
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822$as_echo "pre-installed in $ac_dir" >&6; }
13823 elif test "x$target" = "x$host"; then
13824 # We can use an host tool
13825 STRIP_FOR_TARGET='$(STRIP)'
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13827$as_echo "host tool" >&6; }
13828 else
13829 # We need a cross tool
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831$as_echo "pre-installed" >&6; }
13832 fi
13833fi
13834
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13836$as_echo_n "checking where to find the target windres... " >&6; }
13837if test "x${build}" != "x${host}" ; then
13838 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13839 # We already found the complete path
13840 ac_dir=`dirname $WINDRES_FOR_TARGET`
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13842$as_echo "pre-installed in $ac_dir" >&6; }
13843 else
13844 # Canadian cross, just use what we found
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
13847 fi
13848else
13849 ok=yes
13850 case " ${configdirs} " in
13851 *" binutils "*) ;;
13852 *) ok=no ;;
13853 esac
13854
13855 if test $ok = yes; then
13856 # An in-tree tool is available and we can use it
13857 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13859$as_echo "just compiled" >&6; }
13860 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
13862 ac_dir=`dirname $WINDRES_FOR_TARGET`
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864$as_echo "pre-installed in $ac_dir" >&6; }
13865 elif test "x$target" = "x$host"; then
13866 # We can use an host tool
13867 WINDRES_FOR_TARGET='$(WINDRES)'
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13869$as_echo "host tool" >&6; }
13870 else
13871 # We need a cross tool
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13873$as_echo "pre-installed" >&6; }
13874 fi
13875fi
13876
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13878$as_echo_n "checking where to find the target windmc... " >&6; }
13879if test "x${build}" != "x${host}" ; then
13880 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13881 # We already found the complete path
13882 ac_dir=`dirname $WINDMC_FOR_TARGET`
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13884$as_echo "pre-installed in $ac_dir" >&6; }
13885 else
13886 # Canadian cross, just use what we found
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888$as_echo "pre-installed" >&6; }
13889 fi
13890else
13891 ok=yes
13892 case " ${configdirs} " in
13893 *" binutils "*) ;;
13894 *) ok=no ;;
13895 esac
13896
13897 if test $ok = yes; then
13898 # An in-tree tool is available and we can use it
13899 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13901$as_echo "just compiled" >&6; }
13902 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13903 # We already found the complete path
13904 ac_dir=`dirname $WINDMC_FOR_TARGET`
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13906$as_echo "pre-installed in $ac_dir" >&6; }
13907 elif test "x$target" = "x$host"; then
13908 # We can use an host tool
13909 WINDMC_FOR_TARGET='$(WINDMC)'
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13911$as_echo "host tool" >&6; }
13912 else
13913 # We need a cross tool
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13915$as_echo "pre-installed" >&6; }
13916 fi
13917fi
13918
13919
13920
13921
13922
13923# Certain tools may need extra flags.
13924AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13925RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13926NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13927
13928# When building target libraries, except in a Canadian cross, we use
13929# the same toolchain as the compiler we just built.
13930COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13931COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13932COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13933if test $host = $build; then
13934 case " $configdirs " in
13935 *" gcc "*)
13936 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13937 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13938 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13939 ;;
13940 esac
13941fi
13942
13943
13944
13945
13946
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13948$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13949# Check whether --enable-maintainer-mode was given.
13950if test "${enable_maintainer_mode+set}" = set; then :
13951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13952else
13953 USE_MAINTAINER_MODE=no
13954fi
13955
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13957$as_echo "$USE_MAINTAINER_MODE" >&6; }
13958
13959
13960if test "$USE_MAINTAINER_MODE" = yes; then
13961 MAINTAINER_MODE_TRUE=
13962 MAINTAINER_MODE_FALSE='#'
13963else
13964 MAINTAINER_MODE_TRUE='#'
13965 MAINTAINER_MODE_FALSE=
13966fi
13967MAINT=$MAINTAINER_MODE_TRUE
13968
13969# ---------------------
13970# GCC bootstrap support
13971# ---------------------
13972
13973# Stage specific cflags for build.
13974stage1_cflags="-g"
13975case $build in
13976 vax-*-*)
13977 case ${GCC} in
13978 yes) stage1_cflags="-g -Wa,-J" ;;
13979 *) stage1_cflags="-g -J" ;;
13980 esac ;;
13981esac
13982
13983# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13984if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13985 saved_CFLAGS="$CFLAGS"
13986
13987 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13988 CFLAGS="$CFLAGS -fkeep-inline-functions"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13990$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h. */
13993
13994#if (__GNUC__ < 3) \
13995 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13996 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13997#error http://gcc.gnu.org/PR29382
13998#endif
13999
14000int
14001main ()
14002{
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008if ac_fn_c_try_compile "$LINENO"; then :
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14011else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013$as_echo "no" >&6; }
14014fi
14015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016
14017 CFLAGS="$saved_CFLAGS"
14018fi
14019
14020
14021
14022# Enable --enable-checking in stage1 of the compiler.
14023# Check whether --enable-stage1-checking was given.
14024if test "${enable_stage1_checking+set}" = set; then :
14025 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14026else
14027 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14028 stage1_checking=--enable-checking=yes,types
14029else
14030 stage1_checking=--enable-checking=$enable_checking,types
14031fi
14032fi
14033
14034
14035
14036# Enable -Werror in bootstrap stage2 and later.
14037# Check whether --enable-werror was given.
14038if test "${enable_werror+set}" = set; then :
14039 enableval=$enable_werror;
14040else
14041 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14042 enable_werror=yes
14043else
14044 enable_werror=no
14045fi
14046fi
14047
14048case ${enable_werror} in
14049 yes) stage2_werror_flag="--enable-werror-always" ;;
14050 *) stage2_werror_flag="" ;;
14051esac
14052
14053
14054# Specify what files to not compare during bootstrap.
14055
14056compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14057case "$target" in
14058 hppa*64*-*-hpux*) ;;
14059 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14060esac
14061case " $configdirs " in
14062*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14063esac
14064
14065
14066ac_config_files="$ac_config_files Makefile"
14067
14068cat >confcache <<\_ACEOF
14069# This file is a shell script that caches the results of configure
14070# tests run on this system so they can be shared between configure
14071# scripts and configure runs, see configure's option --config-cache.
14072# It is not useful on other systems. If it contains results you don't
14073# want to keep, you may remove or edit it.
14074#
14075# config.status only pays attention to the cache file if you give it
14076# the --recheck option to rerun configure.
14077#
14078# `ac_cv_env_foo' variables (set or unset) will be overridden when
14079# loading this file, other *unset* `ac_cv_foo' will be assigned the
14080# following values.
14081
14082_ACEOF
14083
14084# The following way of writing the cache mishandles newlines in values,
14085# but we know of no workaround that is simple, portable, and efficient.
14086# So, we kill variables containing newlines.
14087# Ultrix sh set writes to stderr and can't be redirected directly,
14088# and sets the high bit in the cache file unless we assign to the vars.
14089(
14090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14091 eval ac_val=\$$ac_var
14092 case $ac_val in #(
14093 *${as_nl}*)
14094 case $ac_var in #(
14095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14097 esac
14098 case $ac_var in #(
14099 _ | IFS | as_nl) ;; #(
14100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14101 *) { eval $ac_var=; unset $ac_var;} ;;
14102 esac ;;
14103 esac
14104 done
14105
14106 (set) 2>&1 |
14107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14108 *${as_nl}ac_space=\ *)
14109 # `set' does not quote correctly, so add quotes: double-quote
14110 # substitution turns \\\\ into \\, and sed turns \\ into \.
14111 sed -n \
14112 "s/'/'\\\\''/g;
14113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14114 ;; #(
14115 *)
14116 # `set' quotes correctly as required by POSIX, so do not add quotes.
14117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14118 ;;
14119 esac |
14120 sort
14121) |
14122 sed '
14123 /^ac_cv_env_/b end
14124 t clear
14125 :clear
14126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14127 t end
14128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14129 :end' >>confcache
14130if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14131 if test -w "$cache_file"; then
14132 test "x$cache_file" != "x/dev/null" &&
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14134$as_echo "$as_me: updating cache $cache_file" >&6;}
14135 cat confcache >$cache_file
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14138$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14139 fi
14140fi
14141rm -f confcache
14142
14143test "x$prefix" = xNONE && prefix=$ac_default_prefix
14144# Let make expand exec_prefix.
14145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14146
14147# Transform confdefs.h into DEFS.
14148# Protect against shell expansion while executing Makefile rules.
14149# Protect against Makefile macro expansion.
14150#
14151# If the first sed substitution is executed (which looks for macros that
14152# take arguments), then branch to the quote section. Otherwise,
14153# look for a macro that doesn't take arguments.
14154ac_script='
14155:mline
14156/\\$/{
14157 N
14158 s,\\\n,,
14159 b mline
14160}
14161t clear
14162:clear
14163s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14164t quote
14165s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14166t quote
14167b any
14168:quote
14169s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14170s/\[/\\&/g
14171s/\]/\\&/g
14172s/\$/$$/g
14173H
14174:any
14175${
14176 g
14177 s/^\n//
14178 s/\n/ /g
14179 p
14180}
14181'
14182DEFS=`sed -n "$ac_script" confdefs.h`
14183
14184
14185ac_libobjs=
14186ac_ltlibobjs=
14187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14188 # 1. Remove the extension, and $U if already installed.
14189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14190 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14192 # will be set to the directory where LIBOBJS objects are built.
14193 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14194 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14195done
14196LIBOBJS=$ac_libobjs
14197
14198LTLIBOBJS=$ac_ltlibobjs
14199
14200
14201
14202: ${CONFIG_STATUS=./config.status}
14203ac_write_fail=0
14204ac_clean_files_save=$ac_clean_files
14205ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14207$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14208as_write_fail=0
14209cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14210#! $SHELL
14211# Generated by $as_me.
14212# Run this file to recreate the current configuration.
14213# Compiler output produced by configure, useful for debugging
14214# configure, is in config.log if it exists.
14215
14216debug=false
14217ac_cs_recheck=false
14218ac_cs_silent=false
14219
14220SHELL=\${CONFIG_SHELL-$SHELL}
14221export SHELL
14222_ASEOF
14223cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14224## -------------------- ##
14225## M4sh Initialization. ##
14226## -------------------- ##
14227
14228# Be more Bourne compatible
14229DUALCASE=1; export DUALCASE # for MKS sh
14230if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14231 emulate sh
14232 NULLCMD=:
14233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14234 # is contrary to our usage. Disable this feature.
14235 alias -g '${1+"$@"}'='"$@"'
14236 setopt NO_GLOB_SUBST
14237else
14238 case `(set -o) 2>/dev/null` in #(
14239 *posix*) :
14240 set -o posix ;; #(
14241 *) :
14242 ;;
14243esac
14244fi
14245
14246
14247as_nl='
14248'
14249export as_nl
14250# Printing a long string crashes Solaris 7 /usr/bin/printf.
14251as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14253as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14254# Prefer a ksh shell builtin over an external printf program on Solaris,
14255# but without wasting forks for bash or zsh.
14256if test -z "$BASH_VERSION$ZSH_VERSION" \
14257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14258 as_echo='print -r --'
14259 as_echo_n='print -rn --'
14260elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14261 as_echo='printf %s\n'
14262 as_echo_n='printf %s'
14263else
14264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14266 as_echo_n='/usr/ucb/echo -n'
14267 else
14268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14269 as_echo_n_body='eval
14270 arg=$1;
14271 case $arg in #(
14272 *"$as_nl"*)
14273 expr "X$arg" : "X\\(.*\\)$as_nl";
14274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14275 esac;
14276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14277 '
14278 export as_echo_n_body
14279 as_echo_n='sh -c $as_echo_n_body as_echo'
14280 fi
14281 export as_echo_body
14282 as_echo='sh -c $as_echo_body as_echo'
14283fi
14284
14285# The user is always right.
14286if test "${PATH_SEPARATOR+set}" != set; then
14287 PATH_SEPARATOR=:
14288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14290 PATH_SEPARATOR=';'
14291 }
14292fi
14293
14294
14295# IFS
14296# We need space, tab and new line, in precisely that order. Quoting is
14297# there to prevent editors from complaining about space-tab.
14298# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14299# splitting by setting IFS to empty value.)
14300IFS=" "" $as_nl"
14301
14302# Find who we are. Look in the path if we contain no directory separator.
14303case $0 in #((
14304 *[\\/]* ) as_myself=$0 ;;
14305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306for as_dir in $PATH
14307do
14308 IFS=$as_save_IFS
14309 test -z "$as_dir" && as_dir=.
14310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14311 done
14312IFS=$as_save_IFS
14313
14314 ;;
14315esac
14316# We did not find ourselves, most probably we were run as `sh COMMAND'
14317# in which case we are not to be found in the path.
14318if test "x$as_myself" = x; then
14319 as_myself=$0
14320fi
14321if test ! -f "$as_myself"; then
14322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14323 exit 1
14324fi
14325
14326# Unset variables that we do not need and which cause bugs (e.g. in
14327# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14328# suppresses any "Segmentation fault" message there. '((' could
14329# trigger a bug in pdksh 5.2.14.
14330for as_var in BASH_ENV ENV MAIL MAILPATH
14331do eval test x\${$as_var+set} = xset \
14332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14333done
14334PS1='$ '
14335PS2='> '
14336PS4='+ '
14337
14338# NLS nuisances.
14339LC_ALL=C
14340export LC_ALL
14341LANGUAGE=C
14342export LANGUAGE
14343
14344# CDPATH.
14345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14346
14347
14348# as_fn_error ERROR [LINENO LOG_FD]
14349# ---------------------------------
14350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14352# script with status $?, using 1 if that was 0.
14353as_fn_error ()
14354{
14355 as_status=$?; test $as_status -eq 0 && as_status=1
14356 if test "$3"; then
14357 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14359 fi
14360 $as_echo "$as_me: error: $1" >&2
14361 as_fn_exit $as_status
14362} # as_fn_error
14363
14364
14365# as_fn_set_status STATUS
14366# -----------------------
14367# Set $? to STATUS, without forking.
14368as_fn_set_status ()
14369{
14370 return $1
14371} # as_fn_set_status
14372
14373# as_fn_exit STATUS
14374# -----------------
14375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14376as_fn_exit ()
14377{
14378 set +e
14379 as_fn_set_status $1
14380 exit $1
14381} # as_fn_exit
14382
14383# as_fn_unset VAR
14384# ---------------
14385# Portably unset VAR.
14386as_fn_unset ()
14387{
14388 { eval $1=; unset $1;}
14389}
14390as_unset=as_fn_unset
14391# as_fn_append VAR VALUE
14392# ----------------------
14393# Append the text in VALUE to the end of the definition contained in VAR. Take
14394# advantage of any shell optimizations that allow amortized linear growth over
14395# repeated appends, instead of the typical quadratic growth present in naive
14396# implementations.
14397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14398 eval 'as_fn_append ()
14399 {
14400 eval $1+=\$2
14401 }'
14402else
14403 as_fn_append ()
14404 {
14405 eval $1=\$$1\$2
14406 }
14407fi # as_fn_append
14408
14409# as_fn_arith ARG...
14410# ------------------
14411# Perform arithmetic evaluation on the ARGs, and store the result in the
14412# global $as_val. Take advantage of shells that can avoid forks. The arguments
14413# must be portable across $(()) and expr.
14414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14415 eval 'as_fn_arith ()
14416 {
14417 as_val=$(( $* ))
14418 }'
14419else
14420 as_fn_arith ()
14421 {
14422 as_val=`expr "$@" || test $? -eq 1`
14423 }
14424fi # as_fn_arith
14425
14426
14427if expr a : '\(a\)' >/dev/null 2>&1 &&
14428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14429 as_expr=expr
14430else
14431 as_expr=false
14432fi
14433
14434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14435 as_basename=basename
14436else
14437 as_basename=false
14438fi
14439
14440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14441 as_dirname=dirname
14442else
14443 as_dirname=false
14444fi
14445
14446as_me=`$as_basename -- "$0" ||
14447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14448 X"$0" : 'X\(//\)$' \| \
14449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14450$as_echo X/"$0" |
14451 sed '/^.*\/\([^/][^/]*\)\/*$/{
14452 s//\1/
14453 q
14454 }
14455 /^X\/\(\/\/\)$/{
14456 s//\1/
14457 q
14458 }
14459 /^X\/\(\/\).*/{
14460 s//\1/
14461 q
14462 }
14463 s/.*/./; q'`
14464
14465# Avoid depending upon Character Ranges.
14466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14469as_cr_digits='0123456789'
14470as_cr_alnum=$as_cr_Letters$as_cr_digits
14471
14472ECHO_C= ECHO_N= ECHO_T=
14473case `echo -n x` in #(((((
14474-n*)
14475 case `echo 'xy\c'` in
14476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14477 xy) ECHO_C='\c';;
14478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14479 ECHO_T=' ';;
14480 esac;;
14481*)
14482 ECHO_N='-n';;
14483esac
14484
14485rm -f conf$$ conf$$.exe conf$$.file
14486if test -d conf$$.dir; then
14487 rm -f conf$$.dir/conf$$.file
14488else
14489 rm -f conf$$.dir
14490 mkdir conf$$.dir 2>/dev/null
14491fi
14492if (echo >conf$$.file) 2>/dev/null; then
14493 if ln -s conf$$.file conf$$ 2>/dev/null; then
14494 as_ln_s='ln -s'
14495 # ... but there are two gotchas:
14496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14498 # In both cases, we have to default to `cp -p'.
14499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14500 as_ln_s='cp -p'
14501 elif ln conf$$.file conf$$ 2>/dev/null; then
14502 as_ln_s=ln
14503 else
14504 as_ln_s='cp -p'
14505 fi
14506else
14507 as_ln_s='cp -p'
14508fi
14509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14510rmdir conf$$.dir 2>/dev/null
14511
14512
14513# as_fn_mkdir_p
14514# -------------
14515# Create "$as_dir" as a directory, including parents if necessary.
14516as_fn_mkdir_p ()
14517{
14518
14519 case $as_dir in #(
14520 -*) as_dir=./$as_dir;;
14521 esac
14522 test -d "$as_dir" || eval $as_mkdir_p || {
14523 as_dirs=
14524 while :; do
14525 case $as_dir in #(
14526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14527 *) as_qdir=$as_dir;;
14528 esac
14529 as_dirs="'$as_qdir' $as_dirs"
14530 as_dir=`$as_dirname -- "$as_dir" ||
14531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$as_dir" : 'X\(//\)[^/]' \| \
14533 X"$as_dir" : 'X\(//\)$' \| \
14534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14535$as_echo X"$as_dir" |
14536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14537 s//\1/
14538 q
14539 }
14540 /^X\(\/\/\)[^/].*/{
14541 s//\1/
14542 q
14543 }
14544 /^X\(\/\/\)$/{
14545 s//\1/
14546 q
14547 }
14548 /^X\(\/\).*/{
14549 s//\1/
14550 q
14551 }
14552 s/.*/./; q'`
14553 test -d "$as_dir" && break
14554 done
14555 test -z "$as_dirs" || eval "mkdir $as_dirs"
14556 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14557
14558
14559} # as_fn_mkdir_p
14560if mkdir -p . 2>/dev/null; then
14561 as_mkdir_p='mkdir -p "$as_dir"'
14562else
14563 test -d ./-p && rmdir ./-p
14564 as_mkdir_p=false
14565fi
14566
14567if test -x / >/dev/null 2>&1; then
14568 as_test_x='test -x'
14569else
14570 if ls -dL / >/dev/null 2>&1; then
14571 as_ls_L_option=L
14572 else
14573 as_ls_L_option=
14574 fi
14575 as_test_x='
14576 eval sh -c '\''
14577 if test -d "$1"; then
14578 test -d "$1/.";
14579 else
14580 case $1 in #(
14581 -*)set "./$1";;
14582 esac;
14583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14584 ???[sx]*):;;*)false;;esac;fi
14585 '\'' sh
14586 '
14587fi
14588as_executable_p=$as_test_x
14589
14590# Sed expression to map a string onto a valid CPP name.
14591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14592
14593# Sed expression to map a string onto a valid variable name.
14594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14595
14596
14597exec 6>&1
14598## ----------------------------------- ##
14599## Main body of $CONFIG_STATUS script. ##
14600## ----------------------------------- ##
14601_ASEOF
14602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14603
14604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605# Save the log message, to keep $0 and so on meaningful, and to
14606# report actual input values of CONFIG_FILES etc. instead of their
14607# values after options handling.
14608ac_log="
14609This file was extended by $as_me, which was
14610generated by GNU Autoconf 2.64. Invocation command line was
14611
14612 CONFIG_FILES = $CONFIG_FILES
14613 CONFIG_HEADERS = $CONFIG_HEADERS
14614 CONFIG_LINKS = $CONFIG_LINKS
14615 CONFIG_COMMANDS = $CONFIG_COMMANDS
14616 $ $0 $@
14617
14618on `(hostname || uname -n) 2>/dev/null | sed 1q`
14619"
14620
14621_ACEOF
14622
14623case $ac_config_files in *"
14624"*) set x $ac_config_files; shift; ac_config_files=$*;;
14625esac
14626
14627
14628
14629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14630# Files that config.status was made for.
14631config_files="$ac_config_files"
14632
14633_ACEOF
14634
14635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14636ac_cs_usage="\
14637\`$as_me' instantiates files and other configuration actions
14638from templates according to the current configuration. Unless the files
14639and actions are specified as TAGs, all are instantiated by default.
14640
14641Usage: $0 [OPTION]... [TAG]...
14642
14643 -h, --help print this help, then exit
14644 -V, --version print version number and configuration settings, then exit
14645 -q, --quiet, --silent
14646 do not print progress messages
14647 -d, --debug don't remove temporary files
14648 --recheck update $as_me by reconfiguring in the same conditions
14649 --file=FILE[:TEMPLATE]
14650 instantiate the configuration file FILE
14651
14652Configuration files:
14653$config_files
14654
14655Report bugs to the package provider."
14656
14657_ACEOF
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659ac_cs_version="\\
14660config.status
14661configured by $0, generated by GNU Autoconf 2.64,
14662 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14663
14664Copyright (C) 2009 Free Software Foundation, Inc.
14665This config.status script is free software; the Free Software Foundation
14666gives unlimited permission to copy, distribute and modify it."
14667
14668ac_pwd='$ac_pwd'
14669srcdir='$srcdir'
14670INSTALL='$INSTALL'
14671AWK='$AWK'
14672test -n "\$AWK" || AWK=awk
14673_ACEOF
14674
14675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676# The default lists apply if the user does not specify any file.
14677ac_need_defaults=:
14678while test $# != 0
14679do
14680 case $1 in
14681 --*=*)
14682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14683 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14684 ac_shift=:
14685 ;;
14686 *)
14687 ac_option=$1
14688 ac_optarg=$2
14689 ac_shift=shift
14690 ;;
14691 esac
14692
14693 case $ac_option in
14694 # Handling of the options.
14695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14696 ac_cs_recheck=: ;;
14697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14698 $as_echo "$ac_cs_version"; exit ;;
14699 --debug | --debu | --deb | --de | --d | -d )
14700 debug=: ;;
14701 --file | --fil | --fi | --f )
14702 $ac_shift
14703 case $ac_optarg in
14704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14705 esac
14706 as_fn_append CONFIG_FILES " '$ac_optarg'"
14707 ac_need_defaults=false;;
14708 --he | --h | --help | --hel | -h )
14709 $as_echo "$ac_cs_usage"; exit ;;
14710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14712 ac_cs_silent=: ;;
14713
14714 # This is an error.
14715 -*) as_fn_error "unrecognized option: \`$1'
14716Try \`$0 --help' for more information." ;;
14717
14718 *) as_fn_append ac_config_targets " $1"
14719 ac_need_defaults=false ;;
14720
14721 esac
14722 shift
14723done
14724
14725ac_configure_extra_args=
14726
14727if $ac_cs_silent; then
14728 exec 6>/dev/null
14729 ac_configure_extra_args="$ac_configure_extra_args --silent"
14730fi
14731
14732_ACEOF
14733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734if \$ac_cs_recheck; then
14735 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14736 shift
14737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14738 CONFIG_SHELL='$SHELL'
14739 export CONFIG_SHELL
14740 exec "\$@"
14741fi
14742
14743_ACEOF
14744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745exec 5>>config.log
14746{
14747 echo
14748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14749## Running $as_me. ##
14750_ASBOX
14751 $as_echo "$ac_log"
14752} >&5
14753
14754_ACEOF
14755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14756#
14757# INIT-COMMANDS
14758#
14759extrasub_build="$extrasub_build"
14760 extrasub_host="$extrasub_host"
14761 extrasub_target="$extrasub_target"
14762
14763_ACEOF
14764
14765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14766
14767# Handling of arguments.
14768for ac_config_target in $ac_config_targets
14769do
14770 case $ac_config_target in
14771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14772
14773 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14774 esac
14775done
14776
14777
14778# If the user did not use the arguments to specify the items to instantiate,
14779# then the envvar interface is used. Set only those that are not.
14780# We use the long form for the default assignment because of an extremely
14781# bizarre bug on SunOS 4.1.3.
14782if $ac_need_defaults; then
14783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14784fi
14785
14786# Have a temporary directory for convenience. Make it in the build tree
14787# simply because there is no reason against having it here, and in addition,
14788# creating and moving files from /tmp can sometimes cause problems.
14789# Hook for its removal unless debugging.
14790# Note that there is a small window in which the directory will not be cleaned:
14791# after its creation but before its name has been assigned to `$tmp'.
14792$debug ||
14793{
14794 tmp=
14795 trap 'exit_status=$?
14796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14797' 0
14798 trap 'as_fn_exit 1' 1 2 13 15
14799}
14800# Create a (secure) tmp directory for tmp files.
14801
14802{
14803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14804 test -n "$tmp" && test -d "$tmp"
14805} ||
14806{
14807 tmp=./conf$$-$RANDOM
14808 (umask 077 && mkdir "$tmp")
14809} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14810
14811# Set up the scripts for CONFIG_FILES section.
14812# No need to generate them if there are no CONFIG_FILES.
14813# This happens for instance with `./config.status config.h'.
14814if test -n "$CONFIG_FILES"; then
14815
14816if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14817 ac_cs_awk_getline=:
14818 ac_cs_awk_pipe_init=
14819 ac_cs_awk_read_file='
14820 while ((getline aline < (F[key])) > 0)
14821 print(aline)
14822 close(F[key])'
14823 ac_cs_awk_pipe_fini=
14824else
14825 ac_cs_awk_getline=false
14826 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14827 ac_cs_awk_read_file='
14828 print "|#_!!_#|"
14829 print "cat " F[key] " &&"
14830 '$ac_cs_awk_pipe_init
14831 # The final `:' finishes the AND list.
14832 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14833fi
14834ac_cr=`echo X | tr X '\015'`
14835# On cygwin, bash can eat \r inside `` if the user requested igncr.
14836# But we know of no other shell where ac_cr would be empty at this
14837# point, so we can use a bashism as a fallback.
14838if test "x$ac_cr" = x; then
14839 eval ac_cr=\$\'\\r\'
14840fi
14841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14843 ac_cs_awk_cr='\r'
14844else
14845 ac_cs_awk_cr=$ac_cr
14846fi
14847
14848echo 'BEGIN {' >"$tmp/subs1.awk" &&
14849_ACEOF
14850
14851# Create commands to substitute file output variables.
14852{
14853 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14854 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14855 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14856 echo "_ACAWK" &&
14857 echo "_ACEOF"
14858} >conf$$files.sh &&
14859. ./conf$$files.sh ||
14860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14861rm -f conf$$files.sh
14862
14863{
14864 echo "cat >conf$$subs.awk <<_ACEOF" &&
14865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14866 echo "_ACEOF"
14867} >conf$$subs.sh ||
14868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14869ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14870ac_delim='%!_!# '
14871for ac_last_try in false false false false false :; do
14872 . ./conf$$subs.sh ||
14873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14874
14875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14876 if test $ac_delim_n = $ac_delim_num; then
14877 break
14878 elif $ac_last_try; then
14879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14880 else
14881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14882 fi
14883done
14884rm -f conf$$subs.sh
14885
14886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14888_ACEOF
14889sed -n '
14890h
14891s/^/S["/; s/!.*/"]=/
14892p
14893g
14894s/^[^!]*!//
14895:repl
14896t repl
14897s/'"$ac_delim"'$//
14898t delim
14899:nl
14900h
14901s/\(.\{148\}\).*/\1/
14902t more1
14903s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14904p
14905n
14906b repl
14907:more1
14908s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14909p
14910g
14911s/.\{148\}//
14912t nl
14913:delim
14914h
14915s/\(.\{148\}\).*/\1/
14916t more2
14917s/["\\]/\\&/g; s/^/"/; s/$/"/
14918p
14919b
14920:more2
14921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14922p
14923g
14924s/.\{148\}//
14925t delim
14926' <conf$$subs.awk | sed '
14927/^[^""]/{
14928 N
14929 s/\n//
14930}
14931' >>$CONFIG_STATUS || ac_write_fail=1
14932rm -f conf$$subs.awk
14933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934_ACAWK
14935cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14936 for (key in S) S_is_set[key] = 1
14937 FS = "\a"
14938 \$ac_cs_awk_pipe_init
14939}
14940{
14941 line = $ 0
14942 nfields = split(line, field, "@")
14943 substed = 0
14944 len = length(field[1])
14945 for (i = 2; i < nfields; i++) {
14946 key = field[i]
14947 keylen = length(key)
14948 if (S_is_set[key]) {
14949 value = S[key]
14950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14951 len += length(value) + length(field[++i])
14952 substed = 1
14953 } else
14954 len += 1 + keylen
14955 }
14956 if (nfields == 3 && !substed) {
14957 key = field[2]
14958 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14959 \$ac_cs_awk_read_file
14960 next
14961 }
14962 }
14963 print line
14964}
14965\$ac_cs_awk_pipe_fini
14966_ACAWK
14967_ACEOF
14968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14970 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14971else
14972 cat
14973fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14974 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14975_ACEOF
14976
14977# VPATH may cause trouble with some makes, so we remove $(srcdir),
14978# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14979# trailing colons and then remove the whole line if VPATH becomes empty
14980# (actually we leave an empty line to preserve line numbers).
14981if test "x$srcdir" = x.; then
14982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14983s/:*\$(srcdir):*/:/
14984s/:*\${srcdir}:*/:/
14985s/:*@srcdir@:*/:/
14986s/^\([^=]*=[ ]*\):*/\1/
14987s/:*$//
14988s/^[^=]*=[ ]*$//
14989}'
14990fi
14991
14992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993fi # test -n "$CONFIG_FILES"
14994
14995
14996eval set X " :F $CONFIG_FILES "
14997shift
14998for ac_tag
14999do
15000 case $ac_tag in
15001 :[FHLC]) ac_mode=$ac_tag; continue;;
15002 esac
15003 case $ac_mode$ac_tag in
15004 :[FHL]*:*);;
15005 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15006 :[FH]-) ac_tag=-:-;;
15007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15008 esac
15009 ac_save_IFS=$IFS
15010 IFS=:
15011 set x $ac_tag
15012 IFS=$ac_save_IFS
15013 shift
15014 ac_file=$1
15015 shift
15016
15017 case $ac_mode in
15018 :L) ac_source=$1;;
15019 :[FH])
15020 ac_file_inputs=
15021 for ac_f
15022 do
15023 case $ac_f in
15024 -) ac_f="$tmp/stdin";;
15025 *) # Look for the file first in the build tree, then in the source tree
15026 # (if the path is not absolute). The absolute path cannot be DOS-style,
15027 # because $ac_f cannot contain `:'.
15028 test -f "$ac_f" ||
15029 case $ac_f in
15030 [\\/$]*) false;;
15031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15032 esac ||
15033 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15034 esac
15035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15036 as_fn_append ac_file_inputs " '$ac_f'"
15037 done
15038
15039 # Let's still pretend it is `configure' which instantiates (i.e., don't
15040 # use $as_me), people would be surprised to read:
15041 # /* config.h. Generated by config.status. */
15042 configure_input='Generated from '`
15043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15044 `' by configure.'
15045 if test x"$ac_file" != x-; then
15046 configure_input="$ac_file. $configure_input"
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15048$as_echo "$as_me: creating $ac_file" >&6;}
15049 fi
15050 # Neutralize special characters interpreted by sed in replacement strings.
15051 case $configure_input in #(
15052 *\&* | *\|* | *\\* )
15053 ac_sed_conf_input=`$as_echo "$configure_input" |
15054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15055 *) ac_sed_conf_input=$configure_input;;
15056 esac
15057
15058 case $ac_tag in
15059 *:-:* | *:-) cat >"$tmp/stdin" \
15060 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15061 esac
15062 ;;
15063 esac
15064
15065 ac_dir=`$as_dirname -- "$ac_file" ||
15066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$ac_file" : 'X\(//\)[^/]' \| \
15068 X"$ac_file" : 'X\(//\)$' \| \
15069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15070$as_echo X"$ac_file" |
15071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15072 s//\1/
15073 q
15074 }
15075 /^X\(\/\/\)[^/].*/{
15076 s//\1/
15077 q
15078 }
15079 /^X\(\/\/\)$/{
15080 s//\1/
15081 q
15082 }
15083 /^X\(\/\).*/{
15084 s//\1/
15085 q
15086 }
15087 s/.*/./; q'`
15088 as_dir="$ac_dir"; as_fn_mkdir_p
15089 ac_builddir=.
15090
15091case "$ac_dir" in
15092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15093*)
15094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15095 # A ".." for each directory in $ac_dir_suffix.
15096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15097 case $ac_top_builddir_sub in
15098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15100 esac ;;
15101esac
15102ac_abs_top_builddir=$ac_pwd
15103ac_abs_builddir=$ac_pwd$ac_dir_suffix
15104# for backward compatibility:
15105ac_top_builddir=$ac_top_build_prefix
15106
15107case $srcdir in
15108 .) # We are building in place.
15109 ac_srcdir=.
15110 ac_top_srcdir=$ac_top_builddir_sub
15111 ac_abs_top_srcdir=$ac_pwd ;;
15112 [\\/]* | ?:[\\/]* ) # Absolute name.
15113 ac_srcdir=$srcdir$ac_dir_suffix;
15114 ac_top_srcdir=$srcdir
15115 ac_abs_top_srcdir=$srcdir ;;
15116 *) # Relative name.
15117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15118 ac_top_srcdir=$ac_top_build_prefix$srcdir
15119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15120esac
15121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15122
15123
15124 case $ac_mode in
15125 :F)
15126 #
15127 # CONFIG_FILE
15128 #
15129
15130 case $INSTALL in
15131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15133 esac
15134_ACEOF
15135
15136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137# If the template does not know about datarootdir, expand it.
15138# FIXME: This hack should be removed a few years after 2.60.
15139ac_datarootdir_hack=; ac_datarootdir_seen=
15140ac_sed_dataroot='
15141/datarootdir/ {
15142 p
15143 q
15144}
15145/@datadir@/p
15146/@docdir@/p
15147/@infodir@/p
15148/@localedir@/p
15149/@mandir@/p'
15150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15151*datarootdir*) ac_datarootdir_seen=yes;;
15152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15155_ACEOF
15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 ac_datarootdir_hack='
15158 s&@datadir@&$datadir&g
15159 s&@docdir@&$docdir&g
15160 s&@infodir@&$infodir&g
15161 s&@localedir@&$localedir&g
15162 s&@mandir@&$mandir&g
15163 s&\\\${datarootdir}&$datarootdir&g' ;;
15164esac
15165_ACEOF
15166
15167# Neutralize VPATH when `$srcdir' = `.'.
15168# Shell code in configure.ac might set extrasub.
15169# FIXME: do we really want to maintain this feature?
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171ac_sed_extra="$ac_vpsub
15172$extrasub
15173_ACEOF
15174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175:t
15176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15177s|@configure_input@|$ac_sed_conf_input|;t t
15178s&@top_builddir@&$ac_top_builddir_sub&;t t
15179s&@top_build_prefix@&$ac_top_build_prefix&;t t
15180s&@srcdir@&$ac_srcdir&;t t
15181s&@abs_srcdir@&$ac_abs_srcdir&;t t
15182s&@top_srcdir@&$ac_top_srcdir&;t t
15183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15184s&@builddir@&$ac_builddir&;t t
15185s&@abs_builddir@&$ac_abs_builddir&;t t
15186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15187s&@INSTALL@&$ac_INSTALL&;t t
15188$ac_datarootdir_hack
15189"
15190eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15191if $ac_cs_awk_getline; then
15192 $AWK -f "$tmp/subs.awk"
15193else
15194 $AWK -f "$tmp/subs.awk" | $SHELL
15195fi >$tmp/out \
15196 || as_fn_error "could not create $ac_file" "$LINENO" 5
15197
15198test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15202which seems to be undefined. Please make sure it is defined." >&5
15203$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15204which seems to be undefined. Please make sure it is defined." >&2;}
15205
15206 rm -f "$tmp/stdin"
15207 case $ac_file in
15208 -) cat "$tmp/out" && rm -f "$tmp/out";;
15209 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15210 esac \
15211 || as_fn_error "could not create $ac_file" "$LINENO" 5
15212 ;;
15213
15214
15215
15216 esac
15217
15218
15219 case $ac_file$ac_mode in
15220 "Makefile":F) sed "$extrasub_build" Makefile |
15221 sed "$extrasub_host" |
15222 sed "$extrasub_target" > mf$$
15223 mv -f mf$$ Makefile ;;
15224
15225 esac
15226done # for ac_tag
15227
15228
15229as_fn_exit 0
15230_ACEOF
15231ac_clean_files=$ac_clean_files_save
15232
15233test $ac_write_fail = 0 ||
15234 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15235
15236
15237# configure is writing to config.log, and then calls config.status.
15238# config.status does its own redirection, appending to config.log.
15239# Unfortunately, on DOS this fails, as config.log is still kept open
15240# by configure, so config.status won't be able to write to it; its
15241# output is simply discarded. So we exec the FD to /dev/null,
15242# effectively closing config.log, so it can be properly (re)opened and
15243# appended to by config.status. When coming back to configure, we
15244# need to make the FD available again.
15245if test "$no_create" != yes; then
15246 ac_cs_success=:
15247 ac_config_status_args=
15248 test "$silent" = yes &&
15249 ac_config_status_args="$ac_config_status_args --quiet"
15250 exec 5>/dev/null
15251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15252 exec 5>>config.log
15253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15254 # would make configure fail if this is the last instruction.
15255 $ac_cs_success || as_fn_exit $?
15256fi
15257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15260fi
15261
This page took 0.082671 seconds and 4 git commands to generate.