Merge branch 'vendor/BZIP'
[dragonfly.git] / contrib / binutils-2.20 / 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
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
622target_configargs
623configdirs
624host_configargs
625build_configdirs
626build_configargs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
634CXXFLAGS_FOR_TARGET
635CFLAGS_FOR_TARGET
636DEBUG_PREFIX_CFLAGS_FOR_TARGET
637SYSROOT_CFLAGS_FOR_TARGET
638stage1_languages
639clooginc
640clooglibs
641pplinc
642ppllibs
643poststage1_libs
644poststage1_ldflags
645stage1_libs
646stage1_ldflags
647extra_mpc_mpfr_configure_flags
648extra_mpc_gmp_configure_flags
649extra_mpfr_configure_flags
650gmpinc
651gmplibs
652do_compare
653GNATMAKE
654GNATBIND
655ac_ct_CXX
656CXXFLAGS
657CXX
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665target_subdir
666host_subdir
667build_subdir
668build_libsubdir
669AWK
670SED
671LN_S
672LN
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676target_os
677target_vendor
678target_cpu
679target
680host_os
681host_vendor
682host_cpu
683host
684target_noncanonical
685host_noncanonical
686build_noncanonical
687build_os
688build_vendor
689build_cpu
690build
691TOPLEVEL_CONFIGURE_ARGUMENTS
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files='serialization_dependencies
731host_makefile_frag
732target_makefile_frag
733alphaieee_frag
734ospace_frag'
735ac_user_opts='
736enable_option_checking
737with_build_libsubdir
738enable_gold
739enable_libada
740enable_libssp
741enable_build_with_cxx
742with_mpc
743with_mpc_include
744with_mpc_lib
745with_mpfr_dir
746with_mpfr
747with_mpfr_include
748with_mpfr_lib
749with_gmp_dir
750with_gmp
751with_gmp_include
752with_gmp_lib
753with_host_libstdcxx
754with_stage1_ldflags
755with_stage1_libs
756with_boot_ldflags
757with_boot_libs
758with_ppl
759with_ppl_include
760with_ppl_lib
761enable_ppl_version_check
762with_cloog
763with_cloog_include
764with_cloog_lib
765enable_cloog_version_check
766enable_stage1_languages
767enable_objc_gc
768with_build_sysroot
769with_debug_prefix_map
770enable_bootstrap
771enable_serial_configure
772with_build_time_tools
773enable_maintainer_mode
774enable_stage1_checking
775enable_werror
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CXX
786CXXFLAGS
787CCC
788AR
789AS
790DLLTOOL
791LD
792LIPO
793NM
794RANLIB
795STRIP
796WINDRES
797WINDMC
798OBJCOPY
799OBJDUMP
800CC_FOR_TARGET
801CXX_FOR_TARGET
802GCC_FOR_TARGET
803GCJ_FOR_TARGET
804GFORTRAN_FOR_TARGET
805AR_FOR_TARGET
806AS_FOR_TARGET
807DLLTOOL_FOR_TARGET
808LD_FOR_TARGET
809LIPO_FOR_TARGET
810NM_FOR_TARGET
811OBJDUMP_FOR_TARGET
812RANLIB_FOR_TARGET
813STRIP_FOR_TARGET
814WINDRES_FOR_TARGET
815WINDMC_FOR_TARGET'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929"enable_$ac_useropt"
930"*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
945
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information."
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 ;;
1221
1222 esac
1223done
1224
1225if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1243do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271 If a cross compiler is detected then cross compile mode will be used." >&2
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322else
1323 ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332 pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1344
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359\`configure' configures this package to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412_ACEOF
1413
1414 cat <<\_ACEOF
1415
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429
1430 cat <<\_ACEOF
1431
1432Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-gold use gold instead of ld
1437 --enable-libada build libada directory
1438 --enable-libssp build libssp directory
1439 --enable-build-with-cxx build with C++ compiler instead of C compiler
1440 --disable-ppl-version-check disable check for PPL version
1441 --disable-cloog-version-check disable check for CLooG version
1442 --enable-stage1-languages[=all] choose additional languages to build during
1443 stage1. Mostly useful for compiler development.
1444 --enable-objc-gc enable use of Boehm's garbage collector with the
1445 GNU Objective-C runtime
1446 --enable-bootstrap enable bootstrapping [yes if native build]
1447 --enable-serial-[{host,target,build}-]configure
1448 force sequential configuration of
1449 sub-packages for the host, target or build
1450 machine, or all sub-packages
1451 --enable-maintainer-mode enable make rules and dependencies not useful
1452 (and sometimes confusing) to the casual installer
1453 --enable-stage1-checking[=all] choose additional checking for stage1
1454 of the compiler
1455 --enable-werror enable -Werror in bootstrap stage2 and later
1456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-build-libsubdir=DIR Directory where to find libraries for build system
1461 --with-mpc=PATH specify prefix directory for installed MPC package.
1462 Equivalent to --with-mpc-include=PATH/include
1463 plus --with-mpc-lib=PATH/lib
1464 --with-mpc-include=PATH
1465 specify directory for installed MPC include files
1466 --with-mpc-lib=PATH specify directory for the installed MPC library
1467 --with-mpfr-dir=PATH this option has been REMOVED
1468 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1469 Equivalent to --with-mpfr-include=PATH/include
1470 plus --with-mpfr-lib=PATH/lib
1471 --with-mpfr-include=PATH
1472 specify directory for installed MPFR include files
1473 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1474 --with-gmp-dir=PATH this option has been REMOVED
1475 --with-gmp=PATH specify prefix directory for the installed GMP package.
1476 Equivalent to --with-gmp-include=PATH/include
1477 plus --with-gmp-lib=PATH/lib
1478 --with-gmp-include=PATH specify directory for installed GMP include files
1479 --with-gmp-lib=PATH specify directory for the installed GMP library
1480 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1481 when linking with PPL
1482 --with-stage1-ldflags=FLAGS Linker flags for stage1
1483 -with-stage1-libs=LIBS Libraries for stage1
1484 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1485 --with-boot-libs=LIBS Libraries for stage2 and later
1486 --with-ppl=PATH Specify prefix directory for the installed PPL package
1487 Equivalent to --with-ppl-include=PATH/include
1488 plus --with-ppl-lib=PATH/lib
1489 --with-ppl-include=PATH Specify directory for installed PPL include files
1490 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1491 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1492 Equivalent to --with-cloog-include=PATH/include
1493 plus --with-cloog-lib=PATH/lib
1494 --with-cloog-include=PATH Specify directory for installed CLooG include files
1495 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1496 --with-build-sysroot=SYSROOT
1497 use sysroot as the system root during the build
1498 --with-debug-prefix-map='A=B C=D ...'
1499 map A to B, C to D ... in debug information
1500 --with-build-time-tools=PATH
1501 use given path to find target tools during the build
1502
1503Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 AR AR for the host
1514 AS AS for the host
1515 DLLTOOL DLLTOOL for the host
1516 LD LD for the host
1517 LIPO LIPO for the host
1518 NM NM for the host
1519 RANLIB RANLIB for the host
1520 STRIP STRIP for the host
1521 WINDRES WINDRES for the host
1522 WINDMC WINDMC for the host
1523 OBJCOPY OBJCOPY for the host
1524 OBJDUMP OBJDUMP for the host
1525 CC_FOR_TARGET
1526 CC for the target
1527 CXX_FOR_TARGET
1528 CXX for the target
1529 GCC_FOR_TARGET
1530 GCC for the target
1531 GCJ_FOR_TARGET
1532 GCJ for the target
1533 GFORTRAN_FOR_TARGET
1534 GFORTRAN for the target
1535 AR_FOR_TARGET
1536 AR for the target
1537 AS_FOR_TARGET
1538 AS for the target
1539 DLLTOOL_FOR_TARGET
1540 DLLTOOL for the target
1541 LD_FOR_TARGET
1542 LD for the target
1543 LIPO_FOR_TARGET
1544 LIPO for the target
1545 NM_FOR_TARGET
1546 NM for the target
1547 OBJDUMP_FOR_TARGET
1548 OBJDUMP for the target
1549 RANLIB_FOR_TARGET
1550 RANLIB for the target
1551 STRIP_FOR_TARGET
1552 STRIP for the target
1553 WINDRES_FOR_TARGET
1554 WINDRES for the target
1555 WINDMC_FOR_TARGET
1556 WINDMC for the target
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to the package provider.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1619fi
1620
1621test -n "$ac_init_help" && exit $ac_status
1622if $ac_init_version; then
1623 cat <<\_ACEOF
1624configure
1625generated by GNU Autoconf 2.64
1626
1627Copyright (C) 2009 Free Software Foundation, Inc.
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
1631 exit
1632fi
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
1637
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_cxx_try_compile LINENO
1677# ----------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_cxx_try_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_cxx_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712} # ac_fn_cxx_try_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 $as_test_x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1757
1758} # ac_fn_c_try_link
1759cat >config.log <<_ACEOF
1760This file contains any messages produced by compilers while
1761running configure, to aid debugging if configure makes a mistake.
1762
1763It was created by $as_me, which was
1764generated by GNU Autoconf 2.64. Invocation command line was
1765
1766 $ $0 $@
1767
1768_ACEOF
1769exec 5>>config.log
1770{
1771cat <<_ASUNAME
1772## --------- ##
1773## Platform. ##
1774## --------- ##
1775
1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781
1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1784
1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1792
1793_ASUNAME
1794
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 $as_echo "PATH: $as_dir"
1801 done
1802IFS=$as_save_IFS
1803
1804} >&5
1805
1806cat >&5 <<_ACEOF
1807
1808
1809## ----------- ##
1810## Core tests. ##
1811## ----------- ##
1812
1813_ACEOF
1814
1815
1816# Keep a trace of the command line.
1817# Strip out --no-create and --no-recursion so they do not pile up.
1818# Strip out --silent because we don't want to record it for future runs.
1819# Also quote any args containing shell meta-characters.
1820# Make two passes to allow for proper duplicate-argument suppression.
1821ac_configure_args=
1822ac_configure_args0=
1823ac_configure_args1=
1824ac_must_keep_next=false
1825for ac_pass in 1 2
1826do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
1834 *\'*)
1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 case $ac_pass in
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 2)
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
1856 as_fn_append ac_configure_args " '$ac_arg'"
1857 ;;
1858 esac
1859 done
1860done
1861{ ac_configure_args0=; unset ac_configure_args0;}
1862{ ac_configure_args1=; unset ac_configure_args1;}
1863
1864# When interrupted or exit'd, cleanup temporary files, and complete
1865# config.log. We remove comments because anyway the quotes in there
1866# would cause problems or look ugly.
1867# WARNING: Use '\'' to represent an apostrophe within the trap.
1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869trap 'exit_status=$?
1870 # Save into config.log some information that might help in debugging.
1871 {
1872 echo
1873
1874 cat <<\_ASBOX
1875## ---------------- ##
1876## Cache variables. ##
1877## ---------------- ##
1878_ASBOX
1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
1881(
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
1897 (set) 2>&1 |
1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
1900 sed -n \
1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
1904 *)
1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 ;;
1907 esac |
1908 sort
1909)
1910 echo
1911
1912 cat <<\_ASBOX
1913## ----------------- ##
1914## Output variables. ##
1915## ----------------- ##
1916_ASBOX
1917 echo
1918 for ac_var in $ac_subst_vars
1919 do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
1925 done | sort
1926 echo
1927
1928 if test -n "$ac_subst_files"; then
1929 cat <<\_ASBOX
1930## ------------------- ##
1931## File substitutions. ##
1932## ------------------- ##
1933_ASBOX
1934 echo
1935 for ac_var in $ac_subst_files
1936 do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 $as_echo "$ac_var='\''$ac_val'\''"
1942 done | sort
1943 echo
1944 fi
1945
1946 if test -s confdefs.h; then
1947 cat <<\_ASBOX
1948## ----------- ##
1949## confdefs.h. ##
1950## ----------- ##
1951_ASBOX
1952 echo
1953 cat confdefs.h
1954 echo
1955 fi
1956 test "$ac_signal" != 0 &&
1957 $as_echo "$as_me: caught signal $ac_signal"
1958 $as_echo "$as_me: exit $exit_status"
1959 } >&5
1960 rm -f core *.core core.conftest.* &&
1961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1962 exit $exit_status
1963' 0
1964for ac_signal in 1 2 13 15; do
1965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1966done
1967ac_signal=0
1968
1969# confdefs.h avoids OS command line length limits that DEFS can exceed.
1970rm -f -r conftest* confdefs.h
1971
1972$as_echo "/* confdefs.h */" > confdefs.h
1973
1974# Predefined preprocessor variables.
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_NAME "$PACKAGE_NAME"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_VERSION "$PACKAGE_VERSION"
1986_ACEOF
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_STRING "$PACKAGE_STRING"
1990_ACEOF
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994_ACEOF
1995
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_URL "$PACKAGE_URL"
1998_ACEOF
1999
2000
2001# Let the site file select an alternate cache file if it wants to.
2002# Prefer an explicitly selected file to automatically selected ones.
2003ac_site_file1=NONE
2004ac_site_file2=NONE
2005if test -n "$CONFIG_SITE"; then
2006 ac_site_file1=$CONFIG_SITE
2007elif test "x$prefix" != xNONE; then
2008 ac_site_file1=$prefix/share/config.site
2009 ac_site_file2=$prefix/etc/config.site
2010else
2011 ac_site_file1=$ac_default_prefix/share/config.site
2012 ac_site_file2=$ac_default_prefix/etc/config.site
2013fi
2014for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2015do
2016 test "x$ac_site_file" = xNONE && continue
2017 if test -r "$ac_site_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2020 sed 's/^/| /' "$ac_site_file" >&5
2021 . "$ac_site_file"
2022 fi
2023done
2024
2025if test -r "$cache_file"; then
2026 # Some versions of bash will fail to source /dev/null (special
2027 # files actually), so we avoid doing that.
2028 if test -f "$cache_file"; then
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030$as_echo "$as_me: loading cache $cache_file" >&6;}
2031 case $cache_file in
2032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033 *) . "./$cache_file";;
2034 esac
2035 fi
2036else
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038$as_echo "$as_me: creating cache $cache_file" >&6;}
2039 >$cache_file
2040fi
2041
2042# Check that the precious variables saved in the cache have kept the same
2043# value.
2044ac_cache_corrupted=false
2045for ac_var in $ac_precious_vars; do
2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047 eval ac_new_set=\$ac_env_${ac_var}_set
2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049 eval ac_new_val=\$ac_env_${ac_var}_value
2050 case $ac_old_set,$ac_new_set in
2051 set,)
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2054 ac_cache_corrupted=: ;;
2055 ,set)
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2058 ac_cache_corrupted=: ;;
2059 ,);;
2060 *)
2061 if test "x$ac_old_val" != "x$ac_new_val"; then
2062 # differences in whitespace do not lead to failure.
2063 ac_old_val_w=`echo x $ac_old_val`
2064 ac_new_val_w=`echo x $ac_new_val`
2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068 ac_cache_corrupted=:
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072 eval $ac_var=\$ac_old_val
2073 fi
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2075$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2077$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2078 fi;;
2079 esac
2080 # Pass precious variables to config.status.
2081 if test "$ac_new_set" = set; then
2082 case $ac_new_val in
2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 *) ac_arg=$ac_var=$ac_new_val ;;
2085 esac
2086 case " $ac_configure_args " in
2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 esac
2090 fi
2091done
2092if $ac_cache_corrupted; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2098fi
2099## -------------------- ##
2100## Main body of script. ##
2101## -------------------- ##
2102
2103ac_ext=c
2104ac_cpp='$CPP $CPPFLAGS'
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117progname=$0
2118# if PWD already has a value, it is probably wrong.
2119if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2120
2121# Export original configure arguments for use by sub-configures.
2122# Quote arguments with shell meta charatcers.
2123TOPLEVEL_CONFIGURE_ARGUMENTS=
2124set -- "$progname" "$@"
2125for ac_arg
2126do
2127 case "$ac_arg" in
2128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2130 # if the argument is of the form -foo=baz, quote the baz part only
2131 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2132 *) ;;
2133 esac
2134 # Add the quoted argument to the list.
2135 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2136done
2137if test "$silent" = yes; then
2138 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2139fi
2140# Remove the initial space we just introduced and, as these will be
2141# expanded by make, quote '$'.
2142TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2143
2144
2145# Find the build, host, and target systems.
2146ac_aux_dir=
2147for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148 for ac_t in install-sh install.sh shtool; do
2149 if test -f "$ac_dir/$ac_t"; then
2150 ac_aux_dir=$ac_dir
2151 ac_install_sh="$ac_aux_dir/$ac_t -c"
2152 break 2
2153 fi
2154 done
2155done
2156if test -z "$ac_aux_dir"; then
2157 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2158fi
2159
2160# These three variables are undocumented and unsupported,
2161# and are intended to be withdrawn in a future Autoconf release.
2162# They can cause serious problems if a builder's source tree is in a directory
2163# whose full name contains unusual characters.
2164ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2165ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2166ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167
2168
2169# Make sure we can run config.sub.
2170$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174$as_echo_n "checking build system type... " >&6; }
2175if test "${ac_cv_build+set}" = set; then :
2176 $as_echo_n "(cached) " >&6
2177else
2178 ac_build_alias=$build_alias
2179test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181test "x$ac_build_alias" = x &&
2182 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2183ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2185
2186fi
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188$as_echo "$ac_cv_build" >&6; }
2189case $ac_cv_build in
2190*-*-*) ;;
2191*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2192esac
2193build=$ac_cv_build
2194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_build
2196shift
2197build_cpu=$1
2198build_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202build_os=$*
2203IFS=$ac_save_IFS
2204case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 case ${build_alias} in
2208 "") build_noncanonical=${build} ;;
2209 *) build_noncanonical=${build_alias} ;;
2210esac
2211
2212
2213
2214 case ${host_alias} in
2215 "") host_noncanonical=${build_noncanonical} ;;
2216 *) host_noncanonical=${host_alias} ;;
2217esac
2218
2219
2220
2221 case ${target_alias} in
2222 "") target_noncanonical=${host_noncanonical} ;;
2223 *) target_noncanonical=${target_alias} ;;
2224esac
2225
2226
2227
2228
2229test "$host_noncanonical" = "$target_noncanonical" &&
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2231 NONENONEs,x,x, &&
2232 program_transform_name=s,y,y,
2233
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2235$as_echo_n "checking host system type... " >&6; }
2236if test "${ac_cv_host+set}" = set; then :
2237 $as_echo_n "(cached) " >&6
2238else
2239 if test "x$host_alias" = x; then
2240 ac_cv_host=$ac_cv_build
2241else
2242 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2244fi
2245
2246fi
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2248$as_echo "$ac_cv_host" >&6; }
2249case $ac_cv_host in
2250*-*-*) ;;
2251*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2252esac
2253host=$ac_cv_host
2254ac_save_IFS=$IFS; IFS='-'
2255set x $ac_cv_host
2256shift
2257host_cpu=$1
2258host_vendor=$2
2259shift; shift
2260# Remember, the first character of IFS is used to create $*,
2261# except with old shells:
2262host_os=$*
2263IFS=$ac_save_IFS
2264case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2265
2266
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2268$as_echo_n "checking target system type... " >&6; }
2269if test "${ac_cv_target+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
2271else
2272 if test "x$target_alias" = x; then
2273 ac_cv_target=$ac_cv_host
2274else
2275 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2276 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2277fi
2278
2279fi
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2281$as_echo "$ac_cv_target" >&6; }
2282case $ac_cv_target in
2283*-*-*) ;;
2284*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2285esac
2286target=$ac_cv_target
2287ac_save_IFS=$IFS; IFS='-'
2288set x $ac_cv_target
2289shift
2290target_cpu=$1
2291target_vendor=$2
2292shift; shift
2293# Remember, the first character of IFS is used to create $*,
2294# except with old shells:
2295target_os=$*
2296IFS=$ac_save_IFS
2297case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2298
2299
2300# The aliases save the names the user supplied, while $host etc.
2301# will get canonicalized.
2302test -n "$target_alias" &&
2303 test "$program_prefix$program_suffix$program_transform_name" = \
2304 NONENONEs,x,x, &&
2305 program_prefix=${target_alias}-
2306
2307test "$program_prefix" != NONE &&
2308 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2309# Use a double $ so make ignores it.
2310test "$program_suffix" != NONE &&
2311 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2312# Double any \ or $.
2313# By default was `s,x,x', remove it if useless.
2314ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2315program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2316
2317
2318
2319# Get 'install' or 'install-sh' and its variants.
2320# Find a good install program. We prefer a C program (faster),
2321# so one script is as good as another. But avoid the broken or
2322# incompatible versions:
2323# SysV /etc/install, /usr/sbin/install
2324# SunOS /usr/etc/install
2325# IRIX /sbin/install
2326# AIX /bin/install
2327# AmigaOS /C/install, which installs bootblocks on floppy discs
2328# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2331# OS/2's system install, which has a completely different semantic
2332# ./install, which can be erroneously created by make from ./install.sh.
2333# Reject install programs that cannot install multiple files.
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335$as_echo_n "checking for a BSD-compatible install... " >&6; }
2336if test -z "$INSTALL"; then
2337if test "${ac_cv_path_install+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 # Account for people who put trailing slashes in PATH elements.
2346case $as_dir/ in #((
2347 ./ | .// | /[cC]/* | \
2348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350 /usr/ucb/* ) ;;
2351 *)
2352 # OSF1 and SCO ODT 3.0 have their own names for install.
2353 # Don't use installbsd from OSF since it installs stuff as root
2354 # by default.
2355 for ac_prog in ginstall scoinst install; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2358 if test $ac_prog = install &&
2359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # AIX install. It has an incompatible calling convention.
2361 :
2362 elif test $ac_prog = install &&
2363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # program-specific install script used by HP pwplus--don't use.
2365 :
2366 else
2367 rm -rf conftest.one conftest.two conftest.dir
2368 echo one > conftest.one
2369 echo two > conftest.two
2370 mkdir conftest.dir
2371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372 test -s conftest.one && test -s conftest.two &&
2373 test -s conftest.dir/conftest.one &&
2374 test -s conftest.dir/conftest.two
2375 then
2376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2377 break 3
2378 fi
2379 fi
2380 fi
2381 done
2382 done
2383 ;;
2384esac
2385
2386 done
2387IFS=$as_save_IFS
2388
2389rm -rf conftest.one conftest.two conftest.dir
2390
2391fi
2392 if test "${ac_cv_path_install+set}" = set; then
2393 INSTALL=$ac_cv_path_install
2394 else
2395 # As a last resort, use the slow shell script. Don't cache a
2396 # value for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the value is a relative name.
2399 INSTALL=$ac_install_sh
2400 fi
2401fi
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403$as_echo "$INSTALL" >&6; }
2404
2405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406# It thinks the first close brace ends the variable substitution.
2407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408
2409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410
2411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2414$as_echo_n "checking whether ln works... " >&6; }
2415if test "${acx_cv_prog_LN+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417else
2418 rm -f conftestdata_t
2419echo >conftestdata_f
2420if ln conftestdata_f conftestdata_t 2>/dev/null
2421then
2422 acx_cv_prog_LN=ln
2423else
2424 acx_cv_prog_LN=no
2425fi
2426rm -f conftestdata_f conftestdata_t
2427
2428fi
2429if test $acx_cv_prog_LN = no; then
2430 LN="cp"
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2432$as_echo "no, using $LN" >&6; }
2433else
2434 LN="$acx_cv_prog_LN"
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436$as_echo "yes" >&6; }
2437fi
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2440$as_echo_n "checking whether ln -s works... " >&6; }
2441LN_S=$as_ln_s
2442if test "$LN_S" = "ln -s"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444$as_echo "yes" >&6; }
2445else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2447$as_echo "no, using $LN_S" >&6; }
2448fi
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2451$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2452if test "${ac_cv_path_SED+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2456 for ac_i in 1 2 3 4 5 6 7; do
2457 ac_script="$ac_script$as_nl$ac_script"
2458 done
2459 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2460 { ac_script=; unset ac_script;}
2461 if test -z "$SED"; then
2462 ac_path_SED_found=false
2463 # Loop through the user's path and test for each of PROGNAME-LIST
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_prog in sed gsed; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2472 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2473# Check for GNU ac_path_SED and select it if it is found.
2474 # Check for GNU $ac_path_SED
2475case `"$ac_path_SED" --version 2>&1` in
2476*GNU*)
2477 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2478*)
2479 ac_count=0
2480 $as_echo_n 0123456789 >"conftest.in"
2481 while :
2482 do
2483 cat "conftest.in" "conftest.in" >"conftest.tmp"
2484 mv "conftest.tmp" "conftest.in"
2485 cp "conftest.in" "conftest.nl"
2486 $as_echo '' >> "conftest.nl"
2487 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2489 as_fn_arith $ac_count + 1 && ac_count=$as_val
2490 if test $ac_count -gt ${ac_path_SED_max-0}; then
2491 # Best one so far, save it but keep looking for a better one
2492 ac_cv_path_SED="$ac_path_SED"
2493 ac_path_SED_max=$ac_count
2494 fi
2495 # 10*(2^10) chars as input seems more than enough
2496 test $ac_count -gt 10 && break
2497 done
2498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2499esac
2500
2501 $ac_path_SED_found && break 3
2502 done
2503 done
2504 done
2505IFS=$as_save_IFS
2506 if test -z "$ac_cv_path_SED"; then
2507 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2508 fi
2509else
2510 ac_cv_path_SED=$SED
2511fi
2512
2513fi
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2515$as_echo "$ac_cv_path_SED" >&6; }
2516 SED="$ac_cv_path_SED"
2517 rm -f conftest.sed
2518
2519for ac_prog in gawk mawk nawk awk
2520do
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522set dummy $ac_prog; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_AWK+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527else
2528 if test -n "$AWK"; then
2529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_AWK="$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543 done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548AWK=$ac_cv_prog_AWK
2549if test -n "$AWK"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551$as_echo "$AWK" >&6; }
2552else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558 test -n "$AWK" && break
2559done
2560
2561
2562### we might need to use some other shell than /bin/sh for running subshells
2563### If we are on Windows, search for the shell. This will permit people
2564### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2565### without also having to set CONFIG_SHELL. This code will work when
2566### using bash, which sets OSTYPE.
2567case "${OSTYPE}" in
2568*win32*)
2569 if test x${CONFIG_SHELL} = x ; then
2570 if test ! -f /bin/sh ; then
2571 if test x${SHELL} != x && test -f ${SHELL} ; then
2572 CONFIG_SHELL=${SHELL}
2573 export CONFIG_SHELL
2574 else
2575 for prog in sh sh.exe bash bash.exe; do
2576 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2577 for dir in $PATH; do
2578 test -z "$dir" && dir=.
2579 if test -f $dir/$prog; then
2580 CONFIG_SHELL=$dir/$prog
2581 export CONFIG_SHELL
2582 break
2583 fi
2584 done
2585 IFS="$save_ifs"
2586 test -n "${CONFIG_SHELL}" && break
2587 done
2588 fi
2589 fi
2590 fi
2591 ;;
2592esac
2593
2594config_shell=${CONFIG_SHELL-/bin/sh}
2595
2596moveifchange=${srcdir}/move-if-change
2597
2598srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2599
2600# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2601# a relative path.
2602if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2603 INSTALL="${srcpwd}/install-sh -c"
2604fi
2605
2606# Set srcdir to "." if that's what it is.
2607# This is important for multilib support.
2608pwd=`${PWDCMD-pwd}`
2609if test "${pwd}" = "${srcpwd}" ; then
2610 srcdir=.
2611fi
2612
2613topsrcdir=$srcpwd
2614
2615extra_host_args=
2616
2617### To add a new directory to the tree, first choose whether it is a target
2618### or a host dependent tool. Then put it into the appropriate list
2619### (library or tools, host or target), doing a dependency sort.
2620
2621# Subdirs will be configured in the order listed in build_configdirs,
2622# configdirs, or target_configdirs; see the serialization section below.
2623
2624# Dependency sorting is only needed when *configuration* must be done in
2625# a particular order. In all cases a dependency should be specified in
2626# the Makefile, whether or not it's implicitly specified here.
2627
2628# Double entries in build_configdirs, configdirs, or target_configdirs may
2629# cause circular dependencies and break everything horribly.
2630
2631# these library is used by various programs built for the build
2632# environment
2633#
2634build_libs="build-libiberty"
2635
2636# these tools are built for the build environment
2637build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2638
2639# these libraries are used by various programs built for the host environment
2640#
2641host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2642
2643# these tools are built for the host environment
2644# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2645# know that we are building the simulator.
2646# binutils, gas and ld appear in that order because it makes sense to run
2647# "make check" in that particular order.
2648# If --enable-gold is used, "gold" will replace "ld".
2649host_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"
2650
2651# libgcj represents the runtime libraries only used by gcj.
2652libgcj="target-libffi \
2653 target-zlib \
2654 target-qthreads \
2655 target-libjava"
2656
2657# these libraries are built for the target environment, and are built after
2658# the host libraries and the host tools (which may be a cross compiler)
2659#
2660target_libraries="target-libgcc \
2661 target-libiberty \
2662 target-libgloss \
2663 target-newlib \
2664 target-libgomp \
2665 target-libstdc++-v3 \
2666 target-libmudflap \
2667 target-libssp \
2668 target-libgfortran \
2669 target-boehm-gc \
2670 ${libgcj} \
2671 target-libobjc \
2672 target-libada"
2673
2674# these tools are built using the target libraries, and are intended to
2675# run only in the target environment
2676#
2677# note: any program that *uses* libraries that are in the "target_libraries"
2678# list belongs in this list. those programs are also very likely
2679# candidates for the "native_only" list which follows
2680#
2681target_tools="target-examples target-groff target-gperf target-rda"
2682
2683################################################################################
2684
2685## All tools belong in one of the four categories, and are assigned above
2686## We assign ${configdirs} this way to remove all embedded newlines. This
2687## is important because configure will choke if they ever get through.
2688## ${configdirs} is directories we build using the host tools.
2689## ${target_configdirs} is directories we build using the target tools.
2690configdirs=`echo ${host_libs} ${host_tools}`
2691target_configdirs=`echo ${target_libraries} ${target_tools}`
2692build_configdirs=`echo ${build_libs} ${build_tools}`
2693
2694
2695
2696################################################################################
2697
2698srcname="gnu development package"
2699
2700# This gets set non-empty for some net releases of packages.
2701appdirs=""
2702
2703# Define is_cross_compiler to save on calls to 'test'.
2704is_cross_compiler=
2705if test x"${host}" = x"${target}" ; then
2706 is_cross_compiler=no
2707else
2708 is_cross_compiler=yes
2709fi
2710
2711# Find the build and target subdir names.
2712
2713# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2714# have matching libraries, they should use host libraries: Makefile.tpl
2715# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2716# However, they still use the build modules, because the corresponding
2717# host modules (e.g. bison) are only built for the host when bootstrap
2718# finishes. So:
2719# - build_subdir is where we find build modules, and never changes.
2720# - build_libsubdir is where we find build libraries, and can be overridden.
2721
2722# Prefix 'build-' so this never conflicts with target_subdir.
2723build_subdir="build-${build_noncanonical}"
2724
2725# Check whether --with-build-libsubdir was given.
2726if test "${with_build_libsubdir+set}" = set; then :
2727 withval=$with_build_libsubdir; build_libsubdir="$withval"
2728else
2729 build_libsubdir="$build_subdir"
2730fi
2731
2732# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2733if ( test $srcdir = . && test -d gcc ) \
2734 || test -d $srcdir/../host-${host_noncanonical}; then
2735 host_subdir="host-${host_noncanonical}"
2736else
2737 host_subdir=.
2738fi
2739# No prefix.
2740target_subdir=${target_noncanonical}
2741
2742
2743# Skipdirs are removed silently.
2744skipdirs=
2745# Noconfigdirs are removed loudly.
2746noconfigdirs=""
2747
2748use_gnu_ld=
2749# Make sure we don't let GNU ld be added if we didn't want it.
2750if test x$with_gnu_ld = xno ; then
2751 use_gnu_ld=no
2752 noconfigdirs="$noconfigdirs ld gold"
2753fi
2754
2755use_gnu_as=
2756# Make sure we don't let GNU as be added if we didn't want it.
2757if test x$with_gnu_as = xno ; then
2758 use_gnu_as=no
2759 noconfigdirs="$noconfigdirs gas"
2760fi
2761
2762# some tools are so dependent upon X11 that if we're not building with X,
2763# it's not even worth trying to configure, much less build, that tool.
2764
2765case ${with_x} in
2766 yes | "") ;; # the default value for this tree is that X11 is available
2767 no)
2768 skipdirs="${skipdirs} tk itcl libgui"
2769 # We won't be able to build gdbtk without X.
2770 enable_gdbtk=no
2771 ;;
2772 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2773esac
2774
2775# Some tools are only suitable for building in a "native" situation.
2776# Remove these if host!=target.
2777native_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"
2778
2779# Similarly, some are only suitable for cross toolchains.
2780# Remove these if host=target.
2781cross_only="target-libgloss target-newlib target-opcodes"
2782
2783case $is_cross_compiler in
2784 no) skipdirs="${skipdirs} ${cross_only}" ;;
2785 yes) skipdirs="${skipdirs} ${native_only}" ;;
2786esac
2787
2788# If both --with-headers and --with-libs are specified, default to
2789# --without-newlib.
2790if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2791 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2792 if test x"${with_newlib}" = x ; then
2793 with_newlib=no
2794 fi
2795fi
2796
2797# Recognize --with-newlib/--without-newlib.
2798case ${with_newlib} in
2799 no) skipdirs="${skipdirs} target-newlib" ;;
2800 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2801esac
2802
2803# Handle --enable-gold.
2804
2805# Check whether --enable-gold was given.
2806if test "${enable_gold+set}" = set; then :
2807 enableval=$enable_gold; ENABLE_GOLD=$enableval
2808else
2809 ENABLE_GOLD=no
2810fi
2811
2812if test "${ENABLE_GOLD}" = "yes"; then
2813 # Check for ELF target.
2814 is_elf=no
2815 case "${target}" in
2816 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2817 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2818 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2819 case "${target}" in
2820 *-*-linux*aout* | *-*-linux*oldld*)
2821 ;;
2822 *)
2823 is_elf=yes
2824 ;;
2825 esac
2826 esac
2827
2828 if test "$is_elf" = "yes"; then
2829 # Check for target supported by gold.
2830 case "${target}" in
2831 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2832 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2833 ;;
2834 esac
2835 fi
2836fi
2837
2838# Configure extra directories which are host specific
2839
2840case "${host}" in
2841 *-cygwin*)
2842 configdirs="$configdirs libtermcap" ;;
2843esac
2844
2845# A target can indicate whether a language isn't supported for some reason.
2846# Only spaces may be used in this macro; not newlines or tabs.
2847unsupported_languages=
2848
2849# Remove more programs from consideration, based on the host or
2850# target this usually means that a port of the program doesn't
2851# exist yet.
2852
2853case "${host}" in
2854 hppa*64*-*-*)
2855 noconfigdirs="$noconfigdirs byacc"
2856 ;;
2857 i[3456789]86-*-vsta)
2858 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2859 ;;
2860 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2861 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2862 ;;
2863 x86_64-*-mingw*)
2864 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2865 ;;
2866 i[3456789]86-*-mingw32*)
2867 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2869 ;;
2870 i[3456789]86-*-beos*)
2871 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2872 ;;
2873 *-*-cygwin*)
2874 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2875 ;;
2876 *-*-netbsd*)
2877 noconfigdirs="$noconfigdirs rcs"
2878 ;;
2879 ppc*-*-pe)
2880 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2881 ;;
2882 powerpc-*-beos*)
2883 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2884 ;;
2885esac
2886
2887
2888# Check whether --enable-libada was given.
2889if test "${enable_libada+set}" = set; then :
2890 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2891else
2892 ENABLE_LIBADA=yes
2893fi
2894
2895if test "${ENABLE_LIBADA}" != "yes" ; then
2896 noconfigdirs="$noconfigdirs gnattools"
2897fi
2898
2899# Check whether --enable-libssp was given.
2900if test "${enable_libssp+set}" = set; then :
2901 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2902else
2903 ENABLE_LIBSSP=yes
2904fi
2905
2906
2907# Save it here so that, even in case of --enable-libgcj, if the Java
2908# front-end isn't enabled, we still get libgcj disabled.
2909libgcj_saved=$libgcj
2910case $enable_libgcj in
2911yes)
2912 # If we reset it here, it won't get added to noconfigdirs in the
2913 # target-specific build rules, so it will be forcibly enabled
2914 # (unless the Java language itself isn't enabled).
2915 libgcj=
2916 ;;
2917no)
2918 # Make sure we get it printed in the list of not supported target libs.
2919 noconfigdirs="$noconfigdirs ${libgcj}"
2920 ;;
2921esac
2922
2923
2924# Disable libmudflap on some systems.
2925if test x$enable_libmudflap = x ; then
2926 case "${target}" in
2927 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2928 # Enable libmudflap by default in GNU and friends.
2929 ;;
2930 *-*-freebsd*)
2931 # Enable libmudflap by default in FreeBSD.
2932 ;;
2933 *)
2934 # Disable it by default everywhere else.
2935 noconfigdirs="$noconfigdirs target-libmudflap"
2936 ;;
2937 esac
2938fi
2939
2940# Disable libgomp on non POSIX hosted systems.
2941if test x$enable_libgomp = x ; then
2942 # Enable libgomp by default on hosted POSIX systems.
2943 case "${target}" in
2944 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2945 ;;
2946 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2947 ;;
2948 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2949 ;;
2950 *-*-darwin* | *-*-aix*)
2951 ;;
2952 *)
2953 noconfigdirs="$noconfigdirs target-libgomp"
2954 ;;
2955 esac
2956fi
2957
2958# Default libgloss CPU subdirectory.
2959libgloss_dir="$target_cpu"
2960
2961case "${target}" in
2962 *-*-chorusos)
2963 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2964 ;;
2965 powerpc-*-darwin*)
2966 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2967 noconfigdirs="$noconfigdirs sim target-rda"
2968 ;;
2969 i[3456789]86-*-darwin*)
2970 noconfigdirs="$noconfigdirs ld gprof"
2971 noconfigdirs="$noconfigdirs sim target-rda"
2972 ;;
2973 x86_64-*-darwin[912]*)
2974 noconfigdirs="$noconfigdirs ld gas gprof"
2975 noconfigdirs="$noconfigdirs sim target-rda"
2976 ;;
2977 *-*-darwin*)
2978 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2979 noconfigdirs="$noconfigdirs sim target-rda"
2980 noconfigdirs="$noconfigdirs ${libgcj}"
2981 ;;
2982 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2983 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2984 ;;
2985 *-*-freebsd*)
2986 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2988 && test -f /usr/local/include/gmp.h; then
2989 with_gmp=/usr/local
2990 fi
2991
2992 # Skip some stuff that's unsupported on some FreeBSD configurations.
2993 case "${target}" in
2994 i*86-*-*) ;;
2995 alpha*-*-*) ;;
2996 *)
2997 noconfigdirs="$noconfigdirs ${libgcj}"
2998 ;;
2999 esac
3000 ;;
3001 *-*-kaos*)
3002 # Remove unsupported stuff on all kaOS configurations.
3003 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3004 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3005 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3006 noconfigdirs="$noconfigdirs target-libgloss"
3007 ;;
3008 *-*-netbsd*)
3009 # Skip some stuff on all NetBSD configurations.
3010 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3011
3012 # Skip some stuff that's unsupported on some NetBSD configurations.
3013 case "${target}" in
3014 i*86-*-netbsdelf*) ;;
3015 arm*-*-netbsdelf*) ;;
3016 *)
3017 noconfigdirs="$noconfigdirs ${libgcj}"
3018 ;;
3019 esac
3020 ;;
3021 *-*-netware*)
3022 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3023 ;;
3024 *-*-rtems*)
3025 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3026 ;;
3027 # The tpf target doesn't support gdb yet.
3028 *-*-tpf*)
3029 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3030 ;;
3031 *-*-uclinux*)
3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3033 ;;
3034 *-*-vxworks*)
3035 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3036 ;;
3037 alpha*-dec-osf*)
3038 # ld works, but does not support shared libraries.
3039 # newlib is not 64 bit ready. I'm not sure about fileutils.
3040 # gas doesn't generate exception information.
3041 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3042 ;;
3043 alpha*-*-*vms*)
3044 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3045 ;;
3046 alpha*-*-linux*)
3047 # newlib is not 64 bit ready
3048 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3049 ;;
3050 alpha*-*-*)
3051 # newlib is not 64 bit ready
3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3053 ;;
3054 am33_2.0-*-linux*)
3055 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3056 ;;
3057 sh-*-linux*)
3058 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3059 ;;
3060 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3061 noconfigdirs="$noconfigdirs ${libgcj}"
3062 noconfigdirs="$noconfigdirs target-examples"
3063 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3064 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3065 noconfigdirs="$noconfigdirs expect dejagnu"
3066 # the C++ libraries don't build on top of CE's C libraries
3067 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3068 noconfigdirs="$noconfigdirs target-newlib"
3069 case "${host}" in
3070 *-*-cygwin*) ;; # keep gdb and readline
3071 *) noconfigdirs="$noconfigdirs gdb readline"
3072 ;;
3073 esac
3074 libgloss_dir=wince
3075 ;;
3076 arc-*-*)
3077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3078 ;;
3079 arm-semi-aof )
3080 ;;
3081 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3082 noconfigdirs="$noconfigdirs ${libgcj}"
3083 libgloss_dir=arm
3084 ;;
3085 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3086 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3087 libgloss_dir=arm
3088 ;;
3089 arm*-*-linux-gnueabi)
3090 noconfigdirs="$noconfigdirs target-qthreads"
3091 case ${with_newlib} in
3092 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3093 esac
3094 libgloss_dir=arm
3095 ;;
3096 arm*-*-symbianelf*)
3097 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3098 libgloss_dir=arm
3099 ;;
3100 arm-*-pe*)
3101 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3102 ;;
3103 thumb-*-coff)
3104 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3105 ;;
3106 thumb-*-elf)
3107 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3108 ;;
3109 thumb-*-pe)
3110 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3111 ;;
3112 arm-*-riscix*)
3113 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3114 ;;
3115 avr-*-*)
3116 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3117 ;;
3118 bfin-*-*)
3119 noconfigdirs="$noconfigdirs gdb"
3120 if test x${is_cross_compiler} != xno ; then
3121 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3122 fi
3123 ;;
3124 c4x-*-* | tic4x-*-*)
3125 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3126 ;;
3127 c54x*-*-* | tic54x-*-*)
3128 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3129 ;;
3130 cr16-*-*)
3131 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3132 ;;
3133 cris-*-* | crisv32-*-*)
3134 unsupported_languages="$unsupported_languages java"
3135 case "${target}" in
3136 *-*-aout)
3137 unsupported_languages="$unsupported_languages fortran"
3138 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3139 *-*-elf)
3140 noconfigdirs="$noconfigdirs target-boehm-gc";;
3141 *-*-linux*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3143 *)
3144 unsupported_languages="$unsupported_languages fortran"
3145 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3146 esac
3147 libgloss_dir=cris
3148 ;;
3149 crx-*-*)
3150 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3151 ;;
3152 d10v-*-*)
3153 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3154 ;;
3155 d30v-*-*)
3156 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3157 ;;
3158 ep9312-*-elf | ep9312-*-coff)
3159 libgloss_dir=arm
3160 ;;
3161 fr30-*-elf*)
3162 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3163 ;;
3164 frv-*-*)
3165 noconfigdirs="$noconfigdirs ${libgcj}"
3166 ;;
3167 moxie-*-*)
3168 noconfigdirs="$noconfigdirs ${libgcj}"
3169 noconfigdirs="$noconfigdirs gprof"
3170 ;;
3171 h8300*-*-*)
3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3173 ;;
3174 h8500-*-*)
3175 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3176 ;;
3177 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3178 ;;
3179 hppa*64*-*-linux* | parisc*64*-*-linux*)
3180 # In this case, it's because the hppa64-linux target is for
3181 # the kernel only at this point and has no libc, and thus no
3182 # headers, crt*.o, etc., all of which are needed by these.
3183 noconfigdirs="$noconfigdirs target-zlib"
3184 ;;
3185 parisc*-*-linux* | hppa*-*-linux*)
3186 ;;
3187 hppa*-*-*elf* | \
3188 hppa*-*-lites* | \
3189 hppa*-*-openbsd* | \
3190 hppa*64*-*-*)
3191 noconfigdirs="$noconfigdirs ${libgcj}"
3192 ;;
3193 hppa*-hp-hpux11*)
3194 noconfigdirs="$noconfigdirs ld shellutils"
3195 ;;
3196 hppa*-*-pro*)
3197 libgloss_dir=pa
3198 ;;
3199 hppa*-*-*)
3200 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3201 # build on HP-UX 10.20.
3202 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3203 ;;
3204 i960-*-*)
3205 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3206 ;;
3207 ia64*-*-elf*)
3208 # No gdb support yet.
3209 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3210 ;;
3211 ia64*-**-hpux*)
3212 # No gdb or ld support yet.
3213 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3214 ;;
3215 ia64*-*-*vms*)
3216 # No gdb or ld support yet.
3217 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3218 ;;
3219 i370-*-opened*)
3220 ;;
3221 i[3456789]86-*-coff | i[3456789]86-*-elf)
3222 noconfigdirs="$noconfigdirs ${libgcj}"
3223 libgloss_dir=i386
3224 ;;
3225 i[3456789]86-*-linux*)
3226 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3227 # not build java stuff by default.
3228 case "${target}" in
3229 *-*-*libc1*)
3230 noconfigdirs="$noconfigdirs ${libgcj}";;
3231 esac
3232
3233 # This section makes it possible to build newlib natively on linux.
3234 # If we are using a cross compiler then don't configure newlib.
3235 if test x${is_cross_compiler} != xno ; then
3236 noconfigdirs="$noconfigdirs target-newlib"
3237 fi
3238 noconfigdirs="$noconfigdirs target-libgloss"
3239 # If we are not using a cross compiler, do configure newlib.
3240 # Note however, that newlib will only be configured in this situation
3241 # if the --with-newlib option has been given, because otherwise
3242 # 'target-newlib' will appear in skipdirs.
3243 ;;
3244 i[3456789]86-*-mingw32*)
3245 target_configdirs="$target_configdirs target-winsup"
3246 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3247 ;;
3248 x86_64-*-mingw*)
3249 target_configdirs="$target_configdirs target-winsup"
3250 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3251 ;;
3252 *-*-cygwin*)
3253 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3254 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3255 # always build newlib if winsup directory is present.
3256 if test -d "$srcdir/winsup/cygwin"; then
3257 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3258 elif test -d "$srcdir/newlib"; then
3259 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3260 fi
3261 ;;
3262 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3263 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3264 ;;
3265 i[3456789]86-*-pe)
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3267 ;;
3268 i[3456789]86-*-sco3.2v5*)
3269 # The linker does not yet know about weak symbols in COFF,
3270 # and is not configured to handle mixed ELF and COFF.
3271 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3272 ;;
3273 i[3456789]86-*-sco*)
3274 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3275 ;;
3276 i[3456789]86-*-solaris2*)
3277 noconfigdirs="$noconfigdirs target-libgloss"
3278 ;;
3279 i[3456789]86-*-sysv4*)
3280 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3281 ;;
3282 i[3456789]86-*-beos*)
3283 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3284 ;;
3285 i[3456789]86-*-rdos*)
3286 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3287 ;;
3288 m32r-*-*)
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3290 ;;
3291 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3292 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3293 libgloss_dir=m68hc11
3294 ;;
3295 m68k-*-elf*)
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3297 ;;
3298 m68k-*-coff*)
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3300 ;;
3301 m68*-*-* | fido-*-*)
3302 libgloss_dir=m68k
3303 ;;
3304 mcore-*-pe*)
3305 # The EPOC C++ environment does not support exceptions or rtti,
3306 # and so building libstdc++-v3 tends not to always work.
3307 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3308 ;;
3309 mmix-*-*)
3310 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3311 unsupported_languages="$unsupported_languages fortran java"
3312 ;;
3313 mn10200-*-*)
3314 noconfigdirs="$noconfigdirs ${libgcj}"
3315 ;;
3316 mn10300-*-*)
3317 noconfigdirs="$noconfigdirs ${libgcj}"
3318 ;;
3319 mt-*-*)
3320 noconfigdirs="$noconfigdirs sim"
3321 ;;
3322 powerpc-*-aix*)
3323 # copied from rs6000-*-* entry
3324 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3325 ;;
3326 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3327 target_configdirs="$target_configdirs target-winsup"
3328 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3329 # always build newlib.
3330 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3331 ;;
3332 # This is temporary until we can link against shared libraries
3333 powerpcle-*-solaris*)
3334 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3335 libgloss_dir=rs6000
3336 ;;
3337 powerpc-*-beos*)
3338 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3339 ;;
3340 powerpc-*-eabi)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 libgloss_dir=rs6000
3343 ;;
3344 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3345 libgloss_dir=rs6000
3346 ;;
3347 rs6000-*-lynxos*)
3348 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3349 ;;
3350 rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3352 ;;
3353 rs6000-*-*)
3354 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3355 ;;
3356 m68k-apollo-*)
3357 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3358 ;;
3359 microblaze*)
3360 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3361 ;;
3362 mips*-sde-elf*)
3363 skipdirs="$skipdirs target-libiberty"
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 if test x$with_newlib = xyes; then
3366 noconfigdirs="$noconfigdirs gprof"
3367 fi
3368 libgloss_dir=mips
3369 ;;
3370 mips*-*-irix5*)
3371 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3372 ;;
3373 mips*-*-irix6*)
3374 # Linking libjava exceeds command-line length limits on at least
3375 # IRIX 6.2, but not on IRIX 6.5.
3376 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3377 # <oldham@codesourcery.com>
3378 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3379 ;;
3380 mips*-*-bsd*)
3381 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3382 ;;
3383 mips*-*-linux*)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 mips*-*-*)
3387 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3388 libgloss_dir=mips
3389 ;;
3390 romp-*-*)
3391 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3392 ;;
3393 sh-*-* | sh64-*-*)
3394 case "${host}" in
3395 i[3456789]86-*-vsta) ;; # don't add gprof back in
3396 i[3456789]86-*-go32*) ;; # don't add gprof back in
3397 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3398 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3399 esac
3400 case "${target}" in
3401 sh*-*-elf)
3402 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3403 *)
3404 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3405 esac
3406 ;;
3407 sparclet-*-aout* | sparc86x-*-*)
3408 libgloss_dir=sparc
3409 ;;
3410 sparc-*-elf*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3412 ;;
3413 sparc64-*-elf*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 libgloss_dir=sparc
3416 ;;
3417 sparclite-*-*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3419 libgloss_dir=sparc
3420 ;;
3421 sparc-*-sunos4*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 if test x${is_cross_compiler} != xno ; then
3424 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3425 else
3426 use_gnu_ld=no
3427 fi
3428 ;;
3429 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3430 noconfigdirs="$noconfigdirs ${libgcj}"
3431 ;;
3432 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3433 ;;
3434 v810-*-*)
3435 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3436 ;;
3437 v850-*-*)
3438 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3439 ;;
3440 v850e-*-*)
3441 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3442 ;;
3443 v850ea-*-*)
3444 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3445 ;;
3446 vax-*-vms)
3447 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3448 ;;
3449 vax-*-*)
3450 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3451 ;;
3452 xtensa*-*-*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 ip2k-*-*)
3456 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3457 ;;
3458 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 *-*-lynxos*)
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3463 ;;
3464 *-*-*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
3467esac
3468
3469# If we aren't building newlib, then don't build libgloss, since libgloss
3470# depends upon some newlib header files.
3471case "${noconfigdirs}" in
3472 *target-libgloss*) ;;
3473 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3474esac
3475
3476# Work in distributions that contain no compiler tools, like Autoconf.
3477tentative_cc=""
3478host_makefile_frag=/dev/null
3479if test -d ${srcdir}/config ; then
3480case "${host}" in
3481 m68k-hp-hpux*)
3482 # Avoid "too much defining" errors from HPUX compiler.
3483 tentative_cc="cc -Wp,-H256000"
3484 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3485 # If it's HP/UX ar, this should be harmless.
3486 RANLIB="ar ts"
3487 ;;
3488 m68k-apollo-sysv*)
3489 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3490 ;;
3491 m68k-apollo-bsd*)
3492 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3493 # chokes on bfd, the compiler won't let you assign integers to enums, and
3494 # other problems. Defining CC to gcc is a questionable way to say "don't use
3495 # the apollo compiler" (the preferred version of GCC could be called cc,
3496 # or whatever), but I'm not sure leaving CC as cc is any better...
3497 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3498 # Used to have BISON=yacc.
3499 tentative_cc=gcc
3500 ;;
3501 m88k-dg-dgux*)
3502 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3503 ;;
3504 m88k-harris-cxux*)
3505 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3506 tentative_cc="cc -Xa"
3507 host_makefile_frag="config/mh-cxux"
3508 ;;
3509 m88k-motorola-sysv*)
3510 ;;
3511 mips*-dec-ultrix*)
3512 tentative_cc="cc -Wf,-XNg1000"
3513 host_makefile_frag="config/mh-decstation"
3514 ;;
3515 mips*-nec-sysv4*)
3516 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3517 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3518 host_makefile_frag="config/mh-necv4"
3519 ;;
3520 mips*-sgi-irix4*)
3521 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3522 # environment. Also bump switch table size so that cp-parse will
3523 # compile. Bump string length limit so linker builds.
3524 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3525 ;;
3526 mips*-*-sysv4*)
3527 host_makefile_frag="config/mh-sysv4"
3528 ;;
3529 mips*-*-sysv*)
3530 # This is for a MIPS running RISC/os 4.52C.
3531
3532 # This is needed for GDB, but needs to be in the top-level make because
3533 # if a library is compiled with the bsd headers and gets linked with the
3534 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3535 # a different size).
3536 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3537 # known except to select the sysv environment. Could we use /proc instead?
3538 # These "sysv environments" and "bsd environments" often end up being a pain.
3539 #
3540 # This is not part of CFLAGS because perhaps not all C compilers have this
3541 # option.
3542 tentative_cc="cc -systype sysv"
3543 ;;
3544 i370-ibm-opened*)
3545 tentative_cc="c89"
3546 ;;
3547 i[3456789]86-*-sysv5*)
3548 host_makefile_frag="config/mh-sysv5"
3549 ;;
3550 i[3456789]86-*-dgux*)
3551 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3552 host_makefile_frag="config/mh-dgux386"
3553 ;;
3554 i[3456789]86-ncr-sysv4.3*)
3555 # The MetaWare compiler will generate a copyright message unless you
3556 # turn it off by adding the -Hnocopyr flag.
3557 tentative_cc="cc -Hnocopyr"
3558 ;;
3559 i[3456789]86-ncr-sysv4*)
3560 # for an NCR 3000 (i486/SVR4) system.
3561 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3562 # This compiler not only emits obnoxious copyright messages every time
3563 # you run it, but it chokes and dies on a whole bunch of GNU source
3564 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3565 tentative_cc="/usr/ccs/ATT/cc"
3566 host_makefile_frag="config/mh-ncr3000"
3567 ;;
3568 i[3456789]86-*-sco3.2v5*)
3569 ;;
3570 i[3456789]86-*-sco*)
3571 # The native C compiler botches some simple uses of const. Unfortunately,
3572 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3573 tentative_cc="cc -Dconst="
3574 host_makefile_frag="config/mh-sco"
3575 ;;
3576 i[3456789]86-*-udk*)
3577 host_makefile_frag="config/mh-sysv5"
3578 ;;
3579 i[3456789]86-*-solaris2*)
3580 host_makefile_frag="config/mh-sysv4"
3581 ;;
3582 i[3456789]86-*-msdosdjgpp*)
3583 host_makefile_frag="config/mh-djgpp"
3584 ;;
3585 *-cygwin*)
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3588$as_echo_n "checking to see if cat works as expected... " >&6; }
3589echo a >cygwin-cat-check
3590if test `cat cygwin-cat-check` == a ; then
3591 rm cygwin-cat-check
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
3594else
3595 rm cygwin-cat-check
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598 as_fn_error "The cat command does not ignore carriage return characters.
3599 Please either mount the build directory in binary mode or run the following
3600 commands before running any configure script:
3601set -o igncr
3602export SHELLOPTS
3603 " "$LINENO" 5
3604fi
3605
3606 host_makefile_frag="config/mh-cygwin"
3607 ;;
3608 *-mingw*)
3609 host_makefile_frag="config/mh-mingw"
3610 ;;
3611 *-interix*)
3612 host_makefile_frag="config/mh-interix"
3613 ;;
3614 vax-*-ultrix2*)
3615 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3616 tentative_cc=gcc
3617 ;;
3618 *-*-solaris2*)
3619 host_makefile_frag="config/mh-solaris"
3620 ;;
3621 m68k-sun-sunos*)
3622 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3623 # without overflowing the jump tables (-J says to use a 32 bit table)
3624 tentative_cc="cc -J"
3625 ;;
3626 hppa*-hp-hpux10*)
3627 tentative_cc="cc -Wp,-H256000"
3628 host_makefile_frag="config/mh-pa-hpux10"
3629 ;;
3630 hppa*-hp-hpux* | hppa*-*-hiux*)
3631 tentative_cc="cc -Wp,-H256000"
3632 host_makefile_frag="config/mh-pa"
3633 ;;
3634 hppa*-*)
3635 host_makefile_frag="config/mh-pa"
3636 ;;
3637 *-hp-hpux* | *-*-hiux*)
3638 tentative_cc="cc -Wp,-H256000"
3639 ;;
3640 rs6000-*-lynxos*)
3641 # /bin/cc is less than useful for our purposes. Always use GCC
3642 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3643 host_makefile_frag="config/mh-lynxrs6k"
3644 ;;
3645 powerpc-*-darwin*)
3646 host_makefile_frag="config/mh-ppc-darwin"
3647 ;;
3648 powerpc-*-aix*)
3649 host_makefile_frag="config/mh-ppc-aix"
3650 ;;
3651 rs6000-*-aix*)
3652 host_makefile_frag="config/mh-ppc-aix"
3653 ;;
3654 *-*-lynxos*)
3655 # /bin/cc is less than useful for our purposes. Always use GCC
3656 tentative_cc="/bin/gcc"
3657 ;;
3658 *-*-sysv4*)
3659 host_makefile_frag="config/mh-sysv4"
3660 ;;
3661 # This is placed last to prevent interfering with the cases above.
3662 i[3456789]86-*-*)
3663 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3664 host_makefile_frag="config/mh-x86omitfp"
3665 ;;
3666esac
3667fi
3668
3669# If we aren't going to be using gcc, see if we can extract a definition
3670# of CC from the fragment.
3671# Actually, use the 'pre-extracted' version above.
3672if test -z "${CC}" && test "${build}" = "${host}" ; then
3673 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3674 found=
3675 for dir in $PATH; do
3676 test -z "$dir" && dir=.
3677 if test -f $dir/gcc; then
3678 found=yes
3679 break
3680 fi
3681 done
3682 IFS="$save_ifs"
3683 if test -z "${found}" && test -n "${tentative_cc}" ; then
3684 CC=$tentative_cc
3685 fi
3686fi
3687
3688if test "${build}" != "${host}" ; then
3689 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3690 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3691 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3692 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3693 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3694 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3695 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3696 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3697 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3698 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3699 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3700 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3701else
3702 AR_FOR_BUILD="\$(AR)"
3703 AS_FOR_BUILD="\$(AS)"
3704 CC_FOR_BUILD="\$(CC)"
3705 CXX_FOR_BUILD="\$(CXX)"
3706 GCJ_FOR_BUILD="\$(GCJ)"
3707 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3708 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3709 LD_FOR_BUILD="\$(LD)"
3710 NM_FOR_BUILD="\$(NM)"
3711 RANLIB_FOR_BUILD="\$(RANLIB)"
3712 WINDRES_FOR_BUILD="\$(WINDRES)"
3713 WINDMC_FOR_BUILD="\$(WINDMC)"
3714fi
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3723set dummy ${ac_tool_prefix}gcc; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if test "${ac_cv_prog_CC+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728else
3729 if test -n "$CC"; then
3730 ac_cv_prog_CC="$CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743done
3744 done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
3753else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759fi
3760if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
3762 # Extract the first word of "gcc", so it can be a program name with args.
3763set dummy gcc; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768else
3769 if test -n "$ac_ct_CC"; then
3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_ac_ct_CC="gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784 done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790if test -n "$ac_ct_CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792$as_echo "$ac_ct_CC" >&6; }
3793else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798 if test "x$ac_ct_CC" = x; then
3799 CC=""
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802yes:)
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805ac_tool_warned=yes ;;
3806esac
3807 CC=$ac_ct_CC
3808 fi
3809else
3810 CC="$ac_cv_prog_CC"
3811fi
3812
3813if test -z "$CC"; then
3814 if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}cc; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if test "${ac_cv_prog_CC+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 ac_cv_prog_CC="${ac_tool_prefix}cc"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836done
3837 done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852 fi
3853fi
3854if test -z "$CC"; then
3855 # Extract the first word of "cc", so it can be a program name with args.
3856set dummy cc; ac_word=$2
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864else
3865 ac_prog_rejected=no
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3874 ac_prog_rejected=yes
3875 continue
3876 fi
3877 ac_cv_prog_CC="cc"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885if test $ac_prog_rejected = yes; then
3886 # We found a bogon in the path, so make sure we never use it.
3887 set dummy $ac_cv_prog_CC
3888 shift
3889 if test $# != 0; then
3890 # We chose a different compiler from the bogus one.
3891 # However, it has the same basename, so the bogon will be chosen
3892 # first if we set CC to just the basename; use the full file name.
3893 shift
3894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895 fi
3896fi
3897fi
3898fi
3899CC=$ac_cv_prog_CC
3900if test -n "$CC"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902$as_echo "$CC" >&6; }
3903else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
3906fi
3907
3908
3909fi
3910if test -z "$CC"; then
3911 if test -n "$ac_tool_prefix"; then
3912 for ac_prog in cl.exe
3913 do
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if test "${ac_cv_prog_CC+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936 done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
3945else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951 test -n "$CC" && break
3952 done
3953fi
3954if test -z "$CC"; then
3955 ac_ct_CC=$CC
3956 for ac_prog in cl.exe
3957do
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959set dummy $ac_prog; ac_word=$2
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
3962if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964else
3965 if test -n "$ac_ct_CC"; then
3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_ac_ct_CC="$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980 done
3981IFS=$as_save_IFS
3982
3983fi
3984fi
3985ac_ct_CC=$ac_cv_prog_ac_ct_CC
3986if test -n "$ac_ct_CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3988$as_echo "$ac_ct_CC" >&6; }
3989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994
3995 test -n "$ac_ct_CC" && break
3996done
3997
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
4009fi
4010
4011fi
4012
4013
4014test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error "no acceptable C compiler found in \$PATH
4017See \`config.log' for more details." "$LINENO" 5; }
4018
4019# Provide some information about the compiler.
4020$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4021set X $ac_compile
4022ac_compiler=$2
4023for ac_option in --version -v -V -qversion; do
4024 { { ac_try="$ac_compiler $ac_option >&5"
4025case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028esac
4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030$as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4032 ac_status=$?
4033 if test -s conftest.err; then
4034 sed '10a\
4035... rest of stderr output deleted ...
4036 10q' conftest.err >conftest.er1
4037 cat conftest.er1 >&5
4038 rm -f conftest.er1 conftest.err
4039 fi
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042done
4043
4044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050
4051 ;
4052 return 0;
4053}
4054_ACEOF
4055ac_clean_files_save=$ac_clean_files
4056ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4057# Try to create an executable without -o first, disregard a.out.
4058# It will help us diagnose broken compilers, and finding out an intuition
4059# of exeext.
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4061$as_echo_n "checking for C compiler default output file name... " >&6; }
4062ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4063
4064# The possible output files:
4065ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4066
4067ac_rmfiles=
4068for ac_file in $ac_files
4069do
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4073 esac
4074done
4075rm -f $ac_rmfiles
4076
4077if { { ac_try="$ac_link_default"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083$as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_link_default") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; then :
4088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090# in a Makefile. We should not override ac_cv_exeext if it was cached,
4091# so that the user can short-circuit this test for compilers unknown to
4092# Autoconf.
4093for ac_file in $ac_files ''
4094do
4095 test -f "$ac_file" || continue
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4098 ;;
4099 [ab].out )
4100 # We found the default executable, but exeext='' is most
4101 # certainly right.
4102 break;;
4103 *.* )
4104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4105 then :; else
4106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107 fi
4108 # We set ac_cv_exeext here because the later test for it is not
4109 # safe: cross compilers may not add the suffix if given an `-o'
4110 # argument, so we may need to know it at that point already.
4111 # Even if this section looks crufty: it has the advantage of
4112 # actually working.
4113 break;;
4114 * )
4115 break;;
4116 esac
4117done
4118test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
4120else
4121 ac_file=''
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124$as_echo "$ac_file" >&6; }
4125if test -z "$ac_file"; then :
4126 $as_echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131{ as_fn_set_status 77
4132as_fn_error "C compiler cannot create executables
4133See \`config.log' for more details." "$LINENO" 5; }; }
4134fi
4135ac_exeext=$ac_cv_exeext
4136
4137# Check that the compiler produces executables we can run. If not, either
4138# the compiler is broken, or we cross compile.
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4140$as_echo_n "checking whether the C compiler works... " >&6; }
4141# If not cross compiling, check that we can run a simple program.
4142if test "$cross_compiling" != yes; then
4143 if { ac_try='./$ac_file'
4144 { { case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147esac
4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149$as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_try") 2>&5
4151 ac_status=$?
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; }; then
4154 cross_compiling=no
4155 else
4156 if test "$cross_compiling" = maybe; then
4157 cross_compiling=yes
4158 else
4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error "cannot run C compiled programs.
4162If you meant to cross compile, use \`--host'.
4163See \`config.log' for more details." "$LINENO" 5; }
4164 fi
4165 fi
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168$as_echo "yes" >&6; }
4169
4170rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4171ac_clean_files=$ac_clean_files_save
4172# Check that the compiler produces executables we can run. If not, either
4173# the compiler is broken, or we cross compile.
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4175$as_echo_n "checking whether we are cross compiling... " >&6; }
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4177$as_echo "$cross_compiling" >&6; }
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4180$as_echo_n "checking for suffix of executables... " >&6; }
4181if { { ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187$as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_link") 2>&5
4189 ac_status=$?
4190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191 test $ac_status = 0; }; then :
4192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4194# work properly (i.e., refer to `conftest.exe'), while it won't with
4195# `rm'.
4196for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4201 break;;
4202 * ) break;;
4203 esac
4204done
4205else
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208as_fn_error "cannot compute suffix of executables: cannot compile and link
4209See \`config.log' for more details." "$LINENO" 5; }
4210fi
4211rm -f conftest$ac_cv_exeext
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4213$as_echo "$ac_cv_exeext" >&6; }
4214
4215rm -f conftest.$ac_ext
4216EXEEXT=$ac_cv_exeext
4217ac_exeext=$EXEEXT
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219$as_echo_n "checking for suffix of object files... " >&6; }
4220if test "${ac_cv_objext+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4222else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225
4226int
4227main ()
4228{
4229
4230 ;
4231 return 0;
4232}
4233_ACEOF
4234rm -f conftest.o conftest.obj
4235if { { ac_try="$ac_compile"
4236case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241$as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_compile") 2>&5
4243 ac_status=$?
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 for ac_file in conftest.o conftest.obj conftest.*; do
4247 test -f "$ac_file" || continue;
4248 case $ac_file in
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251 break;;
4252 esac
4253done
4254else
4255 $as_echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260as_fn_error "cannot compute suffix of object files: cannot compile
4261See \`config.log' for more details." "$LINENO" 5; }
4262fi
4263rm -f conftest.$ac_cv_objext conftest.$ac_ext
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266$as_echo "$ac_cv_objext" >&6; }
4267OBJEXT=$ac_cv_objext
4268ac_objext=$OBJEXT
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280#ifndef __GNUC__
4281 choke me
4282#endif
4283
4284 ;
4285 return 0;
4286}
4287_ACEOF
4288if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_compiler_gnu=yes
4290else
4291 ac_compiler_gnu=no
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299if test $ac_compiler_gnu = yes; then
4300 GCC=yes
4301else
4302 GCC=
4303fi
4304ac_test_CFLAGS=${CFLAGS+set}
4305ac_save_CFLAGS=$CFLAGS
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307$as_echo_n "checking whether $CC accepts -g... " >&6; }
4308if test "${ac_cv_prog_cc_g+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 ac_save_c_werror_flag=$ac_c_werror_flag
4312 ac_c_werror_flag=yes
4313 ac_cv_prog_cc_g=no
4314 CFLAGS="-g"
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h. */
4317
4318int
4319main ()
4320{
4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"; then :
4327 ac_cv_prog_cc_g=yes
4328else
4329 CFLAGS=""
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h. */
4332
4333int
4334main ()
4335{
4336
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_compile "$LINENO"; then :
4342
4343else
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4345 CFLAGS="-g"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h. */
4348
4349int
4350main ()
4351{
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_prog_cc_g=yes
4359fi
4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368$as_echo "$ac_cv_prog_cc_g" >&6; }
4369if test "$ac_test_CFLAGS" = set; then
4370 CFLAGS=$ac_save_CFLAGS
4371elif test $ac_cv_prog_cc_g = yes; then
4372 if test "$GCC" = yes; then
4373 CFLAGS="-g -O2"
4374 else
4375 CFLAGS="-g"
4376 fi
4377else
4378 if test "$GCC" = yes; then
4379 CFLAGS="-O2"
4380 else
4381 CFLAGS=
4382 fi
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386if test "${ac_cv_prog_cc_c89+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388else
4389 ac_cv_prog_cc_c89=no
4390ac_save_CC=$CC
4391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393#include <stdarg.h>
4394#include <stdio.h>
4395#include <sys/types.h>
4396#include <sys/stat.h>
4397/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4398struct buf { int x; };
4399FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400static char *e (p, i)
4401 char **p;
4402 int i;
4403{
4404 return p[i];
4405}
4406static char *f (char * (*g) (char **, int), char **p, ...)
4407{
4408 char *s;
4409 va_list v;
4410 va_start (v,p);
4411 s = g (p, va_arg (v,int));
4412 va_end (v);
4413 return s;
4414}
4415
4416/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4417 function prototypes and stuff, but not '\xHH' hex character constants.
4418 These don't provoke an error unfortunately, instead are silently treated
4419 as 'x'. The following induces an error, until -std is added to get
4420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4421 array size at least. It's necessary to write '\x00'==0 to get something
4422 that's true only with -std. */
4423int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
4425/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426 inside strings and character constants. */
4427#define FOO(x) 'x'
4428int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
4430int test (int i, double x);
4431struct s1 {int (*f) (int a);};
4432struct s2 {int (*f) (double a);};
4433int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434int argc;
4435char **argv;
4436int
4437main ()
4438{
4439return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446do
4447 CC="$ac_save_CC $ac_arg"
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_prog_cc_c89=$ac_arg
4450fi
4451rm -f core conftest.err conftest.$ac_objext
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
4453done
4454rm -f conftest.$ac_ext
4455CC=$ac_save_CC
4456
4457fi
4458# AC_CACHE_VAL
4459case "x$ac_cv_prog_cc_c89" in
4460 x)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462$as_echo "none needed" >&6; } ;;
4463 xno)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465$as_echo "unsupported" >&6; } ;;
4466 *)
4467 CC="$CC $ac_cv_prog_cc_c89"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470esac
4471if test "x$ac_cv_prog_cc_c89" != xno; then :
4472
4473fi
4474
4475ac_ext=c
4476ac_cpp='$CPP $CPPFLAGS'
4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481ac_ext=cpp
4482ac_cpp='$CXXCPP $CPPFLAGS'
4483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4486if test -z "$CXX"; then
4487 if test -n "$CCC"; then
4488 CXX=$CCC
4489 else
4490 if test -n "$ac_tool_prefix"; then
4491 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4492 do
4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496$as_echo_n "checking for $ac_word... " >&6; }
4497if test "${ac_cv_prog_CXX+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499else
4500 if test -n "$CXX"; then
4501 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514done
4515 done
4516IFS=$as_save_IFS
4517
4518fi
4519fi
4520CXX=$ac_cv_prog_CXX
4521if test -n "$CXX"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4523$as_echo "$CXX" >&6; }
4524else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526$as_echo "no" >&6; }
4527fi
4528
4529
4530 test -n "$CXX" && break
4531 done
4532fi
4533if test -z "$CXX"; then
4534 ac_ct_CXX=$CXX
4535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4536do
4537 # Extract the first word of "$ac_prog", so it can be a program name with args.
4538set dummy $ac_prog; ac_word=$2
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540$as_echo_n "checking for $ac_word... " >&6; }
4541if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$ac_ct_CXX"; then
4545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_ac_ct_CXX="$ac_prog"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558done
4559 done
4560IFS=$as_save_IFS
4561
4562fi
4563fi
4564ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565if test -n "$ac_ct_CXX"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4567$as_echo "$ac_ct_CXX" >&6; }
4568else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571fi
4572
4573
4574 test -n "$ac_ct_CXX" && break
4575done
4576
4577 if test "x$ac_ct_CXX" = x; then
4578 CXX="g++"
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581yes:)
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584ac_tool_warned=yes ;;
4585esac
4586 CXX=$ac_ct_CXX
4587 fi
4588fi
4589
4590 fi
4591fi
4592# Provide some information about the compiler.
4593$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4594set X $ac_compile
4595ac_compiler=$2
4596for ac_option in --version -v -V -qversion; do
4597 { { ac_try="$ac_compiler $ac_option >&5"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603$as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4605 ac_status=$?
4606 if test -s conftest.err; then
4607 sed '10a\
4608... rest of stderr output deleted ...
4609 10q' conftest.err >conftest.er1
4610 cat conftest.er1 >&5
4611 rm -f conftest.er1 conftest.err
4612 fi
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }
4615done
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4618$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4619if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621else
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
4624
4625int
4626main ()
4627{
4628#ifndef __GNUC__
4629 choke me
4630#endif
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636if ac_fn_cxx_try_compile "$LINENO"; then :
4637 ac_compiler_gnu=yes
4638else
4639 ac_compiler_gnu=no
4640fi
4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4646$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4647if test $ac_compiler_gnu = yes; then
4648 GXX=yes
4649else
4650 GXX=
4651fi
4652ac_test_CXXFLAGS=${CXXFLAGS+set}
4653ac_save_CXXFLAGS=$CXXFLAGS
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4655$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4656if test "${ac_cv_prog_cxx_g+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658else
4659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4660 ac_cxx_werror_flag=yes
4661 ac_cv_prog_cxx_g=no
4662 CXXFLAGS="-g"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h. */
4665
4666int
4667main ()
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674if ac_fn_cxx_try_compile "$LINENO"; then :
4675 ac_cv_prog_cxx_g=yes
4676else
4677 CXXFLAGS=""
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689if ac_fn_cxx_try_compile "$LINENO"; then :
4690
4691else
4692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693 CXXFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
4696
4697int
4698main ()
4699{
4700
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705if ac_fn_cxx_try_compile "$LINENO"; then :
4706 ac_cv_prog_cxx_g=yes
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4716$as_echo "$ac_cv_prog_cxx_g" >&6; }
4717if test "$ac_test_CXXFLAGS" = set; then
4718 CXXFLAGS=$ac_save_CXXFLAGS
4719elif test $ac_cv_prog_cxx_g = yes; then
4720 if test "$GXX" = yes; then
4721 CXXFLAGS="-g -O2"
4722 else
4723 CXXFLAGS="-g"
4724 fi
4725else
4726 if test "$GXX" = yes; then
4727 CXXFLAGS="-O2"
4728 else
4729 CXXFLAGS=
4730 fi
4731fi
4732ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739# We must set the default linker to the linker used by gcc for the correct
4740# operation of libtool. If LD is not defined and we are using gcc, try to
4741# set the LD default to the ld used by gcc.
4742if test -z "$LD"; then
4743 if test "$GCC" = yes; then
4744 case $build in
4745 *-*-mingw*)
4746 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4747 *)
4748 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4749 esac
4750 case $gcc_prog_ld in
4751 # Accept absolute paths.
4752 [\\/]* | [A-Za-z]:[\\/]*)
4753 LD="$gcc_prog_ld" ;;
4754 esac
4755 fi
4756fi
4757
4758
4759
4760
4761if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4763set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765$as_echo_n "checking for $ac_word... " >&6; }
4766if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768else
4769 if test -n "$GNATBIND"; then
4770 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
4784 done
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789GNATBIND=$ac_cv_prog_GNATBIND
4790if test -n "$GNATBIND"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4792$as_echo "$GNATBIND" >&6; }
4793else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798
4799fi
4800if test -z "$ac_cv_prog_GNATBIND"; then
4801 ac_ct_GNATBIND=$GNATBIND
4802 # Extract the first word of "gnatbind", so it can be a program name with args.
4803set dummy gnatbind; ac_word=$2
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808else
4809 if test -n "$ac_ct_GNATBIND"; then
4810 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823done
4824 done
4825IFS=$as_save_IFS
4826
4827fi
4828fi
4829ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4830if test -n "$ac_ct_GNATBIND"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4832$as_echo "$ac_ct_GNATBIND" >&6; }
4833else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835$as_echo "no" >&6; }
4836fi
4837
4838 if test "x$ac_ct_GNATBIND" = x; then
4839 GNATBIND="no"
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842yes:)
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845ac_tool_warned=yes ;;
4846esac
4847 GNATBIND=$ac_ct_GNATBIND
4848 fi
4849else
4850 GNATBIND="$ac_cv_prog_GNATBIND"
4851fi
4852
4853if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4855set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
4858if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860else
4861 if test -n "$GNATMAKE"; then
4862 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876 done
4877IFS=$as_save_IFS
4878
4879fi
4880fi
4881GNATMAKE=$ac_cv_prog_GNATMAKE
4882if test -n "$GNATMAKE"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4884$as_echo "$GNATMAKE" >&6; }
4885else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891fi
4892if test -z "$ac_cv_prog_GNATMAKE"; then
4893 ac_ct_GNATMAKE=$GNATMAKE
4894 # Extract the first word of "gnatmake", so it can be a program name with args.
4895set dummy gnatmake; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 if test -n "$ac_ct_GNATMAKE"; then
4902 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915done
4916 done
4917IFS=$as_save_IFS
4918
4919fi
4920fi
4921ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4922if test -n "$ac_ct_GNATMAKE"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4924$as_echo "$ac_ct_GNATMAKE" >&6; }
4925else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930 if test "x$ac_ct_GNATMAKE" = x; then
4931 GNATMAKE="no"
4932 else
4933 case $cross_compiling:$ac_tool_warned in
4934yes:)
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937ac_tool_warned=yes ;;
4938esac
4939 GNATMAKE=$ac_ct_GNATMAKE
4940 fi
4941else
4942 GNATMAKE="$ac_cv_prog_GNATMAKE"
4943fi
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4946$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4947if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949else
4950 cat >conftest.adb <<EOF
4951procedure conftest is begin null; end conftest;
4952EOF
4953acx_cv_cc_gcc_supports_ada=no
4954# There is a bug in old released versions of GCC which causes the
4955# driver to exit successfully when the appropriate language module
4956# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4957# Therefore we must check for the error message as well as an
4958# unsuccessful exit.
4959# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4960# given a .adb file, but produce no object file. So we must check
4961# if an object file was really produced to guard against this.
4962errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4963if test x"$errors" = x && test -f conftest.$ac_objext; then
4964 acx_cv_cc_gcc_supports_ada=yes
4965fi
4966rm -f conftest.*
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4969$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4970
4971if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4972 have_gnat=yes
4973else
4974 have_gnat=no
4975fi
4976
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4978$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4979if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 echo abfoo >t1
4983 echo cdfoo >t2
4984 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4985 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4986 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4987 :
4988 else
4989 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4990 fi
4991 fi
4992 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4993 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4994 :
4995 else
4996 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4997 fi
4998 fi
4999 rm t1 t2
5000
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5003$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5004do_compare="$gcc_cv_prog_cmp_skip"
5005
5006
5007
5008# See if we are building gcc with C++.
5009# Check whether --enable-build-with-cxx was given.
5010if test "${enable_build_with_cxx+set}" = set; then :
5011 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5012else
5013 ENABLE_BUILD_WITH_CXX=no
5014fi
5015
5016
5017# Check for GMP, MPFR and MPC
5018gmplibs="-lmpfr -lgmp"
5019gmpinc=
5020have_gmp=no
5021mpclibs=-lmpc
5022mpcinc=
5023have_mpc=no
5024
5025# Specify a location for mpc
5026# check for this first so it ends up on the link line before mpfr.
5027
5028# Check whether --with-mpc was given.
5029if test "${with_mpc+set}" = set; then :
5030 withval=$with_mpc;
5031fi
5032
5033
5034# Check whether --with-mpc_include was given.
5035if test "${with_mpc_include+set}" = set; then :
5036 withval=$with_mpc_include;
5037fi
5038
5039
5040# Check whether --with-mpc_lib was given.
5041if test "${with_mpc_lib+set}" = set; then :
5042 withval=$with_mpc_lib;
5043fi
5044
5045
5046if test "x$with_mpc" != x; then
5047 mpclibs="-L$with_mpc/lib -lmpc"
5048 mpcinc="-I$with_mpc/include $mpcinc"
5049fi
5050if test "x$with_mpc_include" != x; then
5051 mpcinc="-I$with_mpc_include $mpcinc"
5052fi
5053if test "x$with_mpc_lib" != x; then
5054 mpclibs="-L$with_mpc_lib -lmpc"
5055fi
5056if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5057 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5058 mpcinc='-I$$s/mpc/src '"$mpcinc"
5059 # Do not test the mpc version. Assume that it is sufficient, since
5060 # it is in the source tree, and the library has not been built yet
5061 # but it would be included on the link line in the version check below
5062 # hence making the test fail.
5063 have_mpc=yes
5064fi
5065
5066# Specify a location for mpfr
5067# check for this first so it ends up on the link line before gmp.
5068
5069# Check whether --with-mpfr-dir was given.
5070if test "${with_mpfr_dir+set}" = set; then :
5071 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5072Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5073fi
5074
5075
5076
5077# Check whether --with-mpfr was given.
5078if test "${with_mpfr+set}" = set; then :
5079 withval=$with_mpfr;
5080fi
5081
5082
5083# Check whether --with-mpfr_include was given.
5084if test "${with_mpfr_include+set}" = set; then :
5085 withval=$with_mpfr_include;
5086fi
5087
5088
5089# Check whether --with-mpfr_lib was given.
5090if test "${with_mpfr_lib+set}" = set; then :
5091 withval=$with_mpfr_lib;
5092fi
5093
5094
5095if test "x$with_mpfr" != x; then
5096 gmplibs="-L$with_mpfr/lib $gmplibs"
5097 gmpinc="-I$with_mpfr/include"
5098fi
5099if test "x$with_mpfr_include" != x; then
5100 gmpinc="-I$with_mpfr_include"
5101fi
5102if test "x$with_mpfr_lib" != x; then
5103 gmplibs="-L$with_mpfr_lib $gmplibs"
5104fi
5105if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5106 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5107 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5108 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
5109 # Do not test the mpfr version. Assume that it is sufficient, since
5110 # it is in the source tree, and the library has not been built yet
5111 # but it would be included on the link line in the version check below
5112 # hence making the test fail.
5113 have_gmp=yes
5114fi
5115
5116# Specify a location for gmp
5117
5118# Check whether --with-gmp-dir was given.
5119if test "${with_gmp_dir+set}" = set; then :
5120 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5121Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5122fi
5123
5124
5125
5126# Check whether --with-gmp was given.
5127if test "${with_gmp+set}" = set; then :
5128 withval=$with_gmp;
5129fi
5130
5131
5132# Check whether --with-gmp_include was given.
5133if test "${with_gmp_include+set}" = set; then :
5134 withval=$with_gmp_include;
5135fi
5136
5137
5138# Check whether --with-gmp_lib was given.
5139if test "${with_gmp_lib+set}" = set; then :
5140 withval=$with_gmp_lib;
5141fi
5142
5143
5144
5145if test "x$with_gmp" != x; then
5146 gmplibs="-L$with_gmp/lib $gmplibs"
5147 gmpinc="-I$with_gmp/include $gmpinc"
5148fi
5149if test "x$with_gmp_include" != x; then
5150 gmpinc="-I$with_gmp_include $gmpinc"
5151fi
5152if test "x$with_gmp_lib" != x; then
5153 gmplibs="-L$with_gmp_lib $gmplibs"
5154fi
5155if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5156 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5157 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5158 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5159 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
5160 # Do not test the gmp version. Assume that it is sufficient, since
5161 # it is in the source tree, and the library has not been built yet
5162 # but it would be included on the link line in the version check below
5163 # hence making the test fail.
5164 have_gmp=yes
5165fi
5166
5167if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5168 have_gmp=yes
5169 saved_CFLAGS="$CFLAGS"
5170 CFLAGS="$CFLAGS $gmpinc"
5171 # Check GMP actually works
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5173$as_echo_n "checking for correct version of gmp.h... " >&6; }
5174
5175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h. */
5177#include "gmp.h"
5178int
5179main ()
5180{
5181
5182 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
5183 choke me
5184 #endif
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192$as_echo "yes" >&6; }
5193else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }; have_gmp=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198
5199 # If we have GMP, check the MPFR version.
5200 if test x"$have_gmp" = xyes; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5202$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#include <gmp.h>
5206 #include <mpfr.h>
5207int
5208main ()
5209{
5210
5211 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5212 choke me
5213 #endif
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#include <gmp.h>
5223 #include <mpfr.h>
5224int
5225main ()
5226{
5227
5228 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
5229 choke me
5230 #endif
5231
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238$as_echo "yes" >&6; }
5239else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5241$as_echo "buggy but acceptable" >&6; }
5242fi
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244else
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }; have_gmp=no
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 fi
5250
5251 # Check for the MPC header version.
5252 if test x"$have_mpc" != xyes ; then
5253 CFLAGS="$CFLAGS $mpcinc"
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5255$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h. */
5258#include <mpc.h>
5259int
5260main ()
5261{
5262
5263 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5264 choke me
5265 #endif
5266
5267 ;
5268 return 0;
5269}
5270_ACEOF
5271if ac_fn_c_try_compile "$LINENO"; then :
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273$as_echo "yes" >&6; }; have_mpc=maybe
5274else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280
5281 # Now check the MPFR library.
5282 if test x"$have_gmp" = xyes; then
5283 saved_LIBS="$LIBS"
5284 LIBS="$LIBS $gmplibs"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5286$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289#include <gmp.h>
5290 #include <mpfr.h>
5291int
5292main ()
5293{
5294
5295 mpfr_t n;
5296 mpfr_t x;
5297 int t;
5298 mpfr_init (n);
5299 mpfr_init (x);
5300 mpfr_atan2 (n, n, x, GMP_RNDN);
5301 mpfr_erfc (n, x, GMP_RNDN);
5302 mpfr_subnormalize (x, t, GMP_RNDN);
5303
5304 ;
5305 return 0;
5306}
5307_ACEOF
5308if ac_fn_c_try_link "$LINENO"; then :
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5310$as_echo "yes" >&6; }
5311else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313$as_echo "no" >&6; }; have_gmp=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
5317 LIBS="$saved_LIBS"
5318 fi
5319
5320 if test x"$have_mpc" = xmaybe; then
5321 saved_LIBS="$LIBS"
5322 LIBS="$LIBS $mpclibs $gmplibs"
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5324$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <mpc.h>
5328int
5329main ()
5330{
5331
5332 mpc_t n;
5333 mpc_init2 (n, 53);
5334 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5335 mpc_sin (n, n, MPC_RNDNN);
5336 mpc_cos (n, n, MPC_RNDNN);
5337 mpc_tan (n, n, MPC_RNDNN);
5338 mpc_sinh (n, n, MPC_RNDNN);
5339 mpc_cosh (n, n, MPC_RNDNN);
5340 mpc_tanh (n, n, MPC_RNDNN);
5341 mpc_exp (n, n, MPC_RNDNN);
5342 mpc_log (n, n, MPC_RNDNN);
5343 mpc_sqrt (n, n, MPC_RNDNN);
5344 mpc_proj (n, n, MPC_RNDNN);
5345 mpc_neg (n, n, MPC_RNDNN);
5346 mpc_sqr (n, n, MPC_RNDNN);
5347 mpc_clear (n);
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353if ac_fn_c_try_link "$LINENO"; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355$as_echo "yes" >&6; }; have_mpc=yes
5356else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5359fi
5360rm -f core conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
5362 LIBS="$saved_LIBS"
5363 fi
5364
5365 CFLAGS="$saved_CFLAGS"
5366
5367 if test x$have_gmp != xyes; then
5368 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5369Try the --with-gmp and/or --with-mpfr options to specify their locations.
5370Copies of these libraries' source code can be found at their respective
5371hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5372See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5373If you obtained GMP and/or MPFR from a vendor distribution package, make
5374sure that you have installed both the libraries and the header files.
5375They may be located in separate packages." "$LINENO" 5
5376 fi
5377fi
5378
5379if test x$have_mpc != xyes ; then
5380 mpcinc=
5381 mpclibs=
5382fi
5383
5384gmpinc="$mpcinc $gmpinc"
5385gmplibs="$mpclibs $gmplibs"
5386
5387# Flags needed for both GMP, MPFR and/or MPC.
5388
5389
5390
5391
5392
5393
5394# Allow host libstdc++ to be specified for static linking with PPL.
5395
5396# Check whether --with-host-libstdcxx was given.
5397if test "${with_host_libstdcxx+set}" = set; then :
5398 withval=$with_host_libstdcxx;
5399fi
5400
5401
5402case $with_host_libstdcxx in
5403 no|yes)
5404 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5405 ;;
5406esac
5407
5408# Linker flags to use for stage1 or when not boostrapping.
5409
5410# Check whether --with-stage1-ldflags was given.
5411if test "${with_stage1_ldflags+set}" = set; then :
5412 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5413 stage1_ldflags=
5414 else
5415 stage1_ldflags=$withval
5416 fi
5417else
5418 stage1_ldflags=
5419fi
5420
5421
5422
5423# Libraries to use for stage1 or when not bootstrapping.
5424
5425# Check whether --with-stage1-libs was given.
5426if test "${with_stage1_libs+set}" = set; then :
5427 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5428 stage1_libs=
5429 else
5430 stage1_libs=$withval
5431 fi
5432else
5433 stage1_libs=$with_host_libstdcxx
5434fi
5435
5436
5437
5438# Linker flags to use for stage2 and later builds.
5439
5440# Check whether --with-boot-ldflags was given.
5441if test "${with_boot_ldflags+set}" = set; then :
5442 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5443 poststage1_ldflags=
5444 else
5445 poststage1_ldflags=$withval
5446 fi
5447else
5448 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5449 poststage1_ldflags=-static-libstdc++
5450 else
5451 poststage1_ldflags=
5452 fi
5453fi
5454
5455
5456
5457# Libraries to use for stage2 and later builds. This defaults to the
5458# argument passed to --with-host-libstdcxx.
5459
5460# Check whether --with-boot-libs was given.
5461if test "${with_boot_libs+set}" = set; then :
5462 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5463 poststage1_libs=
5464 else
5465 poststage1_libs=$withval
5466 fi
5467else
5468 poststage1_libs=$with_host_libstdcxx
5469fi
5470
5471
5472
5473# Check for PPL
5474ppl_major_version=0
5475ppl_minor_version=10
5476ppllibs=" -lppl_c -lppl -lgmpxx"
5477pplinc=
5478
5479
5480# Check whether --with-ppl was given.
5481if test "${with_ppl+set}" = set; then :
5482 withval=$with_ppl;
5483else
5484 with_ppl=no
5485fi
5486
5487
5488# Check whether --with-ppl_include was given.
5489if test "${with_ppl_include+set}" = set; then :
5490 withval=$with_ppl_include;
5491fi
5492
5493
5494# Check whether --with-ppl_lib was given.
5495if test "${with_ppl_lib+set}" = set; then :
5496 withval=$with_ppl_lib;
5497fi
5498
5499
5500case $with_ppl in
5501 no)
5502 ppllibs=
5503 ;;
5504 *)
5505 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5506 pplinc="-I$with_ppl/include $pplinc"
5507 LIBS="$ppllibs $LIBS"
5508 ;;
5509esac
5510if test "x$with_ppl_include" != x; then
5511 pplinc="-I$with_ppl_include $pplinc"
5512fi
5513if test "x$with_ppl_lib" != x; then
5514 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5515 LIBS="$ppllibs $LIBS"
5516fi
5517if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5518 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5519 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5520 LIBS="$ppllibs $LIBS"
5521fi
5522
5523# Check whether --enable-ppl-version-check was given.
5524if test "${enable_ppl_version_check+set}" = set; then :
5525 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5526else
5527 ENABLE_PPL_CHECK=yes
5528fi
5529
5530
5531if test "${ENABLE_PPL_CHECK}" = "yes"; then
5532 saved_CFLAGS="$CFLAGS"
5533 CFLAGS="$CFLAGS $pplinc $gmpinc"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5535$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h. */
5538#include "ppl_c.h"
5539int
5540main ()
5541{
5542
5543 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5544 choke me
5545 #endif
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; ppllibs= ; pplinc=
5557fi
5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 CFLAGS="$saved_CFLAGS"
5560fi
5561
5562# Flags needed for PPL
5563
5564
5565
5566
5567# Check for CLOOG
5568clooglibs=" -lcloog "
5569clooginc=" -DCLOOG_PPL_BACKEND "
5570
5571
5572# Check whether --with-cloog was given.
5573if test "${with_cloog+set}" = set; then :
5574 withval=$with_cloog;
5575else
5576 with_cloog=no
5577fi
5578
5579
5580# Check whether --with-cloog_include was given.
5581if test "${with_cloog_include+set}" = set; then :
5582 withval=$with_cloog_include;
5583fi
5584
5585
5586# Check whether --with-cloog_lib was given.
5587if test "${with_cloog_lib+set}" = set; then :
5588 withval=$with_cloog_lib;
5589fi
5590
5591
5592case $with_cloog in
5593 no)
5594 clooglibs=
5595 clooginc=
5596 ;;
5597 *)
5598 clooglibs="-L$with_cloog/lib -lcloog"
5599 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5600 LIBS="$clooglibs $LIBS"
5601 ;;
5602esac
5603if test "x$with_cloog_include" != x; then
5604 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5605fi
5606if test "x$with_cloog_lib" != x; then
5607 clooglibs="-L$with_cloog_lib -lcloog"
5608 LIBS="$clooglibs $LIBS"
5609fi
5610if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5611 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5612 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5613 LIBS="$clooglibs $LIBS"
5614fi
5615
5616# Check whether --enable-cloog-version-check was given.
5617if test "${enable_cloog_version_check+set}" = set; then :
5618 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5619else
5620 ENABLE_CLOOG_CHECK=yes
5621fi
5622
5623
5624if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5625 saved_CFLAGS="$CFLAGS"
5626 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5628$as_echo_n "checking for correct version of CLooG... " >&6; }
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include "cloog/cloog.h"
5632int
5633main ()
5634{
5635
5636 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5637 choke me
5638 #endif
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646$as_echo "yes" >&6; }
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }; clooglibs= ; clooginc=
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 CFLAGS="$saved_CFLAGS"
5653fi
5654
5655# Flags needed for CLOOG
5656
5657
5658
5659
5660# By default, C is the only stage 1 language.
5661stage1_languages=,c,
5662
5663# Target libraries that we bootstrap.
5664bootstrap_target_libs=,target-libgcc,
5665
5666# Figure out what language subdirectories are present.
5667# Look if the user specified --enable-languages="..."; if not, use
5668# the environment variable $LANGUAGES if defined. $LANGUAGES might
5669# go away some day.
5670# NB: embedded tabs in this IF block -- do not untabify
5671if test -d ${srcdir}/gcc; then
5672 if test x"${enable_languages+set}" != xset; then
5673 if test x"${LANGUAGES+set}" = xset; then
5674 enable_languages="${LANGUAGES}"
5675 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5676 else
5677 enable_languages=all
5678 fi
5679 else
5680 if test x"${enable_languages}" = x ||
5681 test x"${enable_languages}" = xyes;
5682 then
5683 echo configure.in: --enable-languages needs at least one language argument 1>&2
5684 exit 1
5685 fi
5686 fi
5687 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5688
5689 # 'f95' is the old name for the 'fortran' language. We issue a warning
5690 # and make the substitution.
5691 case ,${enable_languages}, in
5692 *,f95,*)
5693 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5694 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5695 ;;
5696 esac
5697
5698 # First scan to see if an enabled language requires some other language.
5699 # We assume that a given config-lang.in will list all the language
5700 # front ends it requires, even if some are required indirectly.
5701 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5702 case ${lang_frag} in
5703 ..) ;;
5704 # The odd quoting in the next line works around
5705 # an apparent bug in bash 1.12 on linux.
5706 ${srcdir}/gcc/[*]/config-lang.in) ;;
5707 *)
5708 # From the config-lang.in, get $language, $lang_requires
5709 language=
5710 lang_requires=
5711 . ${lang_frag}
5712 for other in ${lang_requires} ; do
5713 case ,${enable_languages}, in
5714 *,$other,*) ;;
5715 *,all,*) ;;
5716 *,$language,*)
5717 echo " \`$other' language required by \`$language'; enabling" 1>&2
5718 enable_languages="${enable_languages},${other}"
5719 ;;
5720 esac
5721 done
5722 ;;
5723 esac
5724 done
5725
5726 new_enable_languages=,c,
5727 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5728 potential_languages=,c,
5729
5730 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5731 case ${lang_frag} in
5732 ..) ;;
5733 # The odd quoting in the next line works around
5734 # an apparent bug in bash 1.12 on linux.
5735 ${srcdir}/gcc/[*]/config-lang.in) ;;
5736 *)
5737 # From the config-lang.in, get $language, $target_libs,
5738 # $lang_dirs, $boot_language, and $build_by_default
5739 language=
5740 target_libs=
5741 lang_dirs=
5742 subdir_requires=
5743 boot_language=no
5744 build_by_default=yes
5745 . ${lang_frag}
5746 if test x${language} = x; then
5747 echo "${lang_frag} doesn't set \$language." 1>&2
5748 exit 1
5749 fi
5750
5751 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5752 boot_language=yes
5753 fi
5754
5755 case ,${enable_languages}, in
5756 *,${language},*)
5757 # Language was explicitly selected; include it.
5758 add_this_lang=yes
5759 ;;
5760 *,all,*)
5761 # 'all' was selected, select it if it is a default language
5762 add_this_lang=${build_by_default}
5763 ;;
5764 *)
5765 add_this_lang=no
5766 ;;
5767 esac
5768
5769 # Disable languages that need other directories if these aren't available.
5770 for i in $subdir_requires; do
5771 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5772 case ,${enable_languages}, in
5773 *,${language},*)
5774 # Specifically requested language; tell them.
5775 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5776 ;;
5777 *)
5778 # Silently disable.
5779 add_this_lang=unsupported
5780 ;;
5781 esac
5782 done
5783
5784 # Disable Ada if no preexisting GNAT is available.
5785 case ,${enable_languages},:${language}:${have_gnat} in
5786 *,${language},*:ada:no)
5787 # Specifically requested language; tell them.
5788 as_fn_error "GNAT is required to build $language" "$LINENO" 5
5789 ;;
5790 *:ada:no)
5791 # Silently disable.
5792 add_this_lang=unsupported
5793 ;;
5794 esac
5795
5796 # Disable a language that is unsupported by the target.
5797 case " $unsupported_languages " in
5798 *" $language "*)
5799 add_this_lang=unsupported
5800 ;;
5801 esac
5802
5803 case $add_this_lang in
5804 unsupported)
5805 # Remove language-dependent dirs.
5806 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5807 ;;
5808 no)
5809 # Remove language-dependent dirs; still show language as supported.
5810 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5811 potential_languages="${potential_languages}${language},"
5812 ;;
5813 yes)
5814 new_enable_languages="${new_enable_languages}${language},"
5815 potential_languages="${potential_languages}${language},"
5816 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5817 case ${boot_language} in
5818 yes)
5819 # Add to (comma-separated) list of stage 1 languages.
5820 stage1_languages="${stage1_languages}${language},"
5821 # We need to bootstrap any supporting libraries.
5822 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5823 ;;
5824 esac
5825 ;;
5826 esac
5827 ;;
5828 esac
5829 done
5830
5831 # Check whether --enable-stage1-languages was given.
5832if test "${enable_stage1_languages+set}" = set; then :
5833 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5834 ,no,|,,)
5835 # Set it to something that will have no effect in the loop below
5836 enable_stage1_languages=c ;;
5837 ,yes,)
5838 enable_stage1_languages=`echo $new_enable_languages | \
5839 sed -e "s/^,//" -e "s/,$//" ` ;;
5840 *,all,*)
5841 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5842 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5843 esac
5844
5845 # Add "good" languages from enable_stage1_languages to stage1_languages,
5846 # while "bad" languages go in missing_languages. Leave no duplicates.
5847 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5848 case $potential_languages in
5849 *,$i,*)
5850 case $stage1_languages in
5851 *,$i,*) ;;
5852 *) stage1_languages="$stage1_languages$i," ;;
5853 esac ;;
5854 *)
5855 case $missing_languages in
5856 *,$i,*) ;;
5857 *) missing_languages="$missing_languages$i," ;;
5858 esac ;;
5859 esac
5860 done
5861fi
5862
5863
5864 # Remove leading/trailing commas that were added for simplicity
5865 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5866 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5867 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5868 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5869
5870 if test "x$missing_languages" != x; then
5871 as_fn_error "
5872The following requested languages could not be built: ${missing_languages}
5873Supported languages are: ${potential_languages}" "$LINENO" 5
5874 fi
5875 if test "x$new_enable_languages" != "x$enable_languages"; then
5876 echo The following languages will be built: ${new_enable_languages}
5877 enable_languages="$new_enable_languages"
5878 fi
5879
5880
5881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5882fi
5883
5884# Handle --disable-<component> generically.
5885for dir in $configdirs $build_configdirs $target_configdirs ; do
5886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5887 varname=`echo $dirname | sed -e s/+/_/g`
5888 if eval test x\${enable_${varname}} "=" xno ; then
5889 noconfigdirs="$noconfigdirs $dir"
5890 fi
5891done
5892
5893# Check for Boehm's garbage collector
5894# Check whether --enable-objc-gc was given.
5895if test "${enable_objc_gc+set}" = set; then :
5896 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5897 *,objc,*:*:yes:*target-boehm-gc*)
5898 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
5899 ;;
5900esac
5901fi
5902
5903
5904# Make sure we only build Boehm's garbage collector if required.
5905case ,${enable_languages},:${enable_objc_gc} in
5906 *,objc,*:yes)
5907 # Keep target-boehm-gc if requested for Objective-C.
5908 ;;
5909 *)
5910 # Otherwise remove target-boehm-gc depending on target-libjava.
5911 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5912 noconfigdirs="$noconfigdirs target-boehm-gc"
5913 fi
5914 ;;
5915esac
5916
5917# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5918# $build_configdirs and $target_configdirs.
5919# If we have the source for $noconfigdirs entries, add them to $notsupp.
5920
5921notsupp=""
5922for dir in . $skipdirs $noconfigdirs ; do
5923 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5924 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5925 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5926 if test -r $srcdir/$dirname/configure ; then
5927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5928 true
5929 else
5930 notsupp="$notsupp $dir"
5931 fi
5932 fi
5933 fi
5934 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5935 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5936 if test -r $srcdir/$dirname/configure ; then
5937 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5938 true
5939 else
5940 notsupp="$notsupp $dir"
5941 fi
5942 fi
5943 fi
5944 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5945 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5946 if test -r $srcdir/$dirname/configure ; then
5947 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5948 true
5949 else
5950 notsupp="$notsupp $dir"
5951 fi
5952 fi
5953 fi
5954done
5955
5956# Sometimes the tools are distributed with libiberty but with no other
5957# libraries. In that case, we don't want to build target-libiberty.
5958# Don't let libgcc imply libiberty either.
5959if test -n "${target_configdirs}" ; then
5960 libgcc=
5961 others=
5962 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5963 if test "$i" = "libgcc"; then
5964 libgcc=target-libgcc
5965 elif test "$i" != "libiberty" ; then
5966 if test -r $srcdir/$i/configure ; then
5967 others=yes;
5968 break;
5969 fi
5970 fi
5971 done
5972 if test -z "${others}" ; then
5973 target_configdirs=$libgcc
5974 fi
5975fi
5976
5977# Quietly strip out all directories which aren't configurable in this tree.
5978# This relies on all configurable subdirectories being autoconfiscated, which
5979# is now the case.
5980build_configdirs_all="$build_configdirs"
5981build_configdirs=
5982for i in ${build_configdirs_all} ; do
5983 j=`echo $i | sed -e s/build-//g`
5984 if test -f ${srcdir}/$j/configure ; then
5985 build_configdirs="${build_configdirs} $i"
5986 fi
5987done
5988
5989configdirs_all="$configdirs"
5990configdirs=
5991for i in ${configdirs_all} ; do
5992 if test -f ${srcdir}/$i/configure ; then
5993 configdirs="${configdirs} $i"
5994 fi
5995done
5996
5997target_configdirs_all="$target_configdirs"
5998target_configdirs=
5999for i in ${target_configdirs_all} ; do
6000 j=`echo $i | sed -e s/target-//g`
6001 if test -f ${srcdir}/$j/configure ; then
6002 target_configdirs="${target_configdirs} $i"
6003 fi
6004done
6005
6006# Produce a warning message for the subdirs we can't configure.
6007# This isn't especially interesting in the Cygnus tree, but in the individual
6008# FSF releases, it's important to let people know when their machine isn't
6009# supported by the one or two programs in a package.
6010
6011if test -n "${notsupp}" && test -z "${norecursion}" ; then
6012 # If $appdirs is non-empty, at least one of those directories must still
6013 # be configured, or we error out. (E.g., if the gas release supports a
6014 # specified target in some subdirs but not the gas subdir, we shouldn't
6015 # pretend that all is well.)
6016 if test -n "$appdirs" ; then
6017 for dir in $appdirs ; do
6018 if test -r $dir/Makefile.in ; then
6019 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6020 appdirs=""
6021 break
6022 fi
6023 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6024 appdirs=""
6025 break
6026 fi
6027 fi
6028 done
6029 if test -n "$appdirs" ; then
6030 echo "*** This configuration is not supported by this package." 1>&2
6031 exit 1
6032 fi
6033 fi
6034 # Okay, some application will build, or we don't care to check. Still
6035 # notify of subdirs not getting built.
6036 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6037 echo " ${notsupp}" 1>&2
6038 echo " (Any other directories should still work fine.)" 1>&2
6039fi
6040
6041case "$host" in
6042 *msdosdjgpp*)
6043 enable_gdbtk=no ;;
6044esac
6045
6046# To find our prefix, in gcc_cv_tool_prefix.
6047
6048# The user is always right.
6049if test "${PATH_SEPARATOR+set}" != set; then
6050 echo "#! /bin/sh" >conf$$.sh
6051 echo "exit 0" >>conf$$.sh
6052 chmod +x conf$$.sh
6053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6054 PATH_SEPARATOR=';'
6055 else
6056 PATH_SEPARATOR=:
6057 fi
6058 rm -f conf$$.sh
6059fi
6060
6061
6062
6063if test "x$exec_prefix" = xNONE; then
6064 if test "x$prefix" = xNONE; then
6065 gcc_cv_tool_prefix=$ac_default_prefix
6066 else
6067 gcc_cv_tool_prefix=$prefix
6068 fi
6069else
6070 gcc_cv_tool_prefix=$exec_prefix
6071fi
6072
6073# If there is no compiler in the tree, use the PATH only. In any
6074# case, if there is no compiler in the tree nobody should use
6075# AS_FOR_TARGET and LD_FOR_TARGET.
6076if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6077 gcc_version=`cat $srcdir/gcc/BASE-VER`
6078 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6079 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6084else
6085 gcc_cv_tool_dirs=
6086fi
6087
6088if test x$build = x$target && test -n "$md_exec_prefix"; then
6089 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6090fi
6091
6092
6093
6094copy_dirs=
6095
6096
6097# Check whether --with-build-sysroot was given.
6098if test "${with_build_sysroot+set}" = set; then :
6099 withval=$with_build_sysroot; if test x"$withval" != x ; then
6100 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6101 fi
6102else
6103 SYSROOT_CFLAGS_FOR_TARGET=
6104fi
6105
6106
6107
6108
6109# Check whether --with-debug-prefix-map was given.
6110if test "${with_debug_prefix_map+set}" = set; then :
6111 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6113 for debug_map in $withval; do
6114 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6115 done
6116 fi
6117else
6118 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6119fi
6120
6121
6122
6123# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6124# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6125# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6126# We want to ensure that TARGET libraries (which we know are built with
6127# gcc) are built with "-O2 -g", so include those options when setting
6128# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6129if test "x$CFLAGS_FOR_TARGET" = x; then
6130 CFLAGS_FOR_TARGET=$CFLAGS
6131 case " $CFLAGS " in
6132 *" -O2 "*) ;;
6133 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6134 esac
6135 case " $CFLAGS " in
6136 *" -g "* | *" -g3 "*) ;;
6137 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6138 esac
6139fi
6140
6141
6142if test "x$CXXFLAGS_FOR_TARGET" = x; then
6143 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6144 case " $CXXFLAGS " in
6145 *" -O2 "*) ;;
6146 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6147 esac
6148 case " $CXXFLAGS " in
6149 *" -g "* | *" -g3 "*) ;;
6150 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6151 esac
6152fi
6153
6154
6155# Handle --with-headers=XXX. If the value is not "yes", the contents of
6156# the named directory are copied to $(tooldir)/sys-include.
6157if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6158 if test x${is_cross_compiler} = xno ; then
6159 echo 1>&2 '***' --with-headers is only supported when cross compiling
6160 exit 1
6161 fi
6162 if test x"${with_headers}" != xyes ; then
6163 x=${gcc_cv_tool_prefix}
6164 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6165 fi
6166fi
6167
6168# Handle --with-libs=XXX. If the value is not "yes", the contents of
6169# the name directories are copied to $(tooldir)/lib. Multiple directories
6170# are permitted.
6171if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6172 if test x${is_cross_compiler} = xno ; then
6173 echo 1>&2 '***' --with-libs is only supported when cross compiling
6174 exit 1
6175 fi
6176 if test x"${with_libs}" != xyes ; then
6177 # Copy the libraries in reverse order, so that files in the first named
6178 # library override files in subsequent libraries.
6179 x=${gcc_cv_tool_prefix}
6180 for l in ${with_libs}; do
6181 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6182 done
6183 fi
6184fi
6185
6186# Set with_gnu_as and with_gnu_ld as appropriate.
6187#
6188# This is done by determining whether or not the appropriate directory
6189# is available, and by checking whether or not specific configurations
6190# have requested that this magic not happen.
6191#
6192# The command line options always override the explicit settings in
6193# configure.in, and the settings in configure.in override this magic.
6194#
6195# If the default for a toolchain is to use GNU as and ld, and you don't
6196# want to do that, then you should use the --without-gnu-as and
6197# --without-gnu-ld options for the configure script.
6198
6199if test x${use_gnu_as} = x &&
6200 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6201 with_gnu_as=yes
6202 extra_host_args="$extra_host_args --with-gnu-as"
6203fi
6204
6205if test x${use_gnu_ld} = x &&
6206 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6207 with_gnu_ld=yes
6208 extra_host_args="$extra_host_args --with-gnu-ld"
6209fi
6210
6211# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6212# can detect this case.
6213
6214if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6215 with_newlib=yes
6216 extra_host_args="$extra_host_args --with-newlib"
6217fi
6218
6219# Handle ${copy_dirs}
6220set fnord ${copy_dirs}
6221shift
6222while test $# != 0 ; do
6223 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6224 :
6225 else
6226 echo Copying $1 to $2
6227
6228 # Use the install script to create the directory and all required
6229 # parent directories.
6230 if test -d $2 ; then
6231 :
6232 else
6233 echo >config.temp
6234 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6235 fi
6236
6237 # Copy the directory, assuming we have tar.
6238 # FIXME: Should we use B in the second tar? Not all systems support it.
6239 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6240
6241 # It is the responsibility of the user to correctly adjust all
6242 # symlinks. If somebody can figure out how to handle them correctly
6243 # here, feel free to add the code.
6244
6245 echo $1 > $2/COPIED
6246 fi
6247 shift; shift
6248done
6249
6250# Determine a target-dependent exec_prefix that the installed
6251# gcc will search in. Keep this list sorted by triplet, with
6252# the *-*-osname triplets last.
6253md_exec_prefix=
6254case "${target}" in
6255 alpha*-*-*vms*)
6256 md_exec_prefix=/gnu/lib/gcc-lib
6257 ;;
6258 i[34567]86-pc-msdosdjgpp*)
6259 md_exec_prefix=/dev/env/DJDIR/bin
6260 ;;
6261 i[34567]86-*-sco3.2v5*)
6262 if test $with_gnu_as = yes; then
6263 md_exec_prefix=/usr/gnu/bin
6264 else
6265 md_exec_prefix=/usr/ccs/bin/elf
6266 fi
6267 ;;
6268
6269 mn10300-*-* | \
6270 powerpc-*-chorusos* | \
6271 powerpc*-*-eabi* | \
6272 powerpc*-*-sysv* | \
6273 powerpc*-*-kaos* | \
6274 s390x-ibm-tpf*)
6275 md_exec_prefix=/usr/ccs/bin
6276 ;;
6277 sparc64-*-elf*)
6278 ;;
6279 v850*-*-*)
6280 md_exec_prefix=/usr/ccs/bin
6281 ;;
6282 xtensa*-*-elf*)
6283 ;;
6284
6285 *-*-beos* | \
6286 *-*-elf* | \
6287 *-*-hpux* | \
6288 *-*-netware* | \
6289 *-*-nto-qnx* | \
6290 *-*-rtems* | \
6291 *-*-solaris2* | \
6292 *-*-sysv[45]* | \
6293 *-*-vxworks* | \
6294 *-wrs-windiss)
6295 md_exec_prefix=/usr/ccs/bin
6296 ;;
6297esac
6298
6299extra_arflags_for_target=
6300extra_nmflags_for_target=
6301extra_ranlibflags_for_target=
6302target_makefile_frag=/dev/null
6303case "${target}" in
6304 mep*-*-*)
6305 target_makefile_frag="config/mt-mep"
6306 ;;
6307 spu-*-*)
6308 target_makefile_frag="config/mt-spu"
6309 ;;
6310 mips*-sde-elf*)
6311 target_makefile_frag="config/mt-sde"
6312 ;;
6313 mipsisa*-*-elfoabi*)
6314 target_makefile_frag="config/mt-mips-elfoabi"
6315 ;;
6316 mips*-*-*linux* | mips*-*-gnu*)
6317 target_makefile_frag="config/mt-mips-gnu"
6318 ;;
6319 *-*-netware*)
6320 target_makefile_frag="config/mt-netware"
6321 ;;
6322 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6323 target_makefile_frag="config/mt-gnu"
6324 ;;
6325 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6326 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6327 # commands to handle both 32-bit and 64-bit objects. These flags are
6328 # harmless if we're using GNU nm or ar.
6329 extra_arflags_for_target=" -X32_64"
6330 extra_nmflags_for_target=" -B -X32_64"
6331 ;;
6332 *-*-darwin*)
6333 # ranlib from Darwin requires the -c flag to look at common symbols.
6334 extra_ranlibflags_for_target=" -c"
6335 ;;
6336 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6337 target_makefile_frag="config/mt-wince"
6338 ;;
6339esac
6340
6341alphaieee_frag=/dev/null
6342case $target in
6343 alpha*-*-*)
6344 # This just makes sure to use the -mieee option to build target libs.
6345 # This should probably be set individually by each library.
6346 alphaieee_frag="config/mt-alphaieee"
6347 ;;
6348esac
6349
6350# If --enable-target-optspace always use -Os instead of -O2 to build
6351# the target libraries, similarly if it is not specified, use -Os
6352# on selected platforms.
6353ospace_frag=/dev/null
6354case "${enable_target_optspace}:${target}" in
6355 yes:*)
6356 ospace_frag="config/mt-ospace"
6357 ;;
6358 :d30v-*)
6359 ospace_frag="config/mt-d30v"
6360 ;;
6361 :m32r-* | :d10v-* | :fr30-*)
6362 ospace_frag="config/mt-ospace"
6363 ;;
6364 no:* | :*)
6365 ;;
6366 *)
6367 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6368 ;;
6369esac
6370
6371# Default to using --with-stabs for certain targets.
6372if test x${with_stabs} = x ; then
6373 case "${target}" in
6374 mips*-*-irix[56]*)
6375 ;;
6376 mips*-*-* | alpha*-*-osf*)
6377 with_stabs=yes;
6378 extra_host_args="${extra_host_args} --with-stabs"
6379 ;;
6380 esac
6381fi
6382
6383# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6384# them automatically.
6385case "${host}" in
6386 hppa*64*-*-hpux11*)
6387 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6388 ;;
6389esac
6390
6391# Some systems (e.g., one of the i386-aix systems the gas testers are
6392# using) don't handle "\$" correctly, so don't use it here.
6393tooldir='${exec_prefix}'/${target_noncanonical}
6394build_tooldir=${tooldir}
6395
6396# Create a .gdbinit file which runs the one in srcdir
6397# and tells GDB to look there for source files.
6398
6399if test -r ${srcdir}/.gdbinit ; then
6400 case ${srcdir} in
6401 .) ;;
6402 *) cat > ./.gdbinit <<EOF
6403# ${NO_EDIT}
6404dir ${srcdir}
6405dir .
6406source ${srcdir}/.gdbinit
6407EOF
6408 ;;
6409 esac
6410fi
6411
6412# Make sure that the compiler is able to generate an executable. If it
6413# can't, we are probably in trouble. We don't care whether we can run the
6414# executable--we might be using a cross compiler--we only care whether it
6415# can be created. At this point the main configure script has set CC.
6416we_are_ok=no
6417echo "int main () { return 0; }" > conftest.c
6418${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6419if test $? = 0 ; then
6420 if test -s conftest || test -s conftest.exe ; then
6421 we_are_ok=yes
6422 fi
6423fi
6424case $we_are_ok in
6425 no)
6426 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6427 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6428 rm -f conftest*
6429 exit 1
6430 ;;
6431esac
6432rm -f conftest*
6433
6434# The Solaris /usr/ucb/cc compiler does not appear to work.
6435case "${host}" in
6436 sparc-sun-solaris2*)
6437 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6438 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6439 could_use=
6440 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6441 if test -d /opt/cygnus/bin ; then
6442 if test "$could_use" = "" ; then
6443 could_use="/opt/cygnus/bin"
6444 else
6445 could_use="$could_use or /opt/cygnus/bin"
6446 fi
6447 fi
6448 if test "$could_use" = "" ; then
6449 echo "Warning: compilation may fail because you're using"
6450 echo "/usr/ucb/cc. You should change your PATH or CC "
6451 echo "variable and rerun configure."
6452 else
6453 echo "Warning: compilation may fail because you're using"
6454 echo "/usr/ucb/cc, when you should use the C compiler from"
6455 echo "$could_use. You should change your"
6456 echo "PATH or CC variable and rerun configure."
6457 fi
6458 fi
6459 ;;
6460esac
6461
6462# Decide which environment variable is used to find dynamic libraries.
6463case "${host}" in
6464 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6465 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6466 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6467 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6468esac
6469
6470# On systems where the dynamic library environment variable is PATH,
6471# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6472# built executables to PATH.
6473if test "$RPATH_ENVVAR" = PATH; then
6474 GCC_SHLIB_SUBDIR=/shlib
6475else
6476 GCC_SHLIB_SUBDIR=
6477fi
6478
6479# Record target_configdirs and the configure arguments for target and
6480# build configuration in Makefile.
6481target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6482build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6483
6484# Determine whether gdb needs tk/tcl or not.
6485# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6486# and in that case we want gdb to be built without tk. Ugh!
6487# In fact I believe gdb is the *only* package directly dependent on tk,
6488# so we should be able to put the 'maybe's in unconditionally and
6489# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6490# 100% sure that that's safe though.
6491
6492gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6493case "$enable_gdbtk" in
6494 no)
6495 GDB_TK="" ;;
6496 yes)
6497 GDB_TK="${gdb_tk}" ;;
6498 *)
6499 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6500 # distro. Eventually someone will fix this and move Insight, nee
6501 # gdbtk to a separate directory.
6502 if test -d ${srcdir}/gdb/gdbtk ; then
6503 GDB_TK="${gdb_tk}"
6504 else
6505 GDB_TK=""
6506 fi
6507 ;;
6508esac
6509CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6510INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6511
6512# Strip out unwanted targets.
6513
6514# While at that, we remove Makefiles if we were started for recursive
6515# configuration, so that the top-level Makefile reconfigures them,
6516# like we used to do when configure itself was recursive.
6517
6518# Loop over modules. $extrasub must be used with care, limiting as
6519# much as possible the usage of range addresses. That's because autoconf
6520# splits the sed script to overcome limits in the number of commands,
6521# and relying on carefully-timed sed passes may turn out to be very hard
6522# to maintain later. In this particular case, you just have to be careful
6523# not to nest @if/@endif pairs, because configure will not warn you at all.
6524
6525# Check whether --enable-bootstrap was given.
6526if test "${enable_bootstrap+set}" = set; then :
6527 enableval=$enable_bootstrap;
6528else
6529 enable_bootstrap=default
6530fi
6531
6532
6533# Issue errors and warnings for invalid/strange bootstrap combinations.
6534case "$configdirs" in
6535 *gcc*) have_compiler=yes ;;
6536 *) have_compiler=no ;;
6537esac
6538
6539case "$have_compiler:$host:$target:$enable_bootstrap" in
6540 *:*:*:no) ;;
6541
6542 # Default behavior. Enable bootstrap if we have a compiler
6543 # and we are in a native configuration.
6544 yes:$build:$build:default)
6545 enable_bootstrap=yes ;;
6546
6547 *:*:*:default)
6548 enable_bootstrap=no ;;
6549
6550 # We have a compiler and we are in a native configuration, bootstrap is ok
6551 yes:$build:$build:yes)
6552 ;;
6553
6554 # Other configurations, but we have a compiler. Assume the user knows
6555 # what he's doing.
6556 yes:*:*:yes)
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6558$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6559 ;;
6560
6561 # No compiler: if they passed --enable-bootstrap explicitly, fail
6562 no:*:*:yes)
6563 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6564
6565 # Fail if wrong command line
6566 *)
6567 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6568 ;;
6569esac
6570
6571# Adjust the toplevel makefile according to whether bootstrap was selected.
6572case "$enable_bootstrap" in
6573 yes)
6574 bootstrap_suffix=bootstrap ;;
6575 no)
6576 bootstrap_suffix=no-bootstrap ;;
6577esac
6578
6579for module in ${build_configdirs} ; do
6580 if test -z "${no_recursion}" \
6581 && test -f ${build_subdir}/${module}/Makefile; then
6582 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6583 rm -f ${build_subdir}/${module}/Makefile
6584 fi
6585 extrasub="$extrasub
6586/^@if build-$module\$/d
6587/^@endif build-$module\$/d
6588/^@if build-$module-$bootstrap_suffix\$/d
6589/^@endif build-$module-$bootstrap_suffix\$/d"
6590done
6591for module in ${configdirs} ; do
6592 if test -z "${no_recursion}"; then
6593 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6594 if test -f ${file}; then
6595 echo 1>&2 "*** removing ${file} to force reconfigure"
6596 rm -f ${file}
6597 fi
6598 done
6599 fi
6600 extrasub="$extrasub
6601/^@if $module\$/d
6602/^@endif $module\$/d
6603/^@if $module-$bootstrap_suffix\$/d
6604/^@endif $module-$bootstrap_suffix\$/d"
6605done
6606for module in ${target_configdirs} ; do
6607 if test -z "${no_recursion}" \
6608 && test -f ${target_subdir}/${module}/Makefile; then
6609 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6610 rm -f ${target_subdir}/${module}/Makefile
6611 fi
6612
6613 # We only bootstrap target libraries listed in bootstrap_target_libs.
6614 case $bootstrap_target_libs in
6615 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6616 *) target_bootstrap_suffix=no-bootstrap ;;
6617 esac
6618
6619 extrasub="$extrasub
6620/^@if target-$module\$/d
6621/^@endif target-$module\$/d
6622/^@if target-$module-$target_bootstrap_suffix\$/d
6623/^@endif target-$module-$target_bootstrap_suffix\$/d"
6624done
6625
6626extrasub="$extrasub
6627/^@if /,/^@endif /d"
6628
6629# Create the serialization dependencies. This uses a temporary file.
6630
6631# Check whether --enable-serial-configure was given.
6632if test "${enable_serial_configure+set}" = set; then :
6633 enableval=$enable_serial_configure;
6634fi
6635
6636
6637case ${enable_serial_configure} in
6638 yes)
6639 enable_serial_build_configure=yes
6640 enable_serial_host_configure=yes
6641 enable_serial_target_configure=yes
6642 ;;
6643esac
6644
6645# These force 'configure's to be done one at a time, to avoid problems
6646# with contention over a shared config.cache.
6647rm -f serdep.tmp
6648echo '# serdep.tmp' > serdep.tmp
6649olditem=
6650test "x${enable_serial_build_configure}" = xyes &&
6651for item in ${build_configdirs} ; do
6652 case ${olditem} in
6653 "") ;;
6654 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6655 esac
6656 olditem=${item}
6657done
6658olditem=
6659test "x${enable_serial_host_configure}" = xyes &&
6660for item in ${configdirs} ; do
6661 case ${olditem} in
6662 "") ;;
6663 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6664 esac
6665 olditem=${item}
6666done
6667olditem=
6668test "x${enable_serial_target_configure}" = xyes &&
6669for item in ${target_configdirs} ; do
6670 case ${olditem} in
6671 "") ;;
6672 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6673 esac
6674 olditem=${item}
6675done
6676serialization_dependencies=serdep.tmp
6677
6678
6679# Base args. Strip norecursion, cache-file, srcdir, host, build,
6680# target, nonopt, and variable assignments. These are the ones we
6681# might not want to pass down to subconfigures. Also strip
6682# program-prefix, program-suffix, and program-transform-name, so that
6683# we can pass down a consistent program-transform-name.
6684baseargs=
6685keep_next=no
6686skip_next=no
6687eval "set -- $ac_configure_args"
6688for ac_arg
6689do
6690 if test X"$skip_next" = X"yes"; then
6691 skip_next=no
6692 continue
6693 fi
6694 if test X"$keep_next" = X"yes"; then
6695 case $ac_arg in
6696 *\'*)
6697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6698 esac
6699 baseargs="$baseargs '$ac_arg'"
6700 keep_next=no
6701 continue
6702 fi
6703
6704 # Handle separated arguments. Based on the logic generated by
6705 # autoconf 2.59.
6706 case $ac_arg in
6707 *=* | --config-cache | -C | -disable-* | --disable-* \
6708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6710 | -with-* | --with-* | -without-* | --without-* | --x)
6711 separate_arg=no
6712 ;;
6713 -*)
6714 separate_arg=yes
6715 ;;
6716 *)
6717 separate_arg=no
6718 ;;
6719 esac
6720
6721 case "$ac_arg" in
6722 --no*)
6723 continue
6724 ;;
6725 --c* | \
6726 --sr* | \
6727 --ho* | \
6728 --bu* | \
6729 --t* | \
6730 --program-* | \
6731 -cache_file* | \
6732 -srcdir* | \
6733 -host* | \
6734 -build* | \
6735 -target* | \
6736 -program-prefix* | \
6737 -program-suffix* | \
6738 -program-transform-name* )
6739 skip_next=$separate_arg
6740 continue
6741 ;;
6742 -*)
6743 # An option. Add it.
6744 case $ac_arg in
6745 *\'*)
6746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6747 esac
6748 baseargs="$baseargs '$ac_arg'"
6749 keep_next=$separate_arg
6750 ;;
6751 *)
6752 # Either a variable assignment, or a nonopt (triplet). Don't
6753 # pass it down; let the Makefile handle this.
6754 continue
6755 ;;
6756 esac
6757done
6758# Remove the initial space we just introduced and, as these will be
6759# expanded by make, quote '$'.
6760baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6761
6762# Add in --program-transform-name, after --program-prefix and
6763# --program-suffix have been applied to it. Autoconf has already
6764# doubled dollar signs and backslashes in program_transform_name; we want
6765# the backslashes un-doubled, and then the entire thing wrapped in single
6766# quotes, because this will be expanded first by make and then by the shell.
6767# Also, because we want to override the logic in subdir configure scripts to
6768# choose program_transform_name, replace any s,x,x, with s,y,y,.
6769sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6770${program_transform_name}
6771EOF_SED
6772gcc_transform_name=`cat conftestsed.out`
6773rm -f conftestsed.out
6774baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6775if test "$silent" = yes; then
6776 baseargs="$baseargs --silent"
6777fi
6778baseargs="$baseargs --disable-option-checking"
6779
6780# For the build-side libraries, we just need to pretend we're native,
6781# and not use the same cache file. Multilibs are neither needed nor
6782# desired.
6783build_configargs="--cache-file=../config.cache ${baseargs}"
6784
6785# For host modules, accept cache file option, or specification as blank.
6786case "${cache_file}" in
6787"") # empty
6788 cache_file_option="" ;;
6789/* | [A-Za-z]:[\\/]* ) # absolute path
6790 cache_file_option="--cache-file=${cache_file}" ;;
6791*) # relative path
6792 cache_file_option="--cache-file=../${cache_file}" ;;
6793esac
6794
6795# Host dirs don't like to share a cache file either, horribly enough.
6796# This seems to be due to autoconf 2.5x stupidity.
6797host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6798
6799target_configargs=${baseargs}
6800
6801# Passing a --with-cross-host argument lets the target libraries know
6802# whether they are being built with a cross-compiler or being built
6803# native. However, it would be better to use other mechanisms to make the
6804# sorts of decisions they want to make on this basis. Please consider
6805# this option to be deprecated. FIXME.
6806if test x${is_cross_compiler} = xyes ; then
6807 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6808fi
6809
6810# Default to --enable-multilib.
6811if test x${enable_multilib} = x ; then
6812 target_configargs="--enable-multilib ${target_configargs}"
6813fi
6814
6815# Pass --with-newlib if appropriate. Note that target_configdirs has
6816# changed from the earlier setting of with_newlib.
6817if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6818 target_configargs="--with-newlib ${target_configargs}"
6819fi
6820
6821# Different target subdirs use different values of certain variables
6822# (notably CXX). Worse, multilibs use *lots* of different values.
6823# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6824# it doesn't automatically accept command-line overrides of them.
6825# This means it's not safe for target subdirs to share a cache file,
6826# which is disgusting, but there you have it. Hopefully this can be
6827# fixed in future. It's still worthwhile to use a cache file for each
6828# directory. I think.
6829
6830# Pass the appropriate --build, --host, --target and --cache-file arguments.
6831# We need to pass --target, as newer autoconf's requires consistency
6832# for target_alias and gcc doesn't manage it consistently.
6833target_configargs="--cache-file=./config.cache ${target_configargs}"
6834
6835FLAGS_FOR_TARGET=
6836case " $target_configdirs " in
6837 *" newlib "*)
6838 case " $target_configargs " in
6839 *" --with-newlib "*)
6840 case "$target" in
6841 *-cygwin*)
6842 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' ;;
6843 esac
6844
6845 # If we're not building GCC, don't discard standard headers.
6846 if test -d ${srcdir}/gcc; then
6847 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6848
6849 if test "${build}" != "${host}"; then
6850 # On Canadian crosses, CC_FOR_TARGET will have already been set
6851 # by `configure', so we won't have an opportunity to add -Bgcc/
6852 # to it. This is right: we don't want to search that directory
6853 # for binaries, but we want the header files in there, so add
6854 # them explicitly.
6855 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6856
6857 # Someone might think of using the pre-installed headers on
6858 # Canadian crosses, in case the installed compiler is not fully
6859 # compatible with the compiler being built. In this case, it
6860 # would be better to flag an error than risking having
6861 # incompatible object files being constructed. We can't
6862 # guarantee that an error will be flagged, but let's hope the
6863 # compiler will do it, when presented with incompatible header
6864 # files.
6865 fi
6866 fi
6867
6868 case "${target}-${is_cross_compiler}" in
6869 i[3456789]86-*-linux*-no)
6870 # Here host == target, so we don't need to build gcc,
6871 # so we don't want to discard standard headers.
6872 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6873 ;;
6874 *)
6875 # If we're building newlib, use its generic headers last, but search
6876 # for any libc-related directories first (so make it the last -B
6877 # switch).
6878 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6879
6880 # If we're building libgloss, find the startup file, simulator library
6881 # and linker script.
6882 case " $target_configdirs " in
6883 *" libgloss "*)
6884 # Look for startup file, simulator library and maybe linker script.
6885 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6886 # Look for libnosys.a in case the target needs it.
6887 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6888 # Most targets have the linker script in the source directory.
6889 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6890 ;;
6891 esac
6892 ;;
6893 esac
6894 ;;
6895 esac
6896 ;;
6897esac
6898case "$target" in
6899*-mingw*)
6900 # Can't be handled as Cygwin above since Mingw does not use newlib.
6901 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' ;;
6902esac
6903
6904# Allow the user to override the flags for
6905# our build compiler if desired.
6906if test x"${build}" = x"${host}" ; then
6907 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6908 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6909 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6910fi
6911
6912# On Canadian crosses, we'll be searching the right directories for
6913# the previously-installed cross compiler, so don't bother to add
6914# flags for directories within the install tree of the compiler
6915# being built; programs in there won't even run.
6916if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6917 # Search for pre-installed headers if nothing else fits.
6918 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6919fi
6920
6921if test "x${use_gnu_ld}" = x &&
6922 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6923 # Arrange for us to find uninstalled linker scripts.
6924 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6925fi
6926
6927# Search for other target-specific linker scripts and such.
6928case "${target}" in
6929 mep*)
6930 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6931 ;;
6932esac
6933
6934# Makefile fragments.
6935for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6936do
6937 eval fragval=\$$frag
6938 if test $fragval != /dev/null; then
6939 eval $frag=${srcdir}/$fragval
6940 fi
6941done
6942
6943
6944
6945
6946
6947# Miscellanea: directories, flags, etc.
6948
6949
6950
6951
6952
6953
6954
6955
6956# Build module lists & subconfigure args.
6957
6958
6959
6960# Host module lists & subconfigure args.
6961
6962
6963
6964# Target module lists & subconfigure args.
6965
6966
6967
6968# Build tools.
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986# Generate default definitions for YACC, M4, LEX and other programs that run
6987# on the build machine. These are used if the Makefile can't locate these
6988# programs in objdir.
6989MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6990
6991for ac_prog in 'bison -y' byacc yacc
6992do
6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
6994set dummy $ac_prog; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if test "${ac_cv_prog_YACC+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999else
7000 if test -n "$YACC"; then
7001 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_YACC="$ac_prog"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015 done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020YACC=$ac_cv_prog_YACC
7021if test -n "$YACC"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7023$as_echo "$YACC" >&6; }
7024else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029
7030 test -n "$YACC" && break
7031done
7032test -n "$YACC" || YACC="$MISSING bison -y"
7033
7034case " $build_configdirs " in
7035 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7036 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7037esac
7038
7039for ac_prog in bison
7040do
7041 # Extract the first word of "$ac_prog", so it can be a program name with args.
7042set dummy $ac_prog; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if test "${ac_cv_prog_BISON+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7047else
7048 if test -n "$BISON"; then
7049 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_BISON="$ac_prog"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063 done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
7068BISON=$ac_cv_prog_BISON
7069if test -n "$BISON"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7071$as_echo "$BISON" >&6; }
7072else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
7077
7078 test -n "$BISON" && break
7079done
7080test -n "$BISON" || BISON="$MISSING bison"
7081
7082case " $build_configdirs " in
7083 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7084esac
7085
7086for ac_prog in gm4 gnum4 m4
7087do
7088 # Extract the first word of "$ac_prog", so it can be a program name with args.
7089set dummy $ac_prog; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if test "${ac_cv_prog_M4+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094else
7095 if test -n "$M4"; then
7096 ac_cv_prog_M4="$M4" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_prog_M4="$ac_prog"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110 done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115M4=$ac_cv_prog_M4
7116if test -n "$M4"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7118$as_echo "$M4" >&6; }
7119else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124
7125 test -n "$M4" && break
7126done
7127test -n "$M4" || M4="$MISSING m4"
7128
7129case " $build_configdirs " in
7130 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7131esac
7132
7133for ac_prog in flex lex
7134do
7135 # Extract the first word of "$ac_prog", so it can be a program name with args.
7136set dummy $ac_prog; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if test "${ac_cv_prog_LEX+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141else
7142 if test -n "$LEX"; then
7143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_LEX="$ac_prog"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157 done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162LEX=$ac_cv_prog_LEX
7163if test -n "$LEX"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7165$as_echo "$LEX" >&6; }
7166else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172 test -n "$LEX" && break
7173done
7174test -n "$LEX" || LEX="$MISSING flex"
7175
7176case " $build_configdirs " in
7177 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7178 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7179esac
7180
7181for ac_prog in flex
7182do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184set dummy $ac_prog; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if test "${ac_cv_prog_FLEX+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
7189else
7190 if test -n "$FLEX"; then
7191 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_FLEX="$ac_prog"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205 done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210FLEX=$ac_cv_prog_FLEX
7211if test -n "$FLEX"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7213$as_echo "$FLEX" >&6; }
7214else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220 test -n "$FLEX" && break
7221done
7222test -n "$FLEX" || FLEX="$MISSING flex"
7223
7224case " $build_configdirs " in
7225 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7226esac
7227
7228for ac_prog in makeinfo
7229do
7230 # Extract the first word of "$ac_prog", so it can be a program name with args.
7231set dummy $ac_prog; ac_word=$2
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233$as_echo_n "checking for $ac_word... " >&6; }
7234if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236else
7237 if test -n "$MAKEINFO"; then
7238 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_MAKEINFO="$ac_prog"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252 done
7253IFS=$as_save_IFS
7254
7255fi
7256fi
7257MAKEINFO=$ac_cv_prog_MAKEINFO
7258if test -n "$MAKEINFO"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7260$as_echo "$MAKEINFO" >&6; }
7261else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
7264fi
7265
7266
7267 test -n "$MAKEINFO" && break
7268done
7269test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7270
7271case " $build_configdirs " in
7272 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7273 *)
7274
7275 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7276 # higher, else we use the "missing" dummy.
7277 if ${MAKEINFO} --version \
7278 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7279 :
7280 else
7281 MAKEINFO="$MISSING makeinfo"
7282 fi
7283 ;;
7284
7285esac
7286
7287# FIXME: expect and dejagnu may become build tools?
7288
7289for ac_prog in expect
7290do
7291 # Extract the first word of "$ac_prog", so it can be a program name with args.
7292set dummy $ac_prog; ac_word=$2
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
7295if test "${ac_cv_prog_EXPECT+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7297else
7298 if test -n "$EXPECT"; then
7299 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_EXPECT="$ac_prog"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312done
7313 done
7314IFS=$as_save_IFS
7315
7316fi
7317fi
7318EXPECT=$ac_cv_prog_EXPECT
7319if test -n "$EXPECT"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7321$as_echo "$EXPECT" >&6; }
7322else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
7325fi
7326
7327
7328 test -n "$EXPECT" && break
7329done
7330test -n "$EXPECT" || EXPECT="expect"
7331
7332case " $configdirs " in
7333 *" expect "*)
7334 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7335 ;;
7336esac
7337
7338for ac_prog in runtest
7339do
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341set dummy $ac_prog; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347 if test -n "$RUNTEST"; then
7348 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_RUNTEST="$ac_prog"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362 done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367RUNTEST=$ac_cv_prog_RUNTEST
7368if test -n "$RUNTEST"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7370$as_echo "$RUNTEST" >&6; }
7371else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377 test -n "$RUNTEST" && break
7378done
7379test -n "$RUNTEST" || RUNTEST="runtest"
7380
7381case " $configdirs " in
7382 *" dejagnu "*)
7383 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7384 ;;
7385esac
7386
7387
7388# Host tools.
7389ncn_tool_prefix=
7390test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7391ncn_target_tool_prefix=
7392test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7393
7394
7395
7396if test -n "$AR"; then
7397 ac_cv_prog_AR=$AR
7398elif test -n "$ac_cv_prog_AR"; then
7399 AR=$ac_cv_prog_AR
7400fi
7401
7402if test -n "$ac_cv_prog_AR"; then
7403 for ncn_progname in ar; do
7404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7405set dummy ${ncn_progname}; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_AR+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410else
7411 if test -n "$AR"; then
7412 ac_cv_prog_AR="$AR" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_AR="${ncn_progname}"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426 done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431AR=$ac_cv_prog_AR
7432if test -n "$AR"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7434$as_echo "$AR" >&6; }
7435else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441 done
7442fi
7443
7444for ncn_progname in ar; do
7445 if test -n "$ncn_tool_prefix"; then
7446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7447set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if test "${ac_cv_prog_AR+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 if test -n "$AR"; then
7454 ac_cv_prog_AR="$AR" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468 done
7469IFS=$as_save_IFS
7470
7471fi
7472fi
7473AR=$ac_cv_prog_AR
7474if test -n "$AR"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7476$as_echo "$AR" >&6; }
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482
7483 fi
7484 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7486set dummy ${ncn_progname}; ac_word=$2
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
7489if test "${ac_cv_prog_AR+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491else
7492 if test -n "$AR"; then
7493 ac_cv_prog_AR="$AR" # Let the user override the test.
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_AR="${ncn_progname}"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507 done
7508IFS=$as_save_IFS
7509
7510fi
7511fi
7512AR=$ac_cv_prog_AR
7513if test -n "$AR"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7515$as_echo "$AR" >&6; }
7516else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
7519fi
7520
7521
7522 fi
7523 test -n "$ac_cv_prog_AR" && break
7524done
7525
7526if test -z "$ac_cv_prog_AR" ; then
7527 set dummy ar
7528 if test $build = $host ; then
7529 AR="$2"
7530 else
7531 AR="${ncn_tool_prefix}$2"
7532 fi
7533fi
7534
7535
7536
7537if test -n "$AS"; then
7538 ac_cv_prog_AS=$AS
7539elif test -n "$ac_cv_prog_AS"; then
7540 AS=$ac_cv_prog_AS
7541fi
7542
7543if test -n "$ac_cv_prog_AS"; then
7544 for ncn_progname in as; do
7545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7546set dummy ${ncn_progname}; 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_AS+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$AS"; then
7553 ac_cv_prog_AS="$AS" # 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_AS="${ncn_progname}"
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
7572AS=$ac_cv_prog_AS
7573if test -n "$AS"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7575$as_echo "$AS" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 done
7583fi
7584
7585for ncn_progname in as; do
7586 if test -n "$ncn_tool_prefix"; then
7587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7588set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
7591if test "${ac_cv_prog_AS+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593else
7594 if test -n "$AS"; then
7595 ac_cv_prog_AS="$AS" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609 done
7610IFS=$as_save_IFS
7611
7612fi
7613fi
7614AS=$ac_cv_prog_AS
7615if test -n "$AS"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7617$as_echo "$AS" >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7627set dummy ${ncn_progname}; ac_word=$2
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if test "${ac_cv_prog_AS+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632else
7633 if test -n "$AS"; then
7634 ac_cv_prog_AS="$AS" # Let the user override the test.
7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_AS="${ncn_progname}"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648 done
7649IFS=$as_save_IFS
7650
7651fi
7652fi
7653AS=$ac_cv_prog_AS
7654if test -n "$AS"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7656$as_echo "$AS" >&6; }
7657else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
7660fi
7661
7662
7663 fi
7664 test -n "$ac_cv_prog_AS" && break
7665done
7666
7667if test -z "$ac_cv_prog_AS" ; then
7668 set dummy as
7669 if test $build = $host ; then
7670 AS="$2"
7671 else
7672 AS="${ncn_tool_prefix}$2"
7673 fi
7674fi
7675
7676
7677
7678if test -n "$DLLTOOL"; then
7679 ac_cv_prog_DLLTOOL=$DLLTOOL
7680elif test -n "$ac_cv_prog_DLLTOOL"; then
7681 DLLTOOL=$ac_cv_prog_DLLTOOL
7682fi
7683
7684if test -n "$ac_cv_prog_DLLTOOL"; then
7685 for ncn_progname in dlltool; do
7686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7687set dummy ${ncn_progname}; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692else
7693 if test -n "$DLLTOOL"; then
7694 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_DLLTOOL="${ncn_progname}"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708 done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713DLLTOOL=$ac_cv_prog_DLLTOOL
7714if test -n "$DLLTOOL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7716$as_echo "$DLLTOOL" >&6; }
7717else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723 done
7724fi
7725
7726for ncn_progname in dlltool; do
7727 if test -n "$ncn_tool_prefix"; then
7728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7729set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$DLLTOOL"; then
7736 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755DLLTOOL=$ac_cv_prog_DLLTOOL
7756if test -n "$DLLTOOL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7758$as_echo "$DLLTOOL" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765 fi
7766 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7768set dummy ${ncn_progname}; ac_word=$2
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773else
7774 if test -n "$DLLTOOL"; then
7775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_DLLTOOL="${ncn_progname}"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788done
7789 done
7790IFS=$as_save_IFS
7791
7792fi
7793fi
7794DLLTOOL=$ac_cv_prog_DLLTOOL
7795if test -n "$DLLTOOL"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7797$as_echo "$DLLTOOL" >&6; }
7798else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
7801fi
7802
7803
7804 fi
7805 test -n "$ac_cv_prog_DLLTOOL" && break
7806done
7807
7808if test -z "$ac_cv_prog_DLLTOOL" ; then
7809 set dummy dlltool
7810 if test $build = $host ; then
7811 DLLTOOL="$2"
7812 else
7813 DLLTOOL="${ncn_tool_prefix}$2"
7814 fi
7815fi
7816
7817
7818
7819if test -n "$LD"; then
7820 ac_cv_prog_LD=$LD
7821elif test -n "$ac_cv_prog_LD"; then
7822 LD=$ac_cv_prog_LD
7823fi
7824
7825if test -n "$ac_cv_prog_LD"; then
7826 for ncn_progname in ld; do
7827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7828set dummy ${ncn_progname}; ac_word=$2
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if test "${ac_cv_prog_LD+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833else
7834 if test -n "$LD"; then
7835 ac_cv_prog_LD="$LD" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_LD="${ncn_progname}"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849 done
7850IFS=$as_save_IFS
7851
7852fi
7853fi
7854LD=$ac_cv_prog_LD
7855if test -n "$LD"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7857$as_echo "$LD" >&6; }
7858else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
7861fi
7862
7863
7864 done
7865fi
7866
7867for ncn_progname in ld; do
7868 if test -n "$ncn_tool_prefix"; then
7869 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7870set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872$as_echo_n "checking for $ac_word... " >&6; }
7873if test "${ac_cv_prog_LD+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875else
7876 if test -n "$LD"; then
7877 ac_cv_prog_LD="$LD" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891 done
7892IFS=$as_save_IFS
7893
7894fi
7895fi
7896LD=$ac_cv_prog_LD
7897if test -n "$LD"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7899$as_echo "$LD" >&6; }
7900else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903fi
7904
7905
7906 fi
7907 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7909set dummy ${ncn_progname}; ac_word=$2
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911$as_echo_n "checking for $ac_word... " >&6; }
7912if test "${ac_cv_prog_LD+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7914else
7915 if test -n "$LD"; then
7916 ac_cv_prog_LD="$LD" # Let the user override the test.
7917else
7918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_LD="${ncn_progname}"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929done
7930 done
7931IFS=$as_save_IFS
7932
7933fi
7934fi
7935LD=$ac_cv_prog_LD
7936if test -n "$LD"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7938$as_echo "$LD" >&6; }
7939else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
7942fi
7943
7944
7945 fi
7946 test -n "$ac_cv_prog_LD" && break
7947done
7948
7949if test -z "$ac_cv_prog_LD" ; then
7950 set dummy ld
7951 if test $build = $host ; then
7952 LD="$2"
7953 else
7954 LD="${ncn_tool_prefix}$2"
7955 fi
7956fi
7957
7958
7959
7960if test -n "$LIPO"; then
7961 ac_cv_prog_LIPO=$LIPO
7962elif test -n "$ac_cv_prog_LIPO"; then
7963 LIPO=$ac_cv_prog_LIPO
7964fi
7965
7966if test -n "$ac_cv_prog_LIPO"; then
7967 for ncn_progname in lipo; do
7968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969set dummy ${ncn_progname}; ac_word=$2
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if test "${ac_cv_prog_LIPO+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974else
7975 if test -n "$LIPO"; then
7976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_LIPO="${ncn_progname}"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989done
7990 done
7991IFS=$as_save_IFS
7992
7993fi
7994fi
7995LIPO=$ac_cv_prog_LIPO
7996if test -n "$LIPO"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7998$as_echo "$LIPO" >&6; }
7999else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002fi
8003
8004
8005 done
8006fi
8007
8008for ncn_progname in lipo; do
8009 if test -n "$ncn_tool_prefix"; then
8010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if test "${ac_cv_prog_LIPO+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016else
8017 if test -n "$LIPO"; then
8018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032 done
8033IFS=$as_save_IFS
8034
8035fi
8036fi
8037LIPO=$ac_cv_prog_LIPO
8038if test -n "$LIPO"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8040$as_echo "$LIPO" >&6; }
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
8044fi
8045
8046
8047 fi
8048 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050set dummy ${ncn_progname}; ac_word=$2
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052$as_echo_n "checking for $ac_word... " >&6; }
8053if test "${ac_cv_prog_LIPO+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055else
8056 if test -n "$LIPO"; then
8057 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_LIPO="${ncn_progname}"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071 done
8072IFS=$as_save_IFS
8073
8074fi
8075fi
8076LIPO=$ac_cv_prog_LIPO
8077if test -n "$LIPO"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8079$as_echo "$LIPO" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084
8085
8086 fi
8087 test -n "$ac_cv_prog_LIPO" && break
8088done
8089
8090if test -z "$ac_cv_prog_LIPO" ; then
8091 set dummy lipo
8092 if test $build = $host ; then
8093 LIPO="$2"
8094 else
8095 LIPO="${ncn_tool_prefix}$2"
8096 fi
8097fi
8098
8099
8100
8101if test -n "$NM"; then
8102 ac_cv_prog_NM=$NM
8103elif test -n "$ac_cv_prog_NM"; then
8104 NM=$ac_cv_prog_NM
8105fi
8106
8107if test -n "$ac_cv_prog_NM"; then
8108 for ncn_progname in nm; do
8109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8110set dummy ${ncn_progname}; ac_word=$2
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
8113if test "${ac_cv_prog_NM+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115else
8116 if test -n "$NM"; then
8117 ac_cv_prog_NM="$NM" # Let the user override the test.
8118else
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_prog_NM="${ncn_progname}"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130done
8131 done
8132IFS=$as_save_IFS
8133
8134fi
8135fi
8136NM=$ac_cv_prog_NM
8137if test -n "$NM"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8139$as_echo "$NM" >&6; }
8140else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
8143fi
8144
8145
8146 done
8147fi
8148
8149for ncn_progname in nm; do
8150 if test -n "$ncn_tool_prefix"; then
8151 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8152set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if test "${ac_cv_prog_NM+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 if test -n "$NM"; then
8159 ac_cv_prog_NM="$NM" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172done
8173 done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178NM=$ac_cv_prog_NM
8179if test -n "$NM"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8181$as_echo "$NM" >&6; }
8182else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187
8188 fi
8189 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
8194if test "${ac_cv_prog_NM+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196else
8197 if test -n "$NM"; then
8198 ac_cv_prog_NM="$NM" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_NM="${ncn_progname}"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211done
8212 done
8213IFS=$as_save_IFS
8214
8215fi
8216fi
8217NM=$ac_cv_prog_NM
8218if test -n "$NM"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8220$as_echo "$NM" >&6; }
8221else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
8224fi
8225
8226
8227 fi
8228 test -n "$ac_cv_prog_NM" && break
8229done
8230
8231if test -z "$ac_cv_prog_NM" ; then
8232 set dummy nm
8233 if test $build = $host ; then
8234 NM="$2"
8235 else
8236 NM="${ncn_tool_prefix}$2"
8237 fi
8238fi
8239
8240
8241
8242if test -n "$RANLIB"; then
8243 ac_cv_prog_RANLIB=$RANLIB
8244elif test -n "$ac_cv_prog_RANLIB"; then
8245 RANLIB=$ac_cv_prog_RANLIB
8246fi
8247
8248if test -n "$ac_cv_prog_RANLIB"; then
8249 for ncn_progname in ranlib; do
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251set dummy ${ncn_progname}; ac_word=$2
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if test "${ac_cv_prog_RANLIB+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256else
8257 if test -n "$RANLIB"; then
8258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_RANLIB="${ncn_progname}"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271done
8272 done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277RANLIB=$ac_cv_prog_RANLIB
8278if test -n "$RANLIB"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8280$as_echo "$RANLIB" >&6; }
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287 done
8288fi
8289
8290for ncn_progname in ranlib; do
8291 if test -n "$ncn_tool_prefix"; then
8292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8293set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if test "${ac_cv_prog_RANLIB+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298else
8299 if test -n "$RANLIB"; then
8300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314 done
8315IFS=$as_save_IFS
8316
8317fi
8318fi
8319RANLIB=$ac_cv_prog_RANLIB
8320if test -n "$RANLIB"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8322$as_echo "$RANLIB" >&6; }
8323else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326fi
8327
8328
8329 fi
8330 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332set dummy ${ncn_progname}; ac_word=$2
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337else
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_RANLIB="${ncn_progname}"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8351 fi
8352done
8353 done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358RANLIB=$ac_cv_prog_RANLIB
8359if test -n "$RANLIB"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361$as_echo "$RANLIB" >&6; }
8362else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368 fi
8369 test -n "$ac_cv_prog_RANLIB" && break
8370done
8371
8372if test -z "$ac_cv_prog_RANLIB" ; then
8373 RANLIB=":"
8374fi
8375
8376
8377
8378if test -n "$STRIP"; then
8379 ac_cv_prog_STRIP=$STRIP
8380elif test -n "$ac_cv_prog_STRIP"; then
8381 STRIP=$ac_cv_prog_STRIP
8382fi
8383
8384if test -n "$ac_cv_prog_STRIP"; then
8385 for ncn_progname in strip; do
8386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8387set dummy ${ncn_progname}; ac_word=$2
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
8390if test "${ac_cv_prog_STRIP+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392else
8393 if test -n "$STRIP"; then
8394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_STRIP="${ncn_progname}"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407done
8408 done
8409IFS=$as_save_IFS
8410
8411fi
8412fi
8413STRIP=$ac_cv_prog_STRIP
8414if test -n "$STRIP"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8416$as_echo "$STRIP" >&6; }
8417else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
8420fi
8421
8422
8423 done
8424fi
8425
8426for ncn_progname in strip; do
8427 if test -n "$ncn_tool_prefix"; then
8428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8429set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
8432if test "${ac_cv_prog_STRIP+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434else
8435 if test -n "$STRIP"; then
8436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449done
8450 done
8451IFS=$as_save_IFS
8452
8453fi
8454fi
8455STRIP=$ac_cv_prog_STRIP
8456if test -n "$STRIP"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8458$as_echo "$STRIP" >&6; }
8459else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461$as_echo "no" >&6; }
8462fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_progname}; ac_word=$2
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470$as_echo_n "checking for $ac_word... " >&6; }
8471if test "${ac_cv_prog_STRIP+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473else
8474 if test -n "$STRIP"; then
8475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8476else
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 ac_cv_prog_STRIP="${ncn_progname}"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489 done
8490IFS=$as_save_IFS
8491
8492fi
8493fi
8494STRIP=$ac_cv_prog_STRIP
8495if test -n "$STRIP"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8497$as_echo "$STRIP" >&6; }
8498else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501fi
8502
8503
8504 fi
8505 test -n "$ac_cv_prog_STRIP" && break
8506done
8507
8508if test -z "$ac_cv_prog_STRIP" ; then
8509 STRIP=":"
8510fi
8511
8512
8513
8514if test -n "$WINDRES"; then
8515 ac_cv_prog_WINDRES=$WINDRES
8516elif test -n "$ac_cv_prog_WINDRES"; then
8517 WINDRES=$ac_cv_prog_WINDRES
8518fi
8519
8520if test -n "$ac_cv_prog_WINDRES"; then
8521 for ncn_progname in windres; do
8522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523set dummy ${ncn_progname}; ac_word=$2
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525$as_echo_n "checking for $ac_word... " >&6; }
8526if test "${ac_cv_prog_WINDRES+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8528else
8529 if test -n "$WINDRES"; then
8530 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8531else
8532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533for as_dir in $PATH
8534do
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_prog_WINDRES="${ncn_progname}"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8542 fi
8543done
8544 done
8545IFS=$as_save_IFS
8546
8547fi
8548fi
8549WINDRES=$ac_cv_prog_WINDRES
8550if test -n "$WINDRES"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8552$as_echo "$WINDRES" >&6; }
8553else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
8556fi
8557
8558
8559 done
8560fi
8561
8562for ncn_progname in windres; do
8563 if test -n "$ncn_tool_prefix"; then
8564 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567$as_echo_n "checking for $ac_word... " >&6; }
8568if test "${ac_cv_prog_WINDRES+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8570else
8571 if test -n "$WINDRES"; then
8572 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586 done
8587IFS=$as_save_IFS
8588
8589fi
8590fi
8591WINDRES=$ac_cv_prog_WINDRES
8592if test -n "$WINDRES"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8594$as_echo "$WINDRES" >&6; }
8595else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598fi
8599
8600
8601 fi
8602 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if test "${ac_cv_prog_WINDRES+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609else
8610 if test -n "$WINDRES"; then
8611 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_prog_WINDRES="${ncn_progname}"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624done
8625 done
8626IFS=$as_save_IFS
8627
8628fi
8629fi
8630WINDRES=$ac_cv_prog_WINDRES
8631if test -n "$WINDRES"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8633$as_echo "$WINDRES" >&6; }
8634else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637fi
8638
8639
8640 fi
8641 test -n "$ac_cv_prog_WINDRES" && break
8642done
8643
8644if test -z "$ac_cv_prog_WINDRES" ; then
8645 set dummy windres
8646 if test $build = $host ; then
8647 WINDRES="$2"
8648 else
8649 WINDRES="${ncn_tool_prefix}$2"
8650 fi
8651fi
8652
8653
8654
8655if test -n "$WINDMC"; then
8656 ac_cv_prog_WINDMC=$WINDMC
8657elif test -n "$ac_cv_prog_WINDMC"; then
8658 WINDMC=$ac_cv_prog_WINDMC
8659fi
8660
8661if test -n "$ac_cv_prog_WINDMC"; then
8662 for ncn_progname in windmc; do
8663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664set dummy ${ncn_progname}; ac_word=$2
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666$as_echo_n "checking for $ac_word... " >&6; }
8667if test "${ac_cv_prog_WINDMC+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669else
8670 if test -n "$WINDMC"; then
8671 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_prog_WINDMC="${ncn_progname}"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684done
8685 done
8686IFS=$as_save_IFS
8687
8688fi
8689fi
8690WINDMC=$ac_cv_prog_WINDMC
8691if test -n "$WINDMC"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8693$as_echo "$WINDMC" >&6; }
8694else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
8697fi
8698
8699
8700 done
8701fi
8702
8703for ncn_progname in windmc; do
8704 if test -n "$ncn_tool_prefix"; then
8705 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8706set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708$as_echo_n "checking for $ac_word... " >&6; }
8709if test "${ac_cv_prog_WINDMC+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711else
8712 if test -n "$WINDMC"; then
8713 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726done
8727 done
8728IFS=$as_save_IFS
8729
8730fi
8731fi
8732WINDMC=$ac_cv_prog_WINDMC
8733if test -n "$WINDMC"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8735$as_echo "$WINDMC" >&6; }
8736else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
8739fi
8740
8741
8742 fi
8743 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747$as_echo_n "checking for $ac_word... " >&6; }
8748if test "${ac_cv_prog_WINDMC+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750else
8751 if test -n "$WINDMC"; then
8752 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761 ac_cv_prog_WINDMC="${ncn_progname}"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765done
8766 done
8767IFS=$as_save_IFS
8768
8769fi
8770fi
8771WINDMC=$ac_cv_prog_WINDMC
8772if test -n "$WINDMC"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8774$as_echo "$WINDMC" >&6; }
8775else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
8778fi
8779
8780
8781 fi
8782 test -n "$ac_cv_prog_WINDMC" && break
8783done
8784
8785if test -z "$ac_cv_prog_WINDMC" ; then
8786 set dummy windmc
8787 if test $build = $host ; then
8788 WINDMC="$2"
8789 else
8790 WINDMC="${ncn_tool_prefix}$2"
8791 fi
8792fi
8793
8794
8795
8796if test -n "$OBJCOPY"; then
8797 ac_cv_prog_OBJCOPY=$OBJCOPY
8798elif test -n "$ac_cv_prog_OBJCOPY"; then
8799 OBJCOPY=$ac_cv_prog_OBJCOPY
8800fi
8801
8802if test -n "$ac_cv_prog_OBJCOPY"; then
8803 for ncn_progname in objcopy; do
8804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805set dummy ${ncn_progname}; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810else
8811 if test -n "$OBJCOPY"; then
8812 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_prog_OBJCOPY="${ncn_progname}"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8824 fi
8825done
8826 done
8827IFS=$as_save_IFS
8828
8829fi
8830fi
8831OBJCOPY=$ac_cv_prog_OBJCOPY
8832if test -n "$OBJCOPY"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8834$as_echo "$OBJCOPY" >&6; }
8835else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841 done
8842fi
8843
8844for ncn_progname in objcopy; do
8845 if test -n "$ncn_tool_prefix"; then
8846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8847set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849$as_echo_n "checking for $ac_word... " >&6; }
8850if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8852else
8853 if test -n "$OBJCOPY"; then
8854 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8855else
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8866 fi
8867done
8868 done
8869IFS=$as_save_IFS
8870
8871fi
8872fi
8873OBJCOPY=$ac_cv_prog_OBJCOPY
8874if test -n "$OBJCOPY"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8876$as_echo "$OBJCOPY" >&6; }
8877else
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879$as_echo "no" >&6; }
8880fi
8881
8882
8883 fi
8884 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888$as_echo_n "checking for $ac_word... " >&6; }
8889if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891else
8892 if test -n "$OBJCOPY"; then
8893 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8894else
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_OBJCOPY="${ncn_progname}"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907 done
8908IFS=$as_save_IFS
8909
8910fi
8911fi
8912OBJCOPY=$ac_cv_prog_OBJCOPY
8913if test -n "$OBJCOPY"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8915$as_echo "$OBJCOPY" >&6; }
8916else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918$as_echo "no" >&6; }
8919fi
8920
8921
8922 fi
8923 test -n "$ac_cv_prog_OBJCOPY" && break
8924done
8925
8926if test -z "$ac_cv_prog_OBJCOPY" ; then
8927 set dummy objcopy
8928 if test $build = $host ; then
8929 OBJCOPY="$2"
8930 else
8931 OBJCOPY="${ncn_tool_prefix}$2"
8932 fi
8933fi
8934
8935
8936
8937if test -n "$OBJDUMP"; then
8938 ac_cv_prog_OBJDUMP=$OBJDUMP
8939elif test -n "$ac_cv_prog_OBJDUMP"; then
8940 OBJDUMP=$ac_cv_prog_OBJDUMP
8941fi
8942
8943if test -n "$ac_cv_prog_OBJDUMP"; then
8944 for ncn_progname in objdump; do
8945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946set dummy ${ncn_progname}; ac_word=$2
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
8949if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951else
8952 if test -n "$OBJDUMP"; then
8953 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8962 ac_cv_prog_OBJDUMP="${ncn_progname}"
8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966done
8967 done
8968IFS=$as_save_IFS
8969
8970fi
8971fi
8972OBJDUMP=$ac_cv_prog_OBJDUMP
8973if test -n "$OBJDUMP"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8975$as_echo "$OBJDUMP" >&6; }
8976else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
8979fi
8980
8981
8982 done
8983fi
8984
8985for ncn_progname in objdump; do
8986 if test -n "$ncn_tool_prefix"; then
8987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8988set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
8991if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8993else
8994 if test -n "$OBJDUMP"; then
8995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009 done
9010IFS=$as_save_IFS
9011
9012fi
9013fi
9014OBJDUMP=$ac_cv_prog_OBJDUMP
9015if test -n "$OBJDUMP"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9017$as_echo "$OBJDUMP" >&6; }
9018else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
9021fi
9022
9023
9024 fi
9025 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027set dummy ${ncn_progname}; ac_word=$2
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
9030if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032else
9033 if test -n "$OBJDUMP"; then
9034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9035else
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_prog_OBJDUMP="${ncn_progname}"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9046 fi
9047done
9048 done
9049IFS=$as_save_IFS
9050
9051fi
9052fi
9053OBJDUMP=$ac_cv_prog_OBJDUMP
9054if test -n "$OBJDUMP"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9056$as_echo "$OBJDUMP" >&6; }
9057else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
9060fi
9061
9062
9063 fi
9064 test -n "$ac_cv_prog_OBJDUMP" && break
9065done
9066
9067if test -z "$ac_cv_prog_OBJDUMP" ; then
9068 set dummy objdump
9069 if test $build = $host ; then
9070 OBJDUMP="$2"
9071 else
9072 OBJDUMP="${ncn_tool_prefix}$2"
9073 fi
9074fi
9075
9076
9077
9078
9079
9080
9081# Target tools.
9082
9083# Check whether --with-build-time-tools was given.
9084if test "${with_build_time_tools+set}" = set; then :
9085 withval=$with_build_time_tools; case x"$withval" in
9086 x/*) ;;
9087 *)
9088 with_build_time_tools=
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9090$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9091 ;;
9092 esac
9093else
9094 with_build_time_tools=
9095fi
9096
9097
9098
9099
9100if test -n "$CC_FOR_TARGET"; then
9101 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9102elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9104fi
9105
9106if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9107 for ncn_progname in cc gcc; do
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
9112if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114else
9115 if test -n "$CC_FOR_TARGET"; then
9116 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130 done
9131IFS=$as_save_IFS
9132
9133fi
9134fi
9135CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9136if test -n "$CC_FOR_TARGET"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9138$as_echo "$CC_FOR_TARGET" >&6; }
9139else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
9142fi
9143
9144
9145 done
9146fi
9147
9148if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9149 for ncn_progname in cc gcc; do
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9151$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9152 if test -x $with_build_time_tools/${ncn_progname}; then
9153 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155$as_echo "yes" >&6; }
9156 break
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160 fi
9161 done
9162fi
9163
9164if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9165 for ncn_progname in cc gcc; do
9166 if test -n "$ncn_target_tool_prefix"; then
9167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9168set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170$as_echo_n "checking for $ac_word... " >&6; }
9171if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173else
9174 if test -n "$CC_FOR_TARGET"; then
9175 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9176else
9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $PATH
9179do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9187 fi
9188done
9189 done
9190IFS=$as_save_IFS
9191
9192fi
9193fi
9194CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9195if test -n "$CC_FOR_TARGET"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9197$as_echo "$CC_FOR_TARGET" >&6; }
9198else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200$as_echo "no" >&6; }
9201fi
9202
9203
9204 fi
9205 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9207set dummy ${ncn_progname}; ac_word=$2
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209$as_echo_n "checking for $ac_word... " >&6; }
9210if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212else
9213 if test -n "$CC_FOR_TARGET"; then
9214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9215else
9216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217for as_dir in $PATH
9218do
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9226 fi
9227done
9228 done
9229IFS=$as_save_IFS
9230
9231fi
9232fi
9233CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9234if test -n "$CC_FOR_TARGET"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9236$as_echo "$CC_FOR_TARGET" >&6; }
9237else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239$as_echo "no" >&6; }
9240fi
9241
9242
9243 fi
9244 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9245 done
9246fi
9247
9248if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9249 set dummy cc gcc
9250 if test $build = $target ; then
9251 CC_FOR_TARGET="$2"
9252 else
9253 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9254 fi
9255else
9256 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9257fi
9258
9259
9260
9261if test -n "$CXX_FOR_TARGET"; then
9262 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9263elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9265fi
9266
9267if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9268 for ncn_progname in c++ g++ cxx gxx; do
9269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9270set dummy ${ncn_progname}; ac_word=$2
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272$as_echo_n "checking for $ac_word... " >&6; }
9273if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275else
9276 if test -n "$CXX_FOR_TARGET"; then
9277 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9278else
9279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280for as_dir in $PATH
9281do
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9289 fi
9290done
9291 done
9292IFS=$as_save_IFS
9293
9294fi
9295fi
9296CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9297if test -n "$CXX_FOR_TARGET"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9299$as_echo "$CXX_FOR_TARGET" >&6; }
9300else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
9306 done
9307fi
9308
9309if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9310 for ncn_progname in c++ g++ cxx gxx; do
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9312$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9313 if test -x $with_build_time_tools/${ncn_progname}; then
9314 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316$as_echo "yes" >&6; }
9317 break
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321 fi
9322 done
9323fi
9324
9325if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9326 for ncn_progname in c++ g++ cxx gxx; do
9327 if test -n "$ncn_target_tool_prefix"; then
9328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9329set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331$as_echo_n "checking for $ac_word... " >&6; }
9332if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334else
9335 if test -n "$CXX_FOR_TARGET"; then
9336 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9337else
9338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339for as_dir in $PATH
9340do
9341 IFS=$as_save_IFS
9342 test -z "$as_dir" && as_dir=.
9343 for ac_exec_ext in '' $ac_executable_extensions; do
9344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 break 2
9348 fi
9349done
9350 done
9351IFS=$as_save_IFS
9352
9353fi
9354fi
9355CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9356if test -n "$CXX_FOR_TARGET"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9358$as_echo "$CXX_FOR_TARGET" >&6; }
9359else
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361$as_echo "no" >&6; }
9362fi
9363
9364
9365 fi
9366 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9368set dummy ${ncn_progname}; ac_word=$2
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370$as_echo_n "checking for $ac_word... " >&6; }
9371if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373else
9374 if test -n "$CXX_FOR_TARGET"; then
9375 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9376else
9377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378for as_dir in $PATH
9379do
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9387 fi
9388done
9389 done
9390IFS=$as_save_IFS
9391
9392fi
9393fi
9394CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9395if test -n "$CXX_FOR_TARGET"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9397$as_echo "$CXX_FOR_TARGET" >&6; }
9398else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400$as_echo "no" >&6; }
9401fi
9402
9403
9404 fi
9405 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9406 done
9407fi
9408
9409if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9410 set dummy c++ g++ cxx gxx
9411 if test $build = $target ; then
9412 CXX_FOR_TARGET="$2"
9413 else
9414 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9415 fi
9416else
9417 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9418fi
9419
9420
9421
9422if test -n "$GCC_FOR_TARGET"; then
9423 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9424elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9426fi
9427
9428if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9429 for ncn_progname in gcc; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_progname}; ac_word=$2
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436else
9437 if test -n "$GCC_FOR_TARGET"; then
9438 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451done
9452 done
9453IFS=$as_save_IFS
9454
9455fi
9456fi
9457GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9458if test -n "$GCC_FOR_TARGET"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9460$as_echo "$GCC_FOR_TARGET" >&6; }
9461else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
9464fi
9465
9466
9467 done
9468fi
9469
9470if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9471 for ncn_progname in gcc; do
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9473$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9474 if test -x $with_build_time_tools/${ncn_progname}; then
9475 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477$as_echo "yes" >&6; }
9478 break
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481$as_echo "no" >&6; }
9482 fi
9483 done
9484fi
9485
9486if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9487 for ncn_progname in gcc; do
9488 if test -n "$ncn_target_tool_prefix"; then
9489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9490set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
9493if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495else
9496 if test -n "$GCC_FOR_TARGET"; then
9497 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9498else
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510done
9511 done
9512IFS=$as_save_IFS
9513
9514fi
9515fi
9516GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9517if test -n "$GCC_FOR_TARGET"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9519$as_echo "$GCC_FOR_TARGET" >&6; }
9520else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
9523fi
9524
9525
9526 fi
9527 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9529set dummy ${ncn_progname}; ac_word=$2
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531$as_echo_n "checking for $ac_word... " >&6; }
9532if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
9534else
9535 if test -n "$GCC_FOR_TARGET"; then
9536 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9537else
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549done
9550 done
9551IFS=$as_save_IFS
9552
9553fi
9554fi
9555GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9556if test -n "$GCC_FOR_TARGET"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9558$as_echo "$GCC_FOR_TARGET" >&6; }
9559else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
9562fi
9563
9564
9565 fi
9566 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9567 done
9568fi
9569
9570if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9571 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9572else
9573 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9574fi
9575
9576
9577
9578if test -n "$GCJ_FOR_TARGET"; then
9579 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9580elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9581 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9582fi
9583
9584if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9585 for ncn_progname in gcj; do
9586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9587set dummy ${ncn_progname}; ac_word=$2
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9592else
9593 if test -n "$GCJ_FOR_TARGET"; then
9594 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9606 fi
9607done
9608 done
9609IFS=$as_save_IFS
9610
9611fi
9612fi
9613GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9614if test -n "$GCJ_FOR_TARGET"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9616$as_echo "$GCJ_FOR_TARGET" >&6; }
9617else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621
9622
9623 done
9624fi
9625
9626if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9627 for ncn_progname in gcj; do
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9629$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9630 if test -x $with_build_time_tools/${ncn_progname}; then
9631 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9633$as_echo "yes" >&6; }
9634 break
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
9638 fi
9639 done
9640fi
9641
9642if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9643 for ncn_progname in gcj; do
9644 if test -n "$ncn_target_tool_prefix"; then
9645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648$as_echo_n "checking for $ac_word... " >&6; }
9649if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651else
9652 if test -n "$GCJ_FOR_TARGET"; then
9653 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9654else
9655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656for as_dir in $PATH
9657do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9662 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666done
9667 done
9668IFS=$as_save_IFS
9669
9670fi
9671fi
9672GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9673if test -n "$GCJ_FOR_TARGET"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9675$as_echo "$GCJ_FOR_TARGET" >&6; }
9676else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678$as_echo "no" >&6; }
9679fi
9680
9681
9682 fi
9683 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_progname}; ac_word=$2
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
9688if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690else
9691 if test -n "$GCJ_FOR_TARGET"; then
9692 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9701 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706 done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9712if test -n "$GCJ_FOR_TARGET"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9714$as_echo "$GCJ_FOR_TARGET" >&6; }
9715else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9718fi
9719
9720
9721 fi
9722 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9723 done
9724fi
9725
9726if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9727 set dummy gcj
9728 if test $build = $target ; then
9729 GCJ_FOR_TARGET="$2"
9730 else
9731 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9732 fi
9733else
9734 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9735fi
9736
9737
9738
9739if test -n "$GFORTRAN_FOR_TARGET"; then
9740 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9741elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9742 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9743fi
9744
9745if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9746 for ncn_progname in gfortran; do
9747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9748set dummy ${ncn_progname}; ac_word=$2
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750$as_echo_n "checking for $ac_word... " >&6; }
9751if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753else
9754 if test -n "$GFORTRAN_FOR_TARGET"; then
9755 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9756else
9757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758for as_dir in $PATH
9759do
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9764 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9767 fi
9768done
9769 done
9770IFS=$as_save_IFS
9771
9772fi
9773fi
9774GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9775if test -n "$GFORTRAN_FOR_TARGET"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9777$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9778else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
9781fi
9782
9783
9784 done
9785fi
9786
9787if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9788 for ncn_progname in gfortran; do
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9790$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9791 if test -x $with_build_time_tools/${ncn_progname}; then
9792 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794$as_echo "yes" >&6; }
9795 break
9796 else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799 fi
9800 done
9801fi
9802
9803if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9804 for ncn_progname in gfortran; do
9805 if test -n "$ncn_target_tool_prefix"; then
9806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9807set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809$as_echo_n "checking for $ac_word... " >&6; }
9810if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 if test -n "$GFORTRAN_FOR_TARGET"; then
9814 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9815else
9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817for as_dir in $PATH
9818do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9826 fi
9827done
9828 done
9829IFS=$as_save_IFS
9830
9831fi
9832fi
9833GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9834if test -n "$GFORTRAN_FOR_TARGET"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9836$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9837else
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839$as_echo "no" >&6; }
9840fi
9841
9842
9843 fi
9844 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846set dummy ${ncn_progname}; ac_word=$2
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851else
9852 if test -n "$GFORTRAN_FOR_TARGET"; then
9853 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866done
9867 done
9868IFS=$as_save_IFS
9869
9870fi
9871fi
9872GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9873if test -n "$GFORTRAN_FOR_TARGET"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9875$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9876else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878$as_echo "no" >&6; }
9879fi
9880
9881
9882 fi
9883 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9884 done
9885fi
9886
9887if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9888 set dummy gfortran
9889 if test $build = $target ; then
9890 GFORTRAN_FOR_TARGET="$2"
9891 else
9892 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9893 fi
9894else
9895 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9896fi
9897
9898
9899
9900cat > conftest.c << \EOF
9901#ifdef __GNUC__
9902 gcc_yay;
9903#endif
9904EOF
9905if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9906 have_gcc_for_target=yes
9907else
9908 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9909 have_gcc_for_target=no
9910fi
9911rm conftest.c
9912
9913
9914
9915
9916if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9917 if test -n "$with_build_time_tools"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9919$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
9920 if test -x $with_build_time_tools/ar; then
9921 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9922 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9924$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
9928 fi
9929 elif test $build != $host && test $have_gcc_for_target = yes; then
9930 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9931 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9932 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9933 fi
9934fi
9935if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9936 # Extract the first word of "ar", so it can be a program name with args.
9937set dummy ar; ac_word=$2
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942else
9943 case $AR_FOR_TARGET in
9944 [\\/]* | ?:[\\/]*)
9945 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9946 ;;
9947 *)
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in $gcc_cv_tool_dirs
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9955 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 break 2
9958 fi
9959done
9960 done
9961IFS=$as_save_IFS
9962
9963 ;;
9964esac
9965fi
9966AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9967if test -n "$AR_FOR_TARGET"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9969$as_echo "$AR_FOR_TARGET" >&6; }
9970else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972$as_echo "no" >&6; }
9973fi
9974
9975
9976fi
9977if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9978
9979
9980if test -n "$AR_FOR_TARGET"; then
9981 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9982elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9984fi
9985
9986if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9987 for ncn_progname in ar; do
9988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9989set dummy ${ncn_progname}; ac_word=$2
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991$as_echo_n "checking for $ac_word... " >&6; }
9992if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9994else
9995 if test -n "$AR_FOR_TARGET"; then
9996 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 break 2
10008 fi
10009done
10010 done
10011IFS=$as_save_IFS
10012
10013fi
10014fi
10015AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10016if test -n "$AR_FOR_TARGET"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10018$as_echo "$AR_FOR_TARGET" >&6; }
10019else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
10022fi
10023
10024
10025 done
10026fi
10027
10028if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10029 for ncn_progname in ar; do
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10031$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10032 if test -x $with_build_time_tools/${ncn_progname}; then
10033 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035$as_echo "yes" >&6; }
10036 break
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040 fi
10041 done
10042fi
10043
10044if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10045 for ncn_progname in ar; do
10046 if test -n "$ncn_target_tool_prefix"; then
10047 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10048set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050$as_echo_n "checking for $ac_word... " >&6; }
10051if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053else
10054 if test -n "$AR_FOR_TARGET"; then
10055 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10056else
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068done
10069 done
10070IFS=$as_save_IFS
10071
10072fi
10073fi
10074AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10075if test -n "$AR_FOR_TARGET"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10077$as_echo "$AR_FOR_TARGET" >&6; }
10078else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080$as_echo "no" >&6; }
10081fi
10082
10083
10084 fi
10085 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087set dummy ${ncn_progname}; ac_word=$2
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089$as_echo_n "checking for $ac_word... " >&6; }
10090if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092else
10093 if test -n "$AR_FOR_TARGET"; then
10094 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10095else
10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107done
10108 done
10109IFS=$as_save_IFS
10110
10111fi
10112fi
10113AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10114if test -n "$AR_FOR_TARGET"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10116$as_echo "$AR_FOR_TARGET" >&6; }
10117else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
10120fi
10121
10122
10123 fi
10124 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10125 done
10126fi
10127
10128if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10129 set dummy ar
10130 if test $build = $target ; then
10131 AR_FOR_TARGET="$2"
10132 else
10133 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10134 fi
10135else
10136 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10137fi
10138
10139else
10140 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10141fi
10142
10143
10144
10145
10146if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10147 if test -n "$with_build_time_tools"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10149$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10150 if test -x $with_build_time_tools/as; then
10151 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10152 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10154$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
10158 fi
10159 elif test $build != $host && test $have_gcc_for_target = yes; then
10160 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10161 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10162 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10163 fi
10164fi
10165if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10166 # Extract the first word of "as", so it can be a program name with args.
10167set dummy as; ac_word=$2
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
10170if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172else
10173 case $AS_FOR_TARGET in
10174 [\\/]* | ?:[\\/]*)
10175 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10176 ;;
10177 *)
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $gcc_cv_tool_dirs
10180do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10188 fi
10189done
10190 done
10191IFS=$as_save_IFS
10192
10193 ;;
10194esac
10195fi
10196AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10197if test -n "$AS_FOR_TARGET"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10199$as_echo "$AS_FOR_TARGET" >&6; }
10200else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
10203fi
10204
10205
10206fi
10207if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10208
10209
10210if test -n "$AS_FOR_TARGET"; then
10211 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10212elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10214fi
10215
10216if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10217 for ncn_progname in as; do
10218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10219set dummy ${ncn_progname}; ac_word=$2
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221$as_echo_n "checking for $ac_word... " >&6; }
10222if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10224else
10225 if test -n "$AS_FOR_TARGET"; then
10226 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10238 fi
10239done
10240 done
10241IFS=$as_save_IFS
10242
10243fi
10244fi
10245AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10246if test -n "$AS_FOR_TARGET"; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10248$as_echo "$AS_FOR_TARGET" >&6; }
10249else
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251$as_echo "no" >&6; }
10252fi
10253
10254
10255 done
10256fi
10257
10258if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10259 for ncn_progname in as; do
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10261$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10262 if test -x $with_build_time_tools/${ncn_progname}; then
10263 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265$as_echo "yes" >&6; }
10266 break
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269$as_echo "no" >&6; }
10270 fi
10271 done
10272fi
10273
10274if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10275 for ncn_progname in as; do
10276 if test -n "$ncn_target_tool_prefix"; then
10277 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10278set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280$as_echo_n "checking for $ac_word... " >&6; }
10281if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283else
10284 if test -n "$AS_FOR_TARGET"; then
10285 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10286else
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10294 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10297 fi
10298done
10299 done
10300IFS=$as_save_IFS
10301
10302fi
10303fi
10304AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10305if test -n "$AS_FOR_TARGET"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10307$as_echo "$AS_FOR_TARGET" >&6; }
10308else
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310$as_echo "no" >&6; }
10311fi
10312
10313
10314 fi
10315 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10317set dummy ${ncn_progname}; ac_word=$2
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
10320if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322else
10323 if test -n "$AS_FOR_TARGET"; then
10324 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10336 fi
10337done
10338 done
10339IFS=$as_save_IFS
10340
10341fi
10342fi
10343AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10344if test -n "$AS_FOR_TARGET"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10346$as_echo "$AS_FOR_TARGET" >&6; }
10347else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352
10353 fi
10354 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10355 done
10356fi
10357
10358if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10359 set dummy as
10360 if test $build = $target ; then
10361 AS_FOR_TARGET="$2"
10362 else
10363 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10364 fi
10365else
10366 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10367fi
10368
10369else
10370 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10371fi
10372
10373
10374
10375
10376if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10377 if test -n "$with_build_time_tools"; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10379$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10380 if test -x $with_build_time_tools/dlltool; then
10381 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10382 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10384$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388 fi
10389 elif test $build != $host && test $have_gcc_for_target = yes; then
10390 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10391 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10392 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10393 fi
10394fi
10395if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10396 # Extract the first word of "dlltool", so it can be a program name with args.
10397set dummy dlltool; ac_word=$2
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399$as_echo_n "checking for $ac_word... " >&6; }
10400if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402else
10403 case $DLLTOOL_FOR_TARGET in
10404 [\\/]* | ?:[\\/]*)
10405 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10406 ;;
10407 *)
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $gcc_cv_tool_dirs
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420 done
10421IFS=$as_save_IFS
10422
10423 ;;
10424esac
10425fi
10426DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10427if test -n "$DLLTOOL_FOR_TARGET"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10429$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10430else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
10433fi
10434
10435
10436fi
10437if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10438
10439
10440if test -n "$DLLTOOL_FOR_TARGET"; then
10441 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10442elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10444fi
10445
10446if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10447 for ncn_progname in dlltool; do
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449set dummy ${ncn_progname}; ac_word=$2
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
10452if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10454else
10455 if test -n "$DLLTOOL_FOR_TARGET"; then
10456 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10465 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469done
10470 done
10471IFS=$as_save_IFS
10472
10473fi
10474fi
10475DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10476if test -n "$DLLTOOL_FOR_TARGET"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10478$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10479else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482fi
10483
10484
10485 done
10486fi
10487
10488if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10489 for ncn_progname in dlltool; do
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10491$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10492 if test -x $with_build_time_tools/${ncn_progname}; then
10493 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10495$as_echo "yes" >&6; }
10496 break
10497 else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
10500 fi
10501 done
10502fi
10503
10504if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10505 for ncn_progname in dlltool; do
10506 if test -n "$ncn_target_tool_prefix"; then
10507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10508set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510$as_echo_n "checking for $ac_word... " >&6; }
10511if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
10513else
10514 if test -n "$DLLTOOL_FOR_TARGET"; then
10515 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10516else
10517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518for as_dir in $PATH
10519do
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10527 fi
10528done
10529 done
10530IFS=$as_save_IFS
10531
10532fi
10533fi
10534DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10535if test -n "$DLLTOOL_FOR_TARGET"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10537$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10538else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
10541fi
10542
10543
10544 fi
10545 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10547set dummy ${ncn_progname}; ac_word=$2
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549$as_echo_n "checking for $ac_word... " >&6; }
10550if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552else
10553 if test -n "$DLLTOOL_FOR_TARGET"; then
10554 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10555else
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10563 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568 done
10569IFS=$as_save_IFS
10570
10571fi
10572fi
10573DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10574if test -n "$DLLTOOL_FOR_TARGET"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10576$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10577else
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
10580fi
10581
10582
10583 fi
10584 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10585 done
10586fi
10587
10588if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10589 set dummy dlltool
10590 if test $build = $target ; then
10591 DLLTOOL_FOR_TARGET="$2"
10592 else
10593 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10594 fi
10595else
10596 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10597fi
10598
10599else
10600 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10601fi
10602
10603
10604
10605
10606if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10607 if test -n "$with_build_time_tools"; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10609$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10610 if test -x $with_build_time_tools/ld; then
10611 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10612 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10614$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
10618 fi
10619 elif test $build != $host && test $have_gcc_for_target = yes; then
10620 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10621 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10622 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10623 fi
10624fi
10625if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10626 # Extract the first word of "ld", so it can be a program name with args.
10627set dummy ld; ac_word=$2
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629$as_echo_n "checking for $ac_word... " >&6; }
10630if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632else
10633 case $LD_FOR_TARGET in
10634 [\\/]* | ?:[\\/]*)
10635 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10636 ;;
10637 *)
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $gcc_cv_tool_dirs
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10648 fi
10649done
10650 done
10651IFS=$as_save_IFS
10652
10653 ;;
10654esac
10655fi
10656LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10657if test -n "$LD_FOR_TARGET"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10659$as_echo "$LD_FOR_TARGET" >&6; }
10660else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
10663fi
10664
10665
10666fi
10667if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10668
10669
10670if test -n "$LD_FOR_TARGET"; then
10671 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10672elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10674fi
10675
10676if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10677 for ncn_progname in ld; do
10678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10679set dummy ${ncn_progname}; ac_word=$2
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
10682if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684else
10685 if test -n "$LD_FOR_TARGET"; then
10686 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10687else
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699done
10700 done
10701IFS=$as_save_IFS
10702
10703fi
10704fi
10705LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10706if test -n "$LD_FOR_TARGET"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10708$as_echo "$LD_FOR_TARGET" >&6; }
10709else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
10712fi
10713
10714
10715 done
10716fi
10717
10718if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10719 for ncn_progname in ld; do
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10721$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10722 if test -x $with_build_time_tools/${ncn_progname}; then
10723 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10725$as_echo "yes" >&6; }
10726 break
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
10730 fi
10731 done
10732fi
10733
10734if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10735 for ncn_progname in ld; do
10736 if test -n "$ncn_target_tool_prefix"; then
10737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10738set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740$as_echo_n "checking for $ac_word... " >&6; }
10741if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10743else
10744 if test -n "$LD_FOR_TARGET"; then
10745 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10746else
10747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $PATH
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10754 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10757 fi
10758done
10759 done
10760IFS=$as_save_IFS
10761
10762fi
10763fi
10764LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10765if test -n "$LD_FOR_TARGET"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10767$as_echo "$LD_FOR_TARGET" >&6; }
10768else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
10771fi
10772
10773
10774 fi
10775 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777set dummy ${ncn_progname}; ac_word=$2
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779$as_echo_n "checking for $ac_word... " >&6; }
10780if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782else
10783 if test -n "$LD_FOR_TARGET"; then
10784 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10785else
10786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10796 fi
10797done
10798 done
10799IFS=$as_save_IFS
10800
10801fi
10802fi
10803LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10804if test -n "$LD_FOR_TARGET"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10806$as_echo "$LD_FOR_TARGET" >&6; }
10807else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809$as_echo "no" >&6; }
10810fi
10811
10812
10813 fi
10814 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10815 done
10816fi
10817
10818if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10819 set dummy ld
10820 if test $build = $target ; then
10821 LD_FOR_TARGET="$2"
10822 else
10823 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10824 fi
10825else
10826 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10827fi
10828
10829else
10830 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10831fi
10832
10833
10834
10835
10836if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10837 if test -n "$with_build_time_tools"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10839$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
10840 if test -x $with_build_time_tools/lipo; then
10841 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10842 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10844$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848 fi
10849 elif test $build != $host && test $have_gcc_for_target = yes; then
10850 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10851 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10852 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10853 fi
10854fi
10855if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10856 # Extract the first word of "lipo", so it can be a program name with args.
10857set dummy lipo; ac_word=$2
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859$as_echo_n "checking for $ac_word... " >&6; }
10860if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 case $LIPO_FOR_TARGET in
10864 [\\/]* | ?:[\\/]*)
10865 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10866 ;;
10867 *)
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $gcc_cv_tool_dirs
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880 done
10881IFS=$as_save_IFS
10882
10883 ;;
10884esac
10885fi
10886LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10887if test -n "$LIPO_FOR_TARGET"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10889$as_echo "$LIPO_FOR_TARGET" >&6; }
10890else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
10893fi
10894
10895
10896fi
10897if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10898
10899
10900if test -n "$LIPO_FOR_TARGET"; then
10901 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10902elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10904fi
10905
10906if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10907 for ncn_progname in lipo; do
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909set dummy ${ncn_progname}; ac_word=$2
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914else
10915 if test -n "$LIPO_FOR_TARGET"; then
10916 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930 done
10931IFS=$as_save_IFS
10932
10933fi
10934fi
10935LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10936if test -n "$LIPO_FOR_TARGET"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10938$as_echo "$LIPO_FOR_TARGET" >&6; }
10939else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
10942fi
10943
10944
10945 done
10946fi
10947
10948if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10949 for ncn_progname in lipo; do
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10952 if test -x $with_build_time_tools/${ncn_progname}; then
10953 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955$as_echo "yes" >&6; }
10956 break
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
10960 fi
10961 done
10962fi
10963
10964if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10965 for ncn_progname in lipo; do
10966 if test -n "$ncn_target_tool_prefix"; then
10967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10968set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
10971if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10973else
10974 if test -n "$LIPO_FOR_TARGET"; then
10975 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989 done
10990IFS=$as_save_IFS
10991
10992fi
10993fi
10994LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10995if test -n "$LIPO_FOR_TARGET"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10997$as_echo "$LIPO_FOR_TARGET" >&6; }
10998else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
11001fi
11002
11003
11004 fi
11005 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007set dummy ${ncn_progname}; ac_word=$2
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
11010if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11011 $as_echo_n "(cached) " >&6
11012else
11013 if test -n "$LIPO_FOR_TARGET"; then
11014 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11015else
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028 done
11029IFS=$as_save_IFS
11030
11031fi
11032fi
11033LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11034if test -n "$LIPO_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11036$as_echo "$LIPO_FOR_TARGET" >&6; }
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041
11042
11043 fi
11044 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11049 set dummy lipo
11050 if test $build = $target ; then
11051 LIPO_FOR_TARGET="$2"
11052 else
11053 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11054 fi
11055else
11056 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11057fi
11058
11059else
11060 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11061fi
11062
11063
11064
11065
11066if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11067 if test -n "$with_build_time_tools"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11069$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11070 if test -x $with_build_time_tools/nm; then
11071 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11072 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11074$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
11078 fi
11079 elif test $build != $host && test $have_gcc_for_target = yes; then
11080 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11081 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11082 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11083 fi
11084fi
11085if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11086 # Extract the first word of "nm", so it can be a program name with args.
11087set dummy nm; ac_word=$2
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089$as_echo_n "checking for $ac_word... " >&6; }
11090if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11092else
11093 case $NM_FOR_TARGET in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11096 ;;
11097 *)
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $gcc_cv_tool_dirs
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109done
11110 done
11111IFS=$as_save_IFS
11112
11113 ;;
11114esac
11115fi
11116NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11117if test -n "$NM_FOR_TARGET"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11119$as_echo "$NM_FOR_TARGET" >&6; }
11120else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
11123fi
11124
11125
11126fi
11127if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11128
11129
11130if test -n "$NM_FOR_TARGET"; then
11131 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11132elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11134fi
11135
11136if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11137 for ncn_progname in nm; do
11138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139set dummy ${ncn_progname}; ac_word=$2
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11144else
11145 if test -n "$NM_FOR_TARGET"; then
11146 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159done
11160 done
11161IFS=$as_save_IFS
11162
11163fi
11164fi
11165NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11166if test -n "$NM_FOR_TARGET"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11168$as_echo "$NM_FOR_TARGET" >&6; }
11169else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175 done
11176fi
11177
11178if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11179 for ncn_progname in nm; do
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11182 if test -x $with_build_time_tools/${ncn_progname}; then
11183 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185$as_echo "yes" >&6; }
11186 break
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
11190 fi
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11195 for ncn_progname in nm; do
11196 if test -n "$ncn_target_tool_prefix"; then
11197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203else
11204 if test -n "$NM_FOR_TARGET"; then
11205 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218done
11219 done
11220IFS=$as_save_IFS
11221
11222fi
11223fi
11224NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11225if test -n "$NM_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11227$as_echo "$NM_FOR_TARGET" >&6; }
11228else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232
11233
11234 fi
11235 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_progname}; ac_word=$2
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
11240if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11242else
11243 if test -n "$NM_FOR_TARGET"; then
11244 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11253 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258 done
11259IFS=$as_save_IFS
11260
11261fi
11262fi
11263NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11264if test -n "$NM_FOR_TARGET"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11266$as_echo "$NM_FOR_TARGET" >&6; }
11267else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272
11273 fi
11274 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11275 done
11276fi
11277
11278if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11279 set dummy nm
11280 if test $build = $target ; then
11281 NM_FOR_TARGET="$2"
11282 else
11283 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11284 fi
11285else
11286 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11287fi
11288
11289else
11290 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11291fi
11292
11293
11294
11295
11296if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11297 if test -n "$with_build_time_tools"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11299$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11300 if test -x $with_build_time_tools/objdump; then
11301 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11302 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11304$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308 fi
11309 elif test $build != $host && test $have_gcc_for_target = yes; then
11310 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11311 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11312 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11313 fi
11314fi
11315if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11316 # Extract the first word of "objdump", so it can be a program name with args.
11317set dummy objdump; ac_word=$2
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319$as_echo_n "checking for $ac_word... " >&6; }
11320if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11322else
11323 case $OBJDUMP_FOR_TARGET in
11324 [\\/]* | ?:[\\/]*)
11325 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11326 ;;
11327 *)
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $gcc_cv_tool_dirs
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340 done
11341IFS=$as_save_IFS
11342
11343 ;;
11344esac
11345fi
11346OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11347if test -n "$OBJDUMP_FOR_TARGET"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11349$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356fi
11357if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11358
11359
11360if test -n "$OBJDUMP_FOR_TARGET"; then
11361 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11362elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11363 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11364fi
11365
11366if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11367 for ncn_progname in objdump; do
11368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369set dummy ${ncn_progname}; ac_word=$2
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11374else
11375 if test -n "$OBJDUMP_FOR_TARGET"; then
11376 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11385 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389done
11390 done
11391IFS=$as_save_IFS
11392
11393fi
11394fi
11395OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11396if test -n "$OBJDUMP_FOR_TARGET"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11398$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11399else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
11402fi
11403
11404
11405 done
11406fi
11407
11408if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11409 for ncn_progname in objdump; do
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11412 if test -x $with_build_time_tools/${ncn_progname}; then
11413 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
11416 break
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
11420 fi
11421 done
11422fi
11423
11424if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11425 for ncn_progname in objdump; do
11426 if test -n "$ncn_target_tool_prefix"; then
11427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11432 $as_echo_n "(cached) " >&6
11433else
11434 if test -n "$OBJDUMP_FOR_TARGET"; then
11435 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449 done
11450IFS=$as_save_IFS
11451
11452fi
11453fi
11454OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11455if test -n "$OBJDUMP_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11457$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11458else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467set dummy ${ncn_progname}; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$OBJDUMP_FOR_TARGET"; then
11474 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488 done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11494if test -n "$OBJDUMP_FOR_TARGET"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11496$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
11503 fi
11504 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11505 done
11506fi
11507
11508if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11509 set dummy objdump
11510 if test $build = $target ; then
11511 OBJDUMP_FOR_TARGET="$2"
11512 else
11513 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 fi
11515else
11516 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11517fi
11518
11519else
11520 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11521fi
11522
11523
11524
11525
11526if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11527 if test -n "$with_build_time_tools"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11529$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11530 if test -x $with_build_time_tools/ranlib; then
11531 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11532 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11534$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
11538 fi
11539 elif test $build != $host && test $have_gcc_for_target = yes; then
11540 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11541 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11542 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11543 fi
11544fi
11545if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11546 # Extract the first word of "ranlib", so it can be a program name with args.
11547set dummy ranlib; ac_word=$2
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
11550if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553 case $RANLIB_FOR_TARGET in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11556 ;;
11557 *)
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $gcc_cv_tool_dirs
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570 done
11571IFS=$as_save_IFS
11572
11573 ;;
11574esac
11575fi
11576RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11577if test -n "$RANLIB_FOR_TARGET"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11579$as_echo "$RANLIB_FOR_TARGET" >&6; }
11580else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
11583fi
11584
11585
11586fi
11587if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11588
11589
11590if test -n "$RANLIB_FOR_TARGET"; then
11591 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11592elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11593 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11594fi
11595
11596if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11597 for ncn_progname in ranlib; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599set dummy ${ncn_progname}; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11604else
11605 if test -n "$RANLIB_FOR_TARGET"; then
11606 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619done
11620 done
11621IFS=$as_save_IFS
11622
11623fi
11624fi
11625RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11626if test -n "$RANLIB_FOR_TARGET"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11628$as_echo "$RANLIB_FOR_TARGET" >&6; }
11629else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
11632fi
11633
11634
11635 done
11636fi
11637
11638if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11639 for ncn_progname in ranlib; do
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11642 if test -x $with_build_time_tools/${ncn_progname}; then
11643 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
11646 break
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
11650 fi
11651 done
11652fi
11653
11654if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11655 for ncn_progname in ranlib; do
11656 if test -n "$ncn_target_tool_prefix"; then
11657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11658set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663else
11664 if test -n "$RANLIB_FOR_TARGET"; then
11665 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678done
11679 done
11680IFS=$as_save_IFS
11681
11682fi
11683fi
11684RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11685if test -n "$RANLIB_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11687$as_echo "$RANLIB_FOR_TARGET" >&6; }
11688else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
11691fi
11692
11693
11694 fi
11695 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697set dummy ${ncn_progname}; ac_word=$2
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
11700if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11702else
11703 if test -n "$RANLIB_FOR_TARGET"; then
11704 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11705else
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717done
11718 done
11719IFS=$as_save_IFS
11720
11721fi
11722fi
11723RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11724if test -n "$RANLIB_FOR_TARGET"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11726$as_echo "$RANLIB_FOR_TARGET" >&6; }
11727else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732
11733 fi
11734 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11739 set dummy ranlib
11740 if test $build = $target ; then
11741 RANLIB_FOR_TARGET="$2"
11742 else
11743 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744 fi
11745else
11746 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11747fi
11748
11749else
11750 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11751fi
11752
11753
11754
11755
11756if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11757 if test -n "$with_build_time_tools"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11759$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
11760 if test -x $with_build_time_tools/strip; then
11761 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11762 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11764$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
11768 fi
11769 elif test $build != $host && test $have_gcc_for_target = yes; then
11770 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11771 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11772 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11773 fi
11774fi
11775if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11776 # Extract the first word of "strip", so it can be a program name with args.
11777set dummy strip; ac_word=$2
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
11780if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11782else
11783 case $STRIP_FOR_TARGET in
11784 [\\/]* | ?:[\\/]*)
11785 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11786 ;;
11787 *)
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $gcc_cv_tool_dirs
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799done
11800 done
11801IFS=$as_save_IFS
11802
11803 ;;
11804esac
11805fi
11806STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11807if test -n "$STRIP_FOR_TARGET"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11809$as_echo "$STRIP_FOR_TARGET" >&6; }
11810else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
11813fi
11814
11815
11816fi
11817if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11818
11819
11820if test -n "$STRIP_FOR_TARGET"; then
11821 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11822elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11823 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11824fi
11825
11826if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11827 for ncn_progname in strip; do
11828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829set dummy ${ncn_progname}; ac_word=$2
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
11832if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11834else
11835 if test -n "$STRIP_FOR_TARGET"; then
11836 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11845 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850 done
11851IFS=$as_save_IFS
11852
11853fi
11854fi
11855STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11856if test -n "$STRIP_FOR_TARGET"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11858$as_echo "$STRIP_FOR_TARGET" >&6; }
11859else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862fi
11863
11864
11865 done
11866fi
11867
11868if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11869 for ncn_progname in strip; do
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11872 if test -x $with_build_time_tools/${ncn_progname}; then
11873 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875$as_echo "yes" >&6; }
11876 break
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
11880 fi
11881 done
11882fi
11883
11884if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11885 for ncn_progname in strip; do
11886 if test -n "$ncn_target_tool_prefix"; then
11887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11888set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893else
11894 if test -n "$STRIP_FOR_TARGET"; then
11895 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908done
11909 done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11915if test -n "$STRIP_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11917$as_echo "$STRIP_FOR_TARGET" >&6; }
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924 fi
11925 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11927set dummy ${ncn_progname}; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$STRIP_FOR_TARGET"; then
11934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948 done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11954if test -n "$STRIP_FOR_TARGET"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11956$as_echo "$STRIP_FOR_TARGET" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962
11963 fi
11964 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11969 set dummy strip
11970 if test $build = $target ; then
11971 STRIP_FOR_TARGET="$2"
11972 else
11973 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 fi
11975else
11976 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11977fi
11978
11979else
11980 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11981fi
11982
11983
11984
11985
11986if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11987 if test -n "$with_build_time_tools"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11989$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
11990 if test -x $with_build_time_tools/windres; then
11991 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11992 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11994$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
11998 fi
11999 elif test $build != $host && test $have_gcc_for_target = yes; then
12000 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12001 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12002 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12003 fi
12004fi
12005if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12006 # Extract the first word of "windres", so it can be a program name with args.
12007set dummy windres; ac_word=$2
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009$as_echo_n "checking for $ac_word... " >&6; }
12010if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012else
12013 case $WINDRES_FOR_TARGET in
12014 [\\/]* | ?:[\\/]*)
12015 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12016 ;;
12017 *)
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $gcc_cv_tool_dirs
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029done
12030 done
12031IFS=$as_save_IFS
12032
12033 ;;
12034esac
12035fi
12036WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12037if test -n "$WINDRES_FOR_TARGET"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12039$as_echo "$WINDRES_FOR_TARGET" >&6; }
12040else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
12043fi
12044
12045
12046fi
12047if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12048
12049
12050if test -n "$WINDRES_FOR_TARGET"; then
12051 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12052elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12053 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12054fi
12055
12056if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12057 for ncn_progname in windres; do
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059set dummy ${ncn_progname}; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if test -n "$WINDRES_FOR_TARGET"; then
12066 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079done
12080 done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12086if test -n "$WINDRES_FOR_TARGET"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12088$as_echo "$WINDRES_FOR_TARGET" >&6; }
12089else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095 done
12096fi
12097
12098if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12099 for ncn_progname in windres; do
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12102 if test -x $with_build_time_tools/${ncn_progname}; then
12103 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105$as_echo "yes" >&6; }
12106 break
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110 fi
12111 done
12112fi
12113
12114if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12115 for ncn_progname in windres; do
12116 if test -n "$ncn_target_tool_prefix"; then
12117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123else
12124 if test -n "$WINDRES_FOR_TARGET"; then
12125 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138done
12139 done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12145if test -n "$WINDRES_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12147$as_echo "$WINDRES_FOR_TARGET" >&6; }
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154 fi
12155 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12157set dummy ${ncn_progname}; ac_word=$2
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
12160if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 if test -n "$WINDRES_FOR_TARGET"; then
12164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12165else
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177done
12178 done
12179IFS=$as_save_IFS
12180
12181fi
12182fi
12183WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12184if test -n "$WINDRES_FOR_TARGET"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12186$as_echo "$WINDRES_FOR_TARGET" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193 fi
12194 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12199 set dummy windres
12200 if test $build = $target ; then
12201 WINDRES_FOR_TARGET="$2"
12202 else
12203 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12204 fi
12205else
12206 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12207fi
12208
12209else
12210 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12211fi
12212
12213
12214
12215
12216if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12217 if test -n "$with_build_time_tools"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12219$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12220 if test -x $with_build_time_tools/windmc; then
12221 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12222 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12224$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228 fi
12229 elif test $build != $host && test $have_gcc_for_target = yes; then
12230 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12231 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12232 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12233 fi
12234fi
12235if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236 # Extract the first word of "windmc", so it can be a program name with args.
12237set dummy windmc; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12242else
12243 case $WINDMC_FOR_TARGET in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $gcc_cv_tool_dirs
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259done
12260 done
12261IFS=$as_save_IFS
12262
12263 ;;
12264esac
12265fi
12266WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12267if test -n "$WINDMC_FOR_TARGET"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12269$as_echo "$WINDMC_FOR_TARGET" >&6; }
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12278
12279
12280if test -n "$WINDMC_FOR_TARGET"; then
12281 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12282elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12283 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12284fi
12285
12286if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12287 for ncn_progname in windmc; do
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289set dummy ${ncn_progname}; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
12292if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294else
12295 if test -n "$WINDMC_FOR_TARGET"; then
12296 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12305 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309done
12310 done
12311IFS=$as_save_IFS
12312
12313fi
12314fi
12315WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12316if test -n "$WINDMC_FOR_TARGET"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12318$as_echo "$WINDMC_FOR_TARGET" >&6; }
12319else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
12322fi
12323
12324
12325 done
12326fi
12327
12328if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329 for ncn_progname in windmc; do
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12332 if test -x $with_build_time_tools/${ncn_progname}; then
12333 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; }
12336 break
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
12340 fi
12341 done
12342fi
12343
12344if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12345 for ncn_progname in windmc; do
12346 if test -n "$ncn_target_tool_prefix"; then
12347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353else
12354 if test -n "$WINDMC_FOR_TARGET"; then
12355 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368done
12369 done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12375if test -n "$WINDMC_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12377$as_echo "$WINDMC_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384 fi
12385 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387set dummy ${ncn_progname}; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 if test -n "$WINDMC_FOR_TARGET"; then
12394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407done
12408 done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12414if test -n "$WINDMC_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12416$as_echo "$WINDMC_FOR_TARGET" >&6; }
12417else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422
12423 fi
12424 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12429 set dummy windmc
12430 if test $build = $target ; then
12431 WINDMC_FOR_TARGET="$2"
12432 else
12433 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 fi
12435else
12436 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12437fi
12438
12439else
12440 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12441fi
12442
12443
12444RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12445
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12447$as_echo_n "checking where to find the target ar... " >&6; }
12448if test "x${build}" != "x${host}" ; then
12449 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12450 # We already found the complete path
12451 ac_dir=`dirname $AR_FOR_TARGET`
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453$as_echo "pre-installed in $ac_dir" >&6; }
12454 else
12455 # Canadian cross, just use what we found
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12457$as_echo "pre-installed" >&6; }
12458 fi
12459else
12460 ok=yes
12461 case " ${configdirs} " in
12462 *" binutils "*) ;;
12463 *) ok=no ;;
12464 esac
12465
12466 if test $ok = yes; then
12467 # An in-tree tool is available and we can use it
12468 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12470$as_echo "just compiled" >&6; }
12471 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12472 # We already found the complete path
12473 ac_dir=`dirname $AR_FOR_TARGET`
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12475$as_echo "pre-installed in $ac_dir" >&6; }
12476 elif test "x$target" = "x$host"; then
12477 # We can use an host tool
12478 AR_FOR_TARGET='$(AR)'
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12480$as_echo "host tool" >&6; }
12481 else
12482 # We need a cross tool
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12484$as_echo "pre-installed" >&6; }
12485 fi
12486fi
12487
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12489$as_echo_n "checking where to find the target as... " >&6; }
12490if test "x${build}" != "x${host}" ; then
12491 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12492 # We already found the complete path
12493 ac_dir=`dirname $AS_FOR_TARGET`
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12495$as_echo "pre-installed in $ac_dir" >&6; }
12496 else
12497 # Canadian cross, just use what we found
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12499$as_echo "pre-installed" >&6; }
12500 fi
12501else
12502 ok=yes
12503 case " ${configdirs} " in
12504 *" gas "*) ;;
12505 *) ok=no ;;
12506 esac
12507
12508 if test $ok = yes; then
12509 # An in-tree tool is available and we can use it
12510 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12512$as_echo "just compiled" >&6; }
12513 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12514 # We already found the complete path
12515 ac_dir=`dirname $AS_FOR_TARGET`
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12517$as_echo "pre-installed in $ac_dir" >&6; }
12518 elif test "x$target" = "x$host"; then
12519 # We can use an host tool
12520 AS_FOR_TARGET='$(AS)'
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12522$as_echo "host tool" >&6; }
12523 else
12524 # We need a cross tool
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12526$as_echo "pre-installed" >&6; }
12527 fi
12528fi
12529
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12531$as_echo_n "checking where to find the target cc... " >&6; }
12532if test "x${build}" != "x${host}" ; then
12533 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12534 # We already found the complete path
12535 ac_dir=`dirname $CC_FOR_TARGET`
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12537$as_echo "pre-installed in $ac_dir" >&6; }
12538 else
12539 # Canadian cross, just use what we found
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12541$as_echo "pre-installed" >&6; }
12542 fi
12543else
12544 ok=yes
12545 case " ${configdirs} " in
12546 *" gcc "*) ;;
12547 *) ok=no ;;
12548 esac
12549
12550 if test $ok = yes; then
12551 # An in-tree tool is available and we can use it
12552 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12554$as_echo "just compiled" >&6; }
12555 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12556 # We already found the complete path
12557 ac_dir=`dirname $CC_FOR_TARGET`
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12559$as_echo "pre-installed in $ac_dir" >&6; }
12560 elif test "x$target" = "x$host"; then
12561 # We can use an host tool
12562 CC_FOR_TARGET='$(CC)'
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12564$as_echo "host tool" >&6; }
12565 else
12566 # We need a cross tool
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12568$as_echo "pre-installed" >&6; }
12569 fi
12570fi
12571
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12573$as_echo_n "checking where to find the target c++... " >&6; }
12574if test "x${build}" != "x${host}" ; then
12575 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12576 # We already found the complete path
12577 ac_dir=`dirname $CXX_FOR_TARGET`
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12579$as_echo "pre-installed in $ac_dir" >&6; }
12580 else
12581 # Canadian cross, just use what we found
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12583$as_echo "pre-installed" >&6; }
12584 fi
12585else
12586 ok=yes
12587 case " ${configdirs} " in
12588 *" gcc "*) ;;
12589 *) ok=no ;;
12590 esac
12591 case ,${enable_languages}, in
12592 *,c++,*) ;;
12593 *) ok=no ;;
12594 esac
12595 if test $ok = yes; then
12596 # An in-tree tool is available and we can use it
12597 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'
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12599$as_echo "just compiled" >&6; }
12600 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12601 # We already found the complete path
12602 ac_dir=`dirname $CXX_FOR_TARGET`
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12604$as_echo "pre-installed in $ac_dir" >&6; }
12605 elif test "x$target" = "x$host"; then
12606 # We can use an host tool
12607 CXX_FOR_TARGET='$(CXX)'
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12609$as_echo "host tool" >&6; }
12610 else
12611 # We need a cross tool
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12613$as_echo "pre-installed" >&6; }
12614 fi
12615fi
12616
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12618$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12619if test "x${build}" != "x${host}" ; then
12620 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12621 # We already found the complete path
12622 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12624$as_echo "pre-installed in $ac_dir" >&6; }
12625 else
12626 # Canadian cross, just use what we found
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12628$as_echo "pre-installed" >&6; }
12629 fi
12630else
12631 ok=yes
12632 case " ${configdirs} " in
12633 *" gcc "*) ;;
12634 *) ok=no ;;
12635 esac
12636 case ,${enable_languages}, in
12637 *,c++,*) ;;
12638 *) ok=no ;;
12639 esac
12640 if test $ok = yes; then
12641 # An in-tree tool is available and we can use it
12642 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'
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12644$as_echo "just compiled" >&6; }
12645 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12646 # We already found the complete path
12647 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12649$as_echo "pre-installed in $ac_dir" >&6; }
12650 elif test "x$target" = "x$host"; then
12651 # We can use an host tool
12652 RAW_CXX_FOR_TARGET='$(CXX)'
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12654$as_echo "host tool" >&6; }
12655 else
12656 # We need a cross tool
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12658$as_echo "pre-installed" >&6; }
12659 fi
12660fi
12661
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12663$as_echo_n "checking where to find the target dlltool... " >&6; }
12664if test "x${build}" != "x${host}" ; then
12665 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12666 # We already found the complete path
12667 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12669$as_echo "pre-installed in $ac_dir" >&6; }
12670 else
12671 # Canadian cross, just use what we found
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12673$as_echo "pre-installed" >&6; }
12674 fi
12675else
12676 ok=yes
12677 case " ${configdirs} " in
12678 *" binutils "*) ;;
12679 *) ok=no ;;
12680 esac
12681
12682 if test $ok = yes; then
12683 # An in-tree tool is available and we can use it
12684 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12686$as_echo "just compiled" >&6; }
12687 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12688 # We already found the complete path
12689 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12691$as_echo "pre-installed in $ac_dir" >&6; }
12692 elif test "x$target" = "x$host"; then
12693 # We can use an host tool
12694 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12696$as_echo "host tool" >&6; }
12697 else
12698 # We need a cross tool
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12700$as_echo "pre-installed" >&6; }
12701 fi
12702fi
12703
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12705$as_echo_n "checking where to find the target gcc... " >&6; }
12706if test "x${build}" != "x${host}" ; then
12707 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12708 # We already found the complete path
12709 ac_dir=`dirname $GCC_FOR_TARGET`
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12711$as_echo "pre-installed in $ac_dir" >&6; }
12712 else
12713 # Canadian cross, just use what we found
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12715$as_echo "pre-installed" >&6; }
12716 fi
12717else
12718 ok=yes
12719 case " ${configdirs} " in
12720 *" gcc "*) ;;
12721 *) ok=no ;;
12722 esac
12723
12724 if test $ok = yes; then
12725 # An in-tree tool is available and we can use it
12726 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12728$as_echo "just compiled" >&6; }
12729 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12730 # We already found the complete path
12731 ac_dir=`dirname $GCC_FOR_TARGET`
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12733$as_echo "pre-installed in $ac_dir" >&6; }
12734 elif test "x$target" = "x$host"; then
12735 # We can use an host tool
12736 GCC_FOR_TARGET='$()'
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12738$as_echo "host tool" >&6; }
12739 else
12740 # We need a cross tool
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12742$as_echo "pre-installed" >&6; }
12743 fi
12744fi
12745
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12747$as_echo_n "checking where to find the target gcj... " >&6; }
12748if test "x${build}" != "x${host}" ; then
12749 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12750 # We already found the complete path
12751 ac_dir=`dirname $GCJ_FOR_TARGET`
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12753$as_echo "pre-installed in $ac_dir" >&6; }
12754 else
12755 # Canadian cross, just use what we found
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12757$as_echo "pre-installed" >&6; }
12758 fi
12759else
12760 ok=yes
12761 case " ${configdirs} " in
12762 *" gcc "*) ;;
12763 *) ok=no ;;
12764 esac
12765 case ,${enable_languages}, in
12766 *,java,*) ;;
12767 *) ok=no ;;
12768 esac
12769 if test $ok = yes; then
12770 # An in-tree tool is available and we can use it
12771 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12773$as_echo "just compiled" >&6; }
12774 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12775 # We already found the complete path
12776 ac_dir=`dirname $GCJ_FOR_TARGET`
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12778$as_echo "pre-installed in $ac_dir" >&6; }
12779 elif test "x$target" = "x$host"; then
12780 # We can use an host tool
12781 GCJ_FOR_TARGET='$(GCJ)'
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12783$as_echo "host tool" >&6; }
12784 else
12785 # We need a cross tool
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12787$as_echo "pre-installed" >&6; }
12788 fi
12789fi
12790
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12792$as_echo_n "checking where to find the target gfortran... " >&6; }
12793if test "x${build}" != "x${host}" ; then
12794 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12795 # We already found the complete path
12796 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12798$as_echo "pre-installed in $ac_dir" >&6; }
12799 else
12800 # Canadian cross, just use what we found
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12802$as_echo "pre-installed" >&6; }
12803 fi
12804else
12805 ok=yes
12806 case " ${configdirs} " in
12807 *" gcc "*) ;;
12808 *) ok=no ;;
12809 esac
12810 case ,${enable_languages}, in
12811 *,fortran,*) ;;
12812 *) ok=no ;;
12813 esac
12814 if test $ok = yes; then
12815 # An in-tree tool is available and we can use it
12816 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12818$as_echo "just compiled" >&6; }
12819 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12820 # We already found the complete path
12821 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12823$as_echo "pre-installed in $ac_dir" >&6; }
12824 elif test "x$target" = "x$host"; then
12825 # We can use an host tool
12826 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12828$as_echo "host tool" >&6; }
12829 else
12830 # We need a cross tool
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12832$as_echo "pre-installed" >&6; }
12833 fi
12834fi
12835
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12837$as_echo_n "checking where to find the target ld... " >&6; }
12838if test "x${build}" != "x${host}" ; then
12839 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12840 # We already found the complete path
12841 ac_dir=`dirname $LD_FOR_TARGET`
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843$as_echo "pre-installed in $ac_dir" >&6; }
12844 else
12845 # Canadian cross, just use what we found
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12847$as_echo "pre-installed" >&6; }
12848 fi
12849else
12850 ok=yes
12851 case " ${configdirs} " in
12852 *" ld "*) ;;
12853 *) ok=no ;;
12854 esac
12855
12856 if test $ok = yes; then
12857 # An in-tree tool is available and we can use it
12858 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12860$as_echo "just compiled" >&6; }
12861 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12862 # We already found the complete path
12863 ac_dir=`dirname $LD_FOR_TARGET`
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12865$as_echo "pre-installed in $ac_dir" >&6; }
12866 elif test "x$target" = "x$host"; then
12867 # We can use an host tool
12868 LD_FOR_TARGET='$(LD)'
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12870$as_echo "host tool" >&6; }
12871 else
12872 # We need a cross tool
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12874$as_echo "pre-installed" >&6; }
12875 fi
12876fi
12877
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12879$as_echo_n "checking where to find the target lipo... " >&6; }
12880if test "x${build}" != "x${host}" ; then
12881 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12882 # We already found the complete path
12883 ac_dir=`dirname $LIPO_FOR_TARGET`
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12885$as_echo "pre-installed in $ac_dir" >&6; }
12886 else
12887 # Canadian cross, just use what we found
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12889$as_echo "pre-installed" >&6; }
12890 fi
12891else
12892 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12893 # We already found the complete path
12894 ac_dir=`dirname $LIPO_FOR_TARGET`
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12896$as_echo "pre-installed in $ac_dir" >&6; }
12897 elif test "x$target" = "x$host"; then
12898 # We can use an host tool
12899 LIPO_FOR_TARGET='$(LIPO)'
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12901$as_echo "host tool" >&6; }
12902 else
12903 # We need a cross tool
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12905$as_echo "pre-installed" >&6; }
12906 fi
12907fi
12908
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12910$as_echo_n "checking where to find the target nm... " >&6; }
12911if test "x${build}" != "x${host}" ; then
12912 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12913 # We already found the complete path
12914 ac_dir=`dirname $NM_FOR_TARGET`
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916$as_echo "pre-installed in $ac_dir" >&6; }
12917 else
12918 # Canadian cross, just use what we found
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12920$as_echo "pre-installed" >&6; }
12921 fi
12922else
12923 ok=yes
12924 case " ${configdirs} " in
12925 *" binutils "*) ;;
12926 *) ok=no ;;
12927 esac
12928
12929 if test $ok = yes; then
12930 # An in-tree tool is available and we can use it
12931 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12933$as_echo "just compiled" >&6; }
12934 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12935 # We already found the complete path
12936 ac_dir=`dirname $NM_FOR_TARGET`
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12938$as_echo "pre-installed in $ac_dir" >&6; }
12939 elif test "x$target" = "x$host"; then
12940 # We can use an host tool
12941 NM_FOR_TARGET='$(NM)'
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12943$as_echo "host tool" >&6; }
12944 else
12945 # We need a cross tool
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12947$as_echo "pre-installed" >&6; }
12948 fi
12949fi
12950
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12952$as_echo_n "checking where to find the target objdump... " >&6; }
12953if test "x${build}" != "x${host}" ; then
12954 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12955 # We already found the complete path
12956 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958$as_echo "pre-installed in $ac_dir" >&6; }
12959 else
12960 # Canadian cross, just use what we found
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12962$as_echo "pre-installed" >&6; }
12963 fi
12964else
12965 ok=yes
12966 case " ${configdirs} " in
12967 *" binutils "*) ;;
12968 *) ok=no ;;
12969 esac
12970
12971 if test $ok = yes; then
12972 # An in-tree tool is available and we can use it
12973 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12975$as_echo "just compiled" >&6; }
12976 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12977 # We already found the complete path
12978 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12980$as_echo "pre-installed in $ac_dir" >&6; }
12981 elif test "x$target" = "x$host"; then
12982 # We can use an host tool
12983 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12985$as_echo "host tool" >&6; }
12986 else
12987 # We need a cross tool
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12989$as_echo "pre-installed" >&6; }
12990 fi
12991fi
12992
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12994$as_echo_n "checking where to find the target ranlib... " >&6; }
12995if test "x${build}" != "x${host}" ; then
12996 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12997 # We already found the complete path
12998 ac_dir=`dirname $RANLIB_FOR_TARGET`
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000$as_echo "pre-installed in $ac_dir" >&6; }
13001 else
13002 # Canadian cross, just use what we found
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13004$as_echo "pre-installed" >&6; }
13005 fi
13006else
13007 ok=yes
13008 case " ${configdirs} " in
13009 *" binutils "*) ;;
13010 *) ok=no ;;
13011 esac
13012
13013 if test $ok = yes; then
13014 # An in-tree tool is available and we can use it
13015 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13017$as_echo "just compiled" >&6; }
13018 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13019 # We already found the complete path
13020 ac_dir=`dirname $RANLIB_FOR_TARGET`
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13022$as_echo "pre-installed in $ac_dir" >&6; }
13023 elif test "x$target" = "x$host"; then
13024 # We can use an host tool
13025 RANLIB_FOR_TARGET='$(RANLIB)'
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13027$as_echo "host tool" >&6; }
13028 else
13029 # We need a cross tool
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13031$as_echo "pre-installed" >&6; }
13032 fi
13033fi
13034
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13036$as_echo_n "checking where to find the target strip... " >&6; }
13037if test "x${build}" != "x${host}" ; then
13038 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13039 # We already found the complete path
13040 ac_dir=`dirname $STRIP_FOR_TARGET`
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042$as_echo "pre-installed in $ac_dir" >&6; }
13043 else
13044 # Canadian cross, just use what we found
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13046$as_echo "pre-installed" >&6; }
13047 fi
13048else
13049 ok=yes
13050 case " ${configdirs} " in
13051 *" binutils "*) ;;
13052 *) ok=no ;;
13053 esac
13054
13055 if test $ok = yes; then
13056 # An in-tree tool is available and we can use it
13057 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13059$as_echo "just compiled" >&6; }
13060 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13061 # We already found the complete path
13062 ac_dir=`dirname $STRIP_FOR_TARGET`
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13064$as_echo "pre-installed in $ac_dir" >&6; }
13065 elif test "x$target" = "x$host"; then
13066 # We can use an host tool
13067 STRIP_FOR_TARGET='$(STRIP)'
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13069$as_echo "host tool" >&6; }
13070 else
13071 # We need a cross tool
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13073$as_echo "pre-installed" >&6; }
13074 fi
13075fi
13076
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13078$as_echo_n "checking where to find the target windres... " >&6; }
13079if test "x${build}" != "x${host}" ; then
13080 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13081 # We already found the complete path
13082 ac_dir=`dirname $WINDRES_FOR_TARGET`
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13084$as_echo "pre-installed in $ac_dir" >&6; }
13085 else
13086 # Canadian cross, just use what we found
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13088$as_echo "pre-installed" >&6; }
13089 fi
13090else
13091 ok=yes
13092 case " ${configdirs} " in
13093 *" binutils "*) ;;
13094 *) ok=no ;;
13095 esac
13096
13097 if test $ok = yes; then
13098 # An in-tree tool is available and we can use it
13099 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13101$as_echo "just compiled" >&6; }
13102 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13103 # We already found the complete path
13104 ac_dir=`dirname $WINDRES_FOR_TARGET`
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13106$as_echo "pre-installed in $ac_dir" >&6; }
13107 elif test "x$target" = "x$host"; then
13108 # We can use an host tool
13109 WINDRES_FOR_TARGET='$(WINDRES)'
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13111$as_echo "host tool" >&6; }
13112 else
13113 # We need a cross tool
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13115$as_echo "pre-installed" >&6; }
13116 fi
13117fi
13118
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13120$as_echo_n "checking where to find the target windmc... " >&6; }
13121if test "x${build}" != "x${host}" ; then
13122 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13123 # We already found the complete path
13124 ac_dir=`dirname $WINDMC_FOR_TARGET`
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13126$as_echo "pre-installed in $ac_dir" >&6; }
13127 else
13128 # Canadian cross, just use what we found
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13130$as_echo "pre-installed" >&6; }
13131 fi
13132else
13133 ok=yes
13134 case " ${configdirs} " in
13135 *" binutils "*) ;;
13136 *) ok=no ;;
13137 esac
13138
13139 if test $ok = yes; then
13140 # An in-tree tool is available and we can use it
13141 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143$as_echo "just compiled" >&6; }
13144 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13145 # We already found the complete path
13146 ac_dir=`dirname $WINDMC_FOR_TARGET`
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13148$as_echo "pre-installed in $ac_dir" >&6; }
13149 elif test "x$target" = "x$host"; then
13150 # We can use an host tool
13151 WINDMC_FOR_TARGET='$(WINDMC)'
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13153$as_echo "host tool" >&6; }
13154 else
13155 # We need a cross tool
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13157$as_echo "pre-installed" >&6; }
13158 fi
13159fi
13160
13161
13162
13163
13164
13165# Certain tools may need extra flags.
13166AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13167RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13168NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13169
13170# When building target libraries, except in a Canadian cross, we use
13171# the same toolchain as the compiler we just built.
13172COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13173COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13174COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13175if test $host = $build; then
13176 case " $configdirs " in
13177 *" gcc "*)
13178 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13179 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13180 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13181 ;;
13182 esac
13183fi
13184
13185
13186
13187
13188
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13190$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13191# Check whether --enable-maintainer-mode was given.
13192if test "${enable_maintainer_mode+set}" = set; then :
13193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13194else
13195 USE_MAINTAINER_MODE=no
13196fi
13197
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13199$as_echo "$USE_MAINTAINER_MODE" >&6; }
13200
13201
13202if test "$USE_MAINTAINER_MODE" = yes; then
13203 MAINTAINER_MODE_TRUE=
13204 MAINTAINER_MODE_FALSE='#'
13205else
13206 MAINTAINER_MODE_TRUE='#'
13207 MAINTAINER_MODE_FALSE=
13208fi
13209MAINT=$MAINTAINER_MODE_TRUE
13210
13211# ---------------------
13212# GCC bootstrap support
13213# ---------------------
13214
13215# Stage specific cflags for build.
13216stage1_cflags="-g"
13217case $build in
13218 vax-*-*)
13219 case ${GCC} in
13220 yes) stage1_cflags="-g -Wa,-J" ;;
13221 *) stage1_cflags="-g -J" ;;
13222 esac ;;
13223esac
13224
13225# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13226if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13227 saved_CFLAGS="$CFLAGS"
13228
13229 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13230 CFLAGS="$CFLAGS -fkeep-inline-functions"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13232$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234/* end confdefs.h. */
13235
13236#if (__GNUC__ < 3) \
13237 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13238 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13239#error http://gcc.gnu.org/PR29382
13240#endif
13241
13242int
13243main ()
13244{
13245
13246 ;
13247 return 0;
13248}
13249_ACEOF
13250if ac_fn_c_try_compile "$LINENO"; then :
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258
13259 CFLAGS="$saved_CFLAGS"
13260fi
13261
13262
13263
13264# Enable --enable-checking in stage1 of the compiler.
13265# Check whether --enable-stage1-checking was given.
13266if test "${enable_stage1_checking+set}" = set; then :
13267 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13268else
13269 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13270 stage1_checking=--enable-checking=yes,types
13271else
13272 stage1_checking=--enable-checking=$enable_checking,types
13273fi
13274fi
13275
13276
13277
13278# Enable -Werror in bootstrap stage2 and later.
13279# Check whether --enable-werror was given.
13280if test "${enable_werror+set}" = set; then :
13281 enableval=$enable_werror;
13282else
13283 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13284 enable_werror=yes
13285else
13286 enable_werror=no
13287fi
13288fi
13289
13290case ${enable_werror} in
13291 yes) stage2_werror_flag="--enable-werror-always" ;;
13292 *) stage2_werror_flag="" ;;
13293esac
13294
13295
13296# Specify what files to not compare during bootstrap.
13297
13298compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13299case "$target" in
13300 hppa*64*-*-hpux*) ;;
13301 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13302esac
13303
13304
13305ac_config_files="$ac_config_files Makefile"
13306
13307cat >confcache <<\_ACEOF
13308# This file is a shell script that caches the results of configure
13309# tests run on this system so they can be shared between configure
13310# scripts and configure runs, see configure's option --config-cache.
13311# It is not useful on other systems. If it contains results you don't
13312# want to keep, you may remove or edit it.
13313#
13314# config.status only pays attention to the cache file if you give it
13315# the --recheck option to rerun configure.
13316#
13317# `ac_cv_env_foo' variables (set or unset) will be overridden when
13318# loading this file, other *unset* `ac_cv_foo' will be assigned the
13319# following values.
13320
13321_ACEOF
13322
13323# The following way of writing the cache mishandles newlines in values,
13324# but we know of no workaround that is simple, portable, and efficient.
13325# So, we kill variables containing newlines.
13326# Ultrix sh set writes to stderr and can't be redirected directly,
13327# and sets the high bit in the cache file unless we assign to the vars.
13328(
13329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13330 eval ac_val=\$$ac_var
13331 case $ac_val in #(
13332 *${as_nl}*)
13333 case $ac_var in #(
13334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13335$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13336 esac
13337 case $ac_var in #(
13338 _ | IFS | as_nl) ;; #(
13339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13340 *) { eval $ac_var=; unset $ac_var;} ;;
13341 esac ;;
13342 esac
13343 done
13344
13345 (set) 2>&1 |
13346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13347 *${as_nl}ac_space=\ *)
13348 # `set' does not quote correctly, so add quotes: double-quote
13349 # substitution turns \\\\ into \\, and sed turns \\ into \.
13350 sed -n \
13351 "s/'/'\\\\''/g;
13352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13353 ;; #(
13354 *)
13355 # `set' quotes correctly as required by POSIX, so do not add quotes.
13356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13357 ;;
13358 esac |
13359 sort
13360) |
13361 sed '
13362 /^ac_cv_env_/b end
13363 t clear
13364 :clear
13365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13366 t end
13367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13368 :end' >>confcache
13369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13370 if test -w "$cache_file"; then
13371 test "x$cache_file" != "x/dev/null" &&
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13373$as_echo "$as_me: updating cache $cache_file" >&6;}
13374 cat confcache >$cache_file
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13377$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13378 fi
13379fi
13380rm -f confcache
13381
13382test "x$prefix" = xNONE && prefix=$ac_default_prefix
13383# Let make expand exec_prefix.
13384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13385
13386# Transform confdefs.h into DEFS.
13387# Protect against shell expansion while executing Makefile rules.
13388# Protect against Makefile macro expansion.
13389#
13390# If the first sed substitution is executed (which looks for macros that
13391# take arguments), then branch to the quote section. Otherwise,
13392# look for a macro that doesn't take arguments.
13393ac_script='
13394:mline
13395/\\$/{
13396 N
13397 s,\\\n,,
13398 b mline
13399}
13400t clear
13401:clear
13402s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13403t quote
13404s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13405t quote
13406b any
13407:quote
13408s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13409s/\[/\\&/g
13410s/\]/\\&/g
13411s/\$/$$/g
13412H
13413:any
13414${
13415 g
13416 s/^\n//
13417 s/\n/ /g
13418 p
13419}
13420'
13421DEFS=`sed -n "$ac_script" confdefs.h`
13422
13423
13424ac_libobjs=
13425ac_ltlibobjs=
13426for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13427 # 1. Remove the extension, and $U if already installed.
13428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13429 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13431 # will be set to the directory where LIBOBJS objects are built.
13432 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13433 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13434done
13435LIBOBJS=$ac_libobjs
13436
13437LTLIBOBJS=$ac_ltlibobjs
13438
13439
13440
13441: ${CONFIG_STATUS=./config.status}
13442ac_write_fail=0
13443ac_clean_files_save=$ac_clean_files
13444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13447as_write_fail=0
13448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13449#! $SHELL
13450# Generated by $as_me.
13451# Run this file to recreate the current configuration.
13452# Compiler output produced by configure, useful for debugging
13453# configure, is in config.log if it exists.
13454
13455debug=false
13456ac_cs_recheck=false
13457ac_cs_silent=false
13458
13459SHELL=\${CONFIG_SHELL-$SHELL}
13460export SHELL
13461_ASEOF
13462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13463## -------------------- ##
13464## M4sh Initialization. ##
13465## -------------------- ##
13466
13467# Be more Bourne compatible
13468DUALCASE=1; export DUALCASE # for MKS sh
13469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13470 emulate sh
13471 NULLCMD=:
13472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13473 # is contrary to our usage. Disable this feature.
13474 alias -g '${1+"$@"}'='"$@"'
13475 setopt NO_GLOB_SUBST
13476else
13477 case `(set -o) 2>/dev/null` in #(
13478 *posix*) :
13479 set -o posix ;; #(
13480 *) :
13481 ;;
13482esac
13483fi
13484
13485
13486as_nl='
13487'
13488export as_nl
13489# Printing a long string crashes Solaris 7 /usr/bin/printf.
13490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13493# Prefer a ksh shell builtin over an external printf program on Solaris,
13494# but without wasting forks for bash or zsh.
13495if test -z "$BASH_VERSION$ZSH_VERSION" \
13496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13497 as_echo='print -r --'
13498 as_echo_n='print -rn --'
13499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13500 as_echo='printf %s\n'
13501 as_echo_n='printf %s'
13502else
13503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13505 as_echo_n='/usr/ucb/echo -n'
13506 else
13507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13508 as_echo_n_body='eval
13509 arg=$1;
13510 case $arg in #(
13511 *"$as_nl"*)
13512 expr "X$arg" : "X\\(.*\\)$as_nl";
13513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13514 esac;
13515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13516 '
13517 export as_echo_n_body
13518 as_echo_n='sh -c $as_echo_n_body as_echo'
13519 fi
13520 export as_echo_body
13521 as_echo='sh -c $as_echo_body as_echo'
13522fi
13523
13524# The user is always right.
13525if test "${PATH_SEPARATOR+set}" != set; then
13526 PATH_SEPARATOR=:
13527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13529 PATH_SEPARATOR=';'
13530 }
13531fi
13532
13533
13534# IFS
13535# We need space, tab and new line, in precisely that order. Quoting is
13536# there to prevent editors from complaining about space-tab.
13537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13538# splitting by setting IFS to empty value.)
13539IFS=" "" $as_nl"
13540
13541# Find who we are. Look in the path if we contain no directory separator.
13542case $0 in #((
13543 *[\\/]* ) as_myself=$0 ;;
13544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13550 done
13551IFS=$as_save_IFS
13552
13553 ;;
13554esac
13555# We did not find ourselves, most probably we were run as `sh COMMAND'
13556# in which case we are not to be found in the path.
13557if test "x$as_myself" = x; then
13558 as_myself=$0
13559fi
13560if test ! -f "$as_myself"; then
13561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13562 exit 1
13563fi
13564
13565# Unset variables that we do not need and which cause bugs (e.g. in
13566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13567# suppresses any "Segmentation fault" message there. '((' could
13568# trigger a bug in pdksh 5.2.14.
13569for as_var in BASH_ENV ENV MAIL MAILPATH
13570do eval test x\${$as_var+set} = xset \
13571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13572done
13573PS1='$ '
13574PS2='> '
13575PS4='+ '
13576
13577# NLS nuisances.
13578LC_ALL=C
13579export LC_ALL
13580LANGUAGE=C
13581export LANGUAGE
13582
13583# CDPATH.
13584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13585
13586
13587# as_fn_error ERROR [LINENO LOG_FD]
13588# ---------------------------------
13589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13591# script with status $?, using 1 if that was 0.
13592as_fn_error ()
13593{
13594 as_status=$?; test $as_status -eq 0 && as_status=1
13595 if test "$3"; then
13596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13598 fi
13599 $as_echo "$as_me: error: $1" >&2
13600 as_fn_exit $as_status
13601} # as_fn_error
13602
13603
13604# as_fn_set_status STATUS
13605# -----------------------
13606# Set $? to STATUS, without forking.
13607as_fn_set_status ()
13608{
13609 return $1
13610} # as_fn_set_status
13611
13612# as_fn_exit STATUS
13613# -----------------
13614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13615as_fn_exit ()
13616{
13617 set +e
13618 as_fn_set_status $1
13619 exit $1
13620} # as_fn_exit
13621
13622# as_fn_unset VAR
13623# ---------------
13624# Portably unset VAR.
13625as_fn_unset ()
13626{
13627 { eval $1=; unset $1;}
13628}
13629as_unset=as_fn_unset
13630# as_fn_append VAR VALUE
13631# ----------------------
13632# Append the text in VALUE to the end of the definition contained in VAR. Take
13633# advantage of any shell optimizations that allow amortized linear growth over
13634# repeated appends, instead of the typical quadratic growth present in naive
13635# implementations.
13636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13637 eval 'as_fn_append ()
13638 {
13639 eval $1+=\$2
13640 }'
13641else
13642 as_fn_append ()
13643 {
13644 eval $1=\$$1\$2
13645 }
13646fi # as_fn_append
13647
13648# as_fn_arith ARG...
13649# ------------------
13650# Perform arithmetic evaluation on the ARGs, and store the result in the
13651# global $as_val. Take advantage of shells that can avoid forks. The arguments
13652# must be portable across $(()) and expr.
13653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13654 eval 'as_fn_arith ()
13655 {
13656 as_val=$(( $* ))
13657 }'
13658else
13659 as_fn_arith ()
13660 {
13661 as_val=`expr "$@" || test $? -eq 1`
13662 }
13663fi # as_fn_arith
13664
13665
13666if expr a : '\(a\)' >/dev/null 2>&1 &&
13667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13668 as_expr=expr
13669else
13670 as_expr=false
13671fi
13672
13673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13674 as_basename=basename
13675else
13676 as_basename=false
13677fi
13678
13679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13680 as_dirname=dirname
13681else
13682 as_dirname=false
13683fi
13684
13685as_me=`$as_basename -- "$0" ||
13686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13687 X"$0" : 'X\(//\)$' \| \
13688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13689$as_echo X/"$0" |
13690 sed '/^.*\/\([^/][^/]*\)\/*$/{
13691 s//\1/
13692 q
13693 }
13694 /^X\/\(\/\/\)$/{
13695 s//\1/
13696 q
13697 }
13698 /^X\/\(\/\).*/{
13699 s//\1/
13700 q
13701 }
13702 s/.*/./; q'`
13703
13704# Avoid depending upon Character Ranges.
13705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13708as_cr_digits='0123456789'
13709as_cr_alnum=$as_cr_Letters$as_cr_digits
13710
13711ECHO_C= ECHO_N= ECHO_T=
13712case `echo -n x` in #(((((
13713-n*)
13714 case `echo 'xy\c'` in
13715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13716 xy) ECHO_C='\c';;
13717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13718 ECHO_T=' ';;
13719 esac;;
13720*)
13721 ECHO_N='-n';;
13722esac
13723
13724rm -f conf$$ conf$$.exe conf$$.file
13725if test -d conf$$.dir; then
13726 rm -f conf$$.dir/conf$$.file
13727else
13728 rm -f conf$$.dir
13729 mkdir conf$$.dir 2>/dev/null
13730fi
13731if (echo >conf$$.file) 2>/dev/null; then
13732 if ln -s conf$$.file conf$$ 2>/dev/null; then
13733 as_ln_s='ln -s'
13734 # ... but there are two gotchas:
13735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13737 # In both cases, we have to default to `cp -p'.
13738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13739 as_ln_s='cp -p'
13740 elif ln conf$$.file conf$$ 2>/dev/null; then
13741 as_ln_s=ln
13742 else
13743 as_ln_s='cp -p'
13744 fi
13745else
13746 as_ln_s='cp -p'
13747fi
13748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13749rmdir conf$$.dir 2>/dev/null
13750
13751
13752# as_fn_mkdir_p
13753# -------------
13754# Create "$as_dir" as a directory, including parents if necessary.
13755as_fn_mkdir_p ()
13756{
13757
13758 case $as_dir in #(
13759 -*) as_dir=./$as_dir;;
13760 esac
13761 test -d "$as_dir" || eval $as_mkdir_p || {
13762 as_dirs=
13763 while :; do
13764 case $as_dir in #(
13765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13766 *) as_qdir=$as_dir;;
13767 esac
13768 as_dirs="'$as_qdir' $as_dirs"
13769 as_dir=`$as_dirname -- "$as_dir" ||
13770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771 X"$as_dir" : 'X\(//\)[^/]' \| \
13772 X"$as_dir" : 'X\(//\)$' \| \
13773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13774$as_echo X"$as_dir" |
13775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\/\)[^/].*/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\/\)$/{
13784 s//\1/
13785 q
13786 }
13787 /^X\(\/\).*/{
13788 s//\1/
13789 q
13790 }
13791 s/.*/./; q'`
13792 test -d "$as_dir" && break
13793 done
13794 test -z "$as_dirs" || eval "mkdir $as_dirs"
13795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13796
13797
13798} # as_fn_mkdir_p
13799if mkdir -p . 2>/dev/null; then
13800 as_mkdir_p='mkdir -p "$as_dir"'
13801else
13802 test -d ./-p && rmdir ./-p
13803 as_mkdir_p=false
13804fi
13805
13806if test -x / >/dev/null 2>&1; then
13807 as_test_x='test -x'
13808else
13809 if ls -dL / >/dev/null 2>&1; then
13810 as_ls_L_option=L
13811 else
13812 as_ls_L_option=
13813 fi
13814 as_test_x='
13815 eval sh -c '\''
13816 if test -d "$1"; then
13817 test -d "$1/.";
13818 else
13819 case $1 in #(
13820 -*)set "./$1";;
13821 esac;
13822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13823 ???[sx]*):;;*)false;;esac;fi
13824 '\'' sh
13825 '
13826fi
13827as_executable_p=$as_test_x
13828
13829# Sed expression to map a string onto a valid CPP name.
13830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13831
13832# Sed expression to map a string onto a valid variable name.
13833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13834
13835
13836exec 6>&1
13837## ----------------------------------- ##
13838## Main body of $CONFIG_STATUS script. ##
13839## ----------------------------------- ##
13840_ASEOF
13841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13842
13843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844# Save the log message, to keep $0 and so on meaningful, and to
13845# report actual input values of CONFIG_FILES etc. instead of their
13846# values after options handling.
13847ac_log="
13848This file was extended by $as_me, which was
13849generated by GNU Autoconf 2.64. Invocation command line was
13850
13851 CONFIG_FILES = $CONFIG_FILES
13852 CONFIG_HEADERS = $CONFIG_HEADERS
13853 CONFIG_LINKS = $CONFIG_LINKS
13854 CONFIG_COMMANDS = $CONFIG_COMMANDS
13855 $ $0 $@
13856
13857on `(hostname || uname -n) 2>/dev/null | sed 1q`
13858"
13859
13860_ACEOF
13861
13862case $ac_config_files in *"
13863"*) set x $ac_config_files; shift; ac_config_files=$*;;
13864esac
13865
13866
13867
13868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13869# Files that config.status was made for.
13870config_files="$ac_config_files"
13871
13872_ACEOF
13873
13874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13875ac_cs_usage="\
13876\`$as_me' instantiates files and other configuration actions
13877from templates according to the current configuration. Unless the files
13878and actions are specified as TAGs, all are instantiated by default.
13879
13880Usage: $0 [OPTION]... [TAG]...
13881
13882 -h, --help print this help, then exit
13883 -V, --version print version number and configuration settings, then exit
13884 -q, --quiet, --silent
13885 do not print progress messages
13886 -d, --debug don't remove temporary files
13887 --recheck update $as_me by reconfiguring in the same conditions
13888 --file=FILE[:TEMPLATE]
13889 instantiate the configuration file FILE
13890
13891Configuration files:
13892$config_files
13893
13894Report bugs to the package provider."
13895
13896_ACEOF
13897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13898ac_cs_version="\\
13899config.status
13900configured by $0, generated by GNU Autoconf 2.64,
13901 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13902
13903Copyright (C) 2009 Free Software Foundation, Inc.
13904This config.status script is free software; the Free Software Foundation
13905gives unlimited permission to copy, distribute and modify it."
13906
13907ac_pwd='$ac_pwd'
13908srcdir='$srcdir'
13909INSTALL='$INSTALL'
13910AWK='$AWK'
13911test -n "\$AWK" || AWK=awk
13912_ACEOF
13913
13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915# The default lists apply if the user does not specify any file.
13916ac_need_defaults=:
13917while test $# != 0
13918do
13919 case $1 in
13920 --*=*)
13921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13923 ac_shift=:
13924 ;;
13925 *)
13926 ac_option=$1
13927 ac_optarg=$2
13928 ac_shift=shift
13929 ;;
13930 esac
13931
13932 case $ac_option in
13933 # Handling of the options.
13934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13935 ac_cs_recheck=: ;;
13936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13937 $as_echo "$ac_cs_version"; exit ;;
13938 --debug | --debu | --deb | --de | --d | -d )
13939 debug=: ;;
13940 --file | --fil | --fi | --f )
13941 $ac_shift
13942 case $ac_optarg in
13943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13944 esac
13945 as_fn_append CONFIG_FILES " '$ac_optarg'"
13946 ac_need_defaults=false;;
13947 --he | --h | --help | --hel | -h )
13948 $as_echo "$ac_cs_usage"; exit ;;
13949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13951 ac_cs_silent=: ;;
13952
13953 # This is an error.
13954 -*) as_fn_error "unrecognized option: \`$1'
13955Try \`$0 --help' for more information." ;;
13956
13957 *) as_fn_append ac_config_targets " $1"
13958 ac_need_defaults=false ;;
13959
13960 esac
13961 shift
13962done
13963
13964ac_configure_extra_args=
13965
13966if $ac_cs_silent; then
13967 exec 6>/dev/null
13968 ac_configure_extra_args="$ac_configure_extra_args --silent"
13969fi
13970
13971_ACEOF
13972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13973if \$ac_cs_recheck; then
13974 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13975 shift
13976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13977 CONFIG_SHELL='$SHELL'
13978 export CONFIG_SHELL
13979 exec "\$@"
13980fi
13981
13982_ACEOF
13983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984exec 5>>config.log
13985{
13986 echo
13987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13988## Running $as_me. ##
13989_ASBOX
13990 $as_echo "$ac_log"
13991} >&5
13992
13993_ACEOF
13994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995_ACEOF
13996
13997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998
13999# Handling of arguments.
14000for ac_config_target in $ac_config_targets
14001do
14002 case $ac_config_target in
14003 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14004
14005 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14006 esac
14007done
14008
14009
14010# If the user did not use the arguments to specify the items to instantiate,
14011# then the envvar interface is used. Set only those that are not.
14012# We use the long form for the default assignment because of an extremely
14013# bizarre bug on SunOS 4.1.3.
14014if $ac_need_defaults; then
14015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14016fi
14017
14018# Have a temporary directory for convenience. Make it in the build tree
14019# simply because there is no reason against having it here, and in addition,
14020# creating and moving files from /tmp can sometimes cause problems.
14021# Hook for its removal unless debugging.
14022# Note that there is a small window in which the directory will not be cleaned:
14023# after its creation but before its name has been assigned to `$tmp'.
14024$debug ||
14025{
14026 tmp=
14027 trap 'exit_status=$?
14028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14029' 0
14030 trap 'as_fn_exit 1' 1 2 13 15
14031}
14032# Create a (secure) tmp directory for tmp files.
14033
14034{
14035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14036 test -n "$tmp" && test -d "$tmp"
14037} ||
14038{
14039 tmp=./conf$$-$RANDOM
14040 (umask 077 && mkdir "$tmp")
14041} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14042
14043# Set up the scripts for CONFIG_FILES section.
14044# No need to generate them if there are no CONFIG_FILES.
14045# This happens for instance with `./config.status config.h'.
14046if test -n "$CONFIG_FILES"; then
14047
14048if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14049 ac_cs_awk_getline=:
14050 ac_cs_awk_pipe_init=
14051 ac_cs_awk_read_file='
14052 while ((getline aline < (F[key])) > 0)
14053 print(aline)
14054 close(F[key])'
14055 ac_cs_awk_pipe_fini=
14056else
14057 ac_cs_awk_getline=false
14058 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14059 ac_cs_awk_read_file='
14060 print "|#_!!_#|"
14061 print "cat " F[key] " &&"
14062 '$ac_cs_awk_pipe_init
14063 # The final `:' finishes the AND list.
14064 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14065fi
14066ac_cr=`echo X | tr X '\015'`
14067# On cygwin, bash can eat \r inside `` if the user requested igncr.
14068# But we know of no other shell where ac_cr would be empty at this
14069# point, so we can use a bashism as a fallback.
14070if test "x$ac_cr" = x; then
14071 eval ac_cr=\$\'\\r\'
14072fi
14073ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14074if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14075 ac_cs_awk_cr='\r'
14076else
14077 ac_cs_awk_cr=$ac_cr
14078fi
14079
14080echo 'BEGIN {' >"$tmp/subs1.awk" &&
14081_ACEOF
14082
14083# Create commands to substitute file output variables.
14084{
14085 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14086 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14087 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14088 echo "_ACAWK" &&
14089 echo "_ACEOF"
14090} >conf$$files.sh &&
14091. ./conf$$files.sh ||
14092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14093rm -f conf$$files.sh
14094
14095{
14096 echo "cat >conf$$subs.awk <<_ACEOF" &&
14097 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14098 echo "_ACEOF"
14099} >conf$$subs.sh ||
14100 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14101ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14102ac_delim='%!_!# '
14103for ac_last_try in false false false false false :; do
14104 . ./conf$$subs.sh ||
14105 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14106
14107 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14108 if test $ac_delim_n = $ac_delim_num; then
14109 break
14110 elif $ac_last_try; then
14111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14112 else
14113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14114 fi
14115done
14116rm -f conf$$subs.sh
14117
14118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14120_ACEOF
14121sed -n '
14122h
14123s/^/S["/; s/!.*/"]=/
14124p
14125g
14126s/^[^!]*!//
14127:repl
14128t repl
14129s/'"$ac_delim"'$//
14130t delim
14131:nl
14132h
14133s/\(.\{148\}\).*/\1/
14134t more1
14135s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14136p
14137n
14138b repl
14139:more1
14140s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14141p
14142g
14143s/.\{148\}//
14144t nl
14145:delim
14146h
14147s/\(.\{148\}\).*/\1/
14148t more2
14149s/["\\]/\\&/g; s/^/"/; s/$/"/
14150p
14151b
14152:more2
14153s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14154p
14155g
14156s/.\{148\}//
14157t delim
14158' <conf$$subs.awk | sed '
14159/^[^""]/{
14160 N
14161 s/\n//
14162}
14163' >>$CONFIG_STATUS || ac_write_fail=1
14164rm -f conf$$subs.awk
14165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166_ACAWK
14167cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14168 for (key in S) S_is_set[key] = 1
14169 FS = "\a"
14170 \$ac_cs_awk_pipe_init
14171}
14172{
14173 line = $ 0
14174 nfields = split(line, field, "@")
14175 substed = 0
14176 len = length(field[1])
14177 for (i = 2; i < nfields; i++) {
14178 key = field[i]
14179 keylen = length(key)
14180 if (S_is_set[key]) {
14181 value = S[key]
14182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14183 len += length(value) + length(field[++i])
14184 substed = 1
14185 } else
14186 len += 1 + keylen
14187 }
14188 if (nfields == 3 && !substed) {
14189 key = field[2]
14190 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14191 \$ac_cs_awk_read_file
14192 next
14193 }
14194 }
14195 print line
14196}
14197\$ac_cs_awk_pipe_fini
14198_ACAWK
14199_ACEOF
14200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14203else
14204 cat
14205fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14206 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14207_ACEOF
14208
14209# VPATH may cause trouble with some makes, so we remove $(srcdir),
14210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14211# trailing colons and then remove the whole line if VPATH becomes empty
14212# (actually we leave an empty line to preserve line numbers).
14213if test "x$srcdir" = x.; then
14214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14215s/:*\$(srcdir):*/:/
14216s/:*\${srcdir}:*/:/
14217s/:*@srcdir@:*/:/
14218s/^\([^=]*=[ ]*\):*/\1/
14219s/:*$//
14220s/^[^=]*=[ ]*$//
14221}'
14222fi
14223
14224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14225fi # test -n "$CONFIG_FILES"
14226
14227
14228eval set X " :F $CONFIG_FILES "
14229shift
14230for ac_tag
14231do
14232 case $ac_tag in
14233 :[FHLC]) ac_mode=$ac_tag; continue;;
14234 esac
14235 case $ac_mode$ac_tag in
14236 :[FHL]*:*);;
14237 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14238 :[FH]-) ac_tag=-:-;;
14239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14240 esac
14241 ac_save_IFS=$IFS
14242 IFS=:
14243 set x $ac_tag
14244 IFS=$ac_save_IFS
14245 shift
14246 ac_file=$1
14247 shift
14248
14249 case $ac_mode in
14250 :L) ac_source=$1;;
14251 :[FH])
14252 ac_file_inputs=
14253 for ac_f
14254 do
14255 case $ac_f in
14256 -) ac_f="$tmp/stdin";;
14257 *) # Look for the file first in the build tree, then in the source tree
14258 # (if the path is not absolute). The absolute path cannot be DOS-style,
14259 # because $ac_f cannot contain `:'.
14260 test -f "$ac_f" ||
14261 case $ac_f in
14262 [\\/$]*) false;;
14263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14264 esac ||
14265 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14266 esac
14267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14268 as_fn_append ac_file_inputs " '$ac_f'"
14269 done
14270
14271 # Let's still pretend it is `configure' which instantiates (i.e., don't
14272 # use $as_me), people would be surprised to read:
14273 # /* config.h. Generated by config.status. */
14274 configure_input='Generated from '`
14275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14276 `' by configure.'
14277 if test x"$ac_file" != x-; then
14278 configure_input="$ac_file. $configure_input"
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14280$as_echo "$as_me: creating $ac_file" >&6;}
14281 fi
14282 # Neutralize special characters interpreted by sed in replacement strings.
14283 case $configure_input in #(
14284 *\&* | *\|* | *\\* )
14285 ac_sed_conf_input=`$as_echo "$configure_input" |
14286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14287 *) ac_sed_conf_input=$configure_input;;
14288 esac
14289
14290 case $ac_tag in
14291 *:-:* | *:-) cat >"$tmp/stdin" \
14292 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14293 esac
14294 ;;
14295 esac
14296
14297 ac_dir=`$as_dirname -- "$ac_file" ||
14298$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299 X"$ac_file" : 'X\(//\)[^/]' \| \
14300 X"$ac_file" : 'X\(//\)$' \| \
14301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302$as_echo X"$ac_file" |
14303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304 s//\1/
14305 q
14306 }
14307 /^X\(\/\/\)[^/].*/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\).*/{
14316 s//\1/
14317 q
14318 }
14319 s/.*/./; q'`
14320 as_dir="$ac_dir"; as_fn_mkdir_p
14321 ac_builddir=.
14322
14323case "$ac_dir" in
14324.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14325*)
14326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14327 # A ".." for each directory in $ac_dir_suffix.
14328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14329 case $ac_top_builddir_sub in
14330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14332 esac ;;
14333esac
14334ac_abs_top_builddir=$ac_pwd
14335ac_abs_builddir=$ac_pwd$ac_dir_suffix
14336# for backward compatibility:
14337ac_top_builddir=$ac_top_build_prefix
14338
14339case $srcdir in
14340 .) # We are building in place.
14341 ac_srcdir=.
14342 ac_top_srcdir=$ac_top_builddir_sub
14343 ac_abs_top_srcdir=$ac_pwd ;;
14344 [\\/]* | ?:[\\/]* ) # Absolute name.
14345 ac_srcdir=$srcdir$ac_dir_suffix;
14346 ac_top_srcdir=$srcdir
14347 ac_abs_top_srcdir=$srcdir ;;
14348 *) # Relative name.
14349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14350 ac_top_srcdir=$ac_top_build_prefix$srcdir
14351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14352esac
14353ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14354
14355
14356 case $ac_mode in
14357 :F)
14358 #
14359 # CONFIG_FILE
14360 #
14361
14362 case $INSTALL in
14363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14364 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14365 esac
14366_ACEOF
14367
14368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369# If the template does not know about datarootdir, expand it.
14370# FIXME: This hack should be removed a few years after 2.60.
14371ac_datarootdir_hack=; ac_datarootdir_seen=
14372ac_sed_dataroot='
14373/datarootdir/ {
14374 p
14375 q
14376}
14377/@datadir@/p
14378/@docdir@/p
14379/@infodir@/p
14380/@localedir@/p
14381/@mandir@/p'
14382case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14383*datarootdir*) ac_datarootdir_seen=yes;;
14384*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14386$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14387_ACEOF
14388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14389 ac_datarootdir_hack='
14390 s&@datadir@&$datadir&g
14391 s&@docdir@&$docdir&g
14392 s&@infodir@&$infodir&g
14393 s&@localedir@&$localedir&g
14394 s&@mandir@&$mandir&g
14395 s&\\\${datarootdir}&$datarootdir&g' ;;
14396esac
14397_ACEOF
14398
14399# Neutralize VPATH when `$srcdir' = `.'.
14400# Shell code in configure.ac might set extrasub.
14401# FIXME: do we really want to maintain this feature?
14402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403ac_sed_extra="$ac_vpsub
14404$extrasub
14405_ACEOF
14406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14407:t
14408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14409s|@configure_input@|$ac_sed_conf_input|;t t
14410s&@top_builddir@&$ac_top_builddir_sub&;t t
14411s&@top_build_prefix@&$ac_top_build_prefix&;t t
14412s&@srcdir@&$ac_srcdir&;t t
14413s&@abs_srcdir@&$ac_abs_srcdir&;t t
14414s&@top_srcdir@&$ac_top_srcdir&;t t
14415s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14416s&@builddir@&$ac_builddir&;t t
14417s&@abs_builddir@&$ac_abs_builddir&;t t
14418s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14419s&@INSTALL@&$ac_INSTALL&;t t
14420$ac_datarootdir_hack
14421"
14422eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14423if $ac_cs_awk_getline; then
14424 $AWK -f "$tmp/subs.awk"
14425else
14426 $AWK -f "$tmp/subs.awk" | $SHELL
14427fi >$tmp/out \
14428 || as_fn_error "could not create $ac_file" "$LINENO" 5
14429
14430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14431 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14434which seems to be undefined. Please make sure it is defined." >&5
14435$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14436which seems to be undefined. Please make sure it is defined." >&2;}
14437
14438 rm -f "$tmp/stdin"
14439 case $ac_file in
14440 -) cat "$tmp/out" && rm -f "$tmp/out";;
14441 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14442 esac \
14443 || as_fn_error "could not create $ac_file" "$LINENO" 5
14444 ;;
14445
14446
14447
14448 esac
14449
14450done # for ac_tag
14451
14452
14453as_fn_exit 0
14454_ACEOF
14455ac_clean_files=$ac_clean_files_save
14456
14457test $ac_write_fail = 0 ||
14458 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14459
14460
14461# configure is writing to config.log, and then calls config.status.
14462# config.status does its own redirection, appending to config.log.
14463# Unfortunately, on DOS this fails, as config.log is still kept open
14464# by configure, so config.status won't be able to write to it; its
14465# output is simply discarded. So we exec the FD to /dev/null,
14466# effectively closing config.log, so it can be properly (re)opened and
14467# appended to by config.status. When coming back to configure, we
14468# need to make the FD available again.
14469if test "$no_create" != yes; then
14470 ac_cs_success=:
14471 ac_config_status_args=
14472 test "$silent" = yes &&
14473 ac_config_status_args="$ac_config_status_args --quiet"
14474 exec 5>/dev/null
14475 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14476 exec 5>>config.log
14477 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14478 # would make configure fail if this is the last instruction.
14479 $ac_cs_success || as_fn_exit $?
14480fi
14481if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14483$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14484fi
14485